AngularJS Protractor: step-by-step progress logs

In the (now obsolete) angular script test script, it became possible to create a runner.html page that will run tests in the iFrame, reporting the results, step by step, on the main page,

Screenshots of scenario runner

Is there a way to get a similar walkthrough for testing the protractor? It should not be on the html page (the console or the log file will be fine).

+6
source share
2 answers

For this you can use jasmine-spec-reporter for the protractor. You will receive visual feedback on all your passing and not passing tests:

enter image description here

Easy to configure and looks really good in the console.

Hope this helps.

+4
source

Since v1.0.0-rc2 , you can see crashes in real time:

In your transporter's configuration, add a jasmineNodeOpts object with the realtimeFailure option to true :

 exports.config = { seleniumAddress: 'http://127.0.0.1:4444/wd/hub', specs: [ 'e2e/**/*.js' ], multiCapabilities: [ {'browserName': 'firefox'}, {'browserName': 'chrome'} ], baseUrl: 'http://localhost:8000', onPrepare: function() {}, jasmineNodeOpts: { realtimeFailure: true } }; 

A complete list of jasmine options is here: minijasminenode

And a detailed help file for the protractor here: referenceConf.js

+1
source

Source: https://habr.com/ru/post/972180/


All Articles