Gunderson
Gunderson

Reputation: 3268

E2E Test Metrics

Apologies if this question is better suited for Stack Exchange Programmers, I've posted this on both sites cause I figured it was on the fence.

Question: Are there any valuable metrics on E2E automated tests? (Does it make sense to gather any data around them?)

Context: For example, when I wrote my unit tests, I implemented a test coverage package which covers % of Classes, # of methods touched etc...

A few points I've come across:

Any ideas? If it matters, I'm using Protractor on an Angular app.

Upvotes: 5

Views: 1299

Answers (2)

Sudhish K
Sudhish K

Reputation: 119

Yes, it makes sense to collect data on E2E test metrics. Apart from test cases execution, performance and other measurements,it helps us to take the decision for next phase of activities such as, estimate the cost & schedule of future projects. Understand the kind of improvement required to success the project. Take decision on process or technology to be modified etc. Test Metrics are the most important to measure the quality of the software.

Upvotes: 1

Xotabu4
Xotabu4

Reputation: 3091

Something that comes to my mind with protractor: You can measure code coverage with e2e tests as well, but that would require some tricks to setup, check this: https://www.npmjs.com/package/protractor-istanbul-plugin https://www.npmjs.com/package/grunt-protractor-coverage

Be aware that it is not clean solution - your code could be minified, server side not included, just keep this in mind.

Also you could measure page performance (load speed, JS execution speed, CSS render other client-side calculations) with something like protractor-perf: https://github.com/axemclion/protractor-perf

But also keep in mind that it requires a lot of preparations to achieve that, but anyway it is cool.

About Automation Progress/Percent automatable - i think you can't track this automatically, only if your requirements will be very detailed, and stored in some system with API. Then you could link your test case with specific requirement and track that. I never saw this working actually.

Defect Efficiency - easier to track with JIRA reports.

Upvotes: 2

Related Questions