r/softwaretesting • u/Necessary-Process817 • Apr 23 '26
Exploring an idea: AI-generated mobile app tests (curious if this already exists / is useful?)
Hi all — I’ve been thinking about an idea and wanted to sanity-check it with people who actually do this day-to-day.
The rough concept is an AI-assisted mobile testing tool where you’d provide:
- an app binary (APK/IPA)
- a natural language prompt like: “I’ve just added a search feature — could you test it, especially with long search phrases?”
From that, the tool would generate a set of UX test flows, something along the lines of:
- Launch app
- Login
- Tap search
- Enter “ReallyLongSearchPhrase”
- Tap search
- Expected: results shown
Then it would actually run those tests and report back with outcomes (including screenshots, failures, etc.).
The part I think might be interesting (but not sure if it’s actually valuable in practice) is what happens when something fails:
Instead of just reporting the failure, the tool would generate follow-up tests specifically around that failure to try and narrow down reliable repro steps — essentially helping you get to something ticket-ready (e.g. for Jira) faster.
So the goal isn’t to replace testers, but to speed up the repetitive/manual side and let people focus more on exploratory thinking.
A few things I’d really love input on:
- Does this sound useful, or does it fall into the “nice idea but not in real workflows” category?
- Are there tools already doing something similar that I should look into?
- Where do you think something like this would break down in practice?
I’m very early-stage on this, so honest feedback (especially critical!) would be really helpful.
Thanks in advance 🙏
6
u/azuredota Apr 23 '26
Maybe just stick to AI generated reddit posts
1
u/opacitizen Apr 23 '26
What could go wrong, asking a hyper-complicated app that is practically a black box to you to test another app, right?
Sure, some "progressive" managements would applaud (and then fire) you for automating yet another process (saving them precious workforce costs), but would you yourself trust your own stuff (especially if it's critical stuff like your personal data, your money, your life) to an app that only got tested by an AI tester?
…really?
1
u/Beneficial_Nerve5286 Apr 23 '26
We’re actually experimenting with something very similar internally, and our approach is a bit more structured than just prompting a general LLM to “write tests.”
For test case generation and test analysis, we use a fine-tuned LLM rather than a base model. Generic models can usually produce broad testing ideas, but they often miss product-specific logic, important edge cases, and the way QA teams actually define and document scenarios. Fine-tuning helps us generate outputs that are much closer to real test cases, with better alignment to business flows, validation rules, and common failure patterns.
On top of that, we use RAG to improve accuracy. Instead of generating tests only from a prompt, we ground the model with relevant product documentation, historical test assets, and testing context first. That helps reduce hallucinations and makes the generated cases much more consistent with the actual app behavior and expected workflows.
For UI element recognition, we don’t rely only on the LLM or only on accessibility metadata. We use a self-trained YOLO model to detect UI components visually, and then combine that with OpenCV and OCR for validation. In practice, this hybrid approach works better for mobile UI because element detection is rarely reliable if you depend on a single method. OCR helps when on-screen text is important, OpenCV helps with screen structure and visual matching, and the YOLO model provides a stronger base for identifying elements consistently. It also improves explainability, because we can trace why a specific element was identified and used in a test step.
From what we’ve seen so far, the biggest value is not just “automatic test creation,” but generating a solid first pass of candidate test flows, expanding coverage around recent feature changes, and turning failures into more structured and reproducible results.
Then at the final stage, we use an agent-based AI layer for orchestration and scheduling. It coordinates the different parts of the pipeline — retrieving the right context, generating or refining test cases, triggering UI recognition and validation steps, and organizing execution in the right order. That orchestration layer is important because the real challenge is not just having one model produce test steps, but making the whole workflow operate in a reliable and controllable way.
That said, the difficult part is not only generating test cases. The real challenge is making the whole pipeline reliable enough in terms of grounding, UI understanding, reproducibility, explainability, and orchestration.
1
u/[deleted] Apr 23 '26
[removed] — view removed comment
1
u/[deleted] Apr 25 '26
[removed] — view removed comment