美文网首页
Cypress 命令行操作

Cypress 命令行操作

作者: BestFei | 来源:发表于2020-06-10 15:37 被阅读0次
    it('execute a system command', function() {
        // so you can take actions necessary for your test outside the scope of Cypress.
        cy.exec('echo Best Fei')
            .its('stdout').should('contain', 'Best Fei')

        // we can use Cypress.platform string to select appropriate command
        cy.log(`Platform ${Cypress.platform} architecture ${Cypress.arch}`)
    })

相关文章

网友评论

      本文标题:Cypress 命令行操作

      本文链接:https://www.haomeiwen.com/subject/nfrptktx.html