Add column to Summary Report?

2012-06-14 Thread hans jung
Hi there,

I have a testplan with a few samplers and everything is working fine up to
here.
Now my Webservices (HTTP Get Samplers is what I'm using) return an XML.
This XML contains performance relevant information such as the time at
which the request arrived at the loadbalancer, the time at which it arrived
at the actual application server and so forth.

My question is this: Is it possible o add columns (like "time to
dispatcher", and "time from dispatcher to appserver" to the summary report?
I could parse the necessary data out of the responses using regular
expressions. Then the summary report would only have to average about the
values.



If this is not possible; Whats an aproproiate workarround? Is it possible
to write the parsed values directly to a file?


Re: Updatiung CSV Parameters in Each reauest in Iteration

2012-06-12 Thread hans jung
Ok, but I have several requests.
Each Request uses the parameter ${username}.
What I see s that all requests use the exact same username
I want each request to pick a new username.

How can I do this in jmeter?

2012/6/12 Niraj 

> Add "CSV Data Set Config" below thread group. Provide the CSV file
> name\path (if not placed in Bin folder) in filename.
>
> Now for ex if you want new user name for each iteration, then add Users in
> CSV. Add variable names in  "CSV Data Set Config" element say Username.
> Then in all your requests replace user name with ${Username}. You are good
> to go.
>
> On Tue, Jun 12, 2012 at 5:57 PM, hans jung  >wrote:
>
> > Hi There,
> >
> > I have a thread group with several requests in it. All request have the
> > same parameter in them.
> > I also have a csv file with values for that parameter.
> >
> > How can I link my jmeter project to the csv file, so that each request
> > sends a new value from the file?
> > I tried the csv dataset config(by putting under each request), but that
> one
> > seems to send the same parameter value with all requests per thread
> > iteration.
> >
> > This is not enough. I need a fresh value read from the csv file with
> every
> > single request.
> > How can I accomplish this?
> >
> > Is it possibel, to make jmeter pick a random line from that csv file?
> >
> >
> > Regards, thanks in advance.
> >
>


Updatiung CSV Parameters in Each reauest in Iteration

2012-06-12 Thread hans jung
Hi There,

I have a thread group with several requests in it. All request have the
same parameter in them.
I also have a csv file with values for that parameter.

How can I link my jmeter project to the csv file, so that each request
sends a new value from the file?
I tried the csv dataset config(by putting under each request), but that one
seems to send the same parameter value with all requests per thread
iteration.

This is not enough. I need a fresh value read from the csv file with every
single request.
How can I accomplish this?

Is it possibel, to make jmeter pick a random line from that csv file?


Regards, thanks in advance.


Re: Trying to build a http post request with xml content in jmeter

2012-05-23 Thread hans jung
Hi Philippe,

but where do I put my parameters (like sap-user and sap-password (see my
initial post)?

Regards,

Junghans

2012/5/23 Philippe Mouawad 

> Hello,
> Switch to Raw Post body before putting anything in the parameters table
> then put your XML content in the text area and you're done.
>
> Regards
> Philippe
>
> On Wed, May 23, 2012 at 12:24 PM, hans jung  >wrote:
>
> > Hello everybody, I am completely new to jmeter and I am trying to
> simulate
> > a Post Request with XML content.
> >
> > The Post request I am trying to simulate looks like this:
> >
> > http://12.123.250.45:8000/zgfx_mde ?POST
> > &sap-client=200&sap-language=DE&sap-user=user001&sap-password=++
> > HTTP/1.1 >
> >
> encoding="ISO-8859-1"?>SAPHttpMDE-10MDE-10T02RS1001mde-agf4008122010777
> >
> >
> > Now I try to build it i jMeter (using a Thread group and under that an
> http
> > sampler and a tree results element.).
> > I created the HTTP Sampler, set the Method to POST, enter server name,
> port
> > number, path and entered all the name/value pairs you see above
> > (sap-client, sap language, etc) in the parameters section.
> > But where do I put the XML??
> > Apparently I cannot put anything in the Post Body (Message "Cannot
> convert
> > parameter to raw post body because one of the parameters has a name)".
> >
> >
> >
> > Regards & Thanks in advance,
> >
> > Junghans
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>


Re: Trying to build a http post request with xml content in jmeter

2012-05-23 Thread hans jung
Thanks Shaba. I can now see the contents of the jmeter properties file just
as described.
But ho does that help me with building the post request? (Maybe I am
missing something?)


Regards & Thx in advance,


Junghans

2012/5/23 Shaba K 

> Hi There,
>
> Check this blog to get started
>
>
> http://automationwithselenium.blogspot.co.uk/2012/02/gui-view-system-jmeter-properties.html
>
>
> If it helps
>
> Cheers,
> -S
>
> On Wed, May 23, 2012 at 11:24 AM, hans jung  >wrote:
>
> > Hello everybody, I am completely new to jmeter and I am trying to
> simulate
> > a Post Request with XML content.
> >
> > The Post request I am trying to simulate looks like this:
> >
> > http://12.123.250.45:8000/zgfx_mde ?POST
> > &sap-client=200&sap-language=DE&sap-user=user001&sap-password=++
> > HTTP/1.1 >
> >
> encoding="ISO-8859-1"?>SAPHttpMDE-10MDE-10T02RS1001mde-agf4008122010777
> >
> >
> > Now I try to build it i jMeter (using a Thread group and under that an
> http
> > sampler and a tree results element.).
> > I created the HTTP Sampler, set the Method to POST, enter server name,
> port
> > number, path and entered all the name/value pairs you see above
> > (sap-client, sap language, etc) in the parameters section.
> > But where do I put the XML??
> > Apparently I cannot put anything in the Post Body (Message "Cannot
> convert
> > parameter to raw post body because one of the parameters has a name)".
> >
> >
> >
> > Regards & Thanks in advance,
> >
> > Junghans
> >
>


Trying to build a http post request with xml content in jmeter

2012-05-23 Thread hans jung
Hello everybody, I am completely new to jmeter and I am trying to simulate
a Post Request with XML content.

The Post request I am trying to simulate looks like this:

http://12.123.250.45:8000/zgfx_mde ?POST
&sap-client=200&sap-language=DE&sap-user=user001&sap-password=++
HTTP/1.1SAPHttpMDE-10MDE-10T02RS1001mde-agf4008122010777


Now I try to build it i jMeter (using a Thread group and under that an http
sampler and a tree results element.).
I created the HTTP Sampler, set the Method to POST, enter server name, port
number, path and entered all the name/value pairs you see above
(sap-client, sap language, etc) in the parameters section.
But where do I put the XML??
Apparently I cannot put anything in the Post Body (Message "Cannot convert
parameter to raw post body because one of the parameters has a name)".



Regards & Thanks in advance,

Junghans