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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************************** 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

