【问题标题】:can Protractor/Jasmine wait for 20 minutes for test execution?Protractor/Jasmine 可以等待 20 分钟进行测试执行吗?
【发布时间】:2021-04-01 11:11:10
【问题描述】:

测试需要在 20 分钟后获取更新的值。在此之前,将完成一些虚拟步骤。这可能吗?詹金斯可以接受吗?

【问题讨论】:

  • 问题不清楚。您是否希望在当前测试等待值更新时运行其他测试?

标签: javascript jasmine protractor jenkins-pipeline timeout


【解决方案1】:

是的,可能,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

【讨论】:

    猜你喜欢
    • 2019-04-25
    • 2014-12-28
    • 2014-09-04
    • 1970-01-01
    • 2013-06-27
    • 1970-01-01
    • 1970-01-01
    • 2020-07-06
    • 1970-01-01
    相关资源
    最近更新 更多