Which again can be run directly from the script that invokes JMeter. However, there is one feature of JMeter that might be useful here, which is that it can run a BeanShell script on startup - see jmeter.properties:
#beanshell.init.file Just put the call to the Java method in there. On 20/02/2010, kukukuku <[email protected]> wrote: > > It would be very usefull to use java for this, i have a lib which exactly > provides the functions i need to copy files and so on. So if i could somehow > make it happen to execute a java method (which i provide) before the test > gets executed this would be perfect. > > > > sebb-2-2 wrote: > > > > On 19/02/2010, kukukuku <[email protected]> wrote: > >> > >> I want to test an application for performance/stress. The application > >> depends > >> on several files like database files, configuration files and so on to > >> run > >> correctly. I want to be able to switch these files from test to test to > >> simulate diffrent enviroments. In the best case this could be done > >> before > >> executing the test itself. > >> > > > > Seems to me that this setup would be a lot easier to do outside > > JMeter, e.g. use a shell script to do the set up, and then have it run > > JMeter in non-GUI mode. > > > >> > >> Andrey Pohilko-2 wrote: > >> > > >> > Deleting files sounds like functional testing. JMeter is a load > >> testing > >> > tool. > >> > > >> > Seems you design your test wrong... > >> > > >> > > >> > С уважением, > >> > Андрей Похилько > >> > > >> > -----Original Message----- > >> > From: kukukuku [mailto:[email protected]] > >> > Sent: Friday, February 19, 2010 7:12 PM > >> > To: [email protected] > >> > Subject: Copy files before executing sampler > >> > > >> > > >> > hi, > >> > > >> > if i want to copy any files in a specific folder or delete any files > >> > before > >> > i start with executing a sampler how would i do that? I'm new to > >> jmeter so > >> > i > >> > apologize if this seems like an easy question. I searched for examples > >> but > >> > i > >> > could not find anything usefull. The closest thing i found was using > >> > pre-processors for example bsh scripts. However i could not get it to > >> > work. > >> > Would be nice if someone could help me or direct me in the correct > >> > direction. > >> > > >> > thx kukudas > >> > -- > >> > View this message in context: > >> > > >> > http://old.nabble.com/Copy-files-before-executing-sampler-tp27655448p2765544 > >> > 8.html > >> > Sent from the JMeter - User mailing list archive at Nabble.com. > >> > > >> > > >> > --------------------------------------------------------------------- > >> > 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] > >> > > >> > > >> > > >> > >> -- > >> > >> View this message in context: > >> > http://old.nabble.com/Copy-files-before-executing-sampler-tp27655448p27656933.html > >> > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> 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] > > > > > > > > -- > > View this message in context: > http://old.nabble.com/Copy-files-before-executing-sampler-tp27655448p27671181.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]

