sadika
14 years agoContributor
How To parametrized End point in every AMF request
Hi All,
I am working in SOAP UI, handling AMF request can any one please elaborate how could I parametrized the AMF Endpoints from an external file or any other way.
I set the property value(endpoint URL, AMF domain) at the Project level and pass the Endpoint url in AMF request like (${#Project#URL#AMF}) sometime it RUNs successfully but sometime it throws errors.
For the Login method I am getting positive response but for second request I throws "Decoding failed: Syntax error" message, even through I pass the cookie value as the parameter for second Method.
Below is the Groovy Method which I am using to get the Cookie value from first method response header and passing it into second method 's parameter:
def cookie_vals = testRunner.testCase.getTestStepByName("LoginRequest").testRequest.response.responseHeaders["Set-Cookie"]
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
groovyUtils.setPropertyValue("UserService", "PHPSESSID", cookie_vals.toString())
Please respond me ASAP.
Thanks,
Sadik Ali.
I am working in SOAP UI, handling AMF request can any one please elaborate how could I parametrized the AMF Endpoints from an external file or any other way.
I set the property value(endpoint URL, AMF domain) at the Project level and pass the Endpoint url in AMF request like (${#Project#URL#AMF}) sometime it RUNs successfully but sometime it throws errors.
For the Login method I am getting positive response but for second request I throws "Decoding failed: Syntax error" message, even through I pass the cookie value as the parameter for second Method.
Below is the Groovy Method which I am using to get the Cookie value from first method response header and passing it into second method 's parameter:
def cookie_vals = testRunner.testCase.getTestStepByName("LoginRequest").testRequest.response.responseHeaders["Set-Cookie"]
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
groovyUtils.setPropertyValue("UserService", "PHPSESSID", cookie_vals.toString())
Please respond me ASAP.
Thanks,
Sadik Ali.