Skip to main content
Version: 1.0.1

Test scenario

What is a Test Scenario?​

A Test Scenario is a type of testing script that includes a detailed standard process for executing tests. A test scenario can include many test cases.

Functions in a Test Scenario

  • Low-code: Configure the test scenario
  • Edit metadata: Edit the metadata information of the test scenario
  • Delete: Delete the test scenario
  • Duplicate: Clone the test scenario
  • Run: Execute the test scenario
  • Import: Replace the configuration of the test scenario with the configuration of another test scenario using a JSON file.
  • Export: Download the JSON file of the test scenario
  • Move to directory: Move the test scenario to another directory

Creating a New Test Scenario​

image1.png

Step 1: On the SCENARIO tab screen, click the “NEW TEST” button, the system displays the metadata screen of the scenario.

alt text

Step 2: Enter all required and valid information for the fields, including:

General Information Tab This section contains general information about a test scenario.

Includes two parts:

  • Basic information of the script
  • Metadata configuration information
Field NameMandatoryFormatConstraintsDescription
Basic Information
CodeYesTextIf the user enters a code, it must be unique, at least 2 characters long, start with a letter, and only contain characters a-z (case insensitive), numbers, "_" and "-"This is the code used to identify the test script in the system.
If the code is left blank, the system will automatically generate it according to the structure T-stt, where stt is the sequence number of the test among the automatically coded test scripts of the Project.
NameYesTextboxThis is the name of the test script. Users should give a meaningful name related to the function/case being tested.
Directory-ButtonDisplays a list of directoriesThis is the directory containing the test script after it is created in the project. How to choose a directory
Label-ButtonSelect one or more labels that the user wants to attach. How to attach label
Description-TextareaThis is a detailed description of the test script to help project members understand the test being created.
Purpose-TextareaThis is the purpose of performing the test script.
Precondition-TextareaThis is the prerequisite condition that must be met before executing the test script.
Test steps-TextareaThese are the steps to be performed in the test script, serving as a reference for whether the execution flow matches the intended flow and purpose of the test.
Expected Result-TextareaThis is the expected outcome of the test script. For example, with a login case, the expected result is "Login successful."
Test data-TextareaThis is the input data for the test.
Configuration Information
TypeYesComboboxDisplays a list of test types, allowing the user to select one value:
+ Test case
+ Test suite
+ Test manual
+ Test suite
+ Api
+ JDBC
+ Shared steps
VersionYesComboboxDisplays a list of active versions of the testing projectAllows the user to select the version of the testing project. The test belongs to which version will select that version.
EnvironmentYesComboboxDisplays a list of active environments of the testing projectAllows the user to select the development environment of the project. The test belongs to which environment will select that environment.
ModuleYesComboboxDisplays a list of active modules of the testing projectAllows the user to select a module of the testing project. The test belongs to which module will select that module.
Test PriorityYesComboboxThe user selects one of three statuses to determine the priority level of the test scenario:
+ High
+ Medium
+ Low

Tab Client
Stores the Parameters to serve the execution of a test scenario.

Field NameMandatoryFormatConstraintsDescription
PlatformYesComboboxSelect the platform on which the test scenario is built. The system automatically creates a Platform for the Web platform.
NameYesTextThe name of the platform used for the test scenario. The system automatically creates the Name as “default_client.”

Tab Parameters
Stores the Parameters to serve the execution of a test scenario.

Field NameMandatoryFormatConstraintsDescription
Show description-Button-Allows the user to hide/show the “Description” field of a Parameter in the test scenario.
New parameter-Button-Allows the user to create a new Parameter for the test scenario.
Clear parameter-Button-Allows the user to delete all declared Parameters for the test scenario.
Data TypeYesCombobox-The data type of a parameter. The system defaults to “String” when creating a new parameter.
NameYesTextName must start with a letter, must include a number, and cannot contain special characters other than “_”The name of a parameter.
Description-Text-The description field of a parameter.

Tab Output
Stores the outputs containing parameters that are the outputs when executing a test scenario.

Field NameMandatoryFormatConstraintsDescription
New output-Button-Allows the user to create a new output for the test scenario.
Clear output-Button-Allows the user to delete all declared Parameters for the test scenario.
Data TypeButtonCombobox-Displays the data type of a parameter. The user can select one value. The system defaults to “String” when creating a new output.
NameButtonTextName must start with a letter, contain characters a-z (lowercase), numbers, and cannot contain special characters other than “_”The name of a parameter.

Step 3: Click “OK” to create the test scenario, the system displays the “Low-code” test scenario screen and notifies “Create successful”

alt text

At step 3, if the user does not want to continue creating the test scenario, click “CANCEL.”

Low code​

This is the function to configure the test scenario, building the algorithm to execute the steps in a test scenario.

To access the low-code test scenario screen, the user can do it in two ways:

Method 1: Click on the corresponding data row of the test scenario.

alt text

Method 2:

  • Step 1: Click button alt text corresponding to the test scenario to access.

alt text

  • Step 2: Select “Low-code” from the list of functions.

