Re: Modifying data while filling forms and basic Jmeter help

2009-07-16 Thread phanikishan
Deepak Shetty wrote: > > You have to use one of the Post Processors (e.g. Regex) to extract this > token from the Servers response into a variable and post the data back to > the server whenever its needed > regards > deepak > Hey Deepak, Thanks for the help, but the help feature in Jmeter is

Re: overriding http request

2009-07-16 Thread Deepak Shetty
I normally add a BSH pre processor. and use sampler.addArgument or write a Utility java class and call out to it. regards deepak On Thu, Jul 16, 2009 at 12:21 PM, Paul Rogers wrote: > The web app Im currently testing has requests with a lot of > parameters, which is getting difficult to understa

Re: BSF Scripts and User Defined Variables

2009-07-16 Thread Deepak Shetty
Hi I believe the .bsh file should be in the bin directory . check your jmeter.log for errors This is the Structure I have and it seems to work Thread Group Http Request HTTPHeaderManager val1 ${GUID} User Defined Variables GUID ${__BeanShell(source("function.bsh"))} What

overriding http request

2009-07-16 Thread Paul Rogers
The web app Im currently testing has requests with a lot of parameters, which is getting difficult to understand. I was thinking of overriding the http request to be a more specific implementation of the request I need, and possibly the ability to do some more logging. Does this sound a reasonabl

Re: BSF Scripts and User Defined Variables

2009-07-16 Thread S.D.
I apologize .. but I must be missing something very basic here. As you can see I'm just trying to see it work: This is my function.bsh. It is in the same directory as the jmeter jmx: return "this is a test"; This is the GUID user defined variable: name=GUID value=${__BeanShell(source("function.

Re: asserting PDF responses?

2009-07-16 Thread Deepak Shetty
I made a mistake , it looks like iText doesnt extract text out of PDF's , you need something like http://incubator.apache.org/pdfbox/ There are some caveats to extracting text out of PDF, as well as there are other libraries too i suppose... regards deepak On Thu, Jul 16, 2009 at 11:49 AM, blackga

Re: asserting PDF responses?

2009-07-16 Thread blackgaff
Thanks for the quick response - looks like I"ll get to learn BeanSheel and iText. Deepak Shetty wrote: > >>but is there a way to assert against text WITHIN the PDF > If you really wanted to do this then you'd have to interpret the > response(for any binary file) and check it > in this case BSH

Re: asserting PDF responses?

2009-07-16 Thread Deepak Shetty
>but is there a way to assert against text WITHIN the PDF If you really wanted to do this then you'd have to interpret the response(for any binary file) and check it in this case BSH Post Processor (or equivalent) plus iText (to parse the PDF and get its text out) regards deepak On Thu, Jul 16,

Re: asserting PDF responses?

2009-07-16 Thread blackgaff
This is handy for asserting what KIND of file was returned, but is there a way to assert against text WITHIN the PDF? IE, I want to create an assertion that tells me if the rendered document contains the word "free bird". The aforementioned solution involves using an HTTP sampler to retrieve the

Re: BSF Scripts and User Defined Variables

2009-07-16 Thread Deepak Shetty
Also note that (from docs) ${__BeanShell(source("function.bsh"))} - processes the script in function.bsh is what you'd probably use to run a script... regards deepak On Thu, Jul 16, 2009 at 11:23 AM, Deepak Shetty wrote: > Hi > >You mean that RANDOM_NAME contains actual beanshell code? > Yes.

Re: BSF Scripts and User Defined Variables

2009-07-16 Thread Deepak Shetty
In the documentation RANDOM_NAME is a variable whose value is the actual script contents that you wish to run. (i.e. the code itself) If your sampler is working fine , why not just do vars.put("GUID", YOURCALCULATEDVALUE); regards deepak On Thu, Jul 16, 2009 at 10:59 AM, S.D. wrote: > Hello. >

BSF Scripts and User Defined Variables

2009-07-16 Thread S.D.
Hello. I am a little confused by how to use the BSF Sampler. I'm hoping someone can assist. I'm either misunderstanding the documentation or am just not setting it up correctly. I have a BSF Sampler that is attached to a groovy script file. The sampler runs fine and I see the response. I want t

Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Deepak Shetty
>However what I think the op wants to do is performance >test loading each tab, which is implemented in client side code >(javascript). Yep , I was replying to adrian. I agree with the rest of your points. On Thu, Jul 16, 2009 at 10:19 AM, Tony Lotts wrote: > Deepak is right. However what I thi

Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Tony Lotts
Deepak is right. However what I think the op wants to do is performance test loading each tab, which is implemented in client side code (javascript). The performance of executing client side code is based upon the user's own machine, and browser; which is irrelevant to web application scalability

Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Deepak Shetty
>how practical with you consider using the __javaScript() function in >this type of situations? (or any other way to process client side >actions when they are strictly needed) I ran into this problem recently and decided to write java code that simulated what the function does (generating complex

Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Adrian Speteanu
well since this question was re-re-asked (again :) ), here goes nothing:   how practical with you consider using the __javaScript() function in this type of situations? (or any other way to process client side actions when they are strictly needed) ( I am thinking of situations were the applicatio

Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Tony Lotts
What is it that you want to accomplish? If this is for a scalability test, the performance of client side code execution is irrelevant. On Thu, Jul 16, 2009 at 2:10 AM, MITRAJ wrote: > > Tabs are loaded on demand and contents in the tab are pre-loaded.. > > Thanks, > Raj > > Noel O'Brien wrote: