Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Simple Table Server is not working for multiple thread groups when started STS from Jmeter

As per the requirement we need to use STS for handling of test data, we have multiple threadgroup’s & we are not supposed to start STS manually

when we start simple table server via JSR223 sampler for a single thread group & STS is not working for the remaining thread groups

Runtime.getRuntime().exec("C:/Windows/System32/cmd.exe /c C:/jmeter/bin/simple-table-server.cmd");

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

when we start STS for all thread group’s & working for random thread group alone, please help on this to make sts as global

how to start STS via jmeter for multi thread group got involved

>Solution :

There is a better way of starting HTTP Simple Table Server along with JMeter.

As per documentation:

There are different ways to start the STS:

  • with JMeter GUI:
  • with simple-table-server.cmd
  • on JMeter CLI startup (Windows : jmeter-n.cmd or Linux jmeter -n) following properties in jmeter.properties file or in user.properties :

So all you need to do is to add the next line to user.properties file:

jmeterPlugin.sts.loadAndRunOnStartup=true
jmeterPlugin.sts.port=9191
jmeterPlugin.sts.initFileAtStartup=your-file.csv
jmeterPlugin.sts.initFileAtStartupRegex=false

and next time you start JMeter the HTTP Simple Table Server will start and init the CSV file automatically so it will be ready for use.

More information:

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading