cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know SOAP UI pro executed on a specific environment?

SOLVED
New Contributor

How do I know SOAP UI pro executed on a specific environment?

Hi,

 

I have set up various test environments test1, test2, test3. However I am not able to find out whether its executed on a specific test environment test1, test2 or test3. I am executing using testrunner.bat via command prompt. I would like to see in logs or any report where it captures the environment it executed.

Command prompt:

testrunner.bat"  "-RJUnit-Style HTML Report" "-fC:\Users\ABCuser\Documents\SOAP-UI\Reports" "-Etest1"

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: How do I know SOAP UI pro executed on a specific environment?

Hi Kalyan2020,

 

Perhaps there are other ways, but you could put the below in your project setup/teardown script:

 

log.info "Project run executed on environment: " + project.activeEnvironment.name

That way, at the beginning/end of the run you can see your chosen environment name in the log. Should be equal to the one you selected with your -E parameter.

So --> "Project run executed on environment: test1"

 

You could write this name to a project property, some reports also log these by doing this:

def active_environment = project.activeEnvironment.name
project
.setPropertyValue("active_environment", active_environment)

 

5 REPLIES 5
Community Leader

Re: How do I know SOAP UI pro executed on a specific environment?

Hi @Kalyan2020 ,

 

Hope below link will help you, which gives list of configuration you can do via testrunner.bat

 

running from command line

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal
New Contributor

Re: How do I know SOAP UI pro executed on a specific environment?

@HimanshuTayal 

 

Thanks for the response. Yes- I am using the commands from the link you provided, I have mentioned the syntax for the command that used as well in my post.

We can give instruction on which environment to execute the test cases, however my question is how can we confirm that it executed in the specific environment? I would like to see in logs or in any reports? Please advise... 

Highlighted
Contributor

Re: How do I know SOAP UI pro executed on a specific environment?

Hi Kalyan2020,

 

Perhaps there are other ways, but you could put the below in your project setup/teardown script:

 

log.info "Project run executed on environment: " + project.activeEnvironment.name

That way, at the beginning/end of the run you can see your chosen environment name in the log. Should be equal to the one you selected with your -E parameter.

So --> "Project run executed on environment: test1"

 

You could write this name to a project property, some reports also log these by doing this:

def active_environment = project.activeEnvironment.name
project
.setPropertyValue("active_environment", active_environment)

 

Community Manager

Re: How do I know SOAP UI pro executed on a specific environment?

Thanks for your suggestions, JoostDG, HimanshuTayal.

 

@Kalyan2020, did they help you? If they did, accept the best answer as a solution.

---------
Tanya Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
New Contributor

Re: How do I know SOAP UI pro executed on a specific environment?

@JoostDG Tried your solution. I am able to see environment details on the logs. And also able to see the environment it executed on the PDF report.

@HimanshuTayal After trying JoostDG and little bit research on the test runner commands. We can actually get the environment details, end points it connected including JDBC connections can be viewed on the PDF report by using Testrunner commands.

 

 

New Here?
Join us and watch the welcome video:
Watch the New Interview
7Mistakes
Join the exciting event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win