Ask a Question

[Defect] Project properties are not visible (or initialised) before project "Load script" is execute

0 Kudos

[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.image.png

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.

 

Announcements
Welcome to the SoapUI Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Welcome to the Community
Sign Up Here