Skip to content

BohdanObruch/Conduit

Repository files navigation

Project on test automation in Python + Selene.

https://demo.realworld.io/


The following functionality is covered

UI test cases

(https://demo.realworld.io/)

https://realworld-docs.netlify.app/docs/specs/frontend-specs/routing/

Sign up

Articles

Global feed

Commenting

Social

User account


API tests

https://realworld-docs.netlify.app/docs/specs/frontend-specs/swagger/

Articles

  • ✅ Get recent articles from users you follow
  • ✅ Get recent articles globally
  • ✅ Create an article
  • ✅ Get an article
  • ✅ Update an article
  • ✅ Delete an article

Comments

  • ✅ Get comments for an article
  • ✅ Create a comment for an article
  • ✅ Delete a comment for an article

Favorites

  • ✅ Favorite an article
  • ✅ Unfavorite an article

Profile

  • ✅ Get a profile
  • ✅ Follow a user
  • ✅ Unfollow a user

Tags

  • ✅ Get tags

User and Authentication

  • ✅ Login for existing user
  • ✅ Register a new user
  • ✅ Get current user
  • ✅ Update current user

The project was implemented using



Autotests are run on the Jenkins server

freestyle project with the following settings

Jenkins


Pipeline project with the following settings

Jenkins


The build parameters in Jenkins:

  • BROWSER_NAME (browser name, the default is chrome)
  • BROWSER_VERSION (browser version, the default is 106.0)

Jenkins


Running tests

Local Launch:

pytest .

Remote launch:

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
pytest --${BROWSER_NAME} --browser_version=${BROWSER_VERSION}

Allure

Allure Framework is an easy and flexible multi-language test report tool that not only shows a very concise representation of what have been tested in a neat web report form, but it also gives each team member a possibility to extract maximum of useful information from tests execution.

Allure overview

Different charts, metrics and statistics to analyze tests results easily

Allure Report

Allure test result

Here are the results of test execution.

Allure Report


Allure video result

An example of a short video how web tests are executed on Selenoid server


Telegram notification

Test results notifications to be sent to the specific telegram channel by the telegram bot

Telegram

Releases

No releases published

Packages

No packages published

Languages