|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Any way to start reading csv from particular positionIn a Test Plan, I am referring csv file in HTTP request sampler.
I am running this plan through ant. After some time I have to stop the test. But now when I restart the test again, I want that csv file should be read from the point where it was left earlier. But I dont find any option to achieve this. So it starts reading from first line. Please help if there is any way to achieve this. (Like if we can pass start parameter to CSV Data Set Config, we can do this). Regards |
|
|
Re: Any way to start reading csv from particular positionOn 10/11/2009, Harry_ <harjitworks@...> wrote:
> > In a Test Plan, I am referring csv file in HTTP request sampler. > > I am running this plan through ant. > > After some time I have to stop the test. > > But now when I restart the test again, I want that csv file should be read > from the point where it was left earlier. But I dont find any option to > achieve this. So it starts reading from first line. > > Please help if there is any way to achieve this. (Like if we can pass start > parameter to CSV Data Set Config, we can do this). No, JMeter does not support this. However, since it is Open Source, you can update it to do whatever you want. > Regards > > -- > View this message in context: http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26287369.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@... > For additional commands, e-mail: jmeter-user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@... For additional commands, e-mail: jmeter-user-help@... |
|
|
Re: Any way to start reading csv from particular positionNo direct way to do this, you could ofcourse code BSH/Java for Jmeter to
work this way (you'd have to have a master CSV file of all records , a way to specify what the last processed record is and a way to create a new CSV file/skip rows from that point onwards) Test runs ideally shouldnt be stateful, Im not sure what you are trying to accomplish by this technique regards deepak On Tue, Nov 10, 2009 at 10:30 AM, Harry_ <harjitworks@...> wrote: > > In a Test Plan, I am referring csv file in HTTP request sampler. > > I am running this plan through ant. > > After some time I have to stop the test. > > But now when I restart the test again, I want that csv file should be read > from the point where it was left earlier. But I dont find any option to > achieve this. So it starts reading from first line. > > Please help if there is any way to achieve this. (Like if we can pass start > parameter to CSV Data Set Config, we can do this). > > Regards > -- > View this message in context: > http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26287369.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@... > For additional commands, e-mail: jmeter-user-help@... > > |
|
|
Re: Any way to start reading csv from particular positionThanks for the reply deepak...
I am calling Jmeter jmx plan from ant with loop count value of 1000. The requests in test plan reads request from csv file. Now after 1000 cycles I again call the same plan through ant (to avoid long runs). But now again plan starts reading from start of the file. As you said this is as designed behavior, I wall call a java function after each jMeter test plan Run through ant, which will backup the existing file, reshuffles the link by placing first 1000 links at the end of the original file. If some error comes in between then backup file will replace the original file. Otherwise we will have file with non-visited or LRU links at the top of file. Now when plan will run again it will cal LRU links from the start of file. If there is any other simple/clean way of achieving this do let me know. Hope you get what I am saying... Regards
|
|
|
Re: Any way to start reading csv from particular positionSounds like overkill
> Now after 1000 cycles I again call the same plan through ant (to avoid long runs) why? also why not generate multiple CSV files and pass that as a property to JMeter ... regars deepak On Wed, Nov 11, 2009 at 11:01 AM, Harry_ <harjitworks@...> wrote: > > Thanks for the reply deepak... > > I am calling Jmeter jmx plan from ant with loop count value of 1000. The > requests in test plan reads request from csv file. > > Now after 1000 cycles I again call the same plan through ant (to avoid long > runs). But now again plan starts reading from start of the file. As you > said > this is as designed behavior, I wall call a java function after each jMeter > test plan Run through ant, which will backup the existing file, reshuffles > the link by placing first 1000 links at the end of the original file. If > some error comes in between then backup file will replace the original > file. > Otherwise we will have file with non-visited or LRU links at the top of > file. Now when plan will run again it will cal LRU links from the start of > file. > > If there is any other simple/clean way of achieving this do let me know. > > Hope you get what I am saying... > > Regards > > > Deepak Shetty wrote: > > > > No direct way to do this, you could ofcourse code BSH/Java for Jmeter to > > work this way (you'd have to have a master CSV file of all records , a > way > > to specify what the last processed record is and a way to create a new > CSV > > file/skip rows from that point onwards) > > Test runs ideally shouldnt be stateful, Im not sure what you are trying > to > > accomplish by this technique > > > > regards > > deepak > > > > > > On Tue, Nov 10, 2009 at 10:30 AM, Harry_ <harjitworks@...> wrote: > > > >> > >> In a Test Plan, I am referring csv file in HTTP request sampler. > >> > >> I am running this plan through ant. > >> > >> After some time I have to stop the test. > >> > >> But now when I restart the test again, I want that csv file should be > >> read > >> from the point where it was left earlier. But I dont find any option to > >> achieve this. So it starts reading from first line. > >> > >> Please help if there is any way to achieve this. (Like if we can pass > >> start > >> parameter to CSV Data Set Config, we can do this). > >> > >> Regards > >> -- > >> View this message in context: > >> > http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26287369.html > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: jmeter-user-unsubscribe@... > >> For additional commands, e-mail: jmeter-user-help@... > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26306700.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@... > For additional commands, e-mail: jmeter-user-help@... > > |
|
|
Re: Any way to start reading csv from particular positionYes I am already doing that Deepak. CSV is broken into multiple file as per the number of JVM instances we are going to run which depends upon the test type (Stress, Soak, Normal etc). These broken files are passed as argument only to JVMs as you said below.
Still CSV's contain lakhs of different requests. And I do not want any JVM instance to run for that long. 1000 requests was just an example. In practice the value would be around 25000 or whatever best suits our system without facing hardware problems. Regards
|
|
|
Re: Any way to start reading csv from particular position>And I do not want any JVM instance to run for that long
why? >In practice the value would be around 25000 or whatever best suits our system >without facing hardware problems. The number of requests shouldnt cause Jmeter any problems (unless you hold onto something). The number of concurrent requests is the limiting factor. regards deepak On Wed, Nov 11, 2009 at 12:56 PM, Harry_ <harjitworks@...> wrote: > > Yes I am already doing that Deepak. CSV is broken into multiple file as per > the number of JVM instances we are going to run which depends upon the test > type (Stress, Soak, Normal etc). These broken files are passed as argument > only to JVMs as you said below. > > Still CSV's contain lakhs of different requests. And I do not want any JVM > instance to run for that long. 1000 requests was just an example. In > practice the value would be around 25000 or whatever best suits our system > without facing hardware problems. > > Regards > > > Deepak Shetty wrote: > > > > Sounds like overkill > >> Now after 1000 cycles I again call the same plan through ant (to avoid > > long runs) > > why? > > also why not generate multiple CSV files and pass that as a property to > > JMeter ... > > > > regars > > deepak > > > > On Wed, Nov 11, 2009 at 11:01 AM, Harry_ <harjitworks@...> wrote: > > > >> > >> Thanks for the reply deepak... > >> > >> I am calling Jmeter jmx plan from ant with loop count value of 1000. > The > >> requests in test plan reads request from csv file. > >> > >> Now after 1000 cycles I again call the same plan through ant (to avoid > >> long > >> runs). But now again plan starts reading from start of the file. As you > >> said > >> this is as designed behavior, I wall call a java function after each > >> jMeter > >> test plan Run through ant, which will backup the existing file, > >> reshuffles > >> the link by placing first 1000 links at the end of the original file. If > >> some error comes in between then backup file will replace the original > >> file. > >> Otherwise we will have file with non-visited or LRU links at the top of > >> file. Now when plan will run again it will cal LRU links from the start > >> of > >> file. > >> > >> If there is any other simple/clean way of achieving this do let me know. > >> > >> Hope you get what I am saying... > >> > >> Regards > >> > >> > >> Deepak Shetty wrote: > >> > > >> > No direct way to do this, you could ofcourse code BSH/Java for Jmeter > >> to > >> > work this way (you'd have to have a master CSV file of all records , a > >> way > >> > to specify what the last processed record is and a way to create a new > >> CSV > >> > file/skip rows from that point onwards) > >> > Test runs ideally shouldnt be stateful, Im not sure what you are > trying > >> to > >> > accomplish by this technique > >> > > >> > regards > >> > deepak > >> > > >> > > >> > On Tue, Nov 10, 2009 at 10:30 AM, Harry_ <harjitworks@...> > wrote: > >> > > >> >> > >> >> In a Test Plan, I am referring csv file in HTTP request sampler. > >> >> > >> >> I am running this plan through ant. > >> >> > >> >> After some time I have to stop the test. > >> >> > >> >> But now when I restart the test again, I want that csv file should be > >> >> read > >> >> from the point where it was left earlier. But I dont find any option > >> to > >> >> achieve this. So it starts reading from first line. > >> >> > >> >> Please help if there is any way to achieve this. (Like if we can pass > >> >> start > >> >> parameter to CSV Data Set Config, we can do this). > >> >> > >> >> Regards > >> >> -- > >> >> View this message in context: > >> >> > >> > http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26287369.html > >> >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@... > >> >> For additional commands, e-mail: jmeter-user-help@... > >> >> > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26306700.html > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: jmeter-user-unsubscribe@... > >> For additional commands, e-mail: jmeter-user-help@... > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/Any-way-to-start-reading-csv-from-particular-position-tp26287369p26308464.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@... > For additional commands, e-mail: jmeter-user-help@... > > |
|
|
Re: Any way to start reading csv from particular positionThat is fine Deepak but in stress, the number of threads per JVM would be more, that is why restarting seems to be a good idea to me. But Yeah if things work fine for continuous runs as you are pointing for long duration we will increase the number of loops accordingly.
Regards
|
| Free embeddable forum powered by Nabble | Forum Help |