Unanswered question

How to handle dynamic value which is not in source code in NeoLoad

Hi,
I have to extract a dynamic value which is not there in any previous request responses as general, but there is a request like "load.min.js". The request response looks like
function() {
var e = [];
e.push("AWS4-ABCD-EFGH"),
e.push(this.dateString),
e.push(this.String()),
e.push(r.(this.Request()));
var n = e.in("\n");
return t.d("stringToSign:", n),

In the above code, "stringToSign" is dynamic. I want extract value of "stringToSign" from response and I have to pass in the next request. Please help in this to get the dynamic value.

Garisanoori V.
Garisanoori V.

Garisanoori V.

Level
0
81 / 100
points

Answers

Garisanoori V.
Garisanoori V.

Garisanoori V.

Level
0
81 / 100
points

Any update on this.

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Providing it's not binary, any server response (js, css, html) can use a variable extractor to obtain a value

Garisanoori V.
Garisanoori V.

Garisanoori V.

Level
0
81 / 100
points

Hi Neil,

We have to extract value from "stringToSign" which looks like AW-AC-25
20190206T105202Z
20190206/ss-ssss-1/a1/abc4_request
449843298304c7a532a2130797eb38890f3bb5d9120b8ab2f7eab46541e0dac0. The value is not showing anywhere in the response. Instead we find that, we have to collect it from "stringToSign". Please help me in this.

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Okay, if your java script is actually generating the StringToSign value, you need to copy out the code and drop it into Neoload's java script so Neoload can run the code that generates the value. The function you provide doesn't really show how StringToSign is built

Garisanoori V.
Garisanoori V.

Garisanoori V.

Level
0
81 / 100
points

could you please provide me, sample code to drag and drop which will get execute.

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

If you can attach your project I can have a quick look