Notes and Requirements - kosturanovk/PY_AUTOMATION GitHub Wiki

Welcome to the PY_AUTOMATION wiki!

Requirements:

  • python 3.X
  • pip packages:
  1. pytest==5.4.3
  2. pytest-forked==1.1.3
  3. pytest-xdist==1.32.0
  4. PyYAML==5.3.1
  5. selenium==3.141.0

How to, and remarks:

  • -parameters file (browser choice to be set) available in run_config.yaml, please note: there is a direct path to the file embeded in the code, before running make sure to change the value. (files: conftest.py, BaseApp.py)
  • -test case 1 credentials set (5 invalid) available in credentials.yaml please note: there is a direct path to the file embeded in the code, before running make sure to change the value. (files: Tests.py)
  • please note: there is a direct path to the webdriver executable, before running make sure to change the value. (file conftest.py)
  • -parallel launch command (windows cmd): C:\Users\kostu\eclipse-workspace\MusalaCheck_PY>pytest -n 3 Tests.py -n 3 = 3 threads are created one for each test case
  • -Print on console requested in Test Case 3, due to pytest way of process handling is not enabeled by default During development I used Eclipse and in the preferences - py dev - py unit test, added --capture=no To obtain console output during cmd launch, please use the following command pytest -s -n 3 Tests.py

Unfortunately no log file is provided to trace the exectuion