Antonio> Have you an example because I don't see how
add special comment will solve the problem

I hope mail parser would not eat my example. If it does, you can find an
example at https://gist.github.com/vlsi/0975c5e7be6f469f802921a38c005489

I suggest adding a human-readable comment to the start of the file, so the
diff between scripts can be easier to understand:

<?xml version="1.0" encoding="UTF-8"?><!--Test plan:   Thread group
(146 threads, 1:00:00 duration)      login (http sampler /login)
Test Loop (Loop Controller)        navigate to desktop (http sampler
/desktop)          extract regex /...../          ...^^^ note that
above is just a human-friendly comment, it is not supposed to be
parsed by JMeter and/or changed by humans.-->
<jmeterTestPlan version="1.2" properties="2.8" jmeter="2.13 r1665067">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Sandbox">
      <stringProp name="TestPlan.comments"></stringProp>
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
      <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>


This should pretty much cover "diff" use case that you list here:

Antonio>I have talked with the creator of Gatling and one of his goal with
Gatling
is to have a diff between 2 scripts. It's one reason he have made a DSL

Reply via email to