Cursor’s AI assistant can help you generate, debug, and manage OpenTester test files directly in your editor.
Prerequisites
- Cursor editor installed and open on your project
- OpenTester CLI installed or configured in your project
- Android device or emulator connected
Setup
Open your project in Cursor
Make sure you have your Android project open in Cursor, with the test directory structure in place.
Configure OpenTester access
If OpenTester is not globally installed, add it to your project:npm install --save-dev opentester-mcp-server
Or add the OpenTester MCP server URL in Cursor’s settings. Start generating tests
Open a new test file or ask Cursor’s AI assistant:Create a test that opens my app, navigates to settings, and verifies
the user profile is displayed.
Workflow
Draft tests with AI
Use Cursor’s chat to describe the test flow, and it will generate the JSON structure for you.
Run and validate
In the integrated terminal:
opentester validate tests/e2e/your-test.json
Iterate with AI
Share test failures or logs with Cursor’s AI to get debugging suggestions and fixes.
Cursor can also help refactor test files, add new test cases, or explain existing test logic. Use your AI assistant to stay in flow.