简体   繁体   English

Protractor/Jasmine 可以等待 20 分钟进行测试执行吗?

[英]can Protractor/Jasmine wait for 20 minutes for test execution?

Test requires to get an updated value after 20 minutes.测试需要在 20 分钟后获得更新的值。 Until then some dummy steps will be done.在此之前,将完成一些虚拟步骤。 Is this possible?这可能吗? Will Jenkins be alright with this? Jenkins 可以吗?

yes, possible, jenkins will run whatever you tell it to run是的,可能,jenkins 将运行你告诉它运行的任何东西

On protractor side though make sure to set these in your config在 protractor 方面,请确保在您的配置中设置这些

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,
    }
};

For more info go here https://www.protractortest.org/#/timeouts欲了解更多信息 go 这里https://www.protractortest.org/#/timeouts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM