improvements

This commit is contained in:
Greg Gauthier 2020-10-09 21:07:44 +01:00
parent 14ea594425
commit 59bd86672d
7 changed files with 20 additions and 22 deletions

View File

@ -0,0 +1,12 @@
[behave]
default_format = pretty
show_skipped = false
show_timings = true
stdout_capture = yes
logging-level=ERROR
[behave.userdata]
browser=chrome
name = gmgauthier@protonmail.com
platform = OSX

View File

@ -1,5 +0,0 @@
Feature: Demo Feature
Scenario: Demo
Given A sentence
When The sentence is inspected
Then The word "the" should be found

View File

@ -0,0 +1,7 @@
def before_all(context):
# -- SET LOG LEVEL: behave --logging-level=ERROR ...
# on behave command-line or in "behave.ini".
context.config.setup_logging()
# -- ALTERNATIVE: Setup logging with a configuration file.
# context.config.setup_logging(configfile="behave_logging.ini")

View File

@ -11,7 +11,7 @@ def step_impl(context):
@when('I navigate to test.io') @when('I navigate to test.io')
def step_impl(context): def step_impl(context):
context.driver.get("https://test.io") context.driver.get("https://test.io")
print(context.driver.title)
@then('The page is displayed') @then('The page is displayed')
def step_impl(context): def step_impl(context):

View File

@ -1,16 +0,0 @@
from behave import then, when, given
@given('A sentence')
def step_impl(context):
return True
@when('The sentence is inspected')
def step_impl(context):
return True
@then('The word "the" should be found')
def step_impl(context):
return True

View File