GreenPepper Seeds of GreenPepper
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Performance issue  XML
Forum Index -> Support
Author Message
nbourdais


Joined: 08/09/2009 10:04:24
Messages: 2
Offline

Hi,

when executing every gp pages with maven it takes a long time (around 50 min for 100 pages and we have 2 spaces with 100 pages each).
It prevents us from running regurarly all the tests.

Maybe there's a problem with greenpepper, or with the way we use it.

Is it possible to get support to investigate this issue?

We use greenpepper 2.6, confluence 2.10 and maven 2.0.9.

Nicolas Bourdais
fdenommee

[Avatar]
Joined: 25/01/2008 10:23:16
Messages: 587
Offline

Hi,

Retrieval of the pages should not take as long (the maven plugin just use XmlRpc call to retrieve the page as Html from Confluence).

To confirm that it is just the retrieval that is long, run the greenpepper:freeze goal - it will retrieve the pages and will produce a zip file. This freeze goal will not attempt to execute the specifications... This way we separate two things : the retrieval versus the execution of the specifications (calling the fixtures - are you doing something 'heavy' in the fixtures?)

The other thing to investigate is to look at the Confluence log to see if anyhing comes up...

Cheers,
Francois D.
nbourdais


Joined: 08/09/2009 10:04:24
Messages: 2
Offline

Thank you for your answer.

I launched the freeze goal and it took ~ 10 minutes to retrieve around 100 pages which is consistent with our log during a normal run.

Our typical specification is built like this :

A setup which includes 3 to 6 references specifications plus specific setup.
By setup I mean many Arrays with enterRow. For each row we usually create an object and save it in a dictionnary.
Then some actions and assertions. Before calling any of our code we persist the dictionnary to a hsql database.

At the beginning of the total run one specification last a bit more than 10 seconds :
6 seconds to retrieve the page
2 seconds for onStartDocument (which is mostly loading the application context)
3 seconds for setup
1 second for the actions / assertions

At the end of the run it takes more than 50 seconds :
7 seconds to retrieve the page
1 seconds for onStartDocument
36 seconds for setup
7 second for the actions / assertions

It seems there is a strong degradation of setup but we don't see how to track it down.

Would you like to give a look to our log (and how can I attach it)?

Nicolas
fdenommee

[Avatar]
Joined: 25/01/2008 10:23:16
Messages: 587
Offline

Hi,

You can send me your log at fdenommee AT pyxis-tech dot com - I will have a look...

To gather further information, you can have 'statistics' of the time by looking at the greenpepper reports. You will need to generate Xml reports by adding a
Code:
<reportsType>xml</reportsType>
to the GreenPepper plugin or by specifying
Code:
-Dmaven.greenpepper.reports.type=xml
on the command line. You will see a
Code:
<time-statistics>
element that will inform about the time to execute the document and the total time (total time include the retrieval of the specification, the parsing, the execution...)

Cheers,
Francois D.
 
Forum Index -> Support
Go to:   
Powered by JForum 2.1.6 © JForum Team