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

How to Use Compare Mode

5 Answers 330 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kristine
Top achievements
Rank 2
Kristine asked on 28 Apr 2011, 10:36 AM
Hello,

What exactly is the purpose of the Compare Mode property of a Page? I saw that there are several options in the dropdown but I am not sure as to how to use each. Please help.

Best Regards,
Kristine

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 02 May 2011, 02:11 PM
Hi Kristine,
    the compare mode options tells Test Studio how to store elements in a Test Project. For instance:
 If you have it set to "FullPathAndQuery" the following two URLs:
http://www.google.bg/
http://www.google.bg/#sclient=psy&hl=en&source=hp&q=dasdas&aq=0&aqi=g5&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=b708052797d50095
will be considered separate pages. However, there are actually the same URL but the second one includes a Query. Since Test Studio considers the separate URLs the elements you use in them will be stored in different pages (screenshot 1). In some cases this will make your project needlessly complicated. To avoid that you can set Compare Mode to "BaseURL" so all elements recorded under http://www.google.bg/ will be stored under a single page no matter what Query is attached to it.

I hope this helps.

All the best,
Stoich
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Kristine
Top achievements
Rank 2
answered on 03 May 2011, 03:48 AM
If I'm testing a Silverlight application where all elements of the application are contained in the Silverlight container, this should not be a problem for me right?
0
Accepted
Stoich
Telerik team
answered on 06 May 2011, 09:18 AM
Hello Kristine,
    this feature is implemented only for the sake of convenience. You won't ever be explicitly required to use it - it's just a way to simply your test project and make it easier to use.

Let me know if you have any additional questions on this.

All the best,
Stoich
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Ruchir
Top achievements
Rank 1
answered on 01 Sep 2015, 08:50 AM

Hi Stoich,

 In my case My application URL changes as per the different releases (http://​abcd/​efg/main.aspx) next time it may be(http://​xxxx/​xxx/main.aspx) so will identifying logic can sort this out by just using relative path and query or identification logic is only to  "it's just a way to simply your test project and make it easier to use. " 
Note: For some pages title is also changing after releases.

 

I have already created few scripts on earlier version but now these scripts are failing because of unable to identify the frames.
so how the frames are affected by this parameters (Page URL, Title)

How page URL and Titles are used in finding element logic.

What should be my approach to take the maintenance to minimal  . 

Any guidelines on this will be highly apreciated

0
Ivaylo
Telerik team
answered on 03 Sep 2015, 01:52 PM
Hello KRistine,

Using a BaseURL when recording/creating your tests will be the best option. Please take a look at this article for more information. At the very bottom it is explained how to deal with frames as well.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Kristine
Top achievements
Rank 2
Answers by
Stoich
Telerik team
Kristine
Top achievements
Rank 2
Ruchir
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or