You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by howard chen <ho...@gmail.com> on 2008/07/07 12:26:53 UTC

Reference external JavaScript file

Hi,

Currently I can add User Parameters (for HTTP request) using JavaScript,

e.g.

Name	User_1
ID		${__javaScript("abcd")}

But instead of inputing scripts here, is it possible to reference
external JS file
for more complex processing?


Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Reference external JavaScript file

Posted by sebb <se...@gmail.com>.
On 07/07/2008, howard chen <ho...@gmail.com> wrote:
> Hi,
>
>  Currently I can add User Parameters (for HTTP request) using JavaScript,
>
>  e.g.
>
>  Name    User_1
>  ID              ${__javaScript("abcd")}
>
>  But instead of inputing scripts here, is it possible to reference
>  external JS file
>  for more complex processing?
>

Not at present using JMeter.

However you may be able to do so in Javascript itself - please check
the Mozilla Rhinoscript documentation. Maybe there is a "source(file)"
command or similar.

>  Thanks.
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org