Skip to main content
These examples use an open Arga client named client. The same methods are available on AsyncArga; await async calls.

Create and wait

Test Runs act on an already reachable application URL. Twin Run, Scenario, repository and pull-request fields supply context; they do not deploy your application. Configure required twins before testing. The terminal statuses used by wait() are completed, failed and cancelled.

Inspect and edit

Inspect and edit a generated TestConfig, then save and rerun it:
edited_config is your complete edited TestConfig dictionary. You can also append instructions with client.test_runs.send_message(run.id, "Inspect the final state").

Save and reuse a test

After inspecting the recorded flow:
Read, update or delete a Saved Test:
Explicit None, False, and empty values are preserved for supported updates. Unsupported request options are rejected before a request is sent.

Download an artifact

This returns a signed storage URL. Retrieve it without adding your Arga Authorization header. Treat signed URLs as temporary access credentials.

Compatibility

Older client.runs.create_url_run, polling, streaming and cancellation helpers remain available for the legacy validation API. Use test_runs and tests for new browser workflows. Configure PR Test Runs through the web app, CLI or current API.