| || |
TFS team build user/admin privileges w/ TC suites
I have integrated my testing suite into TFS and a team build. After all the many hurdles it seems I have one more. When the build runs and it starts testing, a Testcomplete process is started, and the scripts start running. However, it seems the Testcomplete.exe process, and the process for the AUT receive no UI address space when the suite is run through the MS build. I am getting an exception when the first frame object for the AUT is being created by its process.
How do I allow the testing suite inherit the UI space of the currently logged on user, or at least specify a user to log on as so the suite can create the windows that are to be to be tested?
Any thoughts or ideas?
Re: TFS team build user/admin privileges w/ TC suites
After about five hours of searching I finally found the terminology for what I was looking for. Its an Interactive Team Build on Port: 9192. I'll post it in case anyone else runs into the same problem. I did not see this info posted in the TC6 documentation but is critical for TC to run most testing within a team build. TC and any AUT's won't be able to create their UI's unless you configure it this way.
How to: Configure an Interactive Port for Team Foundation Build
You can specify an interactive port on the build computer that can be used by a build agent. An interactive port allows you to interact with Windows user interface elements such as Windows Forms.
To complete this procedure, you must be a member of the Administrators group on the build computer. Additionally, the service account that runs the TfsBUildService.exe must be a member of the Build Services group. For more information, see Team Foundation Server Permissions.
To enable the interactive port
1. Log on to the build computer where Team Foundation Build is installed.
2. On the build computer, click Start, click Control Panel, click Administrative Tools, and then click Services.
3. On the Services (Local) pane, right-click Visual Studio Team Foundation Build and click Properties.
4. To stop the Team Build Service, on the Visual Studio Team Foundation Build Properties (Local Computer) dialog box, click Stop under the Service Status.
5. Locate the TfsBuildservice.config.exe in <root>:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies, right-click the file, and click Open on the drop-down menu.
The file opens in Visual Studio XML editor.
6. Edit the InteractivePort and set it to the desired numerical value.
For example, 9192. For more information, see How to: Modify Settings in TfsBuildService.exe.config file.
7. Save your changes and close the file.
8. From the Command Prompt, run wcfhttpconfig reserve <user account> <port number> to place the new port in the access control list (ACL).
For more information, see wcfhttpconfig (Team Foundation Build).
9. After the port is added to the ACL, add it to the Windows Firewall exceptions list.
10. To restart the Build Service, click Start, click Control Panel, click Administrative Tools, and then click Services.
11. On the Services (Local) pane, right-click Visual Studio Team Foundation Build and click Properties.
12. To start the Team Build Service, on the Visual Studio Team Foundation Build Properties (Local Computer) dialog box, click Start under the Service Status.
You can now associate the new port with a build agent. For more information, see How to: Create and Manage Build Agents.
To run TfsBuildservice configured to the interactive port
1. On to the build computer, click Start, and then click Run.
The Run dialog box appears.
2. On the Run dialog box, type cmd.exe in the Open text box, and then click OK.
3. At the Command Prompt, type cd <root>:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies to locate the TfsBuildService.exe.
4. To start the service running, type TfsBuildService.exe at the Command Prompt.
The TfsBuildService must be running in order for a build definition to access the interactive port.