Updated on 2026-08-11 GMT+08:00

Concatenating Strings of Multiple Parameters

Function Name

$strJoin(StringA,StringB,StringC......)

Parameter Description

Adds multiple parameters to a function. The parameters should be of the following types:

  • Strings
  • Local parameters
  • Environment parameters
  • Other built-in functions

Function Description

Concatenates multiple strings into a new string.

Application Scenarios

This function can be used in the following parts of an API automation test case. (Do not use the function for environment parameters. Otherwise, what is input will be output.)

  • 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 the test parameter in the request URL is the function for concatenating strings of multiple parameters. Parameter A in the function is abc, parameter B is 123, and parameter C is the environment parameter $${number}.

  • Request header

    As shown in the following figure, the value of the number parameter in the request header is the function for concatenating strings of multiple parameters. Parameters A, B, and C in the function are the local parameters ${str1}, ${str2}, and ${str3}, respectively.

  • Request body

    As shown in the following figure, the function for concatenating strings of multiple parameters is used in the request body. Parameters A and B in the function are the environment parameters $${info} and $${number}, respectively.

  • Checkpoint property

    As shown in the following figure, the target value of the checkpoint property result is the function for concatenating strings of multiple parameters. Parameters A, B, and C in the function are the local parameters ${str1}, ${str2}, and ${str3}, respectively.

  • if condition

    As shown in the following figure, the target value of the if condition is the function for concatenating strings of multiple parameters. Parameters A, B, and C in the function are the local parameters ${str1}, ${str2}, and ${str3}, respectively.

  • for loop interrupt condition

    As shown in the following figure, the target value of the for loop interrupt condition is the function for concatenating strings of multiple parameters. Parameters A, B, and C in the function are 0000, 1111, and 2222, respectively.