Eric N.

  • 5 questions asked
  • 7 answers
  • 0 best answers (0%)
  • Session and cache seems not managed ?

    Hello All, I am scripting a test application (web). I setup the runtime parameters "Reset user session and emulate new browser between each iteration" = Yes But the execution...
    Eric N.
    Eric N.

    Eric N.

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

    Nouredine A.

    Level
    4
    5000 / 5000
    points
    Team
    If you use the option to reset the session between each iteration then all user information like cookies, cache, variables are reset. That's why you get that "Session Expired"...
  • How to made statistics (percentage table) ?

    On input, we have a survey (web) as below: Grp_name;Nb_Members ;Agree ; Group1 ; 8 ;No ; Group2 ; 2 ;Yes ; Group3 ; 6 ;Yes ; Group4 ; 4 ;Yes ; On output, we...
    Eric N.
    Eric N.

    Eric N.

    Level
    0
    80 / 100
    points
    Eric N.
    Eric N.

    Eric N.

    Level
    0
    80 / 100
    points
    Finally, I created a script as below. I hope it will help someone one day. var text =""; var i = 1; var temp = 0; var agree = ""; var TotalGrps = 0; var TotalMembers...
  • Extracted variables in js scripts

    Hi all, I created a script to construct a new variable (text) thanks to multiple extracted variables (ID, NUM, DATE). I am able to see the new variable on debug log. But...
    Eric N.
    Eric N.

    Eric N.

    Level
    0
    80 / 100
    points
    Eric N.
    Eric N.

    Eric N.

    Level
    0
    80 / 100
    points
    Hello David, Sorry, I forget to replace the value "myvalue" by "max" in my example. My purpose was to add a "," until the last variable was added. Thanks.
  • How to modify all occurrence of the extracted variable?

    From a webpage response, we are extracting all occurrences of the data. example: {id:1,ref:001},{id:2,ref:002},{id:3,ref:003} Now, we have to post the all occurrences but...
    Eric N.
    Eric N.

    Eric N.

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

    Nouredine A.

    Level
    4
    5000 / 5000
    points
    Team
    Another way to do that is to split the value and join it again with that function: function decode(encodedValue) {    var decodedValue = encodedValue.split("ref:").join("ref...
  • How can I cast an extracted variable type timestamp to type date?

    From a webpage response, I extracted in a variable, a list of data (type timestamp). Then I have to post a message with this data but in datetime format (AAAA-MM-DDThh:mm:ss)...
    Eric N.
    Eric N.

    Eric N.

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

    Nouredine A.

    Level
    4
    5000 / 5000
    points
    Team
    This kind of Javascript should convert a timestamp to a date format: var myvalue = context.variableManager.getValue("Extracted");// Extracted is your variable extractor namevar...