解决了

在敏捷测试用例失败

  • 2023年7月31日
  • 1回复
  • 6的观点

Userlevel 5
徽章 + 2
  • 社区经理
  • 72回复

你好,

我有15个测试用例执行列表,在每个测试用例有这两个步骤1。打开网址2。最大化窗口(我使用TBOX窗口操作这个操作)预条件步骤后喜欢和Taskkill关闭现有的浏览器。最大化窗口在我所有的测试用例步骤是失败原因为窗口不存在!。这次失败发生只有当我们运行测试用例在敏捷(代理机器)。当我们运行它作为独立在Scratch中书或执行列表这并没有发生。我应该包含任何参数来避免这种失败敏捷。我已经同步时间60秒

(最初要求和解决支持中心)

图标

最佳答案社区管理员2023年7月31日,十五29

I'd log in to the remote agent machines to spy on the test (using the same user as DEX uses) while it's running to see exactly what is interfering - typically you get about 15-60 seconds to watch until it boots you out. I've encountered similar where Chrome (or whatever app\/browser) you are using has the little information bubbles popped up with \"Chrome unexpectedly closed... do you want to continue where you left off?\" or other things such as accepting push notifications, etc. Alternatively you could take a screenshot upon failure and see what may be present at the time.\u00a0<\/p>

For all the DEX machines I make sure to have any of the browser options set to ensure no dialogs pop up for location, push notifications, etc as part of the standard setup. This has taken care of a lot of the intermittent failures and improved success rate immensely.\u00a0<\/p>

As mentioned in the previous comments using Taskkill is not a great option as Chrome will always pop up the message and only option is to manually click it (or automate it). In those scenarios where you need to force close the browser I use a PowerShell script that closes it instead and avoids the Chrome unexpectedly closed like Taskkill does. It could be customized to close other apps as well by changing the Get Process command.\u00a0

Module used = TBox Start Program<\/p>

Parameters<\/p>

\"9c746284975b15d0a7963adfe153affe.iix\"<\/p>","className":"post__content__best_answer"}">

查看原始

1回复

Userlevel 3
徽章 + 2

我登录到远程代理机器监视测试(使用相同的用户,因为敏捷使用)运行时看到什么是干扰——通常得到15-60秒左右观看,直到靴子。我遇到过类似的,Chrome浏览器(或任何应用程序/)您使用小信息泡沫破灭了“Chrome意外关闭…你想继续,你离开吗?”或其他诸如接受推送通知,等。或者你可以用截图上可能存在故障,看看。

所有敏捷的机器我确保任何浏览器的选项设置,以确保没有对话框弹出位置,推送通知等的标准设置。这照顾很多间歇性故障和成功率大大提高。

就像前面提到过的评论使用Taskkill不是一个伟大的选择作为Chrome总是弹出消息,唯一的选择是手动点击它(或自动化)。在这些场景中,您需要强制关闭浏览器我改用PowerShell脚本关闭它,避免了像Taskkill Chrome意外关闭。它可以定制关闭其他应用程序通过改变过程命令。

模块使用= TBox开始计划

参数

9 c746284975b15d0a7963adfe153affe.iix

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu
map