Updated on 2023-03-14 GMT+08:00

Converting Uppercase Letters into Lowercase Letters

Function Name

$toLower(String A)

Parameter Description

  • String A: string to be converted into lowercase letters.

Parameter A supports the following types:

  • Strings
  • Environment parameters
  • Local parameters

Function Description

Converts all characters in the specified input string into lowercase characters.

Application Scenarios

The function for converting uppercase letters into lowercase letters can be used in the following scenarios for API automation:

  • Request URL
  • Request header
  • Request body
  • Checkpoint property
  • if condition
  • for loop interrupt condition

Example

  • Request URL

    As shown in the following figure, the value of test in the request URL is the function for converting uppercase letters into lowercase letters. Parameter A in the function is TEST.

  • Request header

    As shown in the following figure, the value of lower in the request header is the function for converting uppercase letters into lowercase letters. Parameter A in the function is Test.

  • Request body

    As shown in the following figure, the function for converting uppercase letters into lowercase letters is used. Parameter A in the function is Test.

  • Checkpoint property

    As shown in the following figure, the target value of the checkpoint property result is the function for converting uppercase letters into lowercase letters. Parameter A in the function is Test.

  • if condition

    As shown in the following figure, the target value of the if condition is the function for converting uppercase letters into lowercase letters. Parameter A in the function is AAAAA.

  • for loop interrupt condition

    As shown in the following figure, the target value of the for loop interrupt condition is the function for converting uppercase letters into lowercase letters. Parameter A in the function is OK.