Forum Discussion
kamahade
16 years agoRegular Contributor
I dont know via Testrunner.sh.. I can give you a hint at teststep level.
You can as well check this blog : http://thewonggei.wordpress.com/2010/08 ... st-suties/
NOTE: will work only in 3.5.1 version
import com.eviware.soapui.impl.wsdl.teststeps.*
import com.eviware.soapui.support.types.StringToStringMap ;
def tc = testRunner.testCase.testSuite.getTestCaseByName("TestCase")
def ts2 =tc.getTestStepByName("r1")
def headers = new StringToStringMap()
headers.putIfMissing("Authorization","Basic VEVTVF9JJkFfU3VwZXJVc2VyOmZhYnJpYzEwMQ==")
ts2.getHttpRequest().setRequestHeaders(headers)
log.info ts2.getHttpRequest().getRequestHeaders()
You can as well check this blog : http://thewonggei.wordpress.com/2010/08 ... st-suties/