David M.

  • 3 questions asked
  • 0 answers
  • 0 best answers (0%)
  • Running an action every x minutes?

    Another simple scenario. Need to run test for 30 minutes. But need to generate new tokens to use every 10 minutes. How do i say in a user path only run a...
    David M.
    David M.

    David M.

    Level
    0
    4 / 100
    points
    Neil W.
    Neil W.

    Neil W.

    Level
    4
    5000 / 5000
    points
    Team
    you should look at fork, you can spin up a parallel thread running along side your test. In the parallel thread, you could have a loop and a 10min delay and a request to get...
  • Creating a timestamp in seconds rather than milliseconds

    Seems a very simple scenario and I should be able to work it out but.... I can see how you create a timestamp variable that uses EPOCH value in milliseconds, i need to have...
    David M.
    David M.

    David M.

    Level
    0
    4 / 100
    points
    Neil W.
    Neil W.

    Neil W.

    Level
    4
    5000 / 5000
    points
    Team
    if you want to round it... context.variableManager.setValue("time_in_secs",Math.round(secs));
  • How to set a timer around a GET call to an API endpoint?

    I have a very simple script, one GET call to an API endpoint. It takes an ID number and returns payload of demographics. Script runs but because it is just a single call i...
    David M.
    David M.

    David M.

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

    Nouredine A.

    Level
    4
    5000 / 5000
    points
    Team
    Even if you have a single request NeoLoad will provide the same statics as for a page meaning that you can get the min/avg/max response times. For both requests and pages it...