I am running the following code in silk test but when i use the run testcase option it is giving me "arguments to testcase are not valid". If I use the "script,test suite or test plan in the active window" button, it is running fine.
your testcase is similar to a function with 2 arguments.(which are required/compulsory arguments).
You are just trying to call it with out passing any.
It was successful while you run through Testplan because you might have passing them. check it once again.
Go to Run> select menu item 'testcase'.
Then in the Run Testcase dialog, enter the one username & password in the Arguments area.
Then Click on Run button.
You can run the testcase successfully.
Try and fail, but don't fail to try
When you select Run/Testcase silktest is going to execute only this paticular testcase. Your testcase Book() requires two arguments, that you have to supply. When you select Run/Run or hit 'Run script,test suite or test plan in the active window' button on the toolbar silktest is going to execute all testcases in the script file. But if you have main() function it will skip all testcases and execute only main function. In your main() function code is actually retrieving some data lsData from BookData.xls file and passing it to the testcase call at the end of the main:
I have similar issue, instead of getting the data from the xls, I provide the username and IP address. I will get invalid argument if I have use 2 arguments, but it will pass if I only use 1 argument....can someone shine a light on me?