outside the project maker the c# code is not executed... where is this for example ?Hi, when I launch a project with c# blocks outside the project maker the c# code is not executed, I tried with very basic instructions like "sendInfoToLog", but nothing... has anyone encountered the problem?
In zenoposter, where you can set the number of threadsoutside the project maker the c# code is not executed... where is this for example ?
is the output parameter in the log worth it ?In zenoposter, where you can set the number of threads
Executing action CSharp OwnCode: Récupérer Header Frais.id: 45e7887d-fff0-47fb-86fa-bad6754129c4 Object reference not set to an instance of an object.
Thread.Sleep(1000);
project.SendInfoToLog("Hey bro", true);
instance.UseTrafficMonitoring = true;
var traffic = instance.ActiveTab.GetTraffic();
foreach (var t in traffic){
if(Regex.IsMatch(t.Url, "Check-checkAvailabilityWith")){
project.Variables["Header"].Value = t.RequestHeaders;
project.SendInfoToLog(t.RequestHeaders , true);
}
}
Everything works fine in the project maker, and t is not empty because I can get the url, only the requestHeader method, causes this problemperhaps t is empty. there are a lot of checks and a try/catch block needed here
Once again, I repeat. this field may be empty, checks are needed. moreover, it is possible that the request does not have this header at all, or it is of a different type, for example responseHeaders. Working with this object requires a lot of checks and a try/catch block.Everything works fine in the project maker, and t is not empty because I can get the url, only the requestHeader method, causes this problem