Will BaseURL help?

2 posts, 0 answers
  1. Dan
    Dan avatar
    10 posts
    Member since:
    Aug 2012

    Posted 12 Sep 2011 Link to this post

    Hi All,

    Will BaseURL help me to differentiate and access URLs as distinct as these three?

    Here are 3 URLs when I logged into my basic system screen, with the parts I understand in color (key below) and a few questions afterwards:

    https://gisqual.grinnellmutual.com/DRC01100/Policy/blank.aspx?Status_Activity=Policy&Status_IDMasterGuid=fad720bc-344b-4031-8c96-d33e5c9026c0&Status_CallingLOBPAS=0201&SysRec_User=8139&SysRec_Location=1111&SysRec_Department=1111&SysRec_SystemDate=9/12/2011

     

    https://gisqual.grinnellmutual.com/DRC08010/Policy/blank.aspx?Status_Activity=Policy&Status_IDMasterGuid=7a9483d1-8fed-47df-8e46-94b66092efc6&Status_CallingLOBPAS=0201&SysRec_User=8139&SysRec_Location=1111&SysRec_Department=1111&SysRec_SystemDate=9/12/2011

     

    https://gisqual.grinnellmutual.com/DRC10029/Policy/blank.aspx?Status_Activity=Policy&Status_IDMasterGuid=1a0efd70-f852-46d4-92ed-6b4c1b7265c5&Status_CallingLOBPAS=0201&SysRec_User=8139&SysRec_Location=1111&SysRec_Department=1111&SysRec_SystemDate=9/12/2011

     

    BaseURL

    Specific server/company I’m testing

    Remainder of URL (I was on same page for all three when I copied URL.)

    User ID (my logged user ID (system assigned))


    My questions are:

    Will the "MasterGuid" cause me any difficulty in record/playback?

    What if I want to change up users I'm logged in as?

    Any advice on things to watch out for? (Links to articles/posts are fine...I'm pretty new to this.)

    Thanks for your time!
    Dan
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 12 Sep 2011 Link to this post

    Hello Dan,

    Does the portion in green represent a different physical server, or different directories on the same server corresponding to the company chosen? If your goal is to record one script and execute it across three environments, that can easily be accomplished. Although elements are visually organized under their respective page nodes in the Elements Explorer, Test Studio disregards this hierarchy during execution and simply locates the element based on its Find Settings. As long as the element can be found the same way across each environment, and you use the FullPath Compare Mode as explained below, your test will be reusable.

    Yes, our BaseURL feature is applicable for your environment. You will enter "https://gisqual.grinnellmutual.com/DRC01100/" into the BaseURL setting in Project Settings > Recording Options. Change it when you're ready to test in the next environment. Also, before recording, set the Elements Page Compare Mode the FullPath. This omits the query, which is dynamic in your case.

    1 & 2. The MasterGuid and User ID are part of the query (the ? mark and everything that follows) and will be ignored to locate elements if the Compare Mode setting, mentioned above, is set appropriately.

    3. Please see our KB article on Using BaseURL.

    Kind regards,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top