AnsweredAssumed Answered

Add Authorization Header to Live Invocation

Question asked by BrianNivens4455398 on Jul 27, 2017
Latest reply on Aug 2, 2017 by gadpr08

DevTest Version - 10.1

 

I need to add an authorization header to a live invocation. So far, I've tried adding it to lisa.vse.request with a scriptable data protocol and added it to lisa.vse.http.current.transaction using a groovy script. In both cases, you can see that the header is added, but the live invocation step fails to pick up the authorization header. Is there another way to add in a header?

 

For reference, the scriptable data protocol is:

%groovy%

import com.itko.util.ParameterList;
import com.itko.util.Parameter;

ParameterList metadata = lisa_vse_request.getMetaData();
metadata.addParameter(new Parameter("Authorization", "Basic Password="));

lisa_vse_request.setMetaData(metadata);

 

 

The groovy script to set lisa.vse.http.current.transaction is:

import com.itko.util.ParameterList;

ParameterList metadata = testExec.getStateValue("lisa.vse.http.current.transaction").getRequestHeaders();
metadata.put("Authorization", "Basic Password=");

Outcomes