Forum Discussion
SmartBear_Suppo
SmartBear Alumni (Retired)
Hi,
1. I need to be able to run the SoapUI test runner with specific SoapUI settings - namely, preemptive authentication needs to be true.
>> For this one I would suggest write a groovy script to set the SoapUI settings and have it on your project load script. So, this script will be called every time your project is loaded. You can have a look at for more hint http://www.soapui.org/Working-with-Projects/working-with-soapui-projects.html#2-the-project-window-and-overview and http://www.soapui.org/Scripting-Properties/tips-a-tricks.html#1-2-get-and-set-settings
2. I need access to the run context of the test case after it has finished so I can fetch some properties that were set within the SoapUI test case and use them in my junit/testng integration test.
>> Can you use project level properties to store those values and later access them from the project itself? See http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/WsdlProject.html for example.
Regards,
Shadid
SmartBear Sweden.
1. I need to be able to run the SoapUI test runner with specific SoapUI settings - namely, preemptive authentication needs to be true.
>> For this one I would suggest write a groovy script to set the SoapUI settings and have it on your project load script. So, this script will be called every time your project is loaded. You can have a look at for more hint http://www.soapui.org/Working-with-Projects/working-with-soapui-projects.html#2-the-project-window-and-overview and http://www.soapui.org/Scripting-Properties/tips-a-tricks.html#1-2-get-and-set-settings
2. I need access to the run context of the test case after it has finished so I can fetch some properties that were set within the SoapUI test case and use them in my junit/testng integration test.
>> Can you use project level properties to store those values and later access them from the project itself? See http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/WsdlProject.html for example.
Regards,
Shadid
SmartBear Sweden.
tania29
8 years agoNew Member
Hi,
TestCaseRunner runner = (TestCaseRunner) test.run(null, false);
i am getting java.net.unknownhostexception after running the above code.
Can you please tell me the solution?