{ "info": { "author": "Roni Eliezer", "author_email": "roniezr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "Programming Language :: Python :: 2.7" ], "description": "===========================\n**Ochrus Project Overview**\n===========================\n\nThe **Ochrus Project** is intended to be a complete solution to easily develop functional (black/gray box) automation tests.\n\nThe **Ochrus Project** include the following components:\n\n1. **ochrus**: Classes and modules to support functional automation tests\n2. **ochrus-srv**: Detailed result DB server.\n3. **pytest-ochrus**: Pytest plugin, see note below...\n\n **NOTE**:\n Ochrus Project choose **Pytest** (https://www.pytest.org) open source project as its testing framework.\n \n Pytest is an easy to use and powerful testing framework that support the most common Python unit framework\n such and \"unittest\" and \"Nose\".\n\n**Ochrus library:**\n-------------------\nProvide classes and modules to support functional automation tests\nShould be used with the power of **Pytest** framework.\ndocumentation should be available soon at the wiki and later at: http://www.ochrus.com\n\n *To install:*\n\n .. code-block:: bash\n\n $ pip install ochrus\n\n\n**pytest-ochrus:**\n------------------\nA Pytest plugin, it needs to be installed with Pytest \nIt uses to send test results to the 'ochrus-srv' (see below) via REST protocol\n(code: https://github.com/ochrus/pytest-ochrus)\n\n *To install:*\n\n .. code-block:: bash\n\n $ pip install pytest\n $ pip install pytest-ochrus\n\n\n**Ochrus Server:**\n------------------\nOchrus Server is a full-stack free application that include a data-base to hold the test results, and HTML interface to display the results.\nUser can see colorized online results, results history and comparison.\nThe 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.\n\n *To install*:\n\n *The server is available as Docker image and can be run directly from docker hub as followed:*\n\n .. code-block:: bash\n\n $ docker run -d -p 80:8000 -v db:/ochrus/db --name ochrus_srv ochrus/ochrus_srv:demo\n\n\n\n**Requirements**\n----------------\n- Python 2.7\n- pytest\n- Docker (on host server only)\n\n**Installation**\n----------------\n**Client:**\n~~~~~~~~~~~\n .. code-block:: bash\n\n $ pip install pytest\n $ pip install pytest_ochrus\n $ pip install ochrus\n\n\n**Server:**\n~~~~~~~~~~~\nFollowed the instructions at: https://docs.docker.com/engine/installation/ to install Docker on your host server.\n\ne.g.: for CentOS:\n\n .. code-block:: bash\n\n $ yum install -y yum-utils device-mapper-persistent-data lvm2\n $ yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo\n $ yum install docker-ce\n $ systemctl start docker #run the service\n $ systemctl enable docker #make it start on boot\n\n\nTo install 'ochrus_srv' run the following command:\n\n .. code-block:: bash\n\n $ docker run -d -p 80:8000 -v db:/ochrus/db --name ochrus_srv ochrus/ochrus_srv:demo\n\n\n The above Docker command will do the following:\n\n 1. Download the **'ochrus_srv:demo'** image from the Docker public Hub.\n 2. Run it at the background and give it the name **'ochrus_srv'**.\n 3. Expose its 8000 port to port 80 on the running host.\n 4. Create a persistent data-base at default Docker volume location at: \n **'/var/lib/docker/volumes/db/'**\n\n**NOTE**:\n \n1. The above docker command should be run only once, after that run:\n\n .. code-block:: bash\n\n docker stop ochrus_srv to stop the server\n docker start ochrus_srv to run the server\n\n\n2. Make sure port **80** is free at the host server.\n\n**Execute:**\n------------\n\n**At the Client**:\n\n **Define the ochrus-srv IP address**:\n The 'ochrus' name must be define at the '/etc/hosts' file. \n e.g.:\n 192.168.1.1 ochrus\n \n Replace 192.168.1.1 with your Docker host machine IP address\n\n1. To run your tests: just run pytest according to pytest execution instructions.\n2. You can give a name to the running session as followed:\n\n .. code-block:: bash\n\n $ pytest --session_name=\"mySessionName\"\n\n The name will be displayed at the HTML report at the **ochres server**\n\n **NOTE**:\n You can give any name that will describe the running session\n \n Recommended: ***product_name-version_number.build_number***\n\n\n**Using Eclipse IDE**\n---------------------\nNote: Following instructions are taken with: *Eclipse Oxygen.1a Release (4.7.1a)*\n\n1. Install Eclipse IDE\n2. Run Eclipse and install '***pydev***' plugin. \n \n Go to: ***Help | Eclipse Markeplace...***, write '***pydev***' at the Search box and click the '**Go**' button. \n \n Wait until it find the Pydev plugin and click the '**Install**' button\n3. Create a new Pydev project (***File | New | Other...*** | PyDev | PyDev Project)\n4. Go to: ***Windows | Preferences | PyDev | PyUnit | Test Runner*** | choose: **Py.test runner**, click Apply\n5. Create a pytest script and run it by right-click and choose Run As | Python unit-test\n6. To run all tests in a special directory, just right-click the directory and choose Run As | Python unit-test\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ochrus/pytest-ochrus", "keywords": "pytest results data-base and HTML reporter", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pytest-ochrus", "package_url": "https://pypi.org/project/pytest-ochrus/", "platform": "", "project_url": "https://pypi.org/project/pytest-ochrus/", "project_urls": { "Homepage": "https://github.com/ochrus/pytest-ochrus" }, "release_url": "https://pypi.org/project/pytest-ochrus/0.0.6/", "requires_dist": null, "requires_python": "", "summary": "pytest results data-base and HTML reporter", "version": "0.0.6" }, "last_serial": 3603071, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "ec01be2eba35369bbd9fc53f4ccf3fa3", "sha256": "fcf9209b24d7b690a5a0e5a2de6b03a717ff97c6a8258c664242ec2b50d58953" }, "downloads": -1, "filename": "pytest-ochrus-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ec01be2eba35369bbd9fc53f4ccf3fa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5226, "upload_time": "2017-11-12T17:23:26", "url": "https://files.pythonhosted.org/packages/ef/90/25b68f4941aa0e9df9b41866d97345326144152c088afd09aeb819d5faea/pytest-ochrus-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "92373b062504f7b3a3b8f45e6b5a29fd", "sha256": "cda0623baea55bfc5e4f317f6fa67c8d5d96d91f0ab2e0ddf52f1f1ff1b7e8d9" }, "downloads": -1, "filename": "pytest-ochrus-0.0.3.tar.gz", "has_sig": false, "md5_digest": "92373b062504f7b3a3b8f45e6b5a29fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5311, "upload_time": "2017-11-13T08:43:57", "url": "https://files.pythonhosted.org/packages/c9/6c/b7dc20912f200cde893dd91f45aeceae7e5f6454c92bb2527a33fd72a449/pytest-ochrus-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1a2ddd4be4e072da66e42dfe7be0605a", "sha256": "8250d72ddf1e84c1083e32190aabd1240dd0eeab508a173e34c23649329af188" }, "downloads": -1, "filename": "pytest-ochrus-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1a2ddd4be4e072da66e42dfe7be0605a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5367, "upload_time": "2017-11-13T16:15:26", "url": "https://files.pythonhosted.org/packages/3a/8e/c9bb56543303b067e4b5a76bf98af6b867f96a9efd90d6f8b918467d0aae/pytest-ochrus-0.0.4.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "bfc0ed6f2cc4d4b038bf2fc2b1b5f1e4", "sha256": "1f00475d012b3c8600c084477d9e3cde25d18818a90fe7bc48313578274cbaa9" }, "downloads": -1, "filename": "pytest-ochrus-0.0.6.tar.gz", "has_sig": false, "md5_digest": "bfc0ed6f2cc4d4b038bf2fc2b1b5f1e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5599, "upload_time": "2018-02-21T19:22:49", "url": "https://files.pythonhosted.org/packages/70/56/b12b96d2db0d49a8c04f4398f9f026214ba5f4bf5c8d490b13b570093965/pytest-ochrus-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bfc0ed6f2cc4d4b038bf2fc2b1b5f1e4", "sha256": "1f00475d012b3c8600c084477d9e3cde25d18818a90fe7bc48313578274cbaa9" }, "downloads": -1, "filename": "pytest-ochrus-0.0.6.tar.gz", "has_sig": false, "md5_digest": "bfc0ed6f2cc4d4b038bf2fc2b1b5f1e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5599, "upload_time": "2018-02-21T19:22:49", "url": "https://files.pythonhosted.org/packages/70/56/b12b96d2db0d49a8c04f4398f9f026214ba5f4bf5c8d490b13b570093965/pytest-ochrus-0.0.6.tar.gz" } ] }