Data Types in useMango™

The topics in this section describe the different data types available in useMango™. These data types allow you to store and manage various kinds of values and identifiers required for testing. The six types of data types supported are:

  1. Text - The Text data type is used to store plain text or strings, such as names, messages, or other textual information.

    Example: For instance, if you need to store the value of username, you can create a data type named Username with the value “John”.

  2. Web Identifier - The Web Identifier data type is used to store locators for web elements, helping you interact with buttons, text fields, and other webpage elements during tests.

    Example: To click a login button, you could create a data type named LoginButton with the value css=#login-button.

  3. Mobile Identifier - The Mobile Identifier data type helps you store locators for elements in mobile apps, such as buttons or icons.

    Example: For instance, to locate a search icon in your app, you can create a data type named SearchIcon with the locator value id=com.example.app:id/search_icon.

  4. Secret - The Secret data type is used to store sensitive information, such as passwords, ensuring the values are securely stored and hidden from view after being added.

    Example: For storing a password, you could create a data type named Password and securely store the value, such as 12345-abcde. This keeps it safe and hidden from others.

  5. Image Identifier - The Image identifier data type stores image snippet to locate elements based on their appearance.

    Example: To identify a Sign Up button, you could create a data type named SignUpButton that holds an image snippet of the button.

  6. Table - A Table data type stores tabular data, like a CSV file.

    Example: If you have user details in a CSV file, you could create a variable called UserDetailsTable to store that data.

Editing Data Types

In Case of Text, Secret, Web Identifiers, Mobile Identifiers

  1. Click on the value you wish to modify.
  2. Enter the new data.
  3. Press Tab or Enter to save the changes.

In Case of Image Identifiers

You can either snip a new image or upload an existing one:

Snip a New Image

  1. Click on the Snip an image icon.
  2. The useMango™ application will minimize, and a snipping tool will open. Use the tool to snip the desired image.
  3. The snipped image will be saved to the image identifier.

Upload an Existing Image

  1. Click on Upload an image icon.
  2. A file explorer will open.
  3. Select the desired image file.
  4. The selected image will be saved to the image identifier.
Fig: Snip a new image

Fig: Snip a new image

The maximum file size for image identifier and table is 200KB

In Case of Table Data Type:

  1. Click on the Add Table Data icon.
  2. A file explorer will open.
  3. Select the desired CSV file.
  4. Click Confirm to upload and save the table data.
Fig: Edit table data

Fig: Edit table data

Table headers cannot be multi-lined; only alphanumeric characters, spaces, hyphens, and underscores are allowed.