jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Singer <Michal.Sin...@expand.com>
Subject Re: How to change Http Sampler file sent during run
Date Tue, 10 Jun 2008 11:43:50 GMT

Great, it worked. thanks a lot.
I have another question related: I want to process results on my own, so i
can use the results as input in a csv configuration file for another test.
What is the best way to do this? can i add my own listener?




sebb-2-2 wrote:
> 
> JMeter does not examine or update the contents of any files it sends.
> 
> If there are not many different versions of the file, then you could
> create them in advance, and upload a different file for each different
> entry.
> 
> Otherwise, you may perhaps be able to use the SOAP/XML-RPC sampler -
> it does not have  to be used with a SOAP server. JMeter will replace
> variable and function references it finds in the Data field on the
> screen.
> 
> On 10/06/2008, Michal Singer <Michal.Singer@expand.com> wrote:
>>
>>  Hi. I tried the "CSV Data Set Config" but it didn't work on the xml
>> sent.
>>  How do i connect this to the HttpSampler: xml file i send?
>>  I debuged the JMeter and it looks like the CSV is configured ok, but for
>> no
>>  where in the HTTP send does any one read this input.
>>
>>  Thanks, Michal
>>
>>
>>
>>
>>  Afroman77 wrote:
>>  >
>>  > This sounds possible with a "CSV Data Set Config".
>>  >
>>  > Basicly you  put all the values <acc_id> can have in a file and JMeter
>>  > will read this file one line per thread  putting the line as the value
>> of
>>  > <acc_id>.
>>  >
>>  > How to set up a "CSV Data Set Config" is pretty well explained on the
>>  > manual.
>>  >
>>  >
>>  > ivan
>>  > -----Original Message-----
>>  > From: Michal Singer [mailto:Michal.Singer@expand.com]
>>  > Sent: den 5 juni 2008 15:13
>>  > To: jmeter-user@jakarta.apache.org
>>  > Subject: How to change Http Sampler file sent during run
>>  >
>>  >
>>  > Hi. I would like to be able to change the file sent in the body of the
>>  > http
>>  > request during run. So that if i have many threads configured to send
>> this
>>  > request, each one will send a different file which will be editted
>>  > during run.
>>  >
>>  > For example, if the file contains this:
>>  > <message>
>>  >         <type>Alerts</type>
>>  >         <acc_id>16128</acc_id>
>>  >         <acc_ip>10.206.91.6</acc_ip>
>>  > </message>
>>  > I would like to change the field <acc_ip> for each thread before it
>>  > executes.
>>  > I don't want to define it manually by defining different tests, since
>> i
>>  > want
>>  > to run more then 1000 combinations.
>>  > Currently the only way i can see to do this is to checkout the JMeter
>> src
>>  > files, and to add my additions to class:HTTPSampler:sendPostData
>> method,
>>  > so
>>  > that before send i would change the file to send.
>>  >
>>  > I am sure there is a more elegant way to do this, by some how
>> replacing
>>  > the
>>  > HTTPSampler default class or something else.
>>  >
>>  > Another thing: i would also like to do some logic after the response
>> is
>>  > received before running another test. Cause i want to change files for
>> a
>>  > different test depending on the result of test A.
>>  >
>>  >
>>  > Please let me know what is the best way to do this.
>>  >
>>  > Thanks
>>  >
>>  > --
>>  > View this message in context:
>>  >
>> http://www.nabble.com/How-to-change-Http-Sampler-file-sent-during-run-tp17669488p17669488.html
>>  > Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >
>>  >
>>  > ---------------------------------------------------------------------
>>  > 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
>>  >
>>  >
>>  >
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/How-to-change-Http-Sampler-file-sent-during-run-tp17669488p17750610.html
>>
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-change-Http-Sampler-file-sent-during-run-tp17669488p17753412.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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