Skip to content

Latest commit

 

History

History
62 lines (49 loc) · 1.77 KB

README.md

File metadata and controls

62 lines (49 loc) · 1.77 KB

full-stack-testing-starter Cool Coverage MIT Licence Open Source Love

this project want to do some automated testing stuff including api, browser and mobile device

slides in Hackmd.io

hi, newbies 💂🏻


setup venv ⚙️

$ pip3 install virtualenv
$ virtualenv venv
$ source venv/bin/activate
$ deactivate

setup project interpreter (options, ide only)

pip install

(venv) $ pip3 install -r requirements.txt
 or
(venv) $ pip3 install pytest
(venv) $ pip3 install urllib3
(venv) $ pip3 install selenium
(venv) $ pip3 install Appium-Python-Client
(venv) $ pip3 install allure-pytest
  • after installed new library, you need to update requirements.txt
(venv) $ pip3 freeze | tee requirements.txt

run test 🧙‍♂️

(venv) $ pytest -v -s
(venv) $ pytest -v -s tests/api/demo/get_test.py
(venv) $ pytest -v -s tests/api/
(venv) $ pytest -v -s tests/api/ --alluredir=build/allure_results

unzip allure/allure-commandline-2.13.1.zip

run allure server to see the report 👀

$ ./allure/allure-2.13.1/bin/allure serve build/allure_results

more information about pytest

more information about python selenium

more information about python appium