${js()}
Returns the value of the specified JavaScript EXPRESSION.
| Name | XPath | Description | Reagent Type | Expected Type | Required |
|---|---|---|---|---|---|
| CACHE | @cache | A shared Map to cache items in. The default is the value of the 'Attributes.CACHE' request attribute. | PHRASE | java.util.Map | No |
| CACHE_MODEL | @cache-model | Specify either NONE, ONE, or ALL. | PHRASE | java.lang.String | No |
| EXPRESSION | descendant-or-self::text() | Script expression to evaluate. | PHRASE | java.lang.String | Yes |
Creates an array of three URLs in JavaScript, then computes a checksum value ten times for one of the URLs in the array (distributed evenly) using a pool of five threads, writing the current count and checksum value to the console each time:
${num}=${checksum(${js(urls[num % 3])})}