Forum Discussion
exp1
14 years agoOccasional Contributor
Hi Allen;
We send the project suite via Rasim account to support.But I have a few questions.
I tried to get responseBodies via Request.ResponseBody method as I have written below;
function GeneralEvents_OnLoadTestingResponse(Sender, User, Request)
{
var FileName;
if(Request["RequestID"]==48)
{
FileName="C:\\ResponseUserrrr" +User["Vuser"]+"_Request"+"_"+aqConvert["VarToStr"](Request["RequestID"])+"_"+aqConvert["DateTimeToFormatStr"](aqDateTime["Now"](),"%Y%m%d%H%M%S")+".dat"
Request["ResponseBody"]["SaveToFile"](FileName);
Log["File"](FileName,"The response to the request" + aqConvert["VarToStr"](Request["RequestID"]) + "for the user '" +User["Vuser"] + "' is invalid."+ "File Name:" + FileName, 500 );
}
}
My Code works for 10 Vuser fine.I get for all Vusers response body.
But when I increase Vusers count to 70 and 80 users I get response body contents which they look like hardcoded , for only the Vusers can't login and got warning. The other vuser response body content are correct and readable. I need to see and compare these ResponseBody content with tasks responsebody.
Can I decode these response body contents into a readable format ?
Another question is,
This code get all Users responsebody.I want get just which request got a warning. How can I figure that.Do you have an idea?
Is there a way to call this event function only when the request gets warning ?
Thanks in advance.
Best Regards.
We send the project suite via Rasim account to support.But I have a few questions.
I tried to get responseBodies via Request.ResponseBody method as I have written below;
function GeneralEvents_OnLoadTestingResponse(Sender, User, Request)
{
var FileName;
if(Request["RequestID"]==48)
{
FileName="C:\\ResponseUserrrr" +User["Vuser"]+"_Request"+"_"+aqConvert["VarToStr"](Request["RequestID"])+"_"+aqConvert["DateTimeToFormatStr"](aqDateTime["Now"](),"%Y%m%d%H%M%S")+".dat"
Request["ResponseBody"]["SaveToFile"](FileName);
Log["File"](FileName,"The response to the request" + aqConvert["VarToStr"](Request["RequestID"]) + "for the user '" +User["Vuser"] + "' is invalid."+ "File Name:" + FileName, 500 );
}
}
My Code works for 10 Vuser fine.I get for all Vusers response body.
But when I increase Vusers count to 70 and 80 users I get response body contents which they look like hardcoded , for only the Vusers can't login and got warning. The other vuser response body content are correct and readable. I need to see and compare these ResponseBody content with tasks responsebody.
Can I decode these response body contents into a readable format ?
Another question is,
This code get all Users responsebody.I want get just which request got a warning. How can I figure that.Do you have an idea?
Is there a way to call this event function only when the request gets warning ?
Thanks in advance.
Best Regards.
Related Content
- 12 months agoSiKing
- 2 months agoNicolaFilosa_SE
- 3 years agonewbe
- 2 years agoMdar
- 5 years agorec3
Recent Discussions
Name Mapping Issue
Solved2 hours agokgreger1- 2 days agodhundley