DataBase inserts while overriding region with -e commandline argument
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DataBase inserts while overriding region with -e commandline argument
Hi,
We have full fledge ready api tests in our projects where in we have regions defined(Dev1, Dev2..) and for every step we inserts data using jdbc insert /update steps , run api and delete data .
So my question is when we run scripts from command line using -e statement where in it will override endpoints to be called , how will ready api determine region of data to be inserted .
example below
C:\SmartBear\ReadyAPI-3.3.2\bin\testrunner.bat -sService -r -a -j -fC:\Path\MyService "-RTestSuite Report" -ehttp://region-dev0-blah.net/demf-my-test <path>
In above example api calls are working fine as its going to region http://region-dev0-blah.net/demf-my-test but my database inserts are failing as region is not specified . In this example how can i say that use url as "-ehttp://region-dev0-blah.net/demf-my-test" but do inserts in "Dev" environment
please help i am completely stuck here
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A screen shot would help.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes using environmnents
Different environments Dev1 , Dev2 etc has different connection configs for DB2 and SQL
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is the documentation how you can pass the commandline option for the same
https://support.smartbear.com/readyapi/docs/testing/environments/index.html
Please try as per documentation and revert back.
Regards,
Rao.
