Forum Discussion

perakerberg's avatar
perakerberg
Occasional Contributor
14 years ago

Change environment not working fully?

Hi!

The new environment feature is an awesome idea, but I am having some problems with it.
My project consists of several test suites, all with a bunch of JDBC test steps within their test cases.
My project was created in pro version 4.1.
Now, I created two environments, one pointing to the same database as my existing project did and one pointing to a new one.
Using the old database performs well, but for the new database, the change of connection string doesn't seem to kick in
everywhere. Some queries work fine, some throw errors.

As an aside, I used to do this feature by hand using the event model before. I'd just manually hack the connection strings of all requests.
That way still works, but porting my solution to this new, elegant solution does not. At least not completely.

Am I supposed to be able to change the current environment from anywhere? Am I supposed to be able to port old projects?

If I can assist you in anyway to find this issue, please let me know. This is the one feature I have been waiting for, so lets get it working!!!

Regards
Per

2 Replies

  • Hi,

    Thanks for your feedback.
    Environment can be changed from TestSuite, TestCase or Project/TestSuites tab, but no matter where you changed it from it's always reflected on the project level, i.e. environment is selected for project.
    It is supposed to be enabled and usable for old project. Before you add any environments only "Default" option will be available and it reflects old settings.

    Is there anything specific about the JDBC TestSteps where you have trouble with using new database configuration from environment?
    By "new database" you do mean new configuration for the previously existing connection, right?
    Or is it about new connection added after you've created environments?

    Any input on how to reproduce will be most useful.

    Regards,
    Dragica
    /SmartBear Sweden
  • perakerberg's avatar
    perakerberg
    Occasional Contributor
    Hello again,

    I have now tested this in more detail and what seems to be the problem might not be related to the new beta at all.
    After fighting many weird problems for the last couple of hours it now seems to work just fine.
    If I am able to reproduce the errors I had I will send you more details along with my project.

    But for now, my problem again seemed to be no problem.

    Thanks for your time for now.

    Regards
    Per