How to Use Compare Mode

6 posts, 1 answers
  1. Kristine
    Kristine avatar
    33 posts
    Member since:
    Jun 2010

    Posted 28 Apr 2011 Link to this post

    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
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 02 May 2011 Link to this post

    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!
  3. Kristine
    Kristine avatar
    33 posts
    Member since:
    Jun 2010

    Posted 02 May 2011 Link to this post

    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?
  4. Answer
    Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 May 2011 Link to this post

    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!
  5. Ruchir
    Ruchir avatar
    3 posts
    Member since:
    Aug 2015

    Posted 01 Sep 2015 in reply to Stoich Link to this post

    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

  6. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 03 Sep 2015 Link to this post

    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
     
Back to Top