Skip to main content
Version: 1.0.1

Configure Test API - Low code

Low-code: is the function to configure API, build servers, endpoints, schemas to perform steps in an API Test.

To access the Low-code test API screen, users can do it in two ways:

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

    alt text

  • Method 2:

    • Step 1: Click the button “⋮” corresponding to test scenario you need to access

    alt text

    • Step 2: Select “Low-code” in the function list

    alt text

    Low-code screen display system

    alt text

    alt text

Functions in low-code screens

FunctionDescription
alt textCreate a new Server
alt textCreate a new Endpoint
alt textCreate a new Schema
alt text1. List of servers
2. List of Enpoints
3. List of Schemas Click button alt text to create a new corresponding function
alt textSearch: The function allows users to search for Enpoints or Schemas by name
alt textFunction that allows users to switch to the test api metadata screen from the low-code screen
alt textBack: Click the “Back” button to return to the scenario library screen

Servers​

  • Servers are created for statistical purposes, storing servers, strings containing the domain name of the URL that will make API calls.
  • At the Low code API Explorer, Servers in Low-code do not have the configuration function for calling requests through but will be declared when making API test calls in test cases, test scenarios or test suites.

Add new servers

Step 1: In the Low-code screen, click “New server” or button alt text to create a new server

alt text

Step 2: The system displays the screen to add a new server, the user enters and clicks “Save”

alt text

Successfully added, the system notifies “Update successful” and displays the declared server in the list of servers

Edit server

Step 1: At the Low-code screen of the API test, the user selects the server data line he wants to change.

alt text

Step 2: Edit the information that needs to be changed and click “Save”

alt text

The system displays a notification of successful editing and displays the edited server in the list of servers.

Delete Servers

Step 1: At the Low-code screen of the API test, the user clicks the “⋮” button on the server data line they want to delete and selects Delete.

alt text

The system displays a deletion confirmation popup

alt text

Step 2: Click “Delete”, notification system Delete successful

Endpoints​

Endpoints are created to configure information related to an API call via HTTP Request

Add new Endpoints​

Step 1: In the Low-code screen, click “New Endpoint” or button alt text to create a new endpoint.

alt text

Step 2: The system displays the screen to add a new endpoint, the user proceeds to enter the necessary information.

alt text

In there:

Field NameMandatoryFormatConstraintsDescription
HTTP MethodYesComboBoxHTTP methods: are the actions that testers perform when accessing the API:
+ Get: retrieves data from the server
+ POST: adds data to an existing file or resource in a server
+ PUT: replaces an existing file or resource of a server
+ DELETE: Removes data from the server
+ Patch: updates requested data fields
PathYesTextPath to the location where the HTTP method is executed
NameYesTextName of the request endpoint
Summary-TextMnemonic name of the API
Operation id-TextAPI format
Description-TextDescription for the API

Param

Managing params on the system is used to map with params in API requests at the Header, Request, Response tab

alt text

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonClick button to create a new parameter
NameYesTextParameter name
DataTypeYesComboboxData type of parameter. The default system when creating a new one is "String"
Description-TextDescription of the parameter

Header

Allows users to pass Header to the API

alt text

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonClick the button to create a new header parameter. When clicking the button, Header Property screen to create Value for Header Refers to the item Header
NameYesTextHeader name
ValueYesAutoCompleteAfter “Save” in the Header Property screen, the value/name depending on the type of variable used by the user will be the value of this header paramater.
Description-TextDescription of the header

Request

Allows users to pass Requests to the API

alt text

Field NameMandatoryFormatConstraintsDescription
Request-TabApi request information refers to the item Request API

Response

Allows users to configure response for API

alt text

Field NameMandatoryFormatConstraintsDescription
Response-TabApi response information refers to the item Response API
alt text-ButtonClick the button and the system validates the information. If successful, the api is saved and displays the message "Update sucessful", the Endpoints information is displayed on the Endpoints list.
alt text-ButtonClick the button to cancel the API creating operation the system resets the form and returns to the API library screen

Successfully added, the system notifies "Update successful" and displays the declared server

The API header is like an additional source of information for each API call a tester makes, representing the meta-data associated with the API Request and Response

Headers help users track any potential issues, providing information about:

  • Request and Response Body
  • Request Authorization
  • Response Caching
  • Response Cookie

Create Header for API:

Step 1: On the Header tab, click the “Add” button, the system displays the Header properties screen of the Header

alt text

Step 2: Completely and validly enter required information fields, including:

