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

Test succeeds when run from Solution Explorer but fails when run from Test Explorer

1 Answer 119 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.
Kevin
Top achievements
Rank 1
Kevin asked on 05 Dec 2016, 11:46 PM

Hello,

I am evaluating Telerik Test Studio to determine whether we should use it for automated testing. I downloaded the trial version, and installed it Nov. 28. The Telerik Test Studio version is 2016.3.928.0.

I have created a Telerik Test Studio Web test in Visual Studio Ultimate 2013, which I can successfully run by opening the .tstest file in the Solution Explorer, right-clicking the last step in the test, and selecting 'Run to here'.

However, when I try to run the test from the Test Explorer by right-clicking the test and selecting 'Run Selected Tests', it fails on the first step, which is:

Navigate to: '/'

I have attached a screenshot of the error messages. It seems strange that the test fails on navigating to '/', since it succeeds in this navigation when it is run via 'Run to here'. I need to be able to run/debug tests from the Test Explorer so that I can debug coded steps.

Thanks,

Kevin

1 Answer, 1 is accepted

Sort by
0
Accepted
Elena
Telerik team
answered on 08 Dec 2016, 02:16 PM
Hi Kevin,

Thank you for your interest in Telerik Test Studio. 

It is important to know that the runner used in Solution explorer and Test explorer are different and rely on different settings. Solution explorer uses the ArtOfTest.Runner.exe to run the tests and Test explorer uses the MSTest runner. 

As of the error you have I assume there is a base URL set to your project. To apply these settings to be used from MSTest runner as well an additional settings will be required. Here you could read how to create one in Visual Studio. Once the base URL is set there and the new settings file is selected in Visual Studio (please refer to the screenshot) the test should be executed successfully from Test Explorer as well. 

Please let me know if you would need any further assistance. 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or