Confirmed users
3,816
edits
(New page: = About = Gristmill is a tool to use for UI automation in any mozilla platform developed application. The current version is tailored for Firefox as a proof-of-concept at the moment, but ...) |
No edit summary |
||
| Line 3: | Line 3: | ||
= Installation = | = Installation = | ||
There are two methods of installation. You can either install the latest source code, or you can install our latest milestone. | There are two methods of installation. You can either install the [[QA/TDAI/Gristmill#To_Get_the_Latest_Source_Code|latest source code]], or you can install our [[QA/TDAI/Gristmill#Grab_the_Latest_Milestone|latest milestone]]. | ||
== To Get the Latest Source Code == | == To Get the Latest Source Code == | ||
# Install [http://www.python.org Python]. You need to be running at least version 2.5 | # Install [http://www.python.org Python]. You need to be running at least version 2.5 | ||
| Line 13: | Line 13: | ||
# You can keep up to date by running [http://people.mozilla.org/~ctalbert/gristmill/update.sh update.sh] from the gristmill directory that is generated by the install process: <pre> cd gristmill; sh update.sh</pre> | # You can keep up to date by running [http://people.mozilla.org/~ctalbert/gristmill/update.sh update.sh] from the gristmill directory that is generated by the install process: <pre> cd gristmill; sh update.sh</pre> | ||
== Grab the Latest | == Grab the Latest Milestone == | ||
These instructions are for those folk who only want to develop and run tests using Gristmill's browser automation side. Here is the simple process for that. | These instructions are for those folk who only want to develop and run tests using Gristmill's browser automation side. Here is the simple process for that. | ||
# Install the extension from here: [http://people.mozilla.org/~ctalbert/gristmill/mozmill.xpi http://people.mozilla.org/~ctalbert/gristmill/mozmill.xpi]. | # Install the extension from here: [http://people.mozilla.org/~ctalbert/gristmill/mozmill.xpi http://people.mozilla.org/~ctalbert/gristmill/mozmill.xpi]. | ||
| Line 20: | Line 20: | ||
= Writing a Test = | = Writing a Test = | ||
There is a set of general purpose code that needs to be created for every test. These steps will walk you through generating that, and get you on the road to writing a Gristmill test quickly. | |||
# Instantiate the Mozmill UI: Tools->Mozmill | |||
# Select Tests->New Boilerplate from the UI's menu | |||
# Select the "Editor" tab of the UI. | |||
# You can either copy the generated code from here into your favorite editor, or edit it here. For a line by line description of what the generated code does, click [[QA/TDAI/Gristmill/Boilerplate_Explained|here]] | |||
# Replace the contents of the test_foo function with the calls that exercise your test, you may use [[QA/TDAI/Gristmill/Gristmill_API|this api]] for making automation easier. | |||