alt text

The system displays the Low-code screen.

alt text

Description of Information Fields

FunctionDescription
alt textName of the test scenario
alt textClick this icon to hide/show the list of keywords
alt textComment: This function allows users (including all users authorized to use the test scenario)
alt textSearch: This function allows users to search for keywords used in the test scenario
alt textDebug list action: This function allows users to debug the entire scenario or a group of keywords as desired, thereby checking the correctness of the logic and algorithm of the scenario before execution
alt textThis function allows users to switch from displaying detailed configuration of the scenario to flow and vice versa, helping reviewers to see the flows within the scenario (if any) without needing to view the entire configuration
alt textThis function allows users to switch to the metadata screen of the scenario from the low-code screen
alt textKeyword: Actions and control conditions that allow users to build the algorithm to execute the test steps of the scenario, divided into 6 types of keywords:
+ Client: The platform to execute
+ Action: Actions interacting with elements in the testing system
+ Control: Helps users control actions in test steps according to certain requirements
+ Variable: Helps users create and control variables
+ Operator: Conditions to perform controls
+ Assert: Helps users define expected outputs with specific conditions
+ File: Actions interacting with files in the testing system
+ Other: Other types that do not affect the execution of the steps of the scenario
alt textHistory: This function allows users to view the entire history of configuration edits of the test scenario, thus being able to reuse some commands that have been deleted/edited before
alt textPlay action: This function allows users to navigate the Agent browser by executing each action of the scenario, thereby checking the correctness of the action
alt textDisable/Enable: This function allows users to perform the operation of disabling/enabling whether the configuration line can be manipulated during the execution of the test scenario or not. The button affects all keywords in the system.
alt textCopy: This function allows users to copy a flow, group, control, action... within the same scenario or different scenarios (operations within the same tab of the browser) from any history version of that scenario.
alt textDuplicate: This function allows users to clone a keyword down to the position immediately below the selected keyword. Configuration information must be selected again. The button affects all keywords in the system.
alt textDelete: This function allows users to delete a flow, group, control, action… of the scenario
alt textRecord: At Keyword Group, the system supports users to create a line of low-code inside the group with the exact information the user has configured on the View Screenshot screen.
alt textAdd Multiple: At the Keyword Group, the system allows users to create multiple identical keywords with Locators used from a list in the Element Repository or Find Element.
The order of the created keywords follows the sequence in which the user selects the Elements.
alt textCollapse: This feature allows scenarios to be collapsed by flow, client, group, control, etc.
Expand: This feature enables users to display all actions and controls that were previously collapsed in the scenario.
alt textStart Debug: This feature begins the process where the QA platform controls the browser/device via the Agent.
alt textDisplays after Start Debug is activated, allowing users to stop the Agent browser and end the debugging process.
alt textView Screenshot
alt textSave as: This feature lets users save the current scenario as a new scenario while keeping the original scenario unchanged (a form of duplication).
alt textSave: Saves changes made to the scenario, including configuration and metadata.
alt textDelete: This feature allows users to delete an action/group by dragging the action/group and dropping it onto the Delete button.
alt textAfter copying an action/group, users can left-click on Drag to paste, hold the mouse, drag it to the desired position to insert the copied action/group, and release.
alt textBack: Click the Back button to return to the scenario library screen.

Edit Test Scenario​

Step 1: On the Test Scenario Library screen. Click button alt text of the test scenario want to edit information

Step 2: Click select “Edit metadata”

alt text

The system navigates to the Test Scenario Edit screen. The information fields are identical to those on the Add New screen, except that the Code field is not editable. alt text

Step 3: Proceed to enter the metadata information you want to modify for the test scenario. The information fields on the Edit Test Scenario screen are similar to those in the Creating a new test scenario section.

Additionally, add additional information fields Tab General information:

Metadata configuration information

Field NameMandatoryFormatConstraintsDescription
Tab General information
Thông tin cấu hình metadata
StatusYesComboboxAllows users to choose 1 of 3 values: Draft/ Active/ Review
Workflow StatusYesComboboxAllows users to choose 1 of 4 values: Draft/ Reject/ Active/ Review

Step 4: Click OK. Editing information for test scenarios is updated. The system displays a notification “Updated successful”.

Delete Test Scenario​

You can delete a test scenario through the Scenario Library screen, provided that the test scenario has not been run.


Step 1: At the Test Scenario Library screen. Click button alt text of the test scenario you want to delete

Step 2: Click on the button “Delete”

alt text

Display deletion confirmation popup

alt text

Step 3: Click “Delete”, test scenario will be deleted from the system.

Duplicate test scenarios​

Copy test scenarios from the scenario library. When copying a test scenario, all information, both configuration and description, is copied:

Step 1: Click the “image” button corresponding to the test scenario you want to duplicate and select “Duplicate”

alt text

Step 2: The information fields in the “Duplicate test scenario” screen are copied, referencing the information fields in the Creating a new test scenario.

alt text

Exceptions:

Basic information

