Forum Discussion
- radhika1Contributor
hI,
I found a syntax a.env.setCurrent("d1").getDescription() could you please assist.
- Marsha_RModerator
Could we have a screenshot of the actual error and where it occurred? Thanks.
- nmraoChampion Level 2Do you see any such feature in open source?
- radhika1Contributor
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
- TanyaYatskovskaSmartBear Alumni (Retired)
Hi 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>")
Related Content
- 9 years ago
Recent Discussions
- 24 hours ago
- 3 days ago