Field NameBắt buộcĐịnh dạngRàng buộcMô tả
NameCóTextTên của Header
Type alt textYesCác kiểu giá trị của tham số Header. Có thể chọn 1 trong các tab phù hợp với mục đích sử dụng
Data typeCóComboboxKiểu dữ liệu
NameCóTextChỉ hiển thị khi type khác “Value”. Giá trị phải bắt đầu bằng 1 chữ cái, bắt buộc bao gồm chữ số và không được sử dụng kí tự đặc biệt (ngoại trừ “_”)Tên của tham số đã được khai báo trong project hoặc tên của biến (Variable)
ValueCóTextChỉ hiển thị khi type = “Value”Nhập giá trị trực tiếp của tham số Header
Find Value-ButtonChỉ hiển thị khi type = “Value”Click vào Find Value hệ thống sẽ hiển thị danh sách các giá trị đã được định nghĩa trước đó của dự án
Find Variable-ButtonNếu Type là VariableClick vào Find Variable hệ thống sẽ hiển thị danh sách các tham số đã được định nghĩa trước đó của dự án

Step 3: Click “Save” notification system “Update successful”

Request API​

Request API includes all input data to an API on the API's Request tab.

alt text

In there:

Note: If the params/variables used in the API are initialized using system params, the system parameters can be initialized in the Param tab of Enpoints and mapped to the params/variables in an API request. If you do not map, the system will automatically create new parameters.

Description of the information field

Query Params list

Manage params passed on the URL path according to the "key-value" value corresponding to the "name-value"

alt text

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonAdd 1 new query params. Clicking on the system button will display the “Query Params property” screen.
alt text-ButtonClick to delete a query params
alt text-ButtonClick to edit a query params. Edited information is similar to newly added information
alt text-ButtonMove positions between params (can be of different param types if)
NameYesTextName query param
ValueYesAutoCompleteIf making a new addition, the value is requiredThe Value value is determined when the user clicks the “Save” button in the “Query Params property” screen after completing the operation of adding or editing the query param. The operation of adding or editing is similar to Header. Reference to section Header

Path params list

Manage path params passed on URL paths by value url/{path-param}

alt text

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonAdd new path params. Clicking on the system button will display the “Path Params property”
alt text-ButtonClick to delete a path params
alt text-ButtonClick to edit a path params. Edited information is similar to newly added information
alt text-ButtonMove positions between params (may be of different types of params)
NameYesTextPath param name
ValueYesAutoCompleteIf making a new addition, the value is requiredThe Value value is determined when the user clicks the “Save” button in the “Path Params property” screen after completing the operation of adding or editing path params. The operation of adding or editing is similar to Header. Reference to section Header

Body list

Includes 5 types of request Type:

  • None
  • Multipart-form
  • Application json
  • Application xml
  • Raw

alt text

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonAdd a new API body request. Click the button and the system will display the "Add a request" screen.
alt text-ButtonDelete an API body request

Add a request Click the Add button on the Request tab interface

alt text

Field NameMandatoryFormatConstraintsDescription
NameYesTextName of request body
Request TypeYesComboboxRequires users to choose 1 of 5 request Type depending on the intended use. Once added, changes can be made. Note: Each API can create multiple request bodies, but each type can only be created once in an API.

Note: Each API can create multiple request contents, but each type can only be created once in an API.

Body request type: None

Request Type None will determine that the API Request does not use body parameters.

Note: If the API does not use a request body, it is not necessary to create a request body with type None.

Body request type: Multipart-form

Request Type Multipart-form will determine which API Request to use if the API has a File upload action.

alt text

Description of the information field

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonClick to add a new params in the multipart-form
alt text-ButtonClick to delete a new params in the multipart-form
alt text-ButtonClick to edit a new params in the multipart-form
TypeYesAutoCompleteType of 1 params in multipart-form, representing 1 of 2 values: + Data + File
NameYesTextParam name
ValueYesAutoCompleteIf making a new addition, the value is requiredThe Value is determined when the user clicks the “Save” button in the “Params property” screen after completing the operation of adding or editing params.

Create Multipart-Form request for API:

Step 1: On the Multipart-form, click button alt text

alt text

Step 2: Completely and validly enter required information fields, including:

alt text

