Forum Discussion

radhika1's avatar
radhika1
Contributor
7 years ago

How to set environment in soap ui non pro version

I found a syntax a.env.setCurrent("d1").getDescription() could you please assist.

 
 

6 Replies

  • hI,

     

    I found a syntax a.env.setCurrent("d1").getDescription() could you please assist.

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Could we have a screenshot of the actual error and where it occurred?  Thanks.

  • nmrao's avatar
    nmrao
    Champion Level 3
    Do you see any such feature in open source?
    • radhika1's avatar
      radhika1
      Contributor

      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