Using the Execute Feature in Revyl

The Execute feature in Revyl allows you to create and manage end-to-end tests directly from the test editor page. Here’s a guide on how to use this feature effectively:

Starting and Stopping Device

  1. Start Device: To begin testing, you need to start a cloud device. This can be done by clicking the “Start Device” button in the test editor. This action initializes a virtual device where tests can be executed.
  1. Stop Device: Once testing is complete, or if you need to halt the testing process for any reason, you can stop the cloud device by clicking the “Stop Device” button. This helps in managing resources and costs effectively.

Creating Test Steps

  • Types of Steps: You can create various types of steps in your test, such as clicking buttons, entering text, or navigating through the application. Each step can be defined using simple commands or by recording actions directly on the cloud device.

Broad types

Instruction - Natural language instruction eg) Sign-in

  • step (str)

Validation - Natural language validation to test if a condition is true eg)Validation that we are on tests page

  • validation (str)

Extract - Parse data from the current state into a json structure

  • extraction (str)

Explicit action types to do a specific action

Click - Click on an element in the page

  • click (str)

Type - Input text to a text field in the page

  • type (str)

Scroll Down - Scroll down on the page

  • Optional (str) what component to scroll on

Scroll Up - Scroll up on the page

  • Optional (str) what component to scroll up on

Scrape - Scrape specific json data from the state

  • Pydantic model type that you would like

Swipe - Horizontal swiping

  • Optional (str) Component to swipe on

Selector - Choose a selector from the dropdown

  • (str) Choose a selector to choose from

Recording Steps: To record steps, use the “Start Recording” button. This allows you to perform actions on the cloud device, and each action will be automatically converted into a step in your test script.