~ubuntu-branches/ubuntu/vivid/mago/vivid

« back to all changes in this revision

Viewing changes to doc/source/gettingstarted/index.rst

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-02-08 13:32:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208133213-m1og7ey0m990chg6
Tags: 0.3+bzr20-0ubuntu1
* debian/rules:
  - updated to debhelper 7
  - use dh_python2 instead of python-central
* debian/pycompat:
  - removed, no longer needed
* debian/control:
  - dropped cdbs and python-central dependencies
* bzr snapshot of the current trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
===============
 
2
Getting Started
 
3
===============
 
4
 
 
5
Requirements
 
6
------------
 
7
 
 
8
Assistive Technologies
 
9
~~~~~~~~~~~~~~~~~~~~~~
 
10
 
 
11
Mago makes heavy use of LDTP (http://ldtp.freedesktop.org) to interact with the application and it uses the Accessibility libraries to discover through the application's user interface.
 
12
 
 
13
To enable the Assistive Technologies, select the menu **System -> Preferences -> Assistive Technologies**. the following dialog will be displayed.
 
14
 
 
15
.. image:: assistive.png
 
16
   :align: center
 
17
   :alt: SDFSDFSDF
 
18
 
 
19
Check the box **Enable Assistive Technologies**
 
20
 
 
21
Alternatively you can enable it from the command line. Open a terminal and run:
 
22
 
 
23
::
 
24
 
 
25
    # Enable accessibility for the current user 
 
26
    $ gconftool-2 --set --type bool /desktop/gnome/interface/accessibility true
 
27
 
 
28
 
 
29
You may also need to disable the screensaver to prevent the hang of the tests.
 
30
 
 
31
Finally restart your GNOME session (log out and log in) 
 
32
 
 
33
 
 
34
Additional Packages
 
35
~~~~~~~~~~~~~~~~~~~
 
36
 
 
37
In order to get a fully working system you need the following packages:
 
38
 
 
39
**python >=2.7**
 
40
    To take advantage of new features introduced in unittest
 
41
 
 
42
**bzr**
 
43
    Easy to use distributed version control system to get mago and push changes if you want to contribute.
 
44
 
 
45
**ldtp python-ldtp**
 
46
    The glue that uses the "Accessibility" libraries to poke through the application's user interface
 
47
 
 
48
**python-nose**
 
49
    Test discovery and running for Python's unittest
 
50
 
 
51
**python-xlib**
 
52
    Interface for Python to the X11 Protocol
 
53
 
 
54
**python-imaging**
 
55
    Python Imaging Library used for image compairison
 
56
 
 
57
Getting Mago
 
58
------------
 
59
The Mago project is hosted in Launchpad at https://launchpad.net/mago
 
60
 
 
61
The trunk branch is owned by a Launchpad team, mago-contributors, that it is a moderated team. Once you have contributed through merge proposals, you can apply to be part of the team and will be able to push to trunk and review some other members contributions.
 
62
 
 
63
To get Mago from Launchpad you need to install the tool Bazaar (http://doc.bazaar.canonical.com)
 
64
Then run the following command to get the latest version from the Bazaar repository:
 
65
 
 
66
::
 
67
 
 
68
    $ bzr branch lp:mago
 
69
 
 
70
This will create a directory ``mago``. Go to this newly created directory and you'll be able to start running your first tests.
 
71
 
 
72
You can get the help of mago by running the command:
 
73
 
 
74
::
 
75
 
 
76
    $ ./bin/mago -h
 
77
 
 
78
 
 
79
Running the examples
 
80
--------------------
 
81
 
 
82
The directory ``examples/`` contains few pieces of code which exercises different parts of mago.
 
83
 
 
84
Mago uses Nose (http://somethingaboutorange.com/mrl/projects/nose/) to collect and run tests and follows the same syntax.
 
85
 
 
86
To run a specific example:
 
87
 
 
88
::
 
89
 
 
90
    $ ./bin/mago examples/test_minimal.py
 
91
 
 
92
 
 
93
Or alternatively
 
94
 
 
95
::
 
96
 
 
97
    $ ./bin/mago -w examples test_minimal
 
98
 
 
99
 
 
100
To run all the tests in a directory enter:
 
101
 
 
102
::
 
103
 
 
104
    $ ./bin/mago examples/
 
105
 
 
106
.. automodule:: test_minimal
 
107
   :members: