kamahade
15 years agoRegular Contributor
BUG: groovy.lang.MissingMethodException
Version : soapUI Pro 3.6.2-SNAPSHOT
OS : Windows XP
Error message : groovy.lang.MissingMethodException error.
Reproduce steps:
1) Run this code sample :
Other information : same code running fine in 3.5.1 Version.
I found that it is implemented in HttpTestRequestStep class but NOT in REST and WSDL testrequeststep classes.
OS : Windows XP
Error message : groovy.lang.MissingMethodException error.
Reproduce steps:
1) Run this code sample :
import com.eviware.soapui.impl.wsdl.teststeps.*
import com.eviware.soapui.support.types.StringToStringMap ;
def tc = testRunner.testCase.testSuite.getTestCaseByName("ReAEn_TC.042 MediaAssetService createMediaAsset TestCase")
def ts = tc.getTestStepByName("ReAEn_TC.042 MediaAssetService createMediaAsset TestStep1")
def ts2 =tc.getTestStepByName("r1")
def headers = new StringToStringMap()
headers.putIfMissing("Authorization","Basic VEVTVF9JJkFfU3VwZXJVc2VyOmZhYnJpYzEwMQ==")
log.info ts2.getHttpRequest().getRequestHeaders()
ts2.getHttpRequest().setRequestHeaders(headers)
log.info ts2.getHttpRequest().getRequestHeaders()
Other information : same code running fine in 3.5.1 Version.
I found that it is implemented in HttpTestRequestStep class but NOT in REST and WSDL testrequeststep classes.