Skip to content

Sample BDD Tests for Azure-Samples/node-todo web application build in python using behave and selenium frameworks

License

Notifications You must be signed in to change notification settings

nazarii-piontko/ToDo-BDD

Repository files navigation

Sample BDD Tests for Azure-Samples/node-todo web application build in python using behave and selenium frameworks

Web application source code could be found here: https://github.com/Azure-Samples/node-todo

Key technologies used in the project:

Run with Docker:

  • docker build -t node-todo-bdd .
  • docker run --rm --privileged --name node-todo-bdd node-todo-bdd

Run with python-behave:

  • Install python3, pip3 and virtualenv
  • python3 -m venv venv-todo-bdd
  • source venv-todo-bdd/bin/activate
  • pip3 install -r requirements.txt
  • SELENIUM_DRIVER=firefox behave

Structure:

  • app/ - contains docker and/or docker-compose files necessary to start an application under the test.
  • asserts/ - contains classes used for asserting, e.g. general asserts or asserts on selenium element(s).
  • features/ - contains feature files in Gherkin language.
  • infrastructure/ - contains code to support test, e.g. start/stop application, start/stop selenium, provide configuration, etc.
  • pages/ - contains classes which encapsulate access to page dependent data, e.g. click on link, get input value, etc.
  • steps/ - contains steps implementation for feature files.
  • tools/ - contains different scripts and apps required to run test in different environments

Web application work example video:

Application

Read more at my blog:

BDD Part 1

BDD Part 2

About

Sample BDD Tests for Azure-Samples/node-todo web application build in python using behave and selenium frameworks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published