MartinSpamer
7 years agoFrequent Contributor
Status: 
New Idea
[Defect] Project properties are not visible (or initialised) before project "Load script" is execute
Outline: The Project's properties are not visible (or initialised) before project "Load script" is executed.
Actual Behaviour
Given a new Project with a Name and Description.
When the following code in added to Project's 'Load Script'
// Sanity check that script is actually run
log.info Runtime.class.getPackage().getSpecificationVersion();
// ... and the the script is actually expected project.
log.info project.getClass().getName()
// These properties should be defined already.
log.info project.getProperties()
log.info project.getProperty("Name")
log.info project.getPropertyValue("Name")
log.info project.getPropertyValue("Description")
Then the script log shows the following
Tue Apr 02 09:51:29 BST 2019:INFO:1.8
Tue Apr 02 09:51:29 BST 2019:INFO:1.8.0_181
Tue Apr 02 09:51:29 BST 2019:INFO:com.eviware.soapui.impl.wsdl.WsdlProject
Tue Apr 02 09:51:29 BST 2019:INFO:{}
Tue Apr 02 09:51:29 BST 2019:INFO:null
Tue Apr 02 09:51:29 BST 2019:INFO:null
Tue Apr 02 09:51:29 BST 2019:INFO:null
Expected behaviour
The log should include the values shown to befined in screenshot.
Inference
The Project's 'Load Script' is being run before the project is fully loaded/initialised.