-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi Guys,
I have installed lettuce-webdriver, but can't figure out why my test doesn't work
as you see below - it doesn't execute it but just ask me to create "assert/test" methods by myself. What do I miss?
thanks,
Dmitry
C:\Users\Dmitry\Default\Scripts>lettuce.exe web/feature
Feature: Test Saritasa # \web\feature:1
Scenario: Filling out the signup form # \web\feature:2
Given I go to "http://foo.com/signup" # \web\feature:3
When I fill in "Name" with "Foo Bar" # \web\feature:4
And I fill in "Email" with "nospam@gmail.com" # \web\feature:5
And I fill in "City" with "San Jose" # \web\feature:6
And I fill in "State" with "CA" # \web\feature:7
And I uncheck "Send me spam!" # \web\feature:8
And I select "Male" from "Gender" # \web\feature:9
And I press "Sign up" # \web\feature:10
Then I should see "Thank you for signing up!" # \web\feature:11
1 feature (0 passed)
1 scenario (0 passed)
9 steps (9 undefined, 0 passed)
You can implement step definitions for undefined steps with these snippets:
-- coding: utf-8 --
from lettuce import step
@step(u'Given I go to "([^"])"')
def given_i_go_to_group1(step, group1):
assert False, 'This step must be implemented'
@step(u'When I fill in "([^"])" with "([^"])"')
def when_i_fill_in_group1_with_group2(step, group1, group2):
assert False, 'This step must be implemented'
@step(u'And I fill in "([^"])" with "([^"])"')
def and_i_fill_in_group1_with_group2(step, group1, group2):
assert False, 'This step must be implemented'
@step(u'And I uncheck "([^"])"')
def and_i_uncheck_group1(step, group1):
assert False, 'This step must be implemented'
@step(u'And I select "([^"])" from "([^"])"')
def and_i_select_group1_from_group2(step, group1, group2):
assert False, 'This step must be implemented'
@step(u'And I press "([^"])"')
def and_i_press_group1(step, group1):
assert False, 'This step must be implemented'
@step(u'Then I should see "([^"])"')
def then_i_should_see_group1(step, group1):
assert False, 'This step must be implemented'