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

2 posts, 1 answers
  1. Kevin
    Kevin  avatar
    16 posts
    Member since:
    Jun 2012

    Posted 05 Dec 2016 Link to this post


    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.



  2. Answer
    Elena Tsvetkova
    Elena Tsvetkova avatar
    938 posts

    Posted 08 Dec 2016 Link to this post

    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. 

    Elena Tsvetkova
    Telerik by Progress
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top