You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Noel O'Brien <no...@newbay.com> on 2009/02/09 11:26:50 UTC
Copying Test elements from one JMX file to another ()
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Copying Test elements from one JMX file to another
Posted by Noel O'Brien <no...@newbay.com>.
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 <no...@newbay.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Copying Test elements from one JMX file to another
Posted by sebb <se...@gmail.com>.
On 09/02/2009, Noel O'Brien <no...@newbay.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Copying Test elements from one JMX file to another
Posted by Noel O'Brien <no...@newbay.com>.
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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Copying Test elements from one JMX file to another ()
Posted by Axel Knauf <ax...@googlemail.com>.
Hi Noel.
On Mon, Feb 9, 2009 at 11:26, Noel O'Brien <no...@newbay.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org