Answered question

String Concatenation & Base 64 Encoding of Concatenated string

I want to concatenate 3 string out of 3 ,1 is Fixed Text, 2 & 3rd is extracted values from Response and after Concatenating need to convert in Base64 encode format .

Pankaj C.
Pankaj C.

Pankaj C.

Level
0
2 / 100
points
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

You can look at that POST here that contains a project with an example of JS to encode/decode in base64.

You can call your variable extractor value using the "context.variableManager.getValue("myVar")" and the concatenation is straightforward like this:

my value = "foo" + context.variableManager.getValue("myVar") + context.variableManager.getValue("myVar2");

 

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful