Game QA
How BugHunter gets through an AppLovin rewarded ad on its own
Rewarded ads are where scripted automation breaks. Here is a one-minute run where our agent watches an AppLovin MAX ad, gets bounced to Google Play, and finds its way back to the game.
Rewarded video is one of the biggest revenue lines in a free-to-play mobile game. It is also the part of the game that test scripts handle worst. Here is one minute of our agent dealing with it, start to finish.
Why ads are hard to test
In most mobile games the “Watch video” button is a direct line to revenue. When it breaks, the studio loses money quietly. Players skip the offer, or they watch the ad and never get their reward, and then leave a one-star review.
The ad itself is not part of your game. It comes from an ad network's SDK, like AppLovin MAX, inside a web view your team does not control. That is a problem for classic automation:
- The creative changes every time. A different ad means a different layout, so recorded taps and element IDs stop matching.
- Timers and hidden buttons. The close button only shows up after a countdown, often in a corner, and sometimes it is a tiny grey “×”.
- Leaving the app. One tap on “Install” and the player is in Google Play or the App Store. A script that expects to stay in the game is now lost.
- Several screens in a row. Video, then an end card, then maybe a second end card. Every network does it differently.
So in many studios ads get tested by hand, if they get tested at all.
What happens in the video
The game is a word-search title (“Search”, v1.56.0) running on an Android emulator. The agent is in Test mode and only looks at the screen, the same way a player would.
- 0:00On level 12 the game shows an “Earn Free Coins!” pop-up: 20 coins for watching a video. The agent taps Watch video.
- 0:06An AppLovin MAX test ad starts with a countdown. The agent recognises that this is an ad and not the game, and waits it out. It does not tap the big green Install button by mistake.
- 0:15 to 0:36The countdown ends and the ad switches to its next state. The agent looks for a way out of a screen it has never seen before.
- 0:39The ad opens the Google Play page of the advertised app. At this point the player has left the game. The agent understands this and goes back.
- 0:45It is back in the ad, now on the end card (“Privacy Management · GET”). The agent waits for the close control and does not tap GET.
- 1:03The ad is closed and the agent is back in the game, on the same level, with the coins pop-up in front of it. Now it can check what matters to the studio: did the reward arrive?
Nobody wrote a test case for “ad opens Google Play”. The agent got there, worked out where it was, and found its way back.
What we check in an ad flow
Getting through the ad is only the first step. The real value is in the checks around it:
| Check | What can go wrong |
|---|---|
| The ad loads | The button is there, but nothing happens or the spinner never stops. |
| The ad can be closed | There is no close button, or it is off screen on some aspect ratios. |
| Return to the game | Black screen, frozen UI or lost progress after the ad, or after a trip to the store. |
| The reward is granted | The player watched the full video and the balance did not change, or the reward came twice. |
| Game state is restored | Music stays muted, the timer keeps running, the level restarts. |
When something fails, BugHunter files a bug with the session video, the steps to reproduce it and the device and build info, so your team can see exactly where the player got stuck.
Why it works without an SDK
BugHunter does not plug into your game or the ad network. It reads the screen, decides what to do next and taps, the way a player does. For ads this is a real advantage:
- Nothing to integrate. AppLovin, AdMob, Unity Ads, ironSource: to the agent they are all pixels on a screen.
- New creatives don't break tests. There are no fixed coordinates or element IDs to go stale.
- It works on release builds. You can test the APK that actually goes to players, not a special debug version.
The takeaway
Ads are where a game earns its money and where scripts tend to break. An agent that can get through an ad, leave the app, come back and confirm the reward checks the flow that pays your bills on every build, without someone on the team sitting through test ads by hand.