Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Project demonstrate usage of docker container in python script for running selenium tests.

License

NotificationsYou must be signed in to change notification settings

jagdeepjain/python-selenium-docker-tests

Repository files navigation

This sample project demonstrates how we can utilize docker container for running python selenium ui tests.

Script does the Docker Container start before the test gets executed and once execution is completed it will get stopped/removed.

Test script fileui-test.py hassetUpClass() which instantiate the selenium container andtearDownClass() stop/remove the selenium container.

Requirements

Mac OS

Docker is installed and running.

Lunux/Windows OS

  • Docker is installed and running.
  • docker-compose is installed and running.

pip

pip install subprocess.runpip install selenium

Test Run

python ui-test.py

Output

Creating network "ui_test_default" with the default driverCreating ui_test_chrome_standalone_1 ... donetest_case_1 (__main__.TestTemplate)Find and click top-right button ... oktest_case_2 (__main__.TestTemplate)Find and click Learn more button ... okRemoving ui_test_chrome_standalone_1...removed...----------------------------------------------------------------------Ran 2 tests in 15.363sOK

About

Project demonstrate usage of docker container in python script for running selenium tests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp