Merge lp:~sylvain-pineau/checkbox/ui_profiles_doc into lp:checkbox

Proposed by Sylvain Pineau
Status: Merged
Approved by: Daniel Manrique
Approved revision: 2937
Merged at revision: 2937
Proposed branch: lp:~sylvain-pineau/checkbox/ui_profiles_doc
Merge into: lp:checkbox
Diff against target: 114 lines (+99/-0)
2 files modified
checkbox-ng/docs/index.rst (+1/-0)
checkbox-ng/docs/profiles.rst (+98/-0)
To merge this branch: bzr merge lp:~sylvain-pineau/checkbox/ui_profiles_doc
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+216702@code.launchpad.net

Description of the change

UI profiles documentation

Describes how the launcher parses the Qsettings and the currently supported options.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Very useful, thanks!

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Still, please expand on it and apply at least some of the feedback I asked for on IRC

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox-ng/docs/index.rst'
2--- checkbox-ng/docs/index.rst 2013-11-18 11:12:52 +0000
3+++ checkbox-ng/docs/index.rst 2014-04-22 12:16:02 +0000
4@@ -53,6 +53,7 @@
5 :maxdepth: 2
6
7 scripts/index.rst
8+ profiles.rst
9 release.rst
10
11 Indices and tables
12
13=== added file 'checkbox-ng/docs/profiles.rst'
14--- checkbox-ng/docs/profiles.rst 1970-01-01 00:00:00 +0000
15+++ checkbox-ng/docs/profiles.rst 2014-04-22 12:16:02 +0000
16@@ -0,0 +1,98 @@
17+Profiles configuration
18+^^^^^^^^^^^^^^^^^^^^^^
19+
20+Checkbox-gui supports execution profiles via a predefined set of configuration
21+options that allow customization of the welcome screen, displayed whitelists
22+as well as saving results locally or sending the submission file to Launchpad
23+or to the Certification database/HEXR.
24+
25+The profile settings are part of a launcher script and use checkbox-gui as a
26+shebang to interpret the key/values.
27+
28+As checkbox-gui is a Qt application, settings must follow the INI-style rules
29+of the `QSettings <http://qt-project.org/doc/qt-5/QSettings.html>`_ class.
30+
31+Multilines values are supported but must be enclosed in doubles quotes and extra
32+lines must start with one space, e.g:
33+
34+.. code-block:: bash
35+
36+ [category]
37+ key = "Hello
38+ World"
39+
40+
41+- From QML:
42+
43+.. code-block:: bash
44+
45+ settings.value("category/key", i18n.tr("default_value"))
46+
47+- From C++:
48+
49+.. code-block:: bash
50+
51+ settings->value("category/key", app.tr("default_value"))
52+
53+Supported Settings
54+==================
55+
56+welcome/title
57+------------
58+ * QML app title and welcome screen header
59+ * default: "System Testing"
60+
61+welcome/text
62+------------
63+ * Welcome message to display on the first screen (Rich text allowing HTML-style markup)
64+ * default: "<p>Welcome to System Testing.</p> [...]"
65+
66+suite/whitelist_filter
67+----------------------
68+ * Regular expression to match a subset of whitelist filenames
69+ * default: .*
70+
71+submission/message
72+------------------
73+ * Header text of the Submission Popup
74+
75+submission/input_type
76+---------------------
77+ * Show a Text input field to enter the secure ID or the LP adress (default).
78+ To just save the results to disk, must use the "none" value.
79+
80+submission/regex
81+----------
82+ * RegExpValidator, default ".*"
83+
84+submission/input_placeholder
85+----------------------------
86+ * "Launchpad E-Mail Address" (default) or "Secure ID (15 or 18 characters)"
87+
88+submission/secure_id
89+--------------------
90+ * Preset value of the secure ID
91+
92+submission/ok_btn_text
93+----------------------
94+ * "Submit Results" (default) or "Save Results"
95+
96+submission/cancel_warning
97+-------------------------
98+ * "You are about to exit this test run without saving your results report. Do you want to save the report?"
99+
100+submission/submit_to_hexr
101+-------------------------
102+ * Boolean, add an extra header to also send the results to HEXR (works with
103+ the certification transport)
104+
105+exporter/xml_export_path
106+------------------------
107+ * location to save the XML submission file, if set to an empty string will open a FileSaveDialog.
108+ * default: "/tmp/submission.xml"
109+
110+transport/submit_to
111+-------------------
112+ * Transport endpoint
113+ * default: ""
114+ * Supports submission to LP (the default), "certification", or "local" (save to disk)

Subscribers

People subscribed via source and target branches