question

kmd6076 avatar image
kmd6076 asked vijaykumar answered

Procedure to open sessions not returning sessions to calling test case

I have several different tests that require the same sessions to be open. I created an 'open_sessions' procedure in a standalone test case and from my other test cases I call the 'open_sessions' test case so I don't have to open the same 5 sessions in every test case. One of the arguments to 'open_sessions' procedure is to provide a name for the session. The calling test case starts, properly calls 'open_sessions' and the sessions are opened. The next step in the calling test case is to execute a command using one of the opened sessions (ie. ssh) however the test fails with the error that "Session ssh-root is not open". It was opened but how can I properly pass the reference to the opened session back to the calling test case? Thanks, Ken
iTestsession
10 |950

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

kmd6076 avatar image
kmd6076 answered
I got this working. The argument values for the open_session procedure were different than what was specified in the calling test case.
10 |950

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

vijaykumar avatar image
vijaykumar answered
Please make sure to associate default session profile in the called testcase.
10 |950

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

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.