简体   繁体   English

在工作组测试计算机的上下文中运行TFS 2012编码的UI测试

[英]Running TFS 2012 Coded UI test in the context of a workgroup test machine

We're having an issue in our lab environment running coded UI tests. 我们在实验室环境中运行编码的UI测试时遇到问题。

Note that the deployment completes successfully but the test fails with the following error: 请注意,部署成功完成,但测试失败,并出现以下错误:

Deployment 部署方式

Lab environment: Win 7 VM 实验室环境:Win 7 VM

Build definition did not specify a clean snapshot. 生成定义未指定干净的快照。 It is a best practice to use clean snapshot when running the lab workflow. 最佳实践是在运行实验室工作流程时使用干净的快照。

The application was deployed successfully from the following build location:\\tfssvr106\\TFS\\BuildDrop\\ServerAssistant_Production\\ServerAssistant_Production_20130816.1 已从以下构建位置成功部署了该应用程序:\\ tfssvr106 \\ TFS \\ BuildDrop \\ ServerAssistant_Production \\ ServerAssistant_Production_20130816.1

Build definition did not specify a post deployment snapshot. 生成定义未指定部署后快照。 It is a best practice to take post deployment snapshot when running the lab workflow. 最佳实践是在运行实验室工作流时拍摄部署后快照。

Test Results 检测结果

Test run (Id) : ServerAssistant - Coded UI_20130816.12 (96) Test run needs investigation Test run details 测试运行(Id):ServerAssistant-编码的UI_20130816.12(96)测试运行需要调查测试运行详细信息

0 of 1 test(s) passed, 1 failed, 0 inconclusive, View Test Results 0个测试(共1个)通过,1个失败,0个不确定(查看测试结果)

The test results have the following error… 测试结果具有以下错误…

The build directory of the test run either does not exist or access permission is required. 测试运行的构建目录不存在或需要访问权限。

The Diagnostic logging from the build has the following… 来自构建的诊断日志具有以下内容…

TestDirectory = \\tfssvr106\\TFS\\BuildDrop\\ServerAssistant_Production\\ServerAssistant_Production_20130816.1 TestDirectory = \\ tfssvr106 \\ TFS \\ BuildDrop \\ ServerAssistant_Production \\ ServerAssistant_Production_20130816.1

We don't want the tests running from the build drop location because that is a domain server share and the test VM is a workgroup machine. 我们不希望测试从构建放置位置运行,因为这是域服务器共享,而测试VM是工作组计算机。 We'd prefer the agent on the workgroup VM to run the tests from its local C: 我们希望工作组VM上的代理从其本地C运行测试:

If we authenticate the workgroup machine to the build drop share using my domain account, the tests run fine. 如果我们使用我的域帐户向工作组共享验证工作组计算机,则测试运行良好。

All the files are present and ready to run from C: via my deploy task. 所有文件都存在,并可以通过我的部署任务从C:运行。 How do we get the tests to run from C: of the VM? 我们如何使测试从VM的C:运行?

Any advice would be greatly appreciated! 任何建议将不胜感激!

If you plan to run your test controllers and test agents on machines that are in a work group and not in a domain, or machines that run in different domains that do not have a two-way trust relationship, you must follow these steps as part of your installation process: 如果计划在工作组中而不是域中的计算机上运行测试控制器和测试代理,或者在没有双向信任关系的不同域中运行的计算机上运行,​​则必须按照以下步骤进行操作您的安装过程:

On each computer where you will install a test controller or a test agent, create a local user account that is a member of the Administrators group. 在将安装测试控制器或测试代理的每台计算机上,创建一个本地用户帐户,该帐户是Administrators组的成员。 Use the same account and password on each machine. 在每台计算机上使用相同的帐户和密码。

Use this user account for your test controllers when you install and configure them. 在安装和配置测试控制器时,请使用此用户帐户作为测试控制器。

Add this account to the TeamTestAgentService group on the test controller machine. 将此帐户添加到测试控制器计算机上的TeamTestAgentService组。

Caution When you add this user account to the group, do not include the name of the local machine. 警告当您将此用户帐户添加到组中时,请勿包括本地计算机的名称。 For example, do not add the user account as \\. 例如,不要将用户帐户添加为\\。 Just add as the user account for the group. 只需添加为该组的用户帐户即可。

Install and configure your test agents using this same account. 使用同一帐户安装和配置您的测试代理。

Note During installation, simple file sharing is automatically turned off for users who connect to a controller from a Windows XP Professional computer in a Work Group. 注意在安装过程中,对于从工作组中的Windows XP Professional计算机连接到控制器的用户,将自动关闭简单文件共享。 To verify this, open Windows Explorer, choose Tools, choose Folder Options, choose Next, choose the View tab, and then choose Use Simple File Sharing (Recommended). 要验证这一点,请打开Windows资源管理器,选择“工具”,选择“文件夹选项”,选择“下一步”,选择“视图”选项卡,然后选择“使用简单文件共享(推荐)”。

Full information can be referenced from this link: Requirements for Workgroups and Multiple Domains 可以从此链接引用完整信息: 工作组和多个域的要求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何测试主机名是否指向本地计算机 - How to test if hostname refers to local machine 如何保护TFS中单元测试使用的连接字符串? - How to secure connection strings used by Unit Test in TFS? “测试表仅适用于本地机器的请求。” - “The test form is only available for requests from the local machine.” 如果使用工作组,如何在远程计算机上授予Windows服务访问权限? - How can I give a windows service access on a remote machine in case of Workgroup? 将Flash / Flex UI测试自动化挂钩部署到生产中时会有危险吗? - Dangers when deploying Flash/Flex UI test automation hooks to production? 团队系统测试是否支持以特定身份运行测试? - Does Team System Test support running tests under a specific identity? 安全测试显示我的 android 应用程序有硬编码的敏感数据,这是有风险的。 它属于核心 Android 库。 怎么修? - Security test revealed my android app has hard-coded sensitive data, which is risky. It belongs to the core Android libraries. How to fix? 如何阻止TFS 2012用户查看安全设置 - How to stop TFS 2012 users from seeing security settings 运行单元测试时,DotNet Core'CspParameters'仅需要Windows加密API(CAPI) - DotNet Core 'CspParameters' requires Windows Cryptographic API (CAPI) ONLY when running a unit test 测试Plone密码强度 - test Plone passwords strength
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM