if you can use ant sure. However note that your test wont work from gui or
without this pre step
You might consider passing the environment as a Jmeter property in which
case you can specify a default.
${__property(run.env,,dev)}_myDataSet.txt
something similar at
http://theworkaholic.blogspot.com/2009/06/testing-multiple-environments-with.html
regards
deepak
On Tue, Sep 22, 2009 at 12:27 PM, Rick <[email protected]> wrote:
> I'm new to jmeter, but looked over the faq and wiki and dind't see
> anything on this...
>
> Currently each of my tests has a CSV DataSet associated with it. (I'm
> doing this by setting up a ThreadGroup then my Sample test underneath
> and then my CSV DataSet added to the test, hopefully that's the right
> way to do it.)
>
> What I want though is a way to use a different csv dataset file based
> on whether I'm stress testing against dev, qa, prod, etc.
>
> I was thinking of accomplishing this by giving my file name something
> like @e...@_mydataset.txt and then during the build for that
> environment using ant, I just use file substitution to substitute the
> correct ENV var. Is this a decent approach or is there a preferred
> best practice?
>
> Thanks
>
> --
> Rick R
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>