Mozmill 编辑

MozMill is a deprecated test tool and framework that has been superceded by Marionette. The tests are being migrated over to Marionette.

MozMill is a test tool and framework for writing automated tests for Gecko based applications (Firefox, Thunderbird, Songbird, etc). It is built as a command line client to let you run, and debug tests. MozMill has an extensive API to help you write functional tests that simulate user interactions, as well as a full unit test API.

The Mozmill test automation project was started in January 2009 and covers the automation work for Firefox. Checkout the project page or have a look at the Mozmill Tests documentation to get an impression how to contribute in writing and running Mozmill tests. Existing tests get run in the release testing cycle for new major or security releases of Firefox.

Also the Mozilla Messaging team has an active project which handles Thunderbird Testing with Mozmill.

If you have questions or issues with Mozmill you might want to send us an email to the mozmill-dev mailing list. For bugs please submit a ticket on bugzilla.mozilla.org under the Testing/Mozmill component.

Installation

Mozmill is a Python package hosted on PyPI. It can be installed by using pip or setuptools (easy_install).

Windows

The simpliest way to have Mozmill running on Windows is by getting this mozmill-env archive. Just extract it and run cmd.run every time you need to use Mozmill. It will open a Unix-like console that will already have Mozmill installed.

Mac OS X

If you are running Mac OS X 10.4, you have to download and install at least Python 2.5 from python.org before completing the following steps. All later versions of OS X may skip that step and continue as follows.

Install Mozmill with the setuptools by running each of the scripts below, one by one, in order:

curl -O https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
sudo python ez_setup.py
sudo easy_install pip
sudo pip install mozmill

Debian-like GNU-Linux distributions (Debian, Ubuntu, etc.)

To install Mozmill on Ubuntu you only have to run two commands in the terminal:

$ sudo apt-get install python-pip
$ sudo pip install mozmill

Mozmill versions

You can find out your Mozmill version by running:

$ mozmill --v

The current stable version of Mozmill is 2.0. Most likely you have installed this version with the above steps. If the bug you're working on does not require 2.0, then please run the following command, to get the last version of the 1.5 branch:

$ sudo pip install --upgrade mozmill==1.5.24

For development of Mozmill 2.0, we advise you to use a virtual environment and to follow these steps.

See also

We have a few other pages to help you get the most out of Mozmill.  You might want to bookmark these for reference later.

References

Bugs

Mozmill is still in development, like most test systems in the Mozilla project. If you think you've found a bug, please check the list of existing bugs. If your found bug is not listed there, please file a new bug under the "Testing" Product and "Mozmill" Component. Please provide as much as possible details and attach the Mozmill test if available, which shows the problem. Thanks for filing!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:33 次

字数:8570

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文