improvements
This commit is contained in:
parent
14ea594425
commit
59bd86672d
12
behave.ini
12
behave.ini
@ -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
|
||||
|
@ -1,5 +0,0 @@
|
||||
Feature: Demo Feature
|
||||
Scenario: Demo
|
||||
Given A sentence
|
||||
When The sentence is inspected
|
||||
Then The word "the" should be found
|
@ -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")
|
@ -11,7 +11,7 @@ def step_impl(context):
|
||||
@when('I navigate to test.io')
|
||||
def step_impl(context):
|
||||
context.driver.get("https://test.io")
|
||||
|
||||
print(context.driver.title)
|
||||
|
||||
@then('The page is displayed')
|
||||
def step_impl(context):
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user