In Visual Studio 2010, if you are executing manual tests on a virtual lab environment, then you are provided an option to take snapshot of the environment as mentioned here. These snapshots (or the link to snapshot) gets attached to the manual test case result and/or the bugs (work item) automatically and no explicit gesture is required from you to add the snapshot links to the bug/test case result. However for automated tests you are expected to attach the snapshot link(s) to the result/bug yourself.
In this post, I will share what steps I follow typically to add the snapshot link to the automated test case failure result/bug.
- Identify the test case results for which snapshot need to be linked. So typically I analyze a test run logs, see which test cases passed, which ones failed and which of the failed test cases deserves a bug. For example: – In the following test run, I have identified that test case CodedUITestMethod1 (purple color box) deserves a bug and the environment snapshot needs to be attached to the bug.
- Find the snapshot link which should be attached to the bug.
- Attach the snapshot link to the test case result.
- Now I log a bug for the specified test case (green box in the first picture above) and the snapshot link gets linked to the bug.
Enjoy !!