O'Reilly logo

Python Testing Cookbook by Greg L. Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing the basics with Pyccuracy

Pyccuracy provides an easy-to-read set of operations to drive the front end of a web application. This recipe shows how to use it to drive a shopping cart application and verify application functionality.

Getting ready

  1. If it isn't already running, start up the selenium server in another shell or window by typing: java -jar selenium-server.jar.
    Getting ready
  2. If the satchmo store application isn't already running, start it up in another shell or window by typing: python manage.py runserver.

    Tip

    NOTE: This must run inside the virtualenv environment.

How to do it...

With these steps, we will explore the basics of writing a Pyccuracy test. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required