我正在运行硒测试并突然低于错误。测试运行并非每次都始终如一地通过。有时会失败,有时会通过。而且失败的步骤也不是固定的,每次都在不同的步骤失败。
错误消息:超时异常:等待 selenium webdriver 的 net.serenitybdd.core.pages.WebElementFacade 40 秒后超时
以下是我正在使用的版本: Chrome - v65 Chrome 驱动程序 - v2.38 Selenium - v2.53 Serenity - v1.1.36
我没有编写代码,因为它没有固定在哪个步骤会失败。有人可以帮忙吗?
添加错误跟踪:
<?xml version="1.0" encoding="UTF-8"?><testsuite errors="1" failures="0" name="To create project and allocate resources" skipped="0" tests="12" time="1280.85" timestamp="2018-04-117 10:22:25"><testcase name="UC_PM_01_Create Project from Template"/><testcase name="UC_PM_05_Populate PMO Data"/><testcase name="UC_PM_15_Resource Allocation"><error message="Timed out after 40 seconds waiting for net.serenitybdd.core.pages.WebElementFacadeImpl$1@5be052ca Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: '*', ip: '*', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0-ea' Driver info: driver.version: unknown Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: '*', ip: '*', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0-ea' Driver info: driver.version: unknown" type="org.openqa.selenium.TimeoutException">Timed out after 40 seconds waiting for net.serenitybdd.core.pages.WebElementFacadeImpl$1@5be052ca
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: '*', ip: '*', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0-ea'
Driver info: driver.version: unknown
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: '*', ip: '*', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0-ea'
Driver info: driver.version: unknown</error><system-err>Timed out after 40 seconds waiting for net.serenitybdd.core.pages.WebElementFacadeImpl$1@5be052ca
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: '*', ip: '*', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0-ea'
Driver info: driver.version: unknown
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: '*', ip: '*', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0-ea'
Driver info: driver.version: unknown
com.org.macquarie.clarity.actions.WebActions.verifyElementIsDisplayed(WebActions.java:296)
com.org.macquarie.clarity.steps.HomeSteps.clickHomeMenuLinks(HomeSteps.java:30)
</system-err></testcase><testcase name="Uc pm 18 adding resource to team will update~rmw task"/></testsuite>