RE: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-26 Thread Tapaswini Das
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

Re: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-25 Thread sebb
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.

Re: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-23 Thread sebb
On 21/04/06, David Bronner [EMAIL PROTECTED] wrote: Sebb - those are all options for defining variables with a fixed value, but I want to keep assigning new values to them. For example, in one of my scripts, I want to assign the unix epoch (seconds since 1970) into a variable once per loop.

RE: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-21 Thread Tapaswini Das
Hi Dave, Can you please tell me how to use this java script through inserting dummy regex parsers and assigning the JavaScript output where? Can you please tell me the flow where n how to declare java script function and where write java script? Please reply me its urgent. Thanks in

Re: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-21 Thread sebb
It's not possible to define new javascript functions presently. Please explain WHAT you are trying to do, and then someone can help with the HOW. S. On 21/04/06, Tapaswini Das [EMAIL PROTECTED] wrote: Hi Dave, Can you please tell me how to use this java script through inserting dummy

RE: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-21 Thread Tapaswini Das
Hi, Could somebody explain how to use the new JavaScript function? I'm writing my own Java Script functions to read inner HTML of the application. I need to map these functions with JMeter so that JMeter can call them while running. Or I can put all my functions into a single file and call

Re: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-21 Thread David Bronner
Hi Tapaswini, I don't think you can evaluate the javascript that you're trying to run. JMeter doesn't provide access to the HTML DOM. However, you can probably achieve the same result by using regular expression post processors to search for string matches instead of parsing the HTML tags.

Re: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-20 Thread David Bronner
AFAIK, you can use javascript in almost any field with the syntax ${__javaScript()}However, I have basically the same question...where are we supposed to do assignments to variables with values generated by javascript? I've been inserting dummy regex parsers and assigning the javascript

Re: Where to declare the java script with the help of function and how to call this function in JMeter

2006-04-20 Thread sebb
You can define variables using: * The Test Plan * User Defined Variables Config item * CSV Data Set Config Item * User Parameters Pre-Processor S. On 20/04/06, David Bronner [EMAIL PROTECTED] wrote: AFAIK, you can use javascript in almost any field with the syntax ${__javaScript()}However,