【发布时间】:2021-04-01 11:11:10
【问题描述】:
测试需要在 20 分钟后获取更新的值。在此之前,将完成一些虚拟步骤。这可能吗?詹金斯可以接受吗?
【问题讨论】:
-
问题不清楚。您是否希望在当前测试等待值更新时运行其他测试?
标签: javascript jasmine protractor jenkins-pipeline timeout
测试需要在 20 分钟后获取更新的值。在此之前,将完成一些虚拟步骤。这可能吗?詹金斯可以接受吗?
【问题讨论】:
标签: javascript jasmine protractor jenkins-pipeline timeout
是的,可能,jenkins 会运行你告诉它运行的任何东西
在量角器方面,请确保在您的配置中设置这些
exports.config = {
// Before performing any action, Protractor waits until there are no pending asynchronous tasks in your Angular application
allScriptsTimeout: 21 * 60 * 1000,
// Set Protractor timeout
getPageTimeout: 21 * 60 * 1000,
jasmineNodeOpts: {
// If an 'it' block takes longer than the timeout for any reason (even legitimate), it will fail
defaultTimeoutInterval: 21 * 60 * 1000,
}
};
欲了解更多信息,请点击此处https://www.protractortest.org/#/timeouts
【讨论】: