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

test is not run via Quick Execute button

7 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Peter Tierney
Top achievements
Rank 1
Peter Tierney asked on 23 Aug 2010, 07:57 PM

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

7 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 24 Aug 2010, 09:58 AM
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
0
Peter Tierney
Top achievements
Rank 1
answered on 24 Aug 2010, 03:28 PM
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.
0
Konstantin Petkov
Telerik team
answered on 24 Aug 2010, 05:18 PM
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
0
Peter Tierney
Top achievements
Rank 1
answered on 24 Aug 2010, 08:57 PM
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.
0
Konstantin Petkov
Telerik team
answered on 25 Aug 2010, 08:39 AM
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
0
Marcelo
Top achievements
Rank 1
answered on 13 Oct 2011, 04:06 AM
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?
0
Plamen
Telerik team
answered on 17 Oct 2011, 08:35 AM
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.
Tags
General Discussions
Asked by
Peter Tierney
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Peter Tierney
Top achievements
Rank 1
Marcelo
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or