flood-io / ruby-jmeter

A Ruby based DSL for building JMeter test plans
MIT License
748 stars 139 forks source link

JMX to DSL? #95

Open micksear opened 8 years ago

micksear commented 8 years ago

One of the things drawing me to ruby-jmeter is the possibilities for improving the way we store test plans in source control. But I already have a bunch of test plans. Rather than figure out how to code them in ruby-dsl, how about reverse-engineering the dsl from those existing jmx files?

It strikes me that this would also serve as a great way to illustrate how write things in ruby-dsl - you'd just need to create the equivalent in the JMeter UI and then convert it.

Are there any plans to do this?

timkoopmans commented 8 years ago

Hi there. Technically this would be possible but we don't have any plans to add this funcitonality at this stage. You can see how our IDL does this sort of thing to produce the blueprint of each ruby-jmeter class here https://github.com/flood-io/ruby-jmeter/blob/master/lib/ruby-jmeter/idl.rb

I think you'd have to navigate through the XML tree and write a test plan in specific order. Might be tricky.

Regards, ​Tim