gpt4 book ai didi

javascript - Protractor-flake 似乎重新运行所有测试,而不仅仅是失败的测试

转载 作者:行者123 更新时间:2023-12-03 04:01:39 29 4
gpt4 key购买 nike

我正在使用“protractor-flake@2.5.1”版本并运行我的测试。在我的测试中,很少有测试失败,但它再次运行所有测试。除了 Allure 报告之外,我没有使用任何自定义报告器下面是我用来运行的命令。

protractor-flake --max-attempts=2 --color=magenta -- config.js




Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'INBEN10174', ip: '157.237.220.180', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.29.461591 (62ebf098771772160f391d75e589dc567915b233), userDataDir=C:\Users\anuvrs\AppData\Local\Temp\scoped_dir10988_18536}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=58.0.3029.110, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=}]
Session ID: c09e8a25628d5c3998434d31803f0aa8

Executed 2 of 8 specs (1 FAILED) (6 SKIPPED) in 2 mins 7 secs.
[13:05:04] I/launcher - 0 instance(s) of WebDriver still running
[13:05:04] I/launcher - chrome #01 failed 1 test(s)
[13:05:04] I/launcher - overall: 1 failed spec(s)
[13:05:04] E/launcher - Process exited with error code 1

Using standard to parse output
Re-running tests: test attempt 2
Re-running the following test files:
D:\jsout\specs\sitecomviewer\widgets\TrajectorySpec.js

最佳答案

Protractor-flake 解析测试输出以告知需要重新运行的内容。如果所述输出不是它理解的格式,它将重新运行所有测试。我想说这是一个很好的选择 Allure 改变了输出,因此......

尝试删除Allure并找出答案。

关于javascript - Protractor-flake 似乎重新运行所有测试,而不仅仅是失败的测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44697305/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com