This post will describe how we set everything up for Test Impact Analysis (when used with Microsoft Test Manager) when testing a remote website.
Disclaimer: This is my understanding of how it works. Your mileage may vary.
My environment looks as follows:-
- TFS Server - Hopefully obvious.
- Test Machine - This is the workstation that the tester is using.
- Test Controller Server - This is the machine running the TFS Test Controller.
- Database Server - This is hosting the application under test's database.
- Web Server - This is hosting the application under test. The TFS Test Agent is also installed on this server.
Once we have our machines we need to create our application environment in MTM. To do this we open MTM and go to the Lab Center section. Under the LAB tab, you can create a new environment. Mine is a physical environment. After entering the name, controller machine name and physical machine name the environment is created as below. Note to keep things simple I have not included the database server for this environment. The created environment looks like this.
Now we can assign our environment to the test plan. Go to the Testing Center area in MTM an d choose your test plan. Select properties and set the Test Environment to be the one just created. Also create a new Test Setting for a Manual run.
Give the test setting a name, the roles will be automatically populated (NB - The Local role is the manual testers machine.)
Next comes the Data and Diagnostics. This causes a lot of confustion so listen carefully.
Here is a screenshot of my testsettings summary.
Ok, make sure that the Test setting that we just created is the one selected in the properties of our test plan and we are ready to test!! The test plan settings should look something like this
That leads us nicely into part 3 - How does the client work?