jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Stover <mstov...@apache.org>
Subject Re: Advanced Web Service Test Plan Help
Date Fri, 14 Oct 2005 20:27:35 GMT
Did you try "&amp;encoded"

On Fri, 2005-10-14 at 13:28 -0700, Matt Edelman wrote:
> Hello Again,
> 
> I made a lot of progress since yesterday on this test plan. Unfortunately
> now it seems that one of the variables I need to use in a SOAP request is
> causing an exception. Specifically, there is an ampersand (&) in the string
> as follows:
> 
> <node>asdf23409809___&encoded=true</node>
> 
> When I try to run the test, I get this exception every time (unless the
> ampersand is removed, which means the AUT will not validate the request):
> 
> [Fatal Error] :1:411: The reference to entity "encoded" must end with the
> ';' de
> limiter.
> 
> Is there some way to escape the ampersand? I tried "\" but to no avail.
> 
> Thanks,
> Matt
> 
> On 10/13/05, Edelman Matthew - medelm <Matthew.Edelman@acxiom.com> wrote:
> >
> > Great. Thanks. I knew it was something stupid like that. In the If
> > controller I needed to use single quotes around the variable.
> >
> > However in the HTTP Request, it was unnecessary to use the single quotes
> > around the variable name.
> >
> > Hopefully the next question I have will be more substantial than this.
> >
> > -Matt
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: Thursday, October 13, 2005 3:49 PM
> > To: JMeter Users List
> > Subject: Re: Advanced Web Service Test Plan Help
> >
> > Variables are referenced as follows:
> >
> > ${variable}
> >
> > and when processed are replaced by their value.
> >
> > The If controller requires valid JavaScript, for example:
> >
> > '${fruit}' == 'apple'
> >
> > or
> >
> > ${num} == 123
> >
> > Note the quotes needed to form valid JavaScript.
> >
> > See
> > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#If_
> > Controller
> >
> > S.
> > On 13/10/05, Edelman Matthew - medelm < Matthew.Edelman@acxiom.com>
> > wrote:
> > > Thanks for your response.
> > >
> > > I'm afraid I'm stuck on what should be a really fundamental issue. I
> > > took some screenshots to make it easier to communicate:
> > > http://www.stupidcatchphrase.com/jm/index.html
> > >
> > > I can tell that the variable is getting stored correctly but I'm
> > unable
> > > to refer to it correctly in the If Controller. I'm trying to use ==
> > or
> > > != as operators. I tried different forms of the variable name ( ${},
> > > $(), and just as a name) but the comparison isn't happening.
> > >
> > > Can you please look at the screen shots and see if you can tell what
> > I'm
> > > doing wrong?
> > >
> > > Thanks again,
> > > Matt
> > >
> > > -----Original Message-----
> > > From: m mat [mailto:perftest99@yahoo.com]
> > > Sent: Thursday, October 13, 2005 1:55 PM
> > > To: JMeter Users List
> > > Subject: Re: Advanced Web Service Test Plan Help
> > >
> > > Hi Matt
> > >
> > > What you are trying to do is entirely doable. I have done that and
> > more
> > > ( though I am running into a session issue right now, but that could
> > be
> > > my fault). Answers inline
> > >
> > > 1. How can I construct the SOAP request with the discovered
> > > variables v1 and v2? Can I simply place "$(v1)" and "$(v2)" within the
> > > text of the SOAP requests in the SOAP Web Service Sampler?
> > > Yes you can. However, if you are loading the soap body from a file, or
> > a
> > > file folder JMeter will not replace the vars. It seems like a bug and
> > > there is a log of that on bugzilla
> > >
> > > 2. Is this kind of processing too intensive for Jmeter, given that
> > > I want to run this as a load test with as many as 20 users at a time?
> > > Not really. I have created upto 100 users with varying sizes of SOAP
> > > body sizes. And the CPU on my test machine (client) was about half
> > used.
> > > I am using a 2 CPU box.
> > >
> > > 3. How can I output information to a log file such as "value of
> > > v1,v2" and whether each individual user instance was a success or
> > > failure?
> > > you can use log functions described in the functions section of user
> > > manual
> > >
> > > Let me know if I can help
> > >
> > > Matt
> > >
> > > Edelman Matthew - medelm < Matthew.Edelman@acxiom.com> wrote:
> > > Hi All,
> > >
> > >
> > >
> > > I'm trying to design a load test that will conduct a SOAP transaction
> > > with the AUT. It requires that the responses from the AUT be parsed
> > for
> > > certain elements in order to create proper subsequent SOAP requests.
> > > This is the basic design:
> > >
> > >
> > >
> > > request1: give me a session string
> > >
> > > response1: encrypted session string
> > >
> > >
> > >
> > > (parse response using regex and store session string in jmeter
> > variable
> > > v1)
> > >
> > >
> > >
> > > request2: initiate webservice on AUT using encrypted session string v1
> > > (this will start a long-running SQL query managed by the AUT)
> > >
> > > response2: AUT sends back a handle for the process, a date string
> > >
> > >
> > >
> > > (parse response using regex and store handle in jmeter variable v2)
> > >
> > >
> > >
> > > request3-N: check status of process using session string and handle
> > > vars v1 and v2
> > >
> > > response3-N: AUT sends back response, either "running," "completed
> > > successfully," or "error"
> > >
> > >
> > >
> > > (parse final response and store results as to whether it was a success
> > > or failure)
> > >
> > >
> > >
> > > Questions:
> > >
> > >
> > >
> > > 1. How can I construct the SOAP request with the discovered
> > > variables v1 and v2? Can I simply place "$(v1)" and "$(v2)" within the
> > > text of the SOAP requests in the SOAP Web Service Sampler?
> > > 2. Is this kind of processing too intensive for Jmeter, given that
> > > I want to run this as a load test with as many as 20 users at a time?
> > > 3. How can I output information to a log file such as "value of
> > > v1,v2" and whether each individual user instance was a success or
> > > failure?
> > >
> > >
> > >
> > > Thanks for any help. I've been trying to get an index of the mailing
> > > list using the instructions but have been unable to do so. I wish
> > there
> > > was a BB instead. I really want to use this tool instead of diving
> > into
> > > LoadRunner.
> > >
> > >
> > >
> > > Thanks again,
> > >
> > > Matt
> > >
> > >
> > >
> > >
> > ************************************************************************
> > > **
> > > The information contained in this communication is confidential, is
> > > intended only for the use of the recipient named above, and may be
> > > legally
> > > privileged.
> > >
> > > If the reader of this message is not the intended recipient, you are
> > > hereby notified that any dissemination, distribution or copying of
> > this
> > > communication is strictly prohibited.
> > >
> > > If you have received this communication in error, please resend this
> > > communication to the sender and delete the original message or any
> > copy
> > > of it from your computer system.
> > >
> > > Thank You.
> > >
> > ************************************************************************
> > > **
> > >
> > >
> > > ---------------------------------
> > > Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> > >
> > ************************************************************************
> > **
> > > The information contained in this communication is confidential, is
> > > intended only for the use of the recipient named above, and may be
> > legally
> > > privileged.
> > >
> > > If the reader of this message is not the intended recipient, you are
> > > hereby notified that any dissemination, distribution or copying of
> > this
> > > communication is strictly prohibited.
> > >
> > > If you have received this communication in error, please resend this
> > > communication to the sender and delete the original message or any
> > copy
> > > of it from your computer system.
> > >
> > > Thank You.
> > >
> > ************************************************************************
> > **
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > **************************************************************************
> > The information contained in this communication is confidential, is
> > intended only for the use of the recipient named above, and may be legally
> > privileged.
> >
> > If the reader of this message is not the intended recipient, you are
> > hereby notified that any dissemination, distribution or copying of this
> > communication is strictly prohibited.
> >
> > If you have received this communication in error, please resend this
> > communication to the sender and delete the original message or any copy
> > of it from your computer system.
> >
> > Thank You.
> > **************************************************************************
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message