other than uploading a copy of your script (simplified version) and your class and giving a link , im not sure how else we can diagnose this problem..
regards deepak On Wed, Nov 10, 2010 at 9:34 AM, Andrei Ghimus <[email protected]> wrote: > Yes, no errors in jmeter.log. In fact, logs are identical (JavaTest vs > MyMethod) except for timestamps and thread ids. > > On Wed, Nov 10, 2010 at 6:20 PM, Deepak Shetty <[email protected]> wrote: > > did you check jmeter.log for errors? > > > > > > On Wed, Nov 10, 2010 at 9:05 AM, Andrei Ghimus <[email protected]> wrote: > > > >> I've just tested with the "JavaTest" Java Sampler and it does indeed > >> work as I need it to. > >> However, the sampler I'm calling is another Java Sampler that's > >> calling a custom method (written by me). I'm referencing the SFF > >> identically as in the above example and the behavior changes: it only > >> reads the first line. > >> > >> On Wed, Nov 10, 2010 at 5:46 PM, Deepak Shetty <[email protected]> > wrote: > >> > Tested string from file too , works fine > >> > ThreadGroup > >> > +Loop Controller > >> > ++Sampler (Name = ${_StringFromFile(c:/test.csv)} ) > >> > View Results Tree > >> > > >> > perhaps you should explain your test structure or upload a stripped > down > >> > version of your test script that is failing and give us a link > >> > > >> > regards > >> > deepak > >> > > >> > On Wed, Nov 10, 2010 at 8:35 AM, Andrei Ghimus <[email protected]> > wrote: > >> > > >> >> On Wed, Nov 10, 2010 at 4:58 PM, sebb <[email protected]> wrote: > >> >> > On 10 November 2010 14:31, Andrei Ghimus <[email protected]> wrote: > >> >> >> Good day! > >> >> >> > >> >> >> I'm using JMeter to load test a search webapp. > >> >> >> I have a Sampler in a 100x Loop that sends a search query to the > >> >> >> application and I need the search query to be different from the > >> >> >> previous one. > >> >> >> > >> >> >> What I've tried so far: > >> >> >> - __StringFromFile() - does not work because it only moves to the > >> next > >> >> >> line at the start of each Thread/Iterarion, not at the start of > each > >> >> >> Loop, > >> >> > > >> >> > That's not the case. > >> >> > > >> >> > SFF does work; however it depends where you reference it - if it is > in > >> >> > a Config element then the file will be read when the Config element > is > >> >> > processed. > >> >> > > >> >> > If you reference it directly in the sampler, or in the UDV > >> >> > Pre-Processor it will work as you want. > >> >> > >> >> If I reference it in the Sampler, it always returns the first line. > If > >> >> I put a User Parameters (I assume that's what you meant by UDV) > >> >> pre-processor in front of it, it always returns the second line. > >> >> > > >> >> >> - __FileToString() - does not work because I can't __split() the > file > >> >> >> by newline, > >> >> >> - CSV Data Set Config - does not work, not even nested inside the > >> >> >> Loop, same as for __StringFromFile(), > >> >> >> - __CSVRead() - does not work, same as for __StringFromFile(). > >> >> >> > >> >> >> I'm running out of ideas/options. If anyone has done anything > >> similar, > >> >> >> please share how you went about it. > >> >> >> > >> >> >> > --------------------------------------------------------------------- > >> >> >> 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] > >> >> > > >> >> > > >> >> > >> >> --------------------------------------------------------------------- > >> >> 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] > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

