Skip to content
guilhermechapiewski edited this page Sep 13, 2010 · 7 revisions

Assuming that you have installed Pyccuracy following the installation guide, this is the simplest way to run your first Pyccuracy test:

Setting up Selenium Server

Download selenium-server.jar from our repository. To run, type:

$ java -jar selenium-server.jar

Pyccuracy uses GNU Make to run and stop Selenium. If want to see how we do it, please take a look at the selenium_up and selenium_down tasks of our Makefile.

Creating a simple test file

Save the following code in a file called test.acc (that is the extension for Pyccuracy Acceptance test files):

As a Google User
I want to search Google
So that I can test Pyccuracy

Scenario 1 - Searching for Hello World
Given
    I go to "http://www.google.com"
When
    I fill "q" textbox with "Hello World"
    And I click "btnG" Then
    I see "Hello World - Google Search" title

Scenario 2 - Searching for Monty Python
Given
    I go to "http://www.google.com"
When
    I fill "q" textbox with "Monty Python"
    And I click "btnG" button
Then
    I see "Monty Python - Google Search" title

Run it!

TO DO