3. Run a Test and View Test Results

Applies to TestLeft 15.40, last modified on March 17, 2022

1. Run Your Test

  1. Build your test project.

  2. Open the Test Explorer panel and find the created test.

  3. Right-click the test and then click Run Selected Tests.

    Running TestLeft test from Test Explorer

    Click the image to enlarge it.

  4. Visual Studio will run the test.

    The test code will run the Notepad application, get the edit box, simulate the keyboard input and save the test results.

2. View the Test Log

  1. After the test run is over, Visual Studio will show the MSTest test result in the Test Explorer panel:

    Test Results in Test Explorer
  2. To view the TestLeft test log, navigate to the folder where the test log is stored (in our case, it is the My Documents folder of the current user). Open the resulting test log:

    TestLeft Test Results

    Click the image to enlarge it.

Note: Visual Studio does not track whether the TestLeft test log contains any errors or warnings. It reports that the test has passed if the test code was run successfully.

Prev     Next

See Also

Your First Test With TestLeft - .NET and .NET Core Tutorial

Highlight search results