background preloader

Testing / profiling

Facebook Twitter

Lmacken/pyrasite. Installation and quick start — nose 1.1.3 documentation. Nose extends unittest to make testing easier.

Installation and quick start — nose 1.1.3 documentation

On most UNIX-like systems, you’ll probably need to run these commands as root or using sudo. Install nose using setuptools/distribute: Or pip: Or, if you don’t have setuptools/distribute installed, use the download link at right to download the source package, and install it in the normal fashion: Ungzip and untar the source package, cd to the new directory, and: However, please note that without setuptools/distribute installed, you will not be able to use third-party nose plugins. This will install the nose libraries, as well as the nosetests script, which you can use to automatically discover and run tests. Now you can run tests for your project: cd path/to/project nosetests You should see output something like this: .................................. ---------------------------------------------------------------------- Ran 34 tests in 1.440s OK Indicating that nose found and ran your tests. For help with nosetests’ many command-line options, try:

Whit537/assertEquals. Poor man's profiler. Watir vs Selenium vs Sahi. Watir, Selenium & WebDriver. Please also see my new ‘Watir-WebDriver: a detailed introduction‘ post.

Watir, Selenium & WebDriver

Background Of all the open source automated web testing tools available, Watir and Selenium have been the two most popular ones. Traditionally there has been advantages and disadvantages of each. Selenium’s most useful features have been its support for multiple programming languages, and is support for testing a wide variety of browsers. This is because Selenium uses JavaScript to interact with the browser, and all modern browsers support JavaScript. Splinter - web application testing framework. Windmill Testing Framework. Python Webkit DOM Bindings. The Python Webkit DOM Project makes python a full peer of javascript when it comes to accessing and manipulating the full features available to Webkit, such as HTML5.

Python Webkit DOM Bindings

Everything that can be done with javascript, such as getElementsbyTagName and appendChild, event callbacks through onclick, timeout callbacks through window.setTimeout, and even AJAX using XMLHttpRequest, can also be done from python. Why is this important - why is it a "big deal"? Pywinauto - Windows GUI automation using Python. Sikuli - automatization GUI in linux. Добрый день.

Sikuli - automatization GUI in linux

Sikuli представляет собой технологию для автоматизации действий в графическом интерфейсе. Пользователь создает скриншоты элементов интерфейса и определяет операции, которые с этими элементами нужно выполнить. Соответственно, Sikuli находит эти элементы и выполняет указанные операции. Sikuli работает в Windows/Mac/Linux. Работа Sikuli в Linux, на наш взгляд, изложена недостаточно подробно, поэтому в данной статье сделан акцент на установку Sikuli в Linux и первые шаги в этом окружении. Прежде всего, нужно отметить, что среда Sikuli, установленная из репозитория, неработоспособна.

[error] Stopped [error] Error message: Traceback (innermost last): (no code object) at line 0 SyntaxError: ('future feature with_statement is not defined', (' ', 1, 6, '')) О том как справиться с этой ошибкой речь пойдет ниже, а сейчас пакет Sikuli стоит все-таки установить, поскольку он тянет за собой другие пакеты, которые нам пригодятся: $ sudo apt-get install sikuli-ide Reading package lists... .