Forum Discussion

travis_gustafso's avatar
travis_gustafso
New Contributor
15 years ago

Problem with properties and test case scope

Basically what i'm looking for is a way to transfer a "session" variable(java class) from a groovy script in one test case to a groovy script in another test case. An alternative to transferring a class could be to pass a username/password via properties. I would not mind passing them if there was a way to hide the value(s) of the username and password. I could not find any way to hide or disguise the values in soapui so i started looking into encryption/decryption algorithms.

Any thoughts either route would be much appreciated.

1 Reply

  • Just thought i would post to say that i found the solution to my issue. It was a rather easy fix.

    All i had to do was instantiate the class in the setup script section of the test suite, and then reference it from the groovy script from within the test case. I had to add a little logic to decide whether to use the context or not based on if you run it at the suite level or not, but it was not that big of a deal.