Project Setup
Last updated
Last updated
In the Project Setup, you'll discover a suite of powerful features tailored to enhance your Desktop testing experience
Global Variable: 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.
Database Configuration: 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 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.
Navigate to a previously created project or create new project by following the Project Creation documentation.
Click on 'Project Setup'.
Access the 'Global Variable' section from the left panel.
Click on 'New Variable' in the upper-right corner.
Fill out the required information in the form: variable name, variable type (custom, integer, decimal, etc.), and variable value.
Save your entries by clicking the save button.
Navigate to a previously created project.
Click on 'Project Setup'.
Access the 'Global Variable' section from the left panel.
Enter the "Environment Name" and click on "Create" button.
Navigate to a previously created project.
Click on 'Project Setup'.
Access the 'Global Variable' section from the left panel.
Select the "Environment" from which you want to clone the "Global Variables".
Click on Clone button.
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.
Click on "Clone" button.
Navigate to a previously created project.
Click on 'Project Setup'.
Access the 'Global Variable' section from the left panel.
Click on Edit Environment button.
Enter the "Environment Name" and click on "Edit" button.
Navigate to a previously created project.
Click on 'Project Setup'.
Access the 'Global Variable' section from the left panel.
Select the Environment from the dropdown to be deleted.
Click on Delete Environment button.
Note: Script must be created first
Navigate to an area where Test Scripts can be created (Test Repository, Sprints, or Test Lab).
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.
Access 'Global Variable', select the desired environment from the 'Select Environment' dropdown, and choose the desired 'Environment' from the list.
This will display all the global variables created for selected 'Environment'.
Visit an area where Test Scripts can be created (Test Repository, Sprints, or Test Lab).
Access a previously created Test Script. If a script hasn't been created yet, consult the Creating Scripts documentation.
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#.
After setting up all the steps, save your work in the upper-right corner.
Navigate to a project.
Click on 'Project Setup'.
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.
Custom: Define data as per your requirements.
UUID/GUID: Generates a universally unique identifier or globally unique identifier and assigns a random value during execution or you can add uuid manually.
FirstName: Generates random first names.
LastName: Generates random last names.
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.
Integer: Provide the minimum and maximum values so that the number generated is within that range.
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.
Date: Generates random dates.
BaseURL: Define URLs which are commonly used for testing.
PastDate: Generates random past date by specifying minimum year value and date format.
FutureDate: Generates random future date by specifying maximum year value and date format.
File: Can upload the commonly used file which can be used across the project
Password: Variable used to keep the commonly used password across the websites
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
Generate random past date by specifying the minimum year value and date format.
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:
Subtracts one year from the generated date.
Adds 10 months to the generated date from the previous step (after subtracting one year).
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:
Set up your database integration by executing the following configuration procedure:
Navigate to an existing project
Click 'Project Setup'
Select 'Database Configuration' from left panel
Click New Configuration
Enter required database details
Click Save Configuration
Saved configurations listed under Database Configuration tab
Options to "Edit" or "Delete" configurations available
Click on Create Environment button.
Generate random future date by specifying the maximum year value and date format. Modify Date Field