Forum Discussion

MarkV's avatar
MarkV
New Contributor
11 years ago

Groovy script to auto generate an authorization token

Does any one have a groovy script that could do the following automatically?

1. Run a utility that generates an authorization token.
2. Copy and paste the token in a field in SoapUI.
3. Run the above two steps every 3 hours as the token is valid only for 3 hours.

Step 3 is not that important. I could do this every three hours manually or when needed.

Any help or pointers would be appreciated. Thanks.