-4

I am trying to automate the creating and running the performance test script. Firstly, I create the UML activity diagram and I can export this diagram to outside as a xml file. I write a java program that can read this xml file. Now I want to create test script with using the properties which is a separate file that include host, username, time, etc. knowledge about the configuration. I want to use these two files and create a test script for performance test. Which performance test tool is useful and appropriate for my plan? Also I read the jmeter documentation and it can not be run from the script. Jmeter is manually configured.

ik47
  • 1

1 Answers1

0
  1. JMeter's .jmx scripts are basically XML files so you could come up with an XSLT transformation which will convert your UML diagram into an XML file which can be consumed by JMeter. Check out build-web-test-plan.jmx which implements Building a Web Test Plan user manual chapter
  2. Given you're able to write Java programs you can create/execute a JMeter test plan programmatically using JMeter API. Check out Five Ways To Launch a JMeter Test without Using the JMeter GUI article for general instructions and jmeter-from-code sample project

  3. There are is Taurus tool which provides possibility of creating/running a JMeter test plan using simple declarative YAML syntax

Dmitri T
  • 159,985
  • 5
  • 83
  • 133