Copying Test elements from one JMX file to another ()

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Copying Test elements from one JMX file to another ()

Noel O'Brien
Hi All,

I recently introduced JMeter to my workplace and now there are several people
working on different parts of the same test plan file (Acceptance Test
suite.jmx).

The only problem we're seeing is when we try to check it into our source code
management system (Perforce). As files have been edited in multiple places
they need to be resolved (as expected). However, any diff/merge tool I've
tried to use doesn't correctly pick up the diffs, possibly due to the nested
nature of XML, e.g. if I only add a parent controller to a file and check it
in, the new  controller is seen as a change to the controller it now has
beneath it, and this effect cascades down through the file.

I'm just curious how others deal with this problem or if they even experience
it. How have people gotten around it? I've used the merge tool in P4V and
I've tried Meld too, but both display the issue described above. Maybe I need
to flatten (remove indentation) the file first, then diff/merge, then
re-indent after merge?

Thanks for you help,
Noel

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Copying Test elements from one JMX file to another

Noel O'Brien
Hi All,

I've figured out how to diff successfully using P4Merge: Select File >
Comparison Method > Ignore Line Ending and All White Space Differences

I couldn't figure it out in Meld but hopefully what I've posted will help
someone.

One the same topic, but slightly different question: How can I copy test
elements from one test plan to another? If I open two test plans in their own
instance of JMeter it is not possible to drag / copy / CTRL-C from one to
another. Also, I've tried copying elements to the Workbench, then opened a
new test plan, but the Workbench is cleared when a test plan is closed.

Maybe it would be a good feature to have the workbench store test elements
regardless of whether there's a test plan currently loaded or not (But it
would still be in-memory). this would enable users to copy elements to-from
testplans.

Regards,
Noel

On Monday 09 February 2009 10:26:50 Noel O'Brien wrote:

> Hi All,
>
> I recently introduced JMeter to my workplace and now there are several
> people working on different parts of the same test plan file (Acceptance
> Test suite.jmx).
>
> The only problem we're seeing is when we try to check it into our source
> code management system (Perforce). As files have been edited in multiple
> places they need to be resolved (as expected). However, any diff/merge tool
> I've tried to use doesn't correctly pick up the diffs, possibly due to the
> nested nature of XML, e.g. if I only add a parent controller to a file and
> check it in, the new  controller is seen as a change to the controller it
> now has beneath it, and this effect cascades down through the file.
>
> I'm just curious how others deal with this problem or if they even
> experience it. How have people gotten around it? I've used the merge tool
> in P4V and I've tried Meld too, but both display the issue described above.
> Maybe I need to flatten (remove indentation) the file first, then
> diff/merge, then re-indent after merge?
>
> Thanks for you help,
> Noel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Copying Test elements from one JMX file to another ()

Axel Knauf-2
In reply to this post by Noel O'Brien
Hi Noel.

On Mon, Feb 9, 2009 at 11:26, Noel O'Brien <[hidden email]> wrote:
> I recently introduced JMeter to my workplace and now there are several people
> working on different parts of the same test plan file (Acceptance Test
> suite.jmx). [ merging issues ]

You could save the separate test plan parts in different files and
edit them concurrently. The documentation says that it's possible to
save single branches by selecting them. See the yellow (yellow?) box
below "3.4 Saving the Test Plan" here:

  http://jakarta.apache.org/jmeter/usermanual/build-test-plan.html

Cheers & HTH,
Axel

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Copying Test elements from one JMX file to another

sebb-2-2
In reply to this post by Noel O'Brien
On 09/02/2009, Noel O'Brien <[hidden email]> wrote:

> Hi All,
>
>  I've figured out how to diff successfully using P4Merge: Select File >
>  Comparison Method > Ignore Line Ending and All White Space Differences
>
>  I couldn't figure it out in Meld but hopefully what I've posted will help
>  someone.
>
>  One the same topic, but slightly different question: How can I copy test
>  elements from one test plan to another? If I open two test plans in their own
>  instance of JMeter it is not possible to drag / copy / CTRL-C from one to
>  another. Also, I've tried copying elements to the Workbench, then opened a
>  new test plan, but the Workbench is cleared when a test plan is closed.

One way is to select the element(s) in the source plan and use Save As...

Then open the target plan and use Merge ... to add the snippet to the
appropriate place in the tree.


