Add Headers to all SOAP Ui Test Steps using Script
import com.eviware.soapui.support.types.StringToStringMap def headers = new StringToStringMap() headers.put("name","value"); headers.put("name1","value1") headers.put("name2","value2") testRunner.testCase.testSteps.each { q-> if(q.getValue().config.type.equals("restrequest") || q.getValue().config.type.equals("request")) { q.getValue().getHttpRequest().setRequestHeaders(headers) } }
No comments:
Post a Comment