Claude Code integrates with OpenTester via MCP (Model Context Protocol) to automate Android app testing directly from your development environment.
Prerequisites
- Claude Code installed
- OpenTester MCP server registered
- Android device or emulator connected
Installation
Install OpenTester MCP
In your terminal, run:claude mcp add openTester -- npx -y opentester-mcp-server
This registers OpenTester as an MCP server with Claude Code. Restart Claude Code
Close and reopen Claude Code to load the new MCP server.
Verify installation
In a Claude Code conversation, ask:@opentester list all tests
You should get a list of tests (or empty if this is your first time).
Usage
Generate a test
Describe what you want OpenTester to test:
@opentester Generate a test for logging in. Open the app, tap the login button,
enter credentials, and verify the dashboard appears.
OpenTester will create a test file in tests/e2e/.
Run a test
@opentester Run the login test
Validate tests
@opentester Validate all tests to ensure they pass
Claude Code can also help you write test documentation, update test files, and debug failures. Just mention OpenTester in your conversation.