[Libreoffice-qa] new automated test concept for chart2

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Mar 27 20:30:37 PDT 2012


Hey,

finally I was able to finish my work on a chart2 test concept. I have
implemented an idea that renders the chart and then dumps the layout
data into an xml based on the information stored in the
XShape/XShapes. This allows us to easily add new test cases without
having to know anything about programming or chart2. All you need to
create a new test case is a bit of time.
For everyone interested in writing and extending chart tests please
have a look at: https://bugs.freedesktop.org/show_bug.cgi?id=47667

So here some more technical details for all who are interested in it:

The dumper code is in chart2/source/view/main/ChartView.cxx and takes
the drawing::XDrawPage and dumps the containing XShape/XShapes into
xml. The dumper can be easily extended and it would be nice if
everyone fixing a bug in chart2 could have a look at it and check if
this bug could have been prevented if the dumper would included some
more information.
BY enabling the debug output of the dumper you will get a list of
supported service names in the dump and can just add a method for this
service or for one interface of this service.

It might be that the same code is valuable for Draw/Impress too and we
can then think about extracting the dumper and moving it into test.


The test is not yet activated but is working already. So if you want
to play a bit with it just add it into Module_sc.mk. Feedback as
always highly appreciated. If there are no objections I plan to
activate the test in sc's subsequentcheck target at the end of the
week.

Regards,
Markus

P.S. For calc devs I will add a hidden export filter that exports the
same content to make debugging chart bugs easier.


More information about the Libreoffice-qa mailing list