I am doing a neoload webservice scripting and as part of that I need to write the load generator name, VUser id,current iteration and a RoomCategoryCount(from the response) to a log file.
For that I wrote below script, but it is working only for single virtual user not in a load test.
I couldn't understand what is the issue behind this could you please help?
//this code is in script file of the neoload
var varRoomCategoryCount = context.variableManager.getValue("RoomCategory_Res_matchNr");
sContext = context.currentLG.name + ";" + context.currentVU.id + ";" + context.currentVU.getCurrentIteration() + ";" + varRoomCategoryCount;
//Below code in js libaray file in Edit menu of neoload
var lock = new java.util.concurrent.locks.ReentrantLock();
var date = Date();
var writer = new java.io.FileWriter("H:\\log11.txt",true);