Running test in lab management 'Error adding test case there is no test with specified id
One of the most exiting capability of Lab Environment is the ability to
- Record a Coded Ui Test
- Assign it to a test
- Run the test in an lab management virtual environment.
It is possible that running the test will return an error, and in the log you find an error like
Error adding test case [xx] to test run: There is no test with specified Id {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.
The error is due to the fact that you are running your test against a build that does not contain the coded UI Test associated with the Test case. This is a common error if you:
- register the coded UI Test
- assign to a Test Case
- go to MTM and run the test, without changing the build.
To solve this error: queue a build, verify that the build succeeded, then change the build associated with the test plan.
Be sure that the build in use is one that contains the test associated with automation, then run the test again and everything should succeed.
Alk.