Unanswered question

How to correlate a value provided by a function in neoLoad ?

I need to correlate a value never found in the server responses, there is only one function that generates this value. How to get it?
In the annexed file the value to retrieve is in the field rxVisitor

Denis R.
Denis R.

Denis R.

Level
0
15 / 100
points

Answers

Neoload doesn't execute js files downloaded from a server but you could add a javascript snippet from the action section and paste in your function, Neoload could run the code that creates the value, drop it in a variable and use it in a later request

Denis R.
Denis R.

Denis R.

Level
0
15 / 100
points

Thanks for your help Neil.
I have two problems, the first is that the script uses window and document objects that are not supported by NeoLoad. How can I solve this problem? The second is that i have not received any information from the developers on how to use this function.

(function() {
(function() {
function a() {
if (!b.dialogArguments) return navigator.cookieEnabled;
document.cookie = "__dTCookie=1";
var a = -1 !== document.cookie.indexOf("__dTCookie");
document.cookie = "__dTCookie=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";
return a
}
if (window.dT_) window.console && window.console.log("Duplicate agent injection detected, turning off redundant initConfig.");
else {
var b = "undefined" !== typeof window ? window : self;
a() && (window.dT_ || (window.dT_ = {
cfg: "#CONFIGSTRING#|auto=#AUTO#|domain=#DOMAIN#|rid=RID_#REQUEST_ID#|rpid=#RESPONSE_ID#|app=#APP#",
iCE: a
}))
}
})();
}).call(this);

(function() {
(function() {
function Kb() {
return ra ? new ra : sa ? new sa("MSXML2.XMLHTTP.3.0") : d.XMLHttpRequest ? new d.XMLHttpRequest : new d.ActiveXObject("MSXML2.XMLHTTP.3.0")
.....

and later in script :

var G = window;
if (!G.dT_ || !G.dT_.cfg || "string" != typeof G.dT_.cfg || G.dT_.initialized) G.console && G.console.log("Initconfig not found or agent already initialized! This is an injection issue.");
else if (!(navigator.userAgent && 0 <= navigator.userAgent.indexOf("RuxitSynthetic"))) {
var d = "undefined" !== typeof window ? window : self,
ra, sa, Z, db = [],
Da,
....