iTest 4.1.0
If I do CallProcedure with [response .], noting is passed to the procedure. If I set var [response .] and then CallProcedure with $var, the response is passed.
main
Step Action Session Description 1
return_to_sender
Execution Issues
Answer by Eric Miller · Oct 17, 2011 at 07:44 PM
This looks like it's kind of the opposite of the problem discussed at Problems with lists and passing them to Procedures. It is my understanding that iTest doesn't provide command expansion in procedure calls.
If this is a problem for you, keep this thread going and I can investigate further.
The situation here is that the CallProcedure is a delayed action in the analysis rule. That means that the call is not executed until the step/analysis is finished. There are many reasons for this so I'll not expand on that at this time. Since the "callProcedure" is not executed until after the step is complete, the resolution of [response .] is null as there is no response to provide.
However, you can accomplish what you are seeking in a couple of ways.
First, use an "eval" action just before the "callProcedure" action to save the response in a variable. Then pass the variable to the "callProcedure" action.
The other method is to store the entire response in a variable via "Step Properties->Other Post-processing->Store Response", then use the [response <variablename>]" to send the response to the "callProcedure".
If you need help in setting this up, I can provide an example of either method.
Copyright 2008- Spirent Communications, all rights reserved. Terms and Conditions.