Chronospear
Chronospear

Reputation: 53

Is it possible to Run automated tests from test plans in Visual Studio 2019?

By looking at the documentation for running automated tests from test plans it states:

A test plan containing your automated tests, which you have associated with automated test methods using Visual Studio 2017, or Visual Studio 2015 or earlier.

Has anyone had success running it in VS2019 or do I have to downgrade my VS2019 to VS2017 in order to make it work?

Upvotes: 0

Views: 1031

Answers (1)

Kevin Lu-MSFT
Kevin Lu-MSFT

Reputation: 35099

Has anyone had success running it in VS2019 or do I have to downgrade my VS2019 to VS2017 in order to make it work?

No, you don't need to downgrade the Visual Studio. I have been creating and running automated tests in Visual Studio 2019 before. And it could work as expected.

Here are the steps:

1.In Visual Studi0 2019 , you need to associate automated tests with test cases in Test Explore.

2.In Azure Devops, you can follow the steps in this document to create the same build and release. It also applies in Visual Studio 2019.

Result:

enter image description here

Update:

I could reproduce this error:

enter image description here

To solve this issue, you need to select the Test Run in Release Pipeline -> VSTest task.

enter image description here

Update2:

You need to set up test assemblies in the build pipeline.

enter image description here

Upvotes: 2

Related Questions