Tags » Test Automation Tools

Jmeter - If controller example

If controller  example to control which request to send based on response of the other sampler.

We’re using Dummy Sampler to generate requests.

We also need to extract response’s code. 52 more words

Jmeter

Jmeter's Variables From CSV File - relative path

Jmeters Variables From CSV File config element set its base directory as a user’s home directory. If you ‘Browse’ your file it will put something like: 56 more words

Jmeter

Use Jmeter's base directory

You can access these variables using Beanshell as follows:

  1. JMeter’s base dir
    import org.apache.jmeter.services.FileServer;
    
    String baseDir = FileServer.getFileServer().getBaseDir();
    vars.put("baseDir", baseDir);
    
  2. JMeter’s script location (GUI mode) …
  3. 74 more words
Jmeter