Implementation of real test automation framework including examples of validating web app and rest services by using robot framework and python. All tests are developed to run against helpful cypress's real world application: https://github.com/cypress-io/cypress-realworld-app. Three-tier-architecture is used to validate ui by using page objects pattern and selenium. Rest services are validated by using requests module together with different, more pythonic, approach, where most of the code is python, not robot's dsl. Also the advantage of using robot's libraries in python world is introduced. Robot's listener feature is used to demonstrate the possibility of sending individual test results to specific log management tool for the purpose of analyzing and visualising data in the dashboard.
- install python >= 3.6
- install chrome-driver version supporting your chrome browser version: https://chromedriver.chromium.org/downloads
- include the chrome-driver location in your PATH environment variable
- do the previous two bullets for firefox browser, geckodriver can be downloaded from: https://github.com/mozilla/geckodriver/releases
- install realworld-app: https://github.com/cypress-io/cypress-realworld-app
- clone the repository:
git clone https://github.com/davidk1/course-robot-framework-python-rwa.gitpip install -r requirements.txt ui:
from the root of the project cd to: ./ui/testsuites/rwa/tests/
run: python -m robot rwa_smoke.robotapi:
from the root of the project cd to: ./api/testsuites/rwa/tests/
run: python -m robot rwa_api_smoke.robot