1
votes

I have recorded a jmeter script for wiki page. That record was done in one of our test environment. That script is working fine and now i want to perform same load test for another test environment(Both environments are same, only urls are different).Is it possible to reuse?How can i do it?

I have added HTTP Request default element at the begging of test plan creation. Now recorded script consist of many HTTP Request element. Each request element contains Server IP of test instance.

2

2 Answers

1
votes
  1. Extract IPs and other env-specific data to .properties file: http://jmeter.apache.org/usermanual/get-started.html#options
  2. Read them in your JMeter with JMeter built-in function ${__P(someName)} as you see fit
  3. Run your generic JMeter test with env-specific config data in .properties file
1
votes

Yes. It is possible to run the same test in multiple environments. It all depends on how you design your test plan.

This site has exact details you are looking for. http://www.testautomationguru.com/jmeter-manage-test-plan/