Skip to content

UI Prompts

UI prompts are a powerful feature that allows you to use natural language to tell the Monkey Tester how to navigate the app. The AI Monkey Tester leverages generative models to reason about test scenarios, allowing it to handle complex multistep actions such as account creation, item purchasing, and questionnaire completion.

Some of the benefits of the UI Prompts are:

  • Intuitive Test Creation: Testers can express their intentions naturally, without requiring deep technical knowledge.
  • Semantic Understanding: The AI system comprehends the intent behind test descriptions, enabling it to adapt to UI changes while maintaining the core testing objective.
  • Reduced Technical Barrier: Teams can involve domain experts who understand the application's business logic but may lack programming expertise in the testing process.

This guide will walk you through the process of running a scan using the UI prompts.

Creating a UI Prompt

1. Click the menu icon on the left of the top bar.

Menu Icon

2. Click "Policies & Automation".

Policies & Automation Menu Group

3. Click "UI Rules".

UI Rules menu item

The "UI Automation Rules" page lists the UI Prompts of your organization.

4. Click "New Rule".

New Rule button

5. Enter a "Name" (optional) and write the prompt.

In the "New UI Prompt" dialog, the name helps you identify the UI Prompt later. The prompt is the natural language instruction that guides the Monkey Tester through the app. Markdown is supported: use "Preview" to check how it renders.

Name and Prompt Fields

6. Click "Create Prompt" to save the UI Prompt.

Button to create the UI Prompt

The created UI Prompt is now listed on the "UI Automation Rules" page. Use the icons in the "Actions" column to edit or delete it. Created UI Prompt

Running a Scan with the UI Prompt

The UI Prompt can be used in a scan by selecting it in the "Prompts" step when creating the scan.

1. Create a scan with the "Full Scan" profile.

Click "New Scan" in the top bar, select the application, and select "Full Scan" as the scan profile.

Full Scan Profile Selection

2. Select the UI Prompts to use.

Click "Continue" until you reach the "Prompts" step, then select the UI Prompts with their checkboxes.

To write a new UI Prompt for this scan, click "+ UI Prompt": it is selected automatically. Select UI Prompts

3. Click "Start scan" in the summary panel on the right to create the scan.

Start scan button

When the scan is done, open it from "Scans" in the top bar. Its "Call Coverage" shows the screens the scan reached and replays each step, with the instruction it followed and the outcome. See Check Call Coverage. Scan Call Coverage

This guide provided a comprehensive overview of how to create and use UI Prompts in Ostorlab scans. By following these steps, you can enhance the coverage and effectiveness of your scans, leveraging the power of natural language instructions to guide the Monkey Tester in navigating your application.