qxf2 / qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
https://qxf2.com
MIT License
261 stars 192 forks source link

PytestUnknownMarkWarning, PytestCollectionWarning and PytestCacheWarning are generated after running mobile tests #251

Closed rahul-bhave closed 4 years ago

rahul-bhave commented 4 years ago

After running mobile test using following command:

python -m pytest -k mobile_bitcoin_price -H 8.0 -I "Samsung Galaxy S9" -N "C:\Users\apps" -M Y test run is successful however below warnings are generated.

============================== warnings summary ===============================
tests\test_api_example.py:22
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\tests\test_api_example.py:22: PytestUnknownMarkWarning: Unknown pytest.mark.API - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    @pytest.mark.API

tests\test_boilerplate.py:11
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\tests\test_boilerplate.py:11: PytestUnknownMarkWarning: Unknown pytest.mark.GUI - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    @pytest.mark.GUI

tests\test_example_form.py:17
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\tests\test_example_form.py:17: PytestUnknownMarkWarning: Unknown pytest.mark.GUI - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    @pytest.mark.GUI

tests\test_example_table.py:19
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\tests\test_example_table.py:19: PytestUnknownMarkWarning: Unknown pytest.mark.GUI - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    @pytest.mark.GUI

tests\test_mobile_bitcoin_price.py:17
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\tests\test_mobile_bitcoin_price.py:17: PytestUnknownMarkWarning: Unknown pytest.mark.MOBILE - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    @pytest.mark.MOBILE

tests\test_successive_form_creation.py:16
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\tests\test_successive_form_creation.py:16: PytestUnknownMarkWarning: Unknown pytest.mark.GUI - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    @pytest.mark.GUI

utils\Test_Rail.py:14
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\utils\Test_Rail.py:14: PytestCollectionWarning: cannot collect test class 'Test_Rail' because it has a __init__ constructor (from: Rahul Bhave Qxf2/code/rahul-qxf2/issue_215/qxf2-page-object-model/utils/Test_Rail.py)
    class Test_Rail:

venv3\lib\site-packages\_pytest\stepwise.py:108
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\venv3\lib\site-packages\_pytest\stepwise.py:108: PytestCacheWarning: could not create cache path C:\Users\.pytest_cache\v\cache\stepwise
    self.config.cache.set("cache/stepwise", [])

venv3\lib\site-packages\_pytest\cacheprovider.py:366
  C:\Users\Rahul Bhave Qxf2\code\rahul-qxf2\issue_215\qxf2-page-object-model\venv3\lib\site-packages\_pytest\cacheprovider.py:366: PytestCacheWarning: could not create cache path C:\Users\.pytest_cache\v\cache\nodeids
    config.cache.set("cache/nodeids", self.cached_nodeids)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========== 1 passed, 5 deselected, 9 warnings in 114.33s (0:01:54) ===========
github-actions[bot] commented 4 years ago

Stale issue message