Forum Discussion

Soni's avatar
Soni
Occasional Contributor
10 years ago

using same test for different environments in web application testing

Hi,

 

I am new to automated testing. I have some tests recorded using TestComplete for our web application in the QA environment.

I tried to use the same tests to test the webapplication in the RC environment but non of the tests worked as it could not find the objects. Is there any solution to this, so that I can use the tests recorded in one environment, and play them to test the web app in other environment? 

2 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    You have asked a very very common question. The common answer is - Yes, you can do it. But your RC environment should have the same configuration as your QA one. That is, your application elements must have the same properties and its values in both environments.

    • cunderw's avatar
      cunderw
      Community Hero

      They don't have to be the same. You can use variables and wild cards for your identification properties.

       

      My guess is that the URL changed and there for all children can't be found.

       

      it's probably something like www-qa.app.com and www-rc.app.com

       

      The identification could be *.app.com if using namemapping.