Report needs to be in HTML

Bug #1214443 reported by Ara Pulido
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
Daniel Manrique

Bug Description

Currently, final report is in XML mode.

We need a HTML version of it.

Tags: plainbox

Related branches

Chris Gregan (cgregan)
Changed in checkbox-ihv-ng:
status: New → Confirmed
milestone: none → version1.1
Revision history for this message
Daniel Manrique (roadmr) wrote :

The checkbox/plainbox side of this (html exporter) is just awaiting review. There's a non-expressed task about adding the required data and template files to plainbox packaging.

Changed in checkbox:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Daniel Manrique (roadmr)
Revision history for this message
Andrew Haigh (andrew-haigh-b) wrote :

Gui side should be very simple too. Just modify SubmissionDialog.qml to ask the gui-engine for a html file:
http://bazaar.launchpad.net/~checkbox-ihv-ng/checkbox-ihv-ng/trunk/view/head:/plainbox-gui/driver-testing/qml/SubmissionDialog.qml

                // Interim solution is to fire up a web browser
                var mysavepath = '/tmp/report.xml';

                runmanagerview.reportIsSaved = guiEngine.GuiExportSessionToFileAsXML(mysavepath);

                cmdTool.exec("xdg-open", mysavepath)

Then, in gui-engine.cpp, clone/refactor the GuiExportSessionToFileAsXML to take a file type parameter, or even easier, just cut-n-paste (not the nicest, but its quick!) and just change the xml parameter passed to plainbox to be html. That should be it!

QString GuiEngine::GuiExportSessionAsXML(void)
{
    qDebug("GuiEngine::GuiExportSessionAsXML");

    QString output_format = "xml";
    QStringList options; // No options

    return ExportSession(m_session,output_format,options);
}

Daniel Manrique (roadmr)
Changed in checkbox:
status: In Progress → Fix Committed
Changed in checkbox-ihv-ng:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in checkbox-ihv-ng:
status: Confirmed → In Progress
Changed in checkbox-ihv-ng:
status: In Progress → Fix Released
Daniel Manrique (roadmr)
Changed in checkbox:
status: Fix Committed → Fix Released
tags: added: plainbox
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.