HomeLearning HubHow to Record and Use Variables in Robonito
Learning ResourceRecord and Use Variables

How to Record and Use Variables in Robonito

Learn how to record and use variables in Robonito to capture dynamic data and reuse it in your test cases with ease.

How to Record and Use Variables in Robonito

This tutorial will help you understand one of the most useful features in Robonito: how to record and use variables in Robonito test cases.

A variable is like a small container where you can store information while your test is running. This means you don’t need to type the same value again and again. For example, you can store a username, password, OTP, or any dynamically generated data.

During the test run, Robonito captures the value and reuses it later in the same test or in future steps. This makes your testing simpler, faster, and more organized.


Why Use a Variable in Robonito?

  • Capture dynamic data like OTPs, reference numbers, or order IDs
  • Reuse stored values across multiple test steps
  • Enable data-driven testing without hardcoding values
  • Connect actions across steps by passing values between them

Prerequisites – Let’s Get Ready

Before you start using Robonito, make sure everything is set up correctly. Completing these steps first will ensure a smooth testing experience.


Install Robonito

  1. Open your browser and go to https://robonito.com/
  2. Choose the download option for Windows or Mac
  3. Click Download and complete the installation

Robonito is now installed and ready to use.


Open Robonito and Log In

  1. Open Robonito from your system
  2. If you already have an account, enter your email and password
  3. If you are new:
    • Click Sign Up
    • Enter your email
    • Create a password
    • Follow the instructions to complete registration

Once logged in, you will see the Robonito Dashboard.


Create Your Workspace

  1. Click Create New from the top search bar
  2. Enter a workspace name (for example, HRM Employee Tests)
  3. Click Create

Your workspace is now ready. All test suites and test cases will be managed here.

Note: Before starting, review the Robonito getting-started documentation for a complete overview of the testing process.


Step 1: Creating a Test Case

A test case is a set of steps that Robonito follows during execution.

  1. Go to Test Explorer from the left panel

  2. Click the + icon to create a Test Suite

  3. Inside the suite, click Add Test Case

  4. Fill in the required details:

    • Name: TC-001
    • Type: Functional / Regression
    • Description: Purpose of the test
    • Status: Active or Draft
    • Assignee: Team member
    • Expected Outcome: Expected behavior
    • Browser: Execution browser
    • Target URL:
      [https://opensource-demo.orangehrmlive.com/web/index.php/auth/login](https://opensource-demo.orangehrmlive.com/web/index.php/auth/login)
  5. Click Create

Your test case is now ready for recording. add a test case


Step 2: Recording Actions on the Website

Recording tells Robonito what actions to repeat later.

Test Case Details

  1. Open Test Case Details
  2. Click Record from the top-right corner
  3. You will be redirected to the Robonito Recorder
  4. Click Start Recording

start recording

A new browser window opens with your target URL. Perform the actions normally—Robonito captures every click and input automatically.

Test Case Details


Step 3: Capture Dynamic Data Using Record Variables

Some values change every time a test runs, such as Employee ID in Orange HRM. Robonito allows you to capture these values using Record Variables.

This eliminates manual typing and allows seamless reuse of dynamic data.


Example Scenario: Adding a New Employee

  1. Log in to the Orange HRM application
  2. Navigate to PIM from the sidebar

PIM

  1. Click Add Employee

robonito intelligent ai features

  1. Enter details:
    • Employee Name: John Clair
    • Employee ID: System-generated or custom

employee details

  1. Click Save

Step 3a: Recording the Employee ID

  1. Go to Employee List
  2. Click the Automation Tool icon (top-right)
  3. Select Record Variable
  4. Click on the Employee ID field
  5. A console appears showing the value
  6. Enter a Key Name (e.g., Employee-ID)

use record variable

  1. Click Save

Robonito now stores the Employee ID automatically.


Step 3b: Recording the Employee Name

  1. Click Record Variable again
  2. Select the Employee Name field
  3. Enter a key name (e.g., Employee-Name)
  4. Click Save

record-variable Both values are now stored as variables.


Step 3c: Using the Recorded Variables

  1. Go to Employee List

robonito10.webp

  1. Click the Automation Tool

robonito11.webp

  1. Select Use Variable
  2. Choose Employee-ID or Employee-Name

robonito12.webp

  1. Click Pick Variable

robonito13.webp

Robonito auto-fills the value in the search field.

Click Search to see the employee details instantly—no typing required.

robonito14.webp


Step 3d: Save Your Test

After completing all actions and variable usage, click Save.
This ensures Robonito remembers all steps and dynamic values.


Step 4: Add Random ID Generation

  1. Save the test and open the recorded steps console
  2. Find the step where Employee ID is entered
  3. Click Edit

robonito15.webp

  1. Open the Data section
  2. Enable Use Random Generation
  3. Select Number as generation mode
  4. Click Save Changes

robonito16.webp

Robonito will now generate a new Employee ID every time the test runs.


Step 5: Running the Test

  1. Click Execute
  2. Choose Run in Local
  3. Click Execute again

robonito17.webp

Robonito replays all recorded steps automatically.


Step 6: Test Report and Analytics

After execution, Robonito provides a detailed test report:

  • Step-by-step execution status
  • Pass/fail results
  • Execution time
  • Overall test summary

Robonito18.webp

This makes debugging and optimization easy.


Try It Yourself on Robonito

Recording and using variables in Robonito saves time, improves accuracy, and simplifies automation. Sign up on Robonito today and make your test automation smarter and faster.