saurabhsharma09
12 years agoContributor
Change soap UI Environment value through Groovy
Hello,
I came to know about soap ui Environments feature and It's easy to change environments from SOAP UI Interface and run test suites.
I have Soap UI tests running successfully in Jenkins for a specific environment and I am passing Service Endpoint through String parameter present in Jenkins Job.
Now I don't want to have multiple Jenkins jobs for soap ui tests to run on different environments(QA,Staging,Production..) and want to pass this
environment value also from Jenkins.
Is there any way to programmatically set that environment value before running any tests so that the same Jenkins job can be reused for different environments?
I am new to groovy so any help in this regard is appreciated.
Thanks,
Saurabh
I came to know about soap ui Environments feature and It's easy to change environments from SOAP UI Interface and run test suites.
I have Soap UI tests running successfully in Jenkins for a specific environment and I am passing Service Endpoint through String parameter present in Jenkins Job.
Now I don't want to have multiple Jenkins jobs for soap ui tests to run on different environments(QA,Staging,Production..) and want to pass this
environment value also from Jenkins.
Is there any way to programmatically set that environment value before running any tests so that the same Jenkins job can be reused for different environments?
I am new to groovy so any help in this regard is appreciated.
Thanks,
Saurabh