JavaScript
NeoLoad allows the execution of JavaScript within Virtual Users, which means we may insert a JavaScript action when designing a User Path. The code used may invoke common JavaScript functions declared in the NeoLoad JavaScript libraries. See also: Execute Java code.The NeoLoad API is mainly used to manipulate NeoLoad variables and set up cookies for the current Virtual User. Basic JavaScript functions allow the handling of strings and dates, calculation, and so on.
The script does not run within the context of the HTML request, so manipulating a request response DOM tree is impossible. Consequently, functions built into browsers for extracting or manipulating the HTML document are not included.
The following is a non-exhaustive list of functions or objects that are not supported:
- window
- document (of which document.cookie, document.forms[0], document.getElementById(), ...)
- navigator
- alert()
- confirm()
- ...
- Warning: Scripts using these objects compile correctly but their execution halts when it reaches the non-supported object.
Home