Field NameMandatoryFormatConstraintsDescription
TypeYesComboboxIn multi-part form type, the user chooses 1 of 2: + Data + File
NameYesTextName of Header
Type alt textYesValue types of the Header parameter. You can choose one of the tabs that suits your intended use
Data typeYesComboboxData type
NameYesTextOnly displayed when the type is different from “Value”. Value must start with a letter, must include numbers and cannot use special characters (except “_”).The name of the parameter declared in the project or the name of the variable (Variable)
ValueYesTextOnly displayed when type = “Value”Enter the value of the Header parameter directly
Find Value-ButtonOnly displayed when type = “Value”Click on Find Value, the system will display a list of previously defined project values
Find Variable-ButtonIf Type is VariableClick on Find Variable, the system will display a list of previously defined project parameters
Data typeYesComboboxData type of multipart-form. In addition to the data types for regular data, additional data types for File:
+ File
+ Elements
+ Repository Element
+ Password
+ Null
+ Empty String
+ RandomValue
+ Json
+ Excel Workbook
+ Excel Sheet
+ Excel Row
+ Excel Cell
+ Match Result
+ Schema

Step 3: Click “Save”

Step 4: Click “OK”

Body request type: Application json

The screen request body type is Application json

alt text

Field NameMandatoryFormatConstaintsDescription
alt text-LabelIndicates that the parameter used will be the original parameter of the request
alt text-ComboboxPerform data type selection for json params. In addition to the usual primitive data types, you can also choose the following data types: + Object + Schema
alt text-Checked ButtonIf button checked alt text : Determines the data on the parameter in that json becomes a List. For example: If the data type of the variable is “String” it is selected as a list. The Type data entered for this variable must be a List
alt text-TextThe name will be used in the request to test the api. If the request is application json, "json name" will be used. If the request is application xml, "Json xml" will be used.
alt text-ButtonClick on the button and the system displays the screen “XML AND JSON OPTIONS”
alt text-ButtonButton only appears on parameters with data type “Object”.Clicking on the image button, the system will create an additional parameter in Object
alt text-ButtonThe original parameter has the data type “Object”.Click on the image button, the system will create an additional parameter in Object
alt text-ButtonButton only appears on parameters located in parameters with data type “Object” or parameters with data type "Schema".Click on the image button, the system displays the “Variable Path” screen
alt text-ButtonButton only appears on parameters within parameters with data type “Object”
Name-TextThe original parameter has data type “Object”Name of parameter on the system 1 parameter or variable has been declared on the system

Note: The data fields “name” and “jsonName” are different:

  • name is the parameter name used in the system to configure the value for the json parameter and will not be used to configure the request body for the API
  • jsonName is the name of the parameter in the API request body.

Schema data supports testing APIs with nested Object data types. In such cases, the parent parameter will have the Object data type and the child parameter will have the Schema data type.

Field Config Function

Press the alt text button then select “Field Config”. The system will display the “XML AND JSON OPTIONS” screen.

alt text

In there

Field NameMandatoryFormatConstraintsDescription
Description-Text-Description of the json parameter
alt text-Switch Button-Is a button to control wheter the parameter being declared is used in the api request body or not.
Name-Text-The name will be used in the request to test the api

VariablePath Config

Press the alt text button the select “VariablePath Config”. The system will display the “Variable path”.

alt text

Trong đó

Field NameMandatoryFormatConstraintsDescription
Type alt textYesPossible values for Header parameter types
Data typeYesCombobox-Data type
NameYesTextOnly displayed when the type is different from "Value". Value must start with a letter, must include numbers and cannot use special characters (except "_")The name of the parameter declared in the project or the name of the variable (Variable)
ValueYesTextOnly visible when Type = “Value”Enter the value directly for the Header parameter
Find Value-ButtonOnly visible when Type = “Value”Click Find Value, the system will display a list of previously defined values of the project
Find Variable-ButtonIf Type is VariableClick on Find Variable, the system will display a list of previously defined project parameters

Body request type: Application xml

Similar functions request type is Application json instead of using jsonName, we will use xmlName

Besides

Field Config Function

Press button alt text then choose “Field Config”. The system will display the screen “XML AND JSON OPTIONS”.

alt text

In there

Field NameMandatoryFormatConstaintsDesciption
Description-Text-Description of the json parameter
alt text-Switch Button-Is a button to control whether the parameter being declared is used in the api request body or not.
alt text-Switch Button
Name-Text-The name the user gives to the parameter that identifies the element in the XML document
Tag Prefix-Text-Tag prefix is used to distinguish XML elements from each other.
Namespace-Text-Namespace is used to distinguish XML elements from each other.

Body request type : Raw

