iTest: Landslide TCL API - Test Case Configuration
[link text]I'm attempting to follow the commands listed on page 13 and then 40 in the Landslide Tcl API Obj and Perform Function Ref 12.0 documentation. ls::create TYPE –under TEST_HANDLE command set tc [ls::retrieve TestCase -systemLibraryName Basic "GGSN Node"] ls::config $test.TsGroup -children-Tc $tc The commands that I put into iTest are, [Command] [Argument 1, Argument 2...]
http://spirent.com/NTAF/harness/Landslide/10.5/TclApi:create TsGroup -under $tsId
http://spirent.com/NTAF/harness/Landslide/10.5/TclApi:retrieve TestCase -systemLibraryName basic GGSN Node
http://spirent.com/NTAF/harness/Landslide/10.5/TclApi:config $TsGroup -children-Tc $TestCase Where $tsId is the response from the first command, $TsGroup is stored by the second command and $TestCase is stored by the third command. I'm returning this error on the last step - **DeclareExecutionIssue Error: remote-server-error(502) Error sent from NTAF Tool: \tspirent_proxy_landslide11.2_1@ite/unspecified Message: tcl.lang.TclException: Value is not a Test Case handle** I know that my Landslide session profile works because I am able to run Landslide test and retrieve results normally, including port captures. Ultimately, I will need to be able to edit some test case parameters like number of sessions and a couple under the VSA configurations. I had issues with attempting to edit preexisting test sessions/cases so I'm trying to make a new one and work from there. Thanks, Nick : /storage/temp/4357-landslide_qc_t_2014-07-03_08-38-58.txt
Hello Nick, Could you use the below command as your third step,
http://spirent.com/NTAF/harness/Landslide/10.5/Retrieve:retrieveLibraryItem and specify the properties as shown below, ![alt text] Use the returned handle of this command in your fourth step. This should work fine! I believe with TclApi:Retrieve, some unusual handle is being received due to which we are seeing the error. Hope it helps! : /storage/temp/4359-untitled.jpg
Hi Nick, Could you please clarify, on which step you are hitting an error. Assuming, that you facing an error for the fourth command, if so please try the command as shown below, ls::config $tsId.TsGroup -children-Tc $TestCase Also try to print the $TestCase value just to make sure it contains the required handle. It would be great if you can share with us the test report and test case to understand the exact reason for the error. Thanks!