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

When I add a element from a recorder it adds it under a new page even though that page exists in the element finder

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 21 Aug 2012, 07:16 PM
I'm having a problem that when I add an element it will create a new page.

My recording options are configured like so:
Example page: http://localhost/MyApp/somePage.aspx

base url: http://localhost/MyApp/
element page comapare mode: relative path only

The element will show as:
base url: http://localhost/MyApp 
path: /somePage.aspx
and the  ComapreMode varies between relativePathOnly, FullPath, and FullPathAndQuery

This is rather frustrating and difficult to manage, how is element management suppose to be done?

Thanks
Jon

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 24 Aug 2012, 04:45 PM
Hello Jon,

I'm sorry for the frustration. Generally, Test Studio will not alter the CompareMode automatically; this mode is based on the recording mode selected in the test project settings. When Test Studio is using 'FullPathAndQuery' recording mode, it will create separate pages for the target elements when the queries in the URL differ. In many cases, these separate queries do not reflect different sets of elements; in this case, you should merge your page nodes to streamline test maintenance. If none of your target pages differ meaningfully based on query string, you can update the test project settings to use 'FullPath' recording mode.

If your test is not recording in a consistent recording mode, we will need more information about your test scenario. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here. A Jing video demonstrating the issue may also help us to better understand what is happening. Thanks for providing the information we need to best advise you.

All the best,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or