Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHello,
In SoapUI global settings , under soapUI Pro tab there is field Script Library set it to ${#System#script.library}. That will be rembered in soapui-settings.xml.
Before you run test case runner you could set soapui-settings.xml and add system property
that will set script.library value, from junit:
Check examples : http://www.soapui.org/userguide/command ... ional.html
You can get testcase by its name, and its properties to set values to them before you start tescase.
robert
In SoapUI global settings , under soapUI Pro tab there is field Script Library set it to ${#System#script.library}. That will be rembered in soapui-settings.xml.
Before you run test case runner you could set soapui-settings.xml and add system property
that will set script.library value, from junit:
public void testRunner() throws Exception
{
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
runner.setProjectFile( "src/dist/sample-soapui-project.xml" );
runner.setSettingsFile("/home/user/soapui/soapui-settings.xml");
System.setProperty("script.library", "/home/user/soapui/myscripts");
runner.run();
}
Check examples : http://www.soapui.org/userguide/command ... ional.html
You can get testcase by its name, and its properties to set values to them before you start tescase.
robert