question

Nick12 avatar image
Nick12 asked Nick12 commented

iTest: Landslide TCL API - Test Case Configuration

[link text][1]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 TestSession 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 [1]: /storage/temp/4357-landslide_qc_t_2014-07-03_08-38-58.txt
iTestapiLandslide
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Yaseen avatar image
Yaseen answered Nick12 commented
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][1] 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! [1]: /storage/temp/4359-untitled.jpg

untitled.jpg (45.4 KiB)
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick12 avatar image Nick12 commented ·
Yaseen, That worked! Thanks
0 Likes 0 ·
Yaseen avatar image
Yaseen answered Nick12 commented
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!
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick12 avatar image Nick12 commented ·
I edited my question with the test case and report attached. You are correct, the last step is where I'm hitting an error. I printed the $TestCase response and it is storing the handle that is returned, whether that is correct is what I'm unsure about.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.