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 on the hamburger icon on the left.

Hamburger Menu Icon

2. Click on "Library".

Link to Library Menu Group

3. Navigate to the "UI Rules" page.

Link to Library Menu Group

4. Click on "New".

Link to UI Rule page

5. Enter the "Name" (optional) to easily identify the UI Prompt.

Name Input Field

6. Enter the "Prompt". This is the natural language instruction that will guide the Monkey Tester on how to navigate the app.

UI Prompt Input Field

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

Button to create the UI Prompt

The created UI Prompt will now be available in the list of UI Prompts. Created UI Prompt

The UI Prompt can be edited or deleted by clicking on the "Update" or "Delete" buttons respectively. Edit and Delete Buttons

Running a Scan with the UI Prompt

The UI Prompt can be used in a scan by selecting it from the list of available UI Prompts when running a scan.

1. When creating a new scan, select "Full Scan".

Full Scan Profile Selection

2. Continue with the steps until you reach "UI automation rules".

UI Automation Rules Selection Step

2. You can select and/or add new UI Prompts.

  • Select an existing UI Prompt from the list. Existing UI Automation Rules Selection
  • Add a new UI Prompt by clicking "+ UI PROMPT". It'll be automatically selected. Adding new UI Prompts

3. Click "Submit" to create the scan.

Submit button

When the scan is done, you can view the results in the scan page.

  1. Go to https://report.ostorlab.co/scan/list.

  2. Click on the scan you just created.

  3. Click on "Analysis" to see the Call Coverage. Scan Page Analysis Button

  4. You can see the results of the scan, including the UI Prompts used in the scan. Scan Call Coverage


Note

This guide provides 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.