Desktop Testing
Documentation Home
  • About
  • Getting-Started
    • Overview 📡
    • Analyze
      • Mind Maps
      • Reports
      • Sprint Reports
      • Mind Map Using Tags
      • Test Lab Reports
    • Build
      • Test Repository
      • module-operation
      • Parameterization
      • Project Setup
      • Test Scripts
      • Maintaining the Script
      • Test Steps
    • Maintain
      • Shared Tests
    • Project-Creation
      • Project Creation🏗️
      • Quick Run🏁
    • QB-Installation-And-Node-Registration
      • QB Installation And Node Registration
    • Run
      • Sprints
      • Test Lab
  • User-Actions
    • SAP User Actions
    • Windows User Actions
  • Advanced Features
    • Advanced SAP User Actions
    • Importing VB Scripts
    • QSpy and Recorder
    • Execute Test Case User Action Documentation
    • import-export-script
    • Shared Tests
    • TDM and Parameterization
  • FAQs
    • FAQs
  • Downloads
    • files
      • SAP Virtual Keys
Powered by GitBook
On this page
  • Global Variables
  • Creating Global Variables
  • Creating the Environment
  • Cloning the Environment Variable
  • Editing the Environment Name
  • Deleting the Environment
  • Viewing Global Variables
  • Using Global Variables
  • Editing and Deleting Global Variables
  • Type of Variables and their usage:
  • Date:
  • PASTDATE:
  • FUTUREDATE
  • Database Configuration
  1. Getting-Started
  2. Build

Project Setup

Last updated 5 months ago

In the Project Setup, you'll discover a suite of powerful features tailored to enhance your Desktop testing experience

  • Harness the power of Global Variables to centralize and manage commonly used data across test cases.You can create the Global variables in the Project and use them across the Test Scripts, Easily reference and update values in Test Steps, enhancing flexibility and maintainability.

  • Integrate database systems directly into test workflows using Execute Query to dynamically fetch and leverage database data.

Unleash the potential of these features within Project Setup to optimize your web testing endeavors, streamline workflows, and elevate the quality of your testing efforts."

Global Variables

Global variables provide an efficient approach to simplify the test maintenance. By creating multiple "Environments" you can manage distinct global variables,These variables are accessible across all Test Scripts within the project. They are especially valuable for reusing a value across multiple tests and generating synthetic data when necessary.

Creating Global Variables

  1. Navigate to a previously created project or create new project by following the documentation.

  2. Click on 'Project Setup'.

  3. Access the 'Global Variable' section from the left panel.

  4. Click on 'New Variable' in the upper-right corner.

  5. Fill out the required information in the form: variable name, variable type (custom, integer, decimal, etc.), and variable value.

  6. Save your entries by clicking the save button.

Creating the Environment

  1. Navigate to a previously created project.

  2. Click on 'Project Setup'.

  3. Access the 'Global Variable' section from the left panel.

  4. Enter the "Environment Name" and click on "Create" button.

Cloning the Environment Variable

  1. Navigate to a previously created project.

  2. Click on 'Project Setup'.

  3. Access the 'Global Variable' section from the left panel.

  4. Select the "Environment" from which you want to clone the "Global Variables".

  5. Click on Clone button.

  6. Select the "Environment" from the dropdown to which you want to clone the "Global Variables".

    Note: Existing variables of the environment will be replaced with the variables of selected environment if it has same name.

  7. Click on "Clone" button.

Editing the Environment Name

  1. Navigate to a previously created project.

  2. Click on 'Project Setup'.

  3. Access the 'Global Variable' section from the left panel.

  4. Click on Edit Environment button.

  5. Enter the "Environment Name" and click on "Edit" button.

Deleting the Environment

  1. Navigate to a previously created project.

  2. Click on 'Project Setup'.

  3. Access the 'Global Variable' section from the left panel.

  4. Select the Environment from the dropdown to be deleted.

  5. Click on Delete Environment button.

Viewing Global Variables

Note: Script must be created first

  1. Navigate to an area where Test Scripts can be created (Test Repository, Sprints, or Test Lab).

  2. Enter a previously created Test Script. On the right side, you'll find a blue panel. Click on the right arrow to reveal the 'Global Variable' tab.

  3. Access 'Global Variable', select the desired environment from the 'Select Environment' dropdown, and choose the desired 'Environment' from the list.

  4. This will display all the global variables created for selected 'Environment'.