>  Maybe it would be a good feature to have the workbench store test elements
>  regardless of whether there's a test plan currently loaded or not (But it
>  would still be in-memory). this would enable users to copy elements to-from
>  testplans.

Feel free to open a Bugzilla enhancement request.

>  Regards,
>  Noel
>
>  On Monday 09 February 2009 10:26:50 Noel O'Brien wrote:
>  > Hi All,
>  >
>  > I recently introduced JMeter to my workplace and now there are several
>  > people working on different parts of the same test plan file (Acceptance
>  > Test suite.jmx).
>  >
>  > The only problem we're seeing is when we try to check it into our source
>  > code management system (Perforce). As files have been edited in multiple
>  > places they need to be resolved (as expected). However, any diff/merge tool
>  > I've tried to use doesn't correctly pick up the diffs, possibly due to the
>  > nested nature of XML, e.g. if I only add a parent controller to a file and
>  > check it in, the new  controller is seen as a change to the controller it
>  > now has beneath it, and this effect cascades down through the file.
>  >
>  > I'm just curious how others deal with this problem or if they even
>  > experience it. How have people gotten around it? I've used the merge tool
>  > in P4V and I've tried Meld too, but both display the issue described above.
>  > Maybe I need to flatten (remove indentation) the file first, then
>  > diff/merge, then re-indent after merge?
>  >
>  > Thanks for you help,
>  > Noel
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [hidden email]
>  > For additional commands, e-mail: [hidden email]
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [hidden email]
>  For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Copying Test elements from one JMX file to another

Noel O'Brien
Thanks for your help Axel/Sebb. Looks like saving  / merging test plan parts
is the only option for now.

I've logged an enhancement here:

https://issues.apache.org/bugzilla/show_bug.cgi?id=46677

suggesting a persistant workbench while JMeter is running and drag/drop and
copy/paste between JMeter instances.

Regards,
Noel

On Monday 09 February 2009 11:44:17 sebb wrote:

> On 09/02/2009, Noel O'Brien <[hidden email]> wrote:
> > Hi All,
> >
> >  I've figured out how to diff successfully using P4Merge: Select File >
> >  Comparison Method > Ignore Line Ending and All White Space Differences
> >
> >  I couldn't figure it out in Meld but hopefully what I've posted will
> > help someone.
> >
> >  One the same topic, but slightly different question: How can I copy test
> >  elements from one test plan to another? If I open two test plans in
> > their own instance of JMeter it is not possible to drag / copy / CTRL-C
> > from one to another. Also, I've tried copying elements to the Workbench,
> > then opened a new test plan, but the Workbench is cleared when a test
> > plan is closed.
>
> One way is to select the element(s) in the source plan and use Save As...
>
> Then open the target plan and use Merge ... to add the snippet to the
> appropriate place in the tree.
>
> >  Maybe it would be a good feature to have the workbench store test
> > elements regardless of whether there's a test plan currently loaded or
> > not (But it would still be in-memory). this would enable users to copy
> > elements to-from testplans.
>
> Feel free to open a Bugzilla enhancement request.
>
> >  Regards,
> >  Noel
> >
> >  On Monday 09 February 2009 10:26:50 Noel O'Brien wrote:
> >  > Hi All,
> >  >
> >  > I recently introduced JMeter to my workplace and now there are several
> >  > people working on different parts of the same test plan file
> >  > (Acceptance Test suite.jmx).
> >  >
> >  > The only problem we're seeing is when we try to check it into our
> >  > source code management system (Perforce). As files have been edited in
> >  > multiple places they need to be resolved (as expected). However, any
> >  > diff/merge tool I've tried to use doesn't correctly pick up the diffs,
> >  > possibly due to the nested nature of XML, e.g. if I only add a parent
> >  > controller to a file and check it in, the new  controller is seen as a
> >  > change to the controller it now has beneath it, and this effect
> >  > cascades down through the file.
> >  >
> >  > I'm just curious how others deal with this problem or if they even
> >  > experience it. How have people gotten around it? I've used the merge
> >  > tool in P4V and I've tried Meld too, but both display the issue
> >  > described above. Maybe I need to flatten (remove indentation) the file
> >  > first, then diff/merge, then re-indent after merge?
> >  >
> >  > Thanks for you help,
> >  > Noel
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: [hidden email]
> >  > For additional commands, e-mail: [hidden email]
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: [hidden email]
> >  For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]