I've not used it in earnest and I don't know JavaScript, but as far as I know,
JavaScript can only access Javascript variables - it
has no access to response data.
You should be able to include ${variables} in the script.
And you should be able get the html into a variable using (say) the Regular Expression
Post-Processor.
It may be best to try this in stages:
- hard-code the expected HTML in the script
- set up a variable with the HTML and put the variable in the script
- use the RE PP to set up the variable.
The JavaTest Sampler is very useful for testing scripts, as it allows you to set up
whatever you like in the responseData.
And you can use it to display the contents of variables - just put them in one of the
fields, and add a Tree Listener.
S.
----- Original Message -----
From: "Shawn Elliott" <[EMAIL PROTECTED]>
To: "'JMeter Users List'" <[EMAIL PROTECTED]>
Sent: Monday, January 05, 2004 11:28 PM
Subject: More information on "13.2.9 If Controller "
I was wondering if some one who has used this IF Controller could give
me a little more info than what is in the documentation...
Is this JavaScript code run on the html output from the last http
request? Or does it only have access to local parameters?
13.2.9 If Controller
The If Controller allows the user to control whether the test elements
below it (its children) are run or not.
Parameters Attribute Description Required :
Name Descriptive name for this controller that is shown in the tree.
No
Condition Javascript code that returns "true" or "false"
yes
-S
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]