Forum Discussion
Cizo89
12 years agoFrequent Contributor
Hi Michael,
thanks for the Groovy console tip, but having/not having the console isn't the problem - the Groovy TestStep is enough for me, but thanks anyway.
You referred me to a script for creating HTTP steps, but that's not the problem as well.
I'm struggling only with REST TestRequests, I don't need HTTP requests.
Also, I don't want just to invoke the window for creating TestRequests, I want to create the services without any manual interactions.
To be more specific, I'm having problems with the Config files, I'm not sure how to create them correctly - if I have an idea, it's not working correctly, as can you see from script above.
I don't know how to create something like this:
I have to pass this to the buildTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) method, but I don't know how to create it correctly.
Thanks for any advice
Regards,
Marek
thanks for the Groovy console tip, but having/not having the console isn't the problem - the Groovy TestStep is enough for me, but thanks anyway.
You referred me to a script for creating HTTP steps, but that's not the problem as well.
I'm struggling only with REST TestRequests, I don't need HTTP requests.
Also, I don't want just to invoke the window for creating TestRequests, I want to create the services without any manual interactions.
To be more specific, I'm having problems with the Config files, I'm not sure how to create them correctly - if I have an idea, it's not working correctly, as can you see from script above.
I don't know how to create something like this:
<xml-fragment type="restrequest" name="...something..." xmlns:con="http://eviware.com/soapui/config">
<con:settings/>
<con:config service="...something..." resourcePath="...something..." methodName="POST" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:restRequest name="...something..." mediaType="application/xml" postQueryString="false" accept="">
<con:settings>
<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting>
</con:settings>
<con:endpoint>${#Project#endpoint}</con:endpoint>
<con:request>...something...</con:request>
<con:assertion type="Valid HTTP Status Codes" name="Valid HTTP Status Codes">
<con:configuration>
<codes>200</codes>
</con:configuration>
</con:assertion>
<con:credentials>
<con:authType>Global HTTP Settings</con:authType>
</con:credentials>
<con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
<con:jmsPropertyConfig/>
<con:parameters>
<entry key="X-usercontext" value="${#TestCase#x-usercontext}" xmlns="http://eviware.com/soapui/config"/>
</con:parameters>
</con:restRequest>
</con:config>
</xml-fragment>
I have to pass this to the buildTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) method, but I don't know how to create it correctly.
Thanks for any advice
Regards,
Marek
Related Content
- 13 years ago
- 2 years ago
- 6 years ago
Recent Discussions
- 19 days ago