This is a migrated thread and some comments may be shown as answers.

[Solved] Recording on one server offer won't run on another server.

1 Answer 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark
Top achievements
Rank 1
Mark asked on 18 May 2009, 12:08 PM
We have several QA environments (one for each Customer environment), if we record a page on QA Environment 1 it will execute play back fine; however when we then try and play back the page on QA Environment 2 it often cannot find the Button or Menu Item, it seems to call them different things in the "Project Elements Selector" via the Properties > Set Text Element, e.g. Recording on QA Environment 1 maybe "/Software Name/Frame/Input_Text_txtCity", but when you then record a different page on QA Environment 2 it records it as "/Software Name_0/Frame_0/Input_Text_txtCity", so the Project Elements Selector is showing two Trees one for each QA Environment although they are the same Tree.

Thank you for your help.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 19 May 2009, 01:32 PM
Hi Mark,

First I'd like to understand how you are getting the test to run after taking it from QA 1 to QA 2. Does the URL of the server change? If so how are you handling the difference of the URL once you move to QA 2?

Beyond that we need to take a close look at and understand how how elements are found on the page. Please refer to the attached diagram. The names you mention in your message are only easy to use "friendly names" displayed for the user of the test. Behind each name is a set of FindParam's that is used to drive the logic for actually finding the element on the page. I highlighted that in the picture so you can see what I'm referring to. In the example picture the FindParam properties are setup such that our find logic will search for an element that has the name= attribute set to 'btnG'.

I encourage you to experiment and study the FindParam properties and compare the values between your various QA environments. You may find the values are different. Once we can see what's different we need to understand why the difference and take that into consideration in fine tuning your tests so they can run as expected no matter which QA environment you want to run it in.

Hope that helps,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or