Best Practices for TestNG and Selenium Testing in AIQ
Best Practices for TestNG and Selenium Testing in AIQ
Last reviewed: September 21, 2026
Use this page to maintain Selenium/TestNG projects that are executed through AIQ. Keep the framework deterministic, portable, and easy to diagnose.
When to use this guidance
- A Selenium/TestNG project is packaged for AIQ execution.
- Tests need data, environment, or browser parameters.
- Failures must be readable in AIQ reports and pipeline output.
Recommended approach
- Keep tests independent and avoid hidden ordering dependencies.
- Externalize environment URLs, credentials, and test data.
- Use explicit waits and stable locators rather than fixed sleeps.
- Package dependencies consistently and validate the artifact before uploading or executing in AIQ.
- Log meaningful assertions and screenshots so failures can be triaged quickly.
Note: For new scriptless functional coverage, prefer Scenario Editor where it fits the use case.
Last updated: September 21, 2026
If you have feedback on this topic, contact documentation@appvance.ai.