When a HTTP request is listed in any of the sequences (InitSeq, FinalSeq, TestSeq), both the request sending parameters and the values of its local parameters can be set or redefined.
The syntax is as follows:
[TestSeq]
Request1 (param1=value, param2=value2, $uri=servlet)Example:
Launching the following test script:
[General]
Method=GET
Server=myserver
Port=5000
URI=/servlet
[Request1]
param1=value1
param2=value2will result in sending the following HTTP request:
Now let us redefine several parameters when calling Request1, and we will obtain the following example:GET /servlet?param1=value1¶m2=value2 HTTP/1.1
Host: myserver:5000[General]
Method=GET
Server=myserver
Port=5000
URI=/servlet
[TestSeq]
Request1 (param1=value3, $URI=/servlet/view, port=5555)
[Request1]
param1=value1
param2=value2
Launching this script will result in sending the following HTTP request:
GET /servlet/view?param1=value3¶m2=value2 HTTP/1.1
Host: myserver:5555
You can modify all request parameters (except for $exportvar and $fail) by setting request parameters within a sequence.