Using Global Variables

  1. Visit an area where Test Scripts can be created (Test Repository, Sprints, or Test Lab).

  2. Click 'Add Step' and begin crafting the steps. This is where global variables come into play. Remember to enclose the variable name with a '#' sign before and after it. Example: #Name# and #Data#.

  3. After setting up all the steps, save your work in the upper-right corner.

Editing and Deleting Global Variables

  1. Navigate to a project.

  2. Click on 'Project Setup'.

  3. On the far-right side of the global variable table, icons for editing and deleting are present. Click on these icons to perform the desired action.

Type of Variables and their usage:

  1. Custom: Define data as per your requirements.

  2. UUID/GUID: Generates a universally unique identifier or globally unique identifier and assigns a random value during execution or you can add uuid manually.

  3. FirstName: Generates random first names.

  4. LastName: Generates random last names.

  5. Email: The email can be entered or a random one generated. The format for a random email is ???????##@gmail.com, where '?' represents a random letter and '#' a random number.

  6. Integer: Provide the minimum and maximum values so that the number generated is within that range.

  7. Decimal: For decimal type, provide the decimal point number with min and max so that the number generated will have decimal numbers up-to the number provided.

  8. BaseURL: Define URLs which are commonly used for testing.

  9. File: Can upload the commonly used file which can be used across the project

  10. Password: Variable used to keep the commonly used password across the websites

Date:

Specify the desired date and time format for generation. The default date format is dd-MM-yyyy. Please note: (MM - months, mm - minutes). For instance, if you provide the format yyyy-MM-dd HH:mm:ss, the generated date could be something like 2020/01/16 03:25:12.

Formats

Examples

dd-MM-yyyy / MM-dd-yyyy

25-06-2020 / 06-25-2020

dd-MM-yyyy HH:mm:ss

25-06-2020 06:07:59

dd MMMM yyyy

06 July 2020


PASTDATE:

Generate random past date by specifying the minimum year value and date format.

FUTUREDATE

The "Modify Date" field is employed to adjust the current date generated based on the specified format. For instance, if the entered format is dd-MM-yyyy, the previous approach allowed generating the current date as per the format. However, with the "Modify Date" field, you can make modifications by increasing the number of months, days, or years.

Format for Input: -/+ (date)/ -/+ (month)/ -/+ (year)

Example:

  • Date Format: dd-MM-yyyy

  • Modify Date: +1/+10/-1

Explanation: The value in the "Modify Date" field will be applied to the current date generated, picking values from right to left (year first), and sequentially modifying the generated date.

Therefore, the final date sequence would be:

  1. Subtracts one year from the generated date.

  2. Adds 10 months to the generated date from the previous step (after subtracting one year).

  3. Adds 1 day to the generated date from the previous step (after subtracting one year and adding 10 months).

Priority is given to year, followed by months, and then days.

Example:

  • Format: dd-MM-yyyy

  • Date Generated: 08/09/1997

  • Modify Date: +1/+2/-2

  • Final Date Value Generated: 09/11/1995

In scenarios where the generated value is one less than the next month/year value, modifying to increase days/months can cascade to affect the rest of the date. For instance, if the generated date is 09/12/2021 and you add +1 to months, the year changes to the next year (09/01/2022). Similar logic applies to date modification, such as 31/12/2021 changing to 01/01/2022 with +1 added to the day.

If you don't want to modify any value, you can leave the field blank. If you want to modify only one date component, you can provide the rest of the fields with '0'. For example, 0/+1/0 for only the month or -10/0/+1 for only the year and day.

Sample report for Global variables used during execution:

Database Configuration

Set up your database integration by executing the following configuration procedure:

  1. Navigate to an existing project

  2. Click 'Project Setup'

  3. Select 'Database Configuration' from left panel

  4. Click New Configuration

  5. Enter required database details

  6. Click Save Configuration

Configuration Management:

  • Saved configurations listed under Database Configuration tab

  • Options to "Edit" or "Delete" configurations available

Click on Create Environment button.

Access a previously created Test Script. If a script hasn't been created yet, consult the documentation.

: Generates random dates.

: Generates random past date by specifying minimum year value and date format.

: Generates random future date by specifying maximum year value and date format.

Generate random future date by specifying the maximum year value and date format. Modify Date Field

Creating Scripts
Date
PastDate
FutureDate
Project Creation
Global Variable:
Database Configuration:
global-environments-and-variables 1
Create Environment2
Clone Environment1
Clone Environment2
Clone Environment3
Edit Environment1
Edit Environment2
Edit Environment3
Delete Environment1
Delete Environment2
View Global variable 1
Use Global variable 2
Edit Global variable 2
Modify date
Reports
Database Configuration