Package: ochrus
TheOchrus Projectis intended to be a complete solution to easily develop functional (black/gray box) automation tests.TheOchrus Projectinclude the following components:ochrus:         Classes and modules to support functional automation testsochrus-srv:     Detailed result DB server.pytest-ochrus:  Pytest plugin, see note below…NOTE:
Ochrus Project choosePytest(https://www.pytest.org) open source project as its testing framework.Pytest is an easy to use and powerful testing framework that support the most common Python unit framework
such and “unittest” and “Nose”.Ochrus library:Provide classes and modules to support functional automation tests
Should be used with the power ofPytestframework.
documentation should be available soon at the wiki and later at:http://www.ochrus.comTo install:$pipinstallochruspytest-ochrus:A Pytest plugin, it needs to be installed with Pytest
It uses to send test results to the ‘ochrus-srv’ (see below) via REST protocol
(code:https://github.com/ochrus/pytest-ochrus)To install:$pipinstallpytest$pipinstallpytest-ochrusOchrus Server:Ochrus Server is a full-stack free application that include a data-base to hold  the test results, and HTML interface to display the results.
User can see colorized online results, results history and comparison.
The server support RESTful API and currently only pytest-ochrus is available to communicate with it, but actually it can serve any xUnit framework written in any language.To install:The server is available as Docker image and can be run directly from docker hub as followed:$dockerrun-d-p80:8000-vdb:/ochrus/db--nameochrus_srvochrus/ochrus_srv:demoRequirementsPython 2.7pytestDocker (on host server only)InstallationClient:$pipinstallpytest$pipinstallpytest_ochrus$pipinstallochrusServer:Followed the instructions at:https://docs.docker.com/engine/installation/to install Docker on your host server.e.g.: for CentOS:$yuminstall-yyum-utilsdevice-mapper-persistent-datalvm2$yum-config-manager--add-repohttps://download.docker.com/linux/centos/docker-ce.repo$yuminstalldocker-ce$systemctlstartdocker#run the service$systemctlenabledocker#make it start on bootTo install ‘ochrus_srv’ run the following command:$dockerrun-d-p80:8000-vdb:/ochrus/db--nameochrus_srvochrus/ochrus_srv:demoThe above Docker command will do the following:Download the‘ochrus_srv:demo’image from the Docker public Hub.Run it at the background and give it the name‘ochrus_srv’.Expose its 8000 port to port 80 on the running host.Create a persistent data-base at default Docker volume location at:‘/var/lib/docker/volumes/db/’NOTE:The above docker command should be run only once, after that run:dockerstopochrus_srvtostoptheserverdockerstartochrus_srvtoruntheserverMake sure port80is free at the host server.Execute:At the Client:To run your tests: just run pytest according to pytest execution instructions.You can give a name to the running session as followed:$pytest--session_name="mySessionName"The name will be displayed at the HTML report at theochres serverNOTE:
You can give any name that will describe the running sessionRecommended:*product_name-version_number.build_number*Using Eclipse IDENote: Following instructions are taken with:Eclipse Oxygen.1a Release (4.7.1a)Install Eclipse IDERun Eclipse and install ‘*pydev*’ plugin.Go to:*Help | Eclipse Markeplace…*, write ‘*pydev*’ at the Search box and click the ‘Go’ button.Wait until it find the Pydev plugin and click the ‘Install’ buttonCreate a new Pydev project (*File | New | Other…*| PyDev | PyDev Project)Go to:*Windows | Preferences | PyDev | PyUnit | Test Runner*| choose:Py.test runner, click ApplyCreate a pytest script and run it by right-click and choose Run As | Python unit-testTo run all tests in a special directory, just right-click the directory and choose Run As | Python unit-test