Forum Discussion
So, basically, I must treat each task separately in the EventHandler.
I have this:
function GeneralEvents_OnLoadTestingResponse(Sender, User, Request)
{
if(User.Name == "LiveData_PingTest")
{
var pingTest = Request.ResponseBody.Contents;
if(aqString.Find(pingTest, "Welcome Data") != 1)
{Log.message("passed data ");}
else {Log.Error("failed data");}
}
else if(User.Name == "LiveSecure_PingTest")
{
var pingTest = Request.ResponseBody.Contents;
if(aqString.Find(pingTest, "Welcome secure") != 1)
{Log.message("passed secure");}
else {Log.Error("failed1 secure ");}
}
else {Log.Error("all failed");}
}
The problem is that the User.Name string "LiveData_PingTest" changes depending on how many users I run in the load test, becoming "LiveData_PingTest (1)", "LiveData_PingTest (2)" and so on, thus my test failing. How can I get, instead of the User.Name, the task name that is beeing executed?
Related Content
- 6 months agomacheshmeh
- 2 years agoianlop
- 11 months agoIso_Yura
- 4 years agomcbane
Recent Discussions
- 7 hours agoSvetaG