/Poco-pytest-allure

Poco+Pytest+Allure2

Primary LanguagePythonMIT LicenseMIT

Poco-pytest-allure

How to use?

1. Clone this repo and run the following command. (Installing with -e flag.)

    git clone https://github.com/magicedy/Poco-pytest-allure.git
    pip install -e Poco-pytest-allure

2. Download the demo game from Poco, e.g. 'C:\com.netease.poco.u3d.tutorial.apk'

3. Connect Device and run the script.

    cd Poco-pytest-allure
    pytest # python main.py(to use pytest-xdist)

4. Check the test results with allure2.

    * Download the latest version as zip archive from bintray.
    * Unpack the archive to allure-commandline directory.
    * Navigate to bin directory.
    * Use allure.bat for Windows and allure for other Unix platforms.
    * Add allure to system PATH.

    allure serve allure_pytest_results -p 9090
    
    * Running on http://127.0.0.1:9090/ (Press CTRL+C to quit)

Drag the Bookmarklet like this: Expand All

allure

javascript:void((() => {document.querySelectorAll('.step__title_hasContent,.attachment-row').forEach(el => el.click())})())

allure

More info