To access the headers passed in on a Test Case call, you will need to code a small amount of script. Here is a picture of the flow so you can see what is happening.
The Rest Call will set up two headers in this example.
The Retrieve and Print Request Headers script (JSR-223) step will print the ParameterList containing these headers.
The key to accessing the request headers is to access the headers using the Step Name.
import com.itko.util.ParameterList;
// RESTNodeName is the name of the REST Step having the request headers
String RESTNodeName = "RESTGET";
ParameterList pl = testExec.TestCase.getNode( RESTNodeName ).getHeaderFields();
// return the ParameterList as a string
// add more code to iterate over the list if necessary
return pl.toString();
The output of the last two steps, when executed, looks like this:
The Output Log Message is set up with the following code
Header Details:
***********************
{{lisa.RESTGET.http.headers}}
And, it returns: