测试在Eclipse上成功,在Jenkins上失败

huangapple 未分类评论71阅读模式
英文:

Tests success on Eclipse and fail on Jenkins

问题

当我在Eclipse中运行我的测试时,它们毫无问题地运行,但是当我尝试在Jenkins上运行它们时,它们中的大多数会出现超时错误或无法找到CSS选择器。是否有人知道为什么我的Selenium测试在Eclipse上运行正常,但在Jenkins上却出现问题?

一个示例问题:

org.openqa.selenium.TimeoutException: 预期条件失败:等待通过By.cssSelector定位的元素可见:#q_386115(尝试了40秒,间隔为500毫秒)
英文:

When I run my tests in eclipse they work with no problems, however, when I try to run them on jenkins most of them get timeout errors or fail to find css selectors. Does anyone know a solution to why my selenium tests work on eclipse but generate issues in jenkins?

example of 1 issue

org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.cssSelector: #q_386115 (tried for 40 second(s) with 500 milliseconds interval)

huangapple
  • 本文由 发表于 2020年8月14日 23:39:08
  • 转载请务必保留本文链接:https://java.coder-hub.com/63415881.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定