Check Out the Latest News About SmartBear Connect
JOIN OUR WEEKLY CHALLENGE
API_Bloom_banner

API Bloom is a weekly prize-winning challenge in the Ready! API Community. Each week, we assign a task that you need to accomplish to become a winner. See the rules here.

THIS WEEK TASK
Give the biggest number of Solutions on the Ready! API forums
Top 3 contributors will get $50, $35, and $15 gift cards!

WEEK 1-12 WINNERS
@nmrao, @msiadak, @Debz, @richie, @Emil91, @PramodYadav, @jkrier, @sanj, @mbheeke, @Radford, @kmaster, @kbw

Reply
Highlighted
Occasional Contributor
Posts: 9
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: 4,598
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...
Let's Meet in Boston
Join the user conference on Sep 12-13