Request Type Raw will determine whether the API Request is used if the API used is of type "json" or "xml" but will not be processed before creating the api request.

alt text

In there

Field NameMandatoryFormatConstraintsDescription
Body data-TextareaIs the body data in the api request

Response API​

API response is the API response data after processing an API request.

alt text

Create Response for API:

Step 1: On the Response tab, click button “Add”, the system displays the “Add a response”

alt text

Step 2: Completely and validly enter required information fields, including:

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonConfirm the creation of a new Api response
alt text-ButtonCancel creating a new Api response
NameYesTextThe name of the Api Response stored in the system
HTTP Status CodeYesComboboxUsers can select specific http status codes or can select “Any” so the system will automatically identify them.
Content TypeYesComboboxUsers can select specific data types or can select "Any" so the system will automatically identify them.

Step 3: Click “OK”
Added successfully, the newly created response information is displayed on the screen.

alt text

Content Type includes 4 data types:

  • Any
  • Application json
  • Text xml
  • Application xml

The steps to configure the returned data information are similar to configuring a request with request type: Application json and Application xml. Reference to Request API section.

Edit Endpoints​

Step 1: At the Low-code screen of the API test, the user selects the Endpoint data line they want to change.

alt text

Step 2: Edit the information “Save”

alt text

The system displays a notification of successful editing and displays the edited Endpoint in the Endpoints list.

Delete Endpoint​

Step 1: At the Low-code screen of the API test, the user clicks the button alt text on the Enpoint data line you want to delete and select Delete.

alt text

The system displays a deletion confirmation popup.

alt text

Step 2: Click “Delete”, notification system Delete successful

Duplicate Endpoint​

Step 1: At the Low-code screen of the API test, the user clicks the button alt text on the Endpoint data line you want to delete and select Duplicate.

alt text

The system displays the Endpoint screen that has been successfully duplicated with full information of Url, Param, Header, Request, Response along with Name = name of the duplicated endpoint + "_copy"

alt text

Step 2: Click “Save”, the system notifies Update successful, the Endpoints list is updated to describe the information field whose Endpoint has been successfully Duplicated.

Schemas​

Schemas are created to support the management of parameters with data type "Object" in the Endpoints section.

Add new Schemas

Step 1: In the Low-code screen, click “New Schema” or button alt text to create a new endpoint.

alt text

Step 2: The system displays the new schema adding screen, the user proceeds to enter the necessary information.

alt text

Field NameMandatoryFormatConstraintsDescription
alt text-ButtonClick the button to add a data field in a schema
alt text-ButtonClick on the system button to display the screen “XML AND JSON OPTIONS”.
alt textYesTextName of Schema
NameYesTextThe name of the data field in the schema.
Data TypeYesComboboxData type of a data field. When creating a new parameter, the system defaults to "String". In addition to normal data types, it is possible to create a Schema data field in a Schema.
XmlYesTextThe name will be used in the request to test the request is application xml.
JsonYesTextThe name will be used in the request to test the api if the request is application json.
alt text-Checked ButtonIf button checked image: Determines the data on the parameter in that json becomes a list. For example: If the data Type of the variable is "String", it is selected as a list. The Type data entered for this variable must be a List

Successfully added, the system notifies “Update successful” and displays the declared schema in the Schemas list.

Field Config

Click the button “img” then select “Field Config” the system displays the screen “XML AND JSON OPTIONS”.

alt text

Trong đó

Field NameMandatoryFormatConstraintsDescription
Description-TextDescription of the data field

XML Options

Field NameMandatoryFormatConstraintsDescription
alt text-Switch buttonIs a button to control whether the parameter being declared is used in the api request body or not.
alt text-Switch button
Name-TextThe name the user gives to parameter that identifies the element in the XML document.
Tag Prefix-TextTag prefix is used to distinguish XML elements from each other.
Namespace-TextNamespace is used to distinguish XML elements from each other.

Json Options

Field NameMandatoryFormatConstraintsDescription
alt text-Switch buttonIs a button to control whether the parameter being declared is used in the api request body or not.
Name-TextThe name will be used in the request to test the api

Edit Schemas

Step 1: At the Low-code screen of the API test, the user selects the Endpoint data line that he wants to change.

alt text

Step 2: Edit the information that needs to be changed and click “Save”

alt text

The system displays a notification of successful editing and displays the edited Schema in the Schemas list.

Delete Schema

Do the same as Endpoints. Reference to section Endpoints

Duplicate Schema

Do the same as Endpoints. Reference to section Endpoints