Angular Protractor - Leave browser open after E2E tests

后端 未结 5 1394
名媛妹妹
名媛妹妹 2020-12-17 07:31

Is it possible to leave the test browser windows open after Angular Protractor tests run? I have a tough test failing in FireFox and it\'d be useful to access the state of t

5条回答
  •  暖寄归人
    2020-12-17 08:17

    If you configured the test script to run using grunt, you could use the following code:

    grunt.initConfig({
        // ...
        protractor: {
          options: {
            configFile: "protractor.conf.js",
            keepAlive: true, // If false, the grunt process stops when the test fails.
            noColor: false // If true, protractor will not use colors in its output.
          },
          run: {}
        },
        // ...
      });
    

提交回复
热议问题