Why do I get the error "Invalid argument supplied for execution of testcase" in SilkCentral TestManager?

0 Likes

Problem:

Why do I get the error "Invalid argument supplied for execution of testcase" in SilkCentral TestManager?

Resolution:

When passing test data from SilkCentral TestManager to execute SilkTest testcases that take arguments you may encounter this error for any of the following reasons.

  • The order in which the testdata is specified is different from the order in which testcase expects arguments.

E.g. Testcase findDetails(String sName, Integer iId)

Testdata : 222, /// will result in above mentioned error on execution

  • String values are passed without quotes.

E.g. Testcase findDetails(String sName, Integer iId)

Testdata : john, 222 /// will result in error on execution when single quotes are omitted

Use quotes for string values when using data-driven tests and using parameters to hold values as shown below:

testdata : "$sName", $iId


Old KB# 25048
Comment List
Related
Recommended