Forum Discussion

Tindra's avatar
Tindra
Occasional Contributor
13 years ago

Groovy Script authentication - only need to run once

Hello, I have a test case in Soap UI that contains a groovy script for generating an authentication ticket followed by a number of actual service requests. The authentication ticket is valid for about 20 minutes. Will the ticket get re-generated each time I run the test case in LoadUI? If so, how can I make it so that it only runs once at the start of the run? (I think the groovy script has to be in the same test case as the requests since they are dependant on eachother.)

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    You need to separate them into different soapUI TestCases and transfer the ticket in between. Read how to transfer properties between soapUI Runners here.

    Regards

    Henrik
    SmartBear Software