Forum Discussion

garymags's avatar
garymags
Occasional Contributor
4 years ago
Solved

how to use a variable from a groovy script in the resource patch

Hi, I found a knowledgebase article that explained how I can use a groovy script step in a testcase to generate a random uuid:   // Generating a random variable value. def uuid = UUID.randomUUID(...
  • HimanshuTayal's avatar
    HimanshuTayal
    4 years ago

    garymags :

     

    Name in bold should be same as the name of your properties test step:

     

    testRunner.testCase.getTestStepByName("Propertes").setPropertyValue("uuid",uuid.toString())

     

    correct it and you are good to go 🙂