Add Coded UI test to Source Control
Add Coded UI test to Source Control
1. In the Solution Explorer window, select Solution ‘CodedUITestProject2’. 2. Right click and choose Add Solution to Source Control. 3. Choose Team Foundation Version Control. 4. From Team Foundation Server choose where to store Coded UI test project.
5. In the Solution Explorer of the project right click and click Check In. 6. Write comment and click Check In. Coded UI test and Test-Case
1. Open the Team Explorer, go to Home window and click Work Items. 2. Double click My Test Cases.
3. From Query Results select Test-Case. 4. Below Query Results on Test-Case form click Associated Automation. 5. From Automated test name select Test, click OK and save changes. Note: If Test project doesn’t appear in the window Choose Test, you have to run the test and after that try again to associate test to test-case. Create Build Definition Setting a lab environment in MTM Installing Test controller
1. Download test controller install from http: //www. microsoft. com/en-us/download/details. aspx? id=40750 and install it on the the server on which it will be run. 2. Open the Test Controller Configuration Tool and complete the fields:
3. Save and wait until the configuration takes place. Note: The account which will be used by test agents to communicate with the controller must be a member of the Administrators Group. Create a lab environment
Both physical computers and virtual machines can be added to a standard environment. If you have virtual machines that are managed by SCVMM, it’s better to add them to an SCVMM environment instead. Each machine has to be running one of these operating systems: Windows XP SP3, Windows Vista SP2, Windows 7 SP1, Windows 8, Windows Server 2008, or Windows Server 2012. 1. On each machine: o Configure a user account and a password that has administrative privileges. All the machines must have the same username and password. It doesn’t matter whether the account is a domain or a local account. o Make sure that file sharing is enabled.
2. Open Microsoft Test Manager and connect to your team project and test plan. 3. Start the new environment wizard.
4. Choose the Standard environment and type the Name of the Environment. 5. Define the environment by adding the computers. Enter the fully-qualified domain name of each computer. Set the role of each machine, for example to Web Server or Database Server. You can either choose a role from the drop-down list, or invent your own role name. In manual testing, the role names help you remember how you intend to set up each machine.
6. Machine properties step can be omitted. 7. In the Advanced Step complete the following fields:
a) Choose the Test controller to run tests in the environment. This is the test controller which will be used to run the tests in this Lab Environment. b) Check checkbox “Configure environment to run UI tests” and select the Web Client machine on which will be run UI tests. c) Specify the user account for the test agent.
8. In the Summary step you can check the information and go to next step. 9. Click “Verify” button to initiate the verification and complete the creation of the lab environment. When the environment’s status is ready, this means that test agents have been installed on each machine, and that they are communicating with your team project’s test controller. The test agents let you collect diagnostic data from its machines while you run your test. Note: In case if the Test Agent doesn’t install and configure automatically on the specific machine, you will need to install and configure the agent manually. In most cases, when you create lab environments, you shouldn’t manually install test agents on the machines in your environments. Lab Management automatically installs and configures test agents in your lab environments when it creates them. These are the exceptions: · If you are creating a network isolated environment, before you store the environment in your team project library, install test agents in the environment by running the " Microsoft Visual Studio Agents" CD or the downloaded ISO image.. However, you should not configure those test agents. For information about setting up a network isolated environment, see Creating and using a network isolated environment. · If you’re creating a lab environment that contains any Windows XP machines, you must manually install test agents on the Windows XP machines, and then perform some extra steps. See Configuring Lab Environments that Contain Windows XP or Windows Server 2003 Machines.
Воспользуйтесь поиском по сайту: ©2015 - 2024 megalektsii.ru Все авторские права принадлежат авторам лекционных материалов. Обратная связь с нами...
|