Forum Discussion

Rakeshyadav09's avatar
Rakeshyadav09
Occasional Contributor
2 years ago

Azure DevOps VSTest Step - Test Case Filter Criteria

I am running automation tests by creating a pipeline in Azure DevOps,
I have a testsuite in which I have multiple projects. Ex. GeoHECRAS, GeoHECHMS etc.

The GeoHECHMS project's MDS file structure is like this:

Sanity
--SanityTest

DatabaseManager
--DatabaseMigration

I also attached the screen capture for reference.

I created two separate VsTest steps to run automation.
In one job I defined Test filter criteria as "GeoHECHMS\\Sanity"
In another job Test filter criteria as "GeoHECHMS\\DatabaseManager"

As you can see the node structure is the same for both of these tests in the GeoHECHMS MDS file but the test is running successfully for the first job (Sanity) and it is failing for the second job (DatabaseManager).

I compared all the details in both the jobs, everything is the same, I am not able to figure out the problem, why the jobs are failing.