Skip to content

How to launch the test properly? #17

@dmitry-saritasa

Description

@dmitry-saritasa

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions