Forum Discussion

TommyTester's avatar
TommyTester
Occasional Contributor
8 years ago

Project Custom Properties and Environments Custom Properties

Hi,

 

I'm having a problem with Project Custom Properties and Environments Custom Properties.

 

I have a Project Custom Property set up ("Timestamp") and a Groovy Load Script that runs to set this.

 

This was working fine until I started adding Environments.

 

There is now a "Timestamp" Custom Property for each environment, which is blank and doesn't get set by the Groovy Load Script. (Update: Only the active environment's custom property is set by the Load Script when the project is loaded)

 

Is there a way arou nd this, or is this a bug?

 

Thanks

8 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Can you show the relevant script that you are talking about for review?
    • TommyTester's avatar
      TommyTester
      Occasional Contributor

      Sure, this is the Load Script:

       

      Date date = new Date()

      String newDateTime = date.format("yyyy-MM-dd'T'HH:mm:ss.SSS")

       

      project.setPropertyValue("Timestamp", newDateTime)

      • nmrao's avatar
        nmrao
        Champion Level 3
        This seems to be ok. Where do you experience the issue?