来自数据库的断言错误
当我在soapUI 中运行测试用例时,一切正常。但是当我在 jenkins 内运行测试时,断言失败,正如您在 this gist 中看到的那样。
我连接到数据库时没有遇到问题。对于这些断言有什么提示吗?
When I run the test cases inside soapUI, everything works fine. But when I'm running the tests inside jenkins, the assertions fail as you can see in this gist.
I am not having issues when connecting to the database. Any tips for those asserts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑你遇到的问题是时间问题。如果您的 jdbc 检查发生在服务器提交事务之前,那么您将看到您所拥有的行为。当您开始 jdbc 检查之前 Web 服务不发出响应时,这尤其是一个问题。
三种可能的解决方案是:
I suspect what you have is a timing issue. If your jdbc checks are occurring before the transaction has been committed by your server then you will see the sort of behaviour you have. This is particularly an issue where the web-service does not issue a response before you commence your jdbc checks.
Three possible solutions are: