Skip to content

About

🐳 behave framework for webdriver and rest-api testing with docker

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

behave-webdriver-api

Behave for webdriver and rest-api testing using webdriver-manager to handle multi-browser and also including Docker 🐋 🐋 🐋

🔫 IntelliJ Setup

  1. Download Python plugin
  2. Open project structure by pressing Ctrl + Alt + Shift + S, in Project -> Project SDK -> Add Python SDK
  3. Open cmd prompt inside project folder then install all require packages in requirements.txt file by using cmd install -r requirments.txt

🕹️️ How to run test

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

📌 Notice

  • 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 --headless or 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.

🍺🍺🍺

About

🐳 behave framework for webdriver and rest-api testing with docker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages