Apipost’s scripts support JS syntax and you can write your own scripts in pre-execution/post-execution scripts.

The APIPost supports getting the parameters passed to the request. If (request.request_bodys. Name == “xiaoming”){if(request.request_bodys. Name == “xiaoming”){if(request.request_bodys.

Apt. Globals. Set (” username “, “xiaohong”);

} else if (request. Request_bodys. Name = = “xiaohong”) {

Apt. Globals. Set (” username “, “zhengsan”);

}

else{

Apt. Globals. Set (” username “, “xiaoming”);

}

Request.request_bodys. Name = request.request_bodys. Name = request.request_bodys