Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

use of java.time.Instant in javascript

$
0
0

How might I convert this beanshell preprocessor script in jmeter to neoload javascript?

import java.time.Instant;
String epoc = Long.toString(Instant.now().toEpochMilli());
vars.put("sequence", epoc);

In neoload I will use,
context.variableManager.setValue("sequenceNumber",epoc);

but I get error on the use of import statement.


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>