Forum Discussion
exp1
15 years agoOccasional Contributor
Hi Allen,
>>>I couldn't figure with onloadeventhandler.(I'm not able with write script.)
<<<Could you please describe the problem you face in detail?
Sorry,
"onloadeventhandler" must be OnLoadTestingResponse event handler.I get
function GeneralEvents_OnLoadTestingResponse(Sender, User, Request)
{
}
but I don't know how I used this function for HTTPRequest.ResponseBody property.
I wrote another function for ResponseBody
function ResponseBody()
{
var request;
request=LoadTesting["HTTPTask"]("FAZ01_Butik")["Connection"](0)["Request"](1);
request["ResponseBody"]["SaveToFile"]("C:\\ResponseBody.dat");
Files["Add"]("C:\\ResponseBody.dat");
}
But I can not understand anything with this file.It writes hexadecimal.
If OnLoadTestingResponse event handler get me responseBody which Vusers-connection-request that warning.
Can you write for sample code for ["Connection"](0)["Request"](1);
And how can I use this code when test is execution or after execution.Of course if you write.:]
I have a few questions about Unit Testing but it is not the time..When it comes time to ask.
Thanks it will be very helpfull.
>>>I couldn't figure with onloadeventhandler.(I'm not able with write script.)
<<<Could you please describe the problem you face in detail?
Sorry,
"onloadeventhandler" must be OnLoadTestingResponse event handler.I get
function GeneralEvents_OnLoadTestingResponse(Sender, User, Request)
{
}
but I don't know how I used this function for HTTPRequest.ResponseBody property.
I wrote another function for ResponseBody
function ResponseBody()
{
var request;
request=LoadTesting["HTTPTask"]("FAZ01_Butik")["Connection"](0)["Request"](1);
request["ResponseBody"]["SaveToFile"]("C:\\ResponseBody.dat");
Files["Add"]("C:\\ResponseBody.dat");
}
But I can not understand anything with this file.It writes hexadecimal.
If OnLoadTestingResponse event handler get me responseBody which Vusers-connection-request that warning.
Can you write for sample code for ["Connection"](0)["Request"](1);
And how can I use this code when test is execution or after execution.Of course if you write.:]
I have a few questions about Unit Testing but it is not the time..When it comes time to ask.
Thanks it will be very helpfull.