Reply
Highlighted
Occasional Contributor
Posts: 7
Registered: ‎02-27-2017

how to override endpoints and database names from external shell script in SOAPUI NG?

we have defined Database connection strings and endpoints for multiple environments. When I pass the Environment names, it picks up the right database connection and endpoints and executes test correctly. When we run our script from Jenkins, we want to run on the new deployed instances, so we need to capture the endpoint from the CD job in jenkins and pass it to script. When we do this it takes the end point correctly, but it is not able to change the database connections. So, how do we override endpoints and database names from external shell script?

 

I tried the below, it didn't work

 

/var/lib/jenkins-wrk/SmartBear/ReadyAPI-1.9.0/bin/testrunner.sh -sdeployment "-RProject Report"  -ehttp://xyz_test_1.10" ${WORKSPACE}

Community Hero
Posts: 3,958
Registered: ‎05-17-2013

Re: how to override endpoints and database names from external shell script in SOAPUI NG?

You can check the below solution which is added something ago and see if that approach is helpful in your case:

http://stackoverflow.com/questions/37655778/soapui-ability-to-switch-between-database-connections-fo...
Regards,
Rao.
Register Now