Launching to site when playing back

4 posts, 0 answers
  1. john
    john avatar
    13 posts
    Member since:
    Aug 2011

    Posted 05 Aug 2011 Link to this post

    I notice if I view the source for the automated script that the script does not launch to the Navigated URL.  Is this a known issue?

    Thanks,

    John

  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 05 Aug 2011 Link to this post

    Hi John,

    I'm not sure I understand "view the source for the automated script" can you please clarify this? Do you mean you are opening up the .tstest file and looking at our xml for the test script? The format for .tstest files is proprietary and may change at any time as we add features.

    Or did you mean the "Preview Code" feature? The NavigateTo step is included there, for example:

    //
    public void AutoTrader()
    {
            // Launch an instance of the browser
            Manager.LaunchNewBrowser();
     
     
            // Navigate to : 'http://www.autotrader.com/'
            ActiveBrowser.NavigateTo("http://www.autotrader.com/");

    If you meant something else can you please elaborate on what/where this behavior exhibits itself?

    Best wishes,
    Cody
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. john
    john avatar
    13 posts
    Member since:
    Aug 2011

    Posted 05 Aug 2011 Link to this post

    no, it seems as if when I click customize code as a selection, the next time I run the automation the web browser comes up but is not directed to the testing web page.

    thanks,
    John
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 05 Aug 2011 Link to this post

    Hi John,

    You're saying you right click on the NavigateTo step, select "Customize Step in code" then execute the test and it no longer navigates to the first page? I am unable to reproduce this problem. Are you using the standalone version or the VS Plug-in version? If you're using the VS plug-in version, did you remember to rebuild the project before clicking Execute? If you forget to do this, the test will run with an old/left over copy of the test dll and it will be missing the coded NavigateTo step.

    If you have done all those steps, can you share your test project that reproduces this problem?

    Greetings,
    Cody
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top