Skip to content
ODD Games edited this page Oct 14, 2026 · 23 revisions

Bugpunch SDK — UI Automation

Bugpunch is ODD Games' Unity SDK for crash reporting, remote debugging and automated UI testing. This wiki covers the UI automation API: finding elements with Search and driving them with real Input System events through ActionExecutor.

For crash reporting, the Remote IDE, analytics and the dashboard, see the full docs at bugpunch.com/docs.

Quick Start

1. Install via Unity Package Manager

Add to your Packages/manifest.json:

{
  "dependencies": {
    "au.com.oddgames.bugpunch": "https://github.com/oddgames/bugpunch-sdk.git#v0.8.227"
  }
}

2. Create a Test

using System.Threading.Tasks;
using NUnit.Framework;
using ODDGames.BugpunchSdk;
using static ODDGames.BugpunchSdk.ActionExecutor;

[TestFixture]
public class LoginTests
{
    [Test]
    public async Task Login_WithValidCredentials_Succeeds()
    {
        await UnityEngine.SceneManagement.SceneManager.LoadSceneAsync("LoginScene");

        // Fill the form using the labels next to each field
        await TextInput(Adjacent("Username:"), "testuser");
        await TextInput(Adjacent("Password:"), "password");

        // Submit and verify
        await Click(Text("Login"));
        await WaitFor(Name("MainMenu"), timeout: 10);
    }
}

3. Run the Test

Open Window > General > Test Runner, select the PlayMode tab and run your tests.

Requirements

  • Unity 6000.3 or newer
  • Input System package (Active Input Handling set to Input System Package (New) or Both)
  • TextMeshPro, NUnit and the other dependencies resolve automatically from package.json

Documentation

Getting Started

Search API

Basic Filters

Proximity Filters

Hierarchy Filters

  • Search.Hierarchy - HasParent, HasAncestor, HasChild, HasDescendant, HasSibling, GetParent, GetChild

Spatial Filters

Ordering & Selection

Modifiers

Combining

Reflection

  • Reflection Access - Search.Reflect(), Property(), Invoke(), game state access
  • Indexers - Array, list, and dictionary access

Test Actions

Diagnostics

  • Test Report - Action logging, screenshots and hierarchy snapshots
  • Server Integration - Connecting the SDK and uploading test sessions to Bugpunch

Advanced

Links

Clone this wiki locally