~jtatum/mago/gconf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
MAGO
----
Mago is an desktop testing initiative, built on top of LDTP (http://ldtp.freedesktop.org/), that aims to have a set of processes and code to make writing automated test scripts easier and more reusable. Although we started this effort as an Ubuntu project it works for vanilla GNOME in most of the cases. 

How to run the tests
--------------------

Some easy steps to run the tests:

 * Enable the Assistive Technologies (System -> Preferences -> Assistive Technologies) 
 * Restart your GNOME session (log out and log in again)
 * Install python-ldtp package (in universe).
 * Get the latest tests from the Bazaar repository:
   bzr branch lp:mago 
 * Go the newly created folder and run PYTHONPATH=. ./bin/mago -a gedit. That will run the gedit tests.
 * Go to the .mago folder under your home folder to retrieve the tests results. 

WARNING
-------
Running the tests is not 100% secure. There are some tests that will override any previous configuration. Please, refer to the README file in each of the applications folder for details

Mago syntax
-----------
Usage: mago [OPTIONS]

Options:
  -h, --help            show this help message and exit
  -l FILE, --log=FILE   The file to write the log to.
  --log-level=LOG_LEVEL
                        One of debug, info, warning, error or critical.
  -a APPLICATION, --application=APPLICATION
                        Application name to test. Option can be repeated and
                        defaults to all applications
  -s SUITE, --suite=SUITE
                        Suite name to test within applications. Option can be
                        repeated and default to all suites
  -f FILE, --file=FILE  XML file name of the suite to test within
                        applications.
  -t FILE, --target=FILE
                        Target directory for logs and reports. Defaults to:
                        ~/.mago
  -c CASE, --case=CASE  Test cases to run (all, if not specified).