Download PDF · Cloudnix: Quality Engineering
Most app failures happen on devices and networks that test teams do not have: budget phones, older Android versions, congested networks, memory pressure. And many apps are never automated at all, because automation needs the source code and engineers to write scripts. This report describes test platforms we have built: record and replay of Android apps from the shipped APK, without source; telemetry sampled inside the app under test; exploratory testing organised as a coverage grid across devices, operating systems, browsers, networks and carriers; a severity-weighted score per build; and test cases generated from requirements by AI.
| Problem | Consequence | Pattern (chapter) |
|---|---|---|
| No source access | No automation | APK instrumentation and replay (3) |
| Fast lab machines | Performance issues missed | In-app telemetry (4) |
| Invisible exploratory coverage | Unknown gaps | Coverage grid (5) |
| Bug counts as readiness | Releases judged by volume, not severity | Weighted scores (6) |
| Slow test design | Requirements outpace tests | AI generation (7) |
onCreate.| Recorded action | Generated call |
|---|---|
| Click on view | clickOnView |
| Click on text | clickOnText |
| Click in list | clickInList |
| Enter text | enterText |
| Clear text | clearEditText |
| Set progress | setProgressBar |
| Action bar item | clickOnActionBarItem |
The injected agent samples the app's own process during tests: CPU percentage, thread count and virtual and resident memory from the process table; bytes received and transmitted by the app's UID from the traffic counters [4]; and battery level from the system's battery broadcast. Samples are aligned to recorded actions, so each build has a trace per action with screenshots and device details.
A test idea records its heuristic, oracle, model element, feature, customer coverage and classification (basic flow or deep testing), with a reviewer. A run is one idea in one environment, a combination of device (make, model, OS version, screen size), operating system, browser, network and carrier, and records pass or fail, what, why and how, perceived pain (minor, medium, high), the user's likely emotion, evidence and bug status. Plotted as ideas by environments, failures appear as a grid of marked cells. Failed runs are exported to the issue tracker in bulk with their attachments [5].
Checklists group functional, UX and performance checks (25 functional and UX groups, 10 performance categories) and carry a weight in the build. Failed checks are counted by severity tier:
checklist_score = max(0, 5 − (0.4·s4 + 0.3·s3 + 0.2·s2 + 0.1·s1)) # sN = failed checks in tier N
build_score = Σ checklist_score × weight% / 100Example exchange or schema.
The score is recomputed when a bug is marked fixed, so a build's readiness can be followed day by day. Packages range from essentials to release-level coverage for Android and iOS.
On the AI server, requirements selected from a knowledge base are turned into features (one parent, its child requirements) and then into test cases with steps and expected results. The pipeline maps over the knowledge base on local models and reduces per feature, preserving the project's test-data placeholders written as {{variable}}. Generated cases are reviewed before they enter a suite.
Phones are attached by USB to a build host and driven over adb. A folder-based queue (incoming, processing, running) makes the pipeline restartable and inspectable without a database. Each phone reports model, OS version, carrier, resolution and density with every session, so results can be grouped by environment.
| Dimension | Choose by |
|---|---|
| Make and model | your users' top devices plus a budget and an old device |
| OS version | current, one back, oldest supported |
| Network | Wi-Fi, 4G, 3G or shaped equivalents |
| Screen | small, typical, large or tablet |
Test assets are organised as product models (elements and features), test ideas with heuristics and oracles, user flows, requirement and analysis question sets, and runs. Checklists for packages (essentials, performance, release) can be uploaded as CSV and are platform-specific for Android and iOS.
| Asset | Purpose |
|---|---|
| Heuristic | a way of finding problems (e.g. interrupt, starve, overload) |
| Oracle | how a tester recognises a problem |
| Model element | the part of the product being explored |
| User flow | an end-to-end journey |
| Recommendation | the change suggested to fix a class of problem |
| Tier | Weight | Example |
|---|---|---|
| 4 | 0.4 | crash, data loss, payment failure |
| 3 | 0.3 | blocked flow with workaround missing |
| 2 | 0.2 | wrong behaviour with workaround |
| 1 | 0.1 | cosmetic |
Performance is reviewed in ten categories per build: CPU, user scenario timing, memory, battery, network fluctuation, network use, file download, page weight, connections and GPU overdraw. Measured traces come from in-app telemetry; the remaining categories are assessed by testers with captured graphs.
A testing services company serving app makers.
Testers needed to show clients what had been covered, not just what had failed. We built an exploratory testing platform where test ideas and runs are recorded across devices, OS, browsers, networks and carriers, with pain and evidence; a minesweeper-style grid shows coverage and failures at a glance; failures go to the client's tracker in bulk. A companion service scores startup apps per build from weighted checklists, recomputed as bugs are fixed, and a record-and-replay system turns tester sessions into automated tests without the client's source.
// generated from a recorded session; one block per recorded action solo.waitForActivity("LoginActivity"); solo.clickOnView(solo.getView("btn_signin")); solo.enterText((EditText) solo.getView("et_phone"), "9000000000"); solo.clickOnText("Send OTP"); solo.waitForDialogToClose(); solo.takeScreenshot("login_after_otp"); solo.clickInList(2); // home list, third item assertTrue(solo.waitForActivity("CartActivity"));
Example exchange or schema.
Waits are inserted before each activity change, guards around dialogs, and a screenshot before every assertion, so a failure is always accompanied by the screen that caused it.
| Metric | Source | Note |
|---|---|---|
| CPU % | process table for the app package | per sample |
| Threads | process table | rising counts flag leaks |
| VSS, RSS | process table | memory pressure |
| Rx/Tx bytes | per-UID traffic counters | network cost per action |
| Battery | battery broadcast | drain over a session |
Samples are aligned to recorded actions so that a spike is attributed to the step that caused it.
| Checklist | Weight | Fails (t4,t3,t2,t1) | Score | Weighted |
|---|---|---|---|---|
| Functional | 40% | 1,0,1,2 | 5 − (0.4+0+0.2+0.2) = 4.2 | 1.68 |
| UX | 25% | 0,1,2,3 | 5 − (0+0.3+0.4+0.3) = 4.0 | 1.00 |
| Performance | 35% | 1,1,2,1 | 5 − (0.4+0.3+0.4+0.1) = 3.8 | 1.33 |
| Build score | 4.01 / 5 | |||
Fixing the tier-4 functional failure raises the functional score to 4.6 and the build score by 0.16, which is why teams fix the heaviest failures first.
| System | Integration |
|---|---|
| Issue tracker | bulk issue creation; attachments per issue; status kept on the run |
| Build pipeline | test APK built per session; results per build |
| regression report per build | |
| AI server | requirements to test cases with test-data variables |
| Phase | Outcome |
|---|---|
| 1. Device and risk survey | Device matrix, critical flows, severity tiers |
| 2. Lab and recording | Phones attached; first sessions recorded and replayed |
| 3. Scoring | Checklists and weights agreed; score per build |
| 4. Scale | Exploratory coverage, AI-generated cases, tracker integration |
| 1 | Can apps be automated without their source? |
| 2 | Do tests run on real, varied devices? |
| 3 | Is performance measured inside the app? |
| 4 | Is exploratory coverage visible? |
| 5 | Do runs record pain and evidence? |
| 6 | Are failures exported with attachments? |
| 7 | Is readiness a weighted score, not a count? |
| 8 | Is the score recomputed as bugs are fixed? |
| 9 | Are test cases traced to requirements? |
| 10 | Are test-data variables preserved? |
| 11 | Are generated cases reviewed? |
| 12 | Who maintains the device lab? |
| Instrumentation | Adding code to an app to observe it. |
| Replay | Running recorded actions as a test. |
| Heuristic | A guide for finding problems. |
| Oracle | A way to recognise a problem. |
| Build score | Severity-weighted readiness of a build. |
| Document control | |||
|---|---|---|---|
| Report | CNX-TR-2026-08 | Version | 1.1 |
| Issued | November 2026 | Status | Published |
| File | cloudnix-quality-engineering-v1.1.pdf | ||