Behave for webdriver and rest-api testing using webdriver-manager to handle multi-browser and also including Docker 🐋 🐋 🐋
- Download Python plugin
- Open project structure by pressing Ctrl + Alt + Shift + S, in Project -> Project SDK -> Add Python SDK
- Open cmd prompt inside project folder then install all require packages in requirements.txt file
by using cmd
install -r requirments.txt
For IntelliJ, Select Build -> Edit Configurations -> Edit configuration templates
-> Behave -> Use SDK of module. And then in the Run config add these parameters as environment variables
user=<spotify_user>;password=<spotify_pass>;browser=firefox
docker run --rm -t `
-e browser=chrome `
-e user=<spotify_user> `
-e password=<spotify_pass> `
ylethingoc/behave-webdriver-api behave
- You need an IntelliJ IDE Ultimate version to enable Behave run type and Gherkin language.
- The test in tests/web/features/spotify.feature should be executed first to get OAuth token.
- Disable chrome option
--headlessor using other browser by changing the configuration in setup.cfg for UI visible. - Multi-browser is not available for Docker, only Chrome at this time.
🍺🍺🍺