Forum Discussion

Stevicus's avatar
Stevicus
New Contributor
8 years ago
Solved

I've changed the url port, now the rest of the test looks for the wrong objects

Hello, 

 

I'm pretty new to TestComplete but there's something I've been struggling with for a while now. 

 

There's a high chance that the tests will have to be ran on several ports of a machine, I know it's pretty easy to tweek the parameter in the test to point to the new location. However, after doing this, all navigation attempts fail because TestComplete looks for objects within the old browser object. I think the answer is to generalise the navigation somehow, but I'd have no idea how to do that. 

 

Any guidance would be greatly appreciated,

 

Stephen 

  • Hi,

     

    Lets say the main object (which means the Parent Object) having URL as "https://testenv.com:1947" and if you want to test the same application with different port as "https://testenv.com:443"

     

    If you are in this scenario then,

    1. Go to your parent object in NameMapping.

    2. Click Edit in the Parent object.

    3. And set your URL property to "https://testenv.com:*"

     

    Then you should be able to access all objects.

2 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    Lets say the main object (which means the Parent Object) having URL as "https://testenv.com:1947" and if you want to test the same application with different port as "https://testenv.com:443"

     

    If you are in this scenario then,

    1. Go to your parent object in NameMapping.

    2. Click Edit in the Parent object.

    3. And set your URL property to "https://testenv.com:*"

     

    Then you should be able to access all objects.

    • Stevicus's avatar
      Stevicus
      New Contributor

      Fantastic, that's work and given a route to a better understanding! 

       

      Thank you,


      Stephen