Create a UI Test Script in Build Agent
Create test scripts for custom user interfaces using conversational interaction with Build Agent. UI Test Scripts expose elements of Testing Library and run as part of the Automated Test Framework (ATF).
Before you begin
- Build Agent is available in your ServiceNow Studio instance or IDE
- You have access to ATF and Testing Library capabilities
Role required: admin
About this task
UI Test Script enables agentic authoring through conversational interaction. Instead of manually writing test code, you describe your testing needs to Build Agent and it generates Testing Library code for you.
Procedure
Result
After you complete these steps, you have created a UI Test Script that:
- Uses Testing Library syntax to interact with and validate your custom UI
- Runs as an ATF step alongside other tests
- Produces pass/fail results with line-level detail showing which assertions succeeded or failed
- Can be refined further through conversational feedback with Build Agent
If the test fails, review the UI Test Script logs and screenshots to understand what went wrong, then use conversational feedback to update the test script.