BurhanH / TestAutomationCourse-python-ui-project

Python UI project for Test Automation Course
MIT License
7 stars 10 forks source link

First draft version #29

Closed BurhanH closed 2 years ago

BurhanH commented 2 years ago

Here is a draft version of modifications for current test automation.

pytest as a test runner + all features available under the hood.

Key features: 1) Current tests and functionality will be not broken 2) All features of the pytest will be available immediately 3) Doesn't matter how long and what kind of modification we are planning to do, the test suite still will work

How to run only the Smoke suite (or tests with mark/tag smoke): pytest -m smoke -v

How to run only the Regression suite (or tests with mark/tag regression): pytest -m regression -v

How to run tests as before: python -m unittest -v tests/test_dummy.py

github-actions[bot] commented 2 years ago

Unit Test Results

55 tests  +10   52 :heavy_check_mark: +7   2m 48s :stopwatch: +47s   1 suites ±  0     3 :zzz: +3    1 files   ±  0     0 :x: ±0 

Results for commit ce4b4864. ± Comparison against base commit 5a9a26fe.

This pull request removes 5 and adds 15 tests. Note that renamed tests count towards both. ``` tests.test_saucedemo_autorization_and_order.TestSaucedemo ‑ test_pgu_autorization_and_order tests.test_saucedemo_e2e_tests.TestBrowser ‑ test_failed_login tests.test_saucedemo_e2e_tests.TestBrowser ‑ test_navigate_to_saucedemo_and_verify_title tests.test_saucedemo_e2e_tests.TestBrowser ‑ test_success_log_out tests.test_saucedemo_e2e_tests.TestBrowser ‑ test_success_login ``` ``` tests.test_dummy.TestSuite ‑ test_1 tests.test_dummy.TestSuite ‑ test_2 tests.test_dummy.TestSuite ‑ test_3 tests.test_dummy.TestSuite ‑ test_4 tests.test_dummy.TestSuite ‑ test_5 tests.test_dummy.TestSuite2 ‑ test_11 tests.test_dummy.TestSuite2 ‑ test_12 tests.test_dummy.TestSuite2 ‑ test_13 tests.test_dummy.TestSuite2 ‑ test_14 tests.test_dummy.TestSuite2 ‑ test_15 … ```

:recycle: This comment has been updated with latest results.