Skip to content

An example Django project with selenium tests which are integrated with Percy.

License

Notifications You must be signed in to change notification settings

nliampisan/example-django-selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Percy Django Selenium Example App

An example Django project with selenium tests which are integrated with Percy.

Install

pip install -r requirements.txt
brew install chromedriver

Usage

cd todoapp/
PERCY_TOKEN=X python manage.py test

Test Case Scenarios

  • Verifies user registration.
  • Verifies user login.
  • Creates active todo object with an authenticated user.
  • Changes the status of todo objects from active to completed
  • Changes the status of todo objects from completed to active.

Takes screenshots if any test case fail.

Demo

selenium-demo

Development of client

pip uninstall percy

And then when you import percy, add the path to your local copy of the client like so:

import sys
sys.path.append('path/to/python-percy-client')
import percy

About

An example Django project with selenium tests which are integrated with Percy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 67.4%
  • HTML 26.1%
  • CSS 6.5%