jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Store extracted data in a file
Date Thu, 01 Sep 2011 18:50:21 GMT
> But to do the operation, I need the ID of the customer, which is returned
when the customer is created.
Forget Jmeter for a moment. When the customer logs in to the site with a
browser and performs the operation, does he enter his ID? I doubt thats the
case. Assuming it isn't , then usually the ID will be stored as a hidden
input variable in the HTML or be specified in the URL of the form or
something. In which case the standard way to do this in JMeter is extract
out the value from the previous response (in the customers flow of
performing the operation)  and use it.


regards
deepak


On Thu, Sep 1, 2011 at 3:53 AM, bisbis <aspataru@avaya.com> wrote:

> Hello,
>
> I have to do create a test that basically do this:
> - as admin create a number of customers (let's say 20)
> - after that, login with each user and do a set of actions.
>
> The first request I solved it in this way: login as admin, and then read
> the
> username and password needed to create the customer from a CSV file.
>
> And because I already know the username and password of each user, I can
> login with the users. But to do the operation, I need the ID of the
> customer, which is returned when the customer is created.
>
> I can extract the ID by using the regular expression extractor. But, I need
> to store this ID in a file, a CSV file preferable. And with this file
> created, when I login with the user, I can take his ID from the file and
> pass it to the application...
>
> Is there any way to do that? How can I store each extracted ID in a file?
>
> Thanks,
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Store-extracted-data-in-a-file-tp4757868p4757868.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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message