Coinx E2E Test Automation Suite
Overview
During my internship at PT Darmawan Aryansyah Teknologi (DAT), I built an automated end-to-end regression test suite for Coinx, a crypto asset exchange platform. Previously, regression testing relied on manual step-by-step execution and manual screenshot capture, which was slow and hard to compare across iterations.
The suite automates 33 positive and negative scenarios derived from the Software Integration Testing (SIT) documentation on the staging environment, covering bank account management, IDR deposits and withdrawals, and crypto asset deposit and withdrawal flows (USDT, ETH, BTC). Interactive flows requiring human judgment, such as KYC verification and live trading, were intentionally excluded.
Architecture & Key Features
- Page Object Model (POM): Separated scenario logic from UI selectors and page actions across dedicated page classes, making UI updates easy to maintain in a single place.
- Resilient Locator Strategy: Built a
SmartLocatorabstraction with multi-strategy fallbacks (ID, CSS selector, XPath) paired with an LLM-assisted self-healing advisor (using Google Gemini) when all fallback locators fail due to UI changes. - Automated Auth & Bot Protection Handling: Handled staging protections cleanly without manual intervention—using SeleniumBase UC Mode for browser automation, API-based login with JWT cookie injection to bypass login captchas, and
pyotpfor automated 6-digit TOTP 2FA generation. - Payment Gateway Simulation: Integrated a payment API helper to simulate fiat gateway callbacks during deposit flows instead of relying on manual actions.
- Traceable Execution Evidence: Built a
ScreenshotManagerthat captures sequentially numbered screenshots at every critical step alongside structured execution logs and terminal summaries.
Results
Running the full suite against the staging environment achieved a 79% pass rate (26 passed, 4 failed, 3 expected failures), with all negative validation scenarios verified. Analyzing the failures highlighted an important distinction between test-script/gateway-simulation gaps and actual staging application errors, providing actionable feedback for the development team.
Tech Stack
- Python 3.14 & uv — runtime and dependency management
- pytest — test runner, fixtures, and markers (
xfail) - Selenium & SeleniumBase (UC Mode) — browser automation
- pyotp — automated TOTP 2FA code generation
- Google Gemini API — self-healing selector suggestions