Test scenarios for the registration form on last.fm/join page. All test cases are written in Behave language and automated in Python(3.7) and Selenium.
Use the package manager pip to install behave and selenium.
$ pip install -r requirements.txt
For run single test scenario use command: behave -n "<scenario_name>"
Example:
$ behave -n "Validation wrong email addresses"
Run all test scenarios
$ behave
Diagram presents repository folder tree with files
last_fm
|
│ behave.ini
│ chromedriver.exe
│ README.md
│ requirements.txt
│
├───features
│ │ environment.py
│ │ registration.feature
│ │
│ └───steps
│ registration.py
│
└───model
alert.ini
element.ini
Validation wrong email addresses scenario detects wrong behaviour for:
- [email protected] - invalid IP format
- [email protected] - .web is not a valid top level domain
Wrong behaviour observed also, with validation email address longer than 256 characters, example:
- [255 characters]@gmail.com - RFC 5321 states: The maximum total length of a reverse-path or forward-path is 256 characters.