test is not run via Quick Execute button

8 posts, 0 answers
  1. Peter Tierney
    Peter Tierney avatar
    3 posts
    Member since:
    Dec 2009

    Posted 23 Aug 2010 Link to this post

    I need some help with running WebUi tests with pressing the Quick Execute Test Against selected Browser button.

    When I try to run any of the tests that has embed test inside another test (Test as step)as a first step - IE/FF opens to about:blank and that is it.

    the .aii test is shown in the Test View and the test runs fine when pressing the Run selection from Test View.

    I am running the tests against a non local site and using VS2008.
     
    is there any additional configuration needed to get the tests to run via Quick Execute button?

     

    P.S the test that is used as a step runs perfectly along with Quick Execute button

    Thank you in advance

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Aug 2010 Link to this post

    Hello Peter,

    Do these tests need BaseUrl by any chance? Can you please post the test log from the failed run to see if there is useful pointer to the actual problem there? Thank you!

    Greetings,
    Konstantin Petkov
    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
  3. Peter Tierney
    Peter Tierney avatar
    3 posts
    Member since:
    Dec 2009

    Posted 24 Aug 2010 Link to this post

    Hi Konstantin, Thank you for looking into the issue. I can’t attach the log for the attempt to run the test from Quick Execute button, as no test is run. Browser opens to about:blank and then page closed right away. No log is generated. I attached a log that was done after running the same test via Test View>run selection option.
  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Aug 2010 Link to this post

    Hello Peter,

    The run from QuickExe looks in the UserSettings whereas the run from TestView gets the WebAii settings from the .testrunconfig file. That's why I suspect a BaseUrl setting missing in the UserSettings, can you check that please? This is the WebAii toolbar with two buttons in Visual Studio, the first button showing the Element Explorer and the second -- the UserSettings. Make sure you have equal settings in the .testrunconfig along with the UserSettings we read on Quick Execution.

    You probably get exception after a while although the test does not navigate. The test log should get that exception and it can help identify the root of the problem.

    Best wishes,
    Konstantin Petkov
    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
  5. Peter Tierney
    Peter Tierney avatar
    3 posts
    Member since:
    Dec 2009

    Posted 24 Aug 2010 Link to this post

    Hi Konstantin, Thank you for detailed reply, I added BaseUrl setting – this specific test still could not be run from QuickExe, However the rest of the test that were created with the same scheme ( first step – embedded test) work fine.
  6. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 25 Aug 2010 Link to this post

    Hello Peter,

    I'm glad to hear that made some progress. As to the only failing test please make sure it doesn't have BaseUrl set locally. Open the test then select the NavigateTo step and check its properties. I've seen issues caused by both the BaseUrl and NavigateUrl properties set and conflicting.

    Greetings,
    Konstantin Petkov
    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
  7. Marcelo
    Marcelo avatar
    1 posts
    Member since:
    Oct 2011

    Posted 12 Oct 2011 Link to this post

    Hi, I have a problem, I think when I'm recording, because I see the first step in the StoryBoard for e.g. google page, but in the Steps, I don't see a step that open www.google.com, so when I execute a test, this try to make a search in google, but it's get an error (obviously) because in a blank page doesn't exist a textbox to input the search parameter... so why the execution does't open the google page? or wherever site I try to test?
  8. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 17 Oct 2011 Link to this post

    Hello Marcelo,

    You need to have a navigation step at the beginning of the test in order to open the page and execute the rest of the recorded steps (see screenshots).

    Please check out this video to see how it works http://screencast.com/t/cehZM7r4d . As you can see, first time I've run the test without the Navigate Step, and the test failed with a blank page. Then I've added a Navigate Step as first step in the test and the Google page is displayed as expected.

    Please try it and let me know if you still have problems running your tests!  

    Regards,
    Plamen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!