Forum Discussion
radhika1
8 years agoContributor
Hi All,
There is no feature for the same in open source.I need to run my test cases in multiple QA environment say Q1,Q2,Q3 etc so If i can set it somewhere i can reuse it in all test cases.
i found one code as log.info(a.Env.setCurrent("q2").getDescription()) inside the groovy script.Not sure if they have used some java classes or something in Jar and use these variables in groovy.
There is a property file q2.properties which ha all details for the urls to be used.
I need to know how this code works
TanyaYatskovska
Alumni
8 years agoHi Radhika,
I believe that the following article should answer your question:
https://www.soapui.org/soapui-projects/environment-handling.html
Here is an example from the article:
testRunner.testCase.testSuite.project.setActiveEnvironment("<EnvironmentName>")
- radhika18 years agoContributorHi ,I am getting the below error