Test需要在20分钟后获得更新的值。在此之前,将执行一些伪步骤。这可能吗?詹金斯会同意吗?
是的,可能的,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