Hi Dave/Sebb

 Thanks for your quick and easy to understand reply. We upgrade our JMeter
to 2.1

 In my application, our developers are using HTML DOM for parsing the HTML
Code. They use Java Script to fill in the AJAX code within the HTML [Outer
or External HTML]. So in a way the Server script [turned as Inner HTML] is
feed into the Client script [termed as Outer HTML]. 
 When we observed the HTML Code, returned by JMeter while recording, it
doesn't show any inner HTML variables like Document ID etc. 
 Due to this Regular Expressions are getting failed.

 Running counter as generating values had solved one of our few problematic
scripts. Thanks a bunch for that.

 We tried to look at BeanShell but the code is becoming little difficult for
us. Can we have few samples to generate the code or use the BeanShell?
 We already have JavaScripts ready for reading Inner HTML code. Can we put
the file in the bin directory of JMeter to parse them by BeanShell method?

 Awaiting your fruitful reply.

 Thanks and Regards,
 Tapaswini

-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 25, 2006 11:23 PM
To: JMeter Users List
Subject: Re: Where to declare the java script with the help of function and
how to call this function in JMeter

On 25/04/06, Tapaswini Das <[EMAIL PROTECTED]> wrote:
> Hi Dave/Sebb,
>
>  Thank you for your quick reply.
>
>  I have tried the same JMeter script with Regular Expression. The problem
is
> Regular Expression is unable to read inner HTML code used to implement for
> AJAX technology in my application.
>
>  Please find below the full description of the problem faced with
> JMeter2.0.3:

This is rather old. Upgrade to 2.1.1.

> Solution Tried: Regular Expression
> Problem Faced:  JMeter is unable to read inner HTML which is used in AJAX
> implementation. [e.g. for reading auto-generated Folder Id on
the
> HTML] Page
> Outcome:            Regular Expression is unable to read inner HTML.

Why can't you extract the HTML?
What did you try?

> Solution Tried: Static Values for each virtual user using User Defined
> Variables.
> Problems Faced: 1. requires lot of efforts while working with more than 50
> Users.
>                    2. Dynamic features like Upload, Move can not have
> static             values.
> Outcome: It's hectic to use Static values for Load Testing

You can use the Counter test element for generating variable names.

> Solution Tried: Java Script [Used Defined Functions] for dynamic values.
> Problem Faced: JMeter is unable to read the Java Script as per mentioned
by
> you and Sebb.

True - perhaps create a Buzilla enhancement request to add this - e.g.
use a property to create a javascript initialisation file, as is
already done for BeanShell.

> Can you guide me about what can I do for the above problems for using
> JMeter?
> Will it be useful if I use Pearl Script instead of Java Script?

There is no Perl Script in JMeter.

You can use BeanShell; this supports user-defined methods etc.

However, if you are trying to emulate what a browser does when it
encounters JavaScript on a page, it won't help.

You need to find a way to extract the variable information from the
page without having to run the scripts that require access to the page
objects.

---------------------------------------------------------------------
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]

Reply via email to