Test Automation KPIs
Sauce AI for Test Authoring: Move from aim to execution in minutes.|xBack to ResourcesBlogPosted June 3, 2015
Test Automation KPIs
One of the interesting things about mechanisation is that it frees you up from time-intensive manual testing, allowing you to drop clip on strategic elements—because if you do not spend clip on strategy, your capabilities as a team will not grow. And part of that growth means focusing on valuable metrics— metrics that will assist you learn, and better your processes. Once you have processes in place, the adjacent crucial step is to invest in automation. Automation helps you act quicker, and get your work consistent, traceable, and shareable, which is likewise imperative. All this comes only after establishing the rightfield KPIs (key performance indicators).Automation: Deliver Faster, from Months to MinutesAsk yourself this question: without CI (continuous integration), how long would it conduct your organization to deploy a alteration that involves just one line of code? For example, say your organization sets an objective to deploy a change in production within 30 minutes. To achieve this objective, everyone has to agree on the tool and processes that are needed for an easy push approach (aka continuous integration). Let & # x27; s review the roles, team responsibilities, and the CI process.
The ware manager is creditworthy for defining product features and providing feature credence scenarios. The QA team has two defined roles: QA lead and automation engineer. The QA lead is focused on direction of the engineers, and oversight of all automation engineers & # x27; deliverables. The mechanisation engineer is focused on writing and testing acceptance criteria scripts. Developers are responsible for accepting lineament petition (s), pen feature code, and take on some test playscript responsibilities. The easygoing button process involves 6 milestones, beginning with an open feature request, so complicate the feature postulation, development ready, in development, code complete, and finally, continuous consolidation.
The conception of this easy button process, and the disciplines and tools specified within, are drive by the need to & quot; unclog bottlenecks ” after code is complete. Implementation of automated processes is critical in order to enable team to release codification ceaselessly, with minimal dependence on each other or external support teams. This will eliminate bottlenecks, and promote high-risk releases that require an USA of citizenry to relinquish and test manually. A lot of people hear & quot; process & quot; and believe & quot; waterfall. & quot; That assumption doesn ’ t apply in this case. By craft a methodology to continually release codification, we facilitate a eminent degree of flexibleness, and allow product and coating evolution teams to chop-chop react to market requirement. Once in praxis, the & quot; process & quot; itself fades into the background. The discipline of do the thing that feed into the summons turn the most important: creating full requirements, writing caliber acceptation tests, writing tests in parallel with ontogenesis, developing with feature flags, etc. When you do each of these thing well, the & quot; process & quot; will happen almost automatically. It is an intricate machine, and each part must function decent for the unharmed process to work. To get continuous integration or continuous deployment a reality, we have to look cautiously at what is working and what is not working.
Measuring speed:What are KPIs, and why are they so crucial? KPIs are the rachis of a ontogeny labor. They are used to influence if a task is on the right track to success (think: wellness chit), and identify where improvements need to be create to meet destination. Everyone wants to implement a CI environment these days. An established CI environment is where the welfare of KPIs will help mensurate how every code commit is perform. Statistics focus citizenry, assistant measure success, and identify where improvements are needed. What do you measure? What makes a successful KPI? You foremost necessitate to interpret who your prey audience is before you can craft a clear list of metrics to capture. Let ’ s start by defining a inclination of possible metrics for developers:
Number of builds PASSED or FAILED
For a FAILED build, identify WHO broke the build, and send apprisal outright to the person or group
Measure of codification coverage. An crying understanding of codification coverage every time something new is institutionalise without any tests. If the reportage goes down, something is wrong.
Pro tip: Tools like SUSA can handle this autonomously — upload your app and get results without writing a single test script.
Tests run before codification merge. Testing code before and after it is merged will allow you to decrease the amount of times a master build is broken.
How will developers benefit from this? These mensuration will increase the developer & # x27; s confidence, believability, create more accountability, and provide a clear representation of code quality. How does test automation benefit from KPIs? It will identify the project ’ s health status, and bespeak areas in your examination automation that may require improvements. For representative:
Capture the automation execution time per codification commit. This will allow you to valuate whether your environment is scaled consequently.
Quarantine tests that have random success. Stop flaky trial by budget clip to fix them. (This part is IMPORTANT: Understand the nature of flakiness before fixing the examination.)
Capture exam automation PASS-FAIL rate per code commit. This sends a notice to automation engineers, and lets them know who attached feature code, and which test failed.
Capture the CI duration clip, from code commit to make for stage and production. This identify whether the goal of “ x ” minutes to deploy to stage or production is being met. Recalibrate the CI environment to progress faster by dissever examination and build processes into different instances, so everything will end even more quickly.
Build small and thin automation tests. Capture and spanking automation engineers when individual tests exceed “ x ” execution time allowed (i.e. a goal of 5 minute maximum). Take the opportunity to investigate why an individual test is taking too long to execute and decide to refactor the test, if needed.

KPIs are indicators, not end-states. They indicate where potent and weak point exist, and should be utilize to call attention, or used as monitors against a baseline. They are not themselves a goal or a solution. Lastly, a admonisher: any measuring is best than no measurement, but a good metric is clear—not subjective. An appropriate metric is discrete and means something to the labor. Build your own standards for tracking your KPI dashboard. Make certain dashboard are piece for everyone on your project. The key to all of this is to automate the creation of KPI information, NOT to manually make any type of metric create from a CI environment.Greg Sypolt (@ gregsypolt) is a senior technologist at Gannett and co-founder of Quality Element. He is a passionate automation engineer seeking to optimize software ontogenesis quality, coaching team members how to write great mechanization scripts, and facilitate testing community go better tester. Greg has expend most of his calling act on software quality - concentrating on web browsers, APIs, and mobile. For the past 5 days he has focalise on the conception and deployment of automated examination strategies, frameworks, tools, and platforms.
Automate This With SUSA
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.
Try SUSA FreeTest Your App Autonomously
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.
Try SUSA Free