Forum Discussion

smadji's avatar
smadji
Contributor
11 years ago

How to set up environment's DB from the JDBC request

I am new to using environments, I set up 2 environments and each one has its own DB connection and 2 endpoints (for rest and soap)
What do I need to do in my steps in order to use the environment that I want.
When looking at the JDBC - I see a drop down with my environment. Will I have to go through all of my requests and change it to a different environment when its time to switch?
The documentations about environments are not clear about what to do with the global variable created. and what to set in the test steps to use the environments correctly (please fix documentation)

In the past I set up a global property that held endpoints and by updating the endpoints I was able to run my test on different environments. Is it possible to set such a global variable for the JDBC request?

Thanks
Smadar
  • Hi,

    To use the environment(s) you have created you can simply change this in the testsuite or test case level by selecting it from the drop down. There should be a drop down in the toolbar at the testsuite and testcase level that shows "Default". Change that from default to the environment you would like to use.



    Regards,
    Marcus
    SmartBear Support