Field NameMandatoryFormatConstraintsDescription
Tab General information
Basic information
CodeYesTextMust be unique and non-editable, start with a letter, have a minimum length of 2 characters, and not contain special characters except “” and “-”.For duplicated scenarios, the system automatically modifies the code to “copy_of” + the code of the original scenario used for duplication.
NameYesTextFor duplicated scenarios, the system automatically modifies the name to “copy_of_” + the name of the original scenario used for duplication. The user can edit this field.
ProjectYesComboboxDisplays a list of projects on the system that the user is part of. Scenarios can be duplicated across different projects. Only one value can be selected.
Workflow StatusYesComboboxAllows the user to select one of four values: Draft/ Reject/ Active/ Review

Step 3: Click “OK”

The test scenario is copied and displayed in the selected project's scenario library

Run Test Scenario​

How to execute test scenarios from scenario library:

Step 1: Click the “image” button at the test scenario you want to run, select it “Run”

alt text

Step 2: Proceed to enter information at the Run Test Scenario information screen

alt text

Description of Information Fields

Field NameMandatoryFormatConstraintsDescription
Functions button
Old data-ButtonThe function button will display the list of previous Runs again so that you can reuse the data set from the previous Run.
Choose File-ButtonThe function button displays the File Storage screen containing the data sets that have been uploaded to the system.
Upload Excel-ButtonThe function button helps users upload data sets that have been prepared using Excel files.
Download Excel-ButtonThe function button allows users to download a sample excel file containing the information fields needed to run the test scenario.
alt text-ButtonAdjust the display style of information fields in the screen horizontally or vertically.
alt text-ButtonAdjustment function button to hide/show platform information of the Run test scenario.
alt text-ButtonThe function button helps create one more test case data during the run.
alt text-ButtonFunction button helps delete test case data during run.
Information field information
ClientYesComboboxDisplays a list of Profiles declared in the Projects Setting function that match the Client of the test scenario. Only 1 value can be selected.
Test Run TypeYesComboboxAllows users to choose 1 of 2 values:
+ Parallel (Concurrent Testing)
+ Sequence (Sequence Testing).
Agent TypeYesComboboxSelect the type of Agent that will execute the test:
+ Public: The system will select active public agents on the system with the same settings as the selected profile
+ Private: The user's agent is executing the test test version
+ AnyAgent: The system will select any Agent with the same selected profile. Users are allowed to choose 1.
VersionYesComboboxDisplays a list of versions with active status of the project. Select the version of the system/application to be tested on which the test script will be executed. Allows selection of 01 value.
EnvironmentYesComboboxDisplays a list of environments with active status of the project. Is the product development environment where test scripts will be executed. Allows you to choose 01 value.
Test RunYesComboboxAllows users to choose 1 of 2 values for Agent information:
+ Draft
+ Complete.
After the Run test scenario is completed, the Run data according to “Draft” can be changed to “Complete” depending on the user's purpose, but vice versa is not allowed.
Schedule timeYesDateIs the time it will take to execute the test script. The system defaults to realtime, users can choose another time in the future to set the test execution schedule.
Test run description-TextDescription for the test run.
Test case-TextEnter the name of the test case.
Test Run Expected ResultYesComboboxAllows users to choose 1 of 2 test case result values ​​of Run Test Scenario:
+ Pass
+ Fail.
SeverityYesComboboxDisplays 05 levels of severity, allowing users to choose 1 value:
+ Critical
+ Major
+ Average
+ Minor (Low)
+ Trivial (Not necessarily an error and does not affect the user experience).
PriorityYesComboboxAllows users to choose 1 of 5 test scenario priority values:
+ Highest
+ High
+ Medium
+ Low
+ Lowest

Step 3: Click “RUN” After clicking the “Run” button, the system will redirect to the Runs screen. At the same time, the system automatically records the process of running the configured steps on the test system.

The execution result refers to the item Kết quả thực thi

Import Json File​

JSON is a data format that follows a specific set of rules and is readable by almost all programming languages, used for data transmission.

To edit or copy the configuration of a test scenario, besides duplicating, users can also import a JSON file into an already created test scenario.

Step 1: Click vào button alt text corresponding to the test scenario you want to upload, select “Import”

alt text

Step 2: Select the .json file you want to import, click Open. Notification system create successful.

alt text

Click on test scenario to import .json file, the screen displays the test scenario configuration updated according to the uploaded file, parameters are automatically updated.

Export Json File​

Click button alt text corresponding to the test scenario you want to upload, select “Export”.

alt text

The file is downloaded and displayed in the folder on the user's computer.

Move to Directory​

This is a function that allows users to move test scenarios from one library/directory to another.

Step 1: Click button alt text corresponding to the test scenario you want to move or select “Move to directory”.

alt text

Select “Move to directory” successful, the system will display a notification “Copy ... successful, choose a directory to move”.

Step 2

On the “SCENARIO” tab screen, click button alt text on the destination directory you want to move to to display a list of operations on that directory and select “Paste to directory”.

alt text

After that, the system displays a message on the screen: “Move “...” success”.

alt text