Forum Discussion
Liberty_Informa
11 years agoRegular Contributor
Now my next experiment is in the project load script to clear out global script library path before setting it up again fresh. This is done because in each run the folder structure will be dynamic. I read on one of the other threads that it has helped few folks.
Now the code in the load script is like this:
The log statement that I see is as below:
Again same behavior. The script path is correctly set by the statements in load script however soapUI picks up old path entry from the soapui-settings.xml file before statements in load script which sets up the library path are executed. As I can see soapUIProGroovyScriptEngine class picks up the old path. Can you explain us how can we solve so that soapUI will always pick up latest path?
Again to reiterate I am running automated tests headless and not in the GUI client.
Now the code in the load script is like this:
//Make sure global setting is cleared
log.info "${text*10} Clearing global script library..."
com.eviware.soapui.SoapUI.settings.setString( "Script Library", "");
log.info "${text*10} Global script Library : '"+com.eviware.soapui.SoapUI.settings.getString( "Script Library","default")+"'"
// Setting Script Library
SoapUI.settings.setString( SoapUIProSettings.SCRIPT_LIBRARY, projectPath + "/../../Setup/Scripts" )
log.info "${text*10} Script Library: " + SoapUI.settings.getString( SoapUIProSettings.SCRIPT_LIBRARY, "Script Library")
The log statement that I see is as below:
Again same behavior. The script path is correctly set by the statements in load script however soapUI picks up old path entry from the soapui-settings.xml file before statements in load script which sets up the library path are executed. As I can see soapUIProGroovyScriptEngine class picks up the old path. Can you explain us how can we solve so that soapUI will always pick up latest path?
Again to reiterate I am running automated tests headless and not in the GUI client.
Related Content
- 4 years ago
Recent Discussions
- 18 days ago