crki76 / python-behave-sample-project Goto Github PK
View Code? Open in Web Editor NEWtest automation sample project with python and selenium webdriver
test automation sample project with python and selenium webdriver
The search page filtering option in the feature file examples is mentioned as "option_wife". assuming it is "option wifi" not wife .. looks to be a a typo.. thanks for the project
`Feature: Acting in trivago home page. Demonstrating some assertion and scooping methods # features/test_scenarios/home_page.feature:1
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario Outline: User navigates to home page and observes page content -- @1.1 # features/test_scenarios/home_page.feature:8
Given I am redirected on home page # None
When On page I want to see searching_bar # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario Outline: User navigates to home page and observes page content -- @1.2 # features/test_scenarios/home_page.feature:9
Given I am redirected on home page # None
When On page I want to see searching_button # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario: User navigates to home page and observes Trivago's slogan # features/test_scenarios/home_page.feature:11
Given I am redirected on home page # None
When In home page I want to see slogan # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario: User navigates to home page, clicks on search button and is redirected to searching page # features/test_scenarios/home_page.featur
e:16
Given I am redirected on home page # None
When I click on searching_button in search bar # None
Then In searching page I want to see searching_filter # None
Scenario: User navigates to home page and wants to see a Trivago slogan # features/test_scenarios/home_page.feature:22
Given I am redirected on home page # None
When I want to see Find your ideal hotel|nfor the best price in slogan # None
Feature: Acting in Searching page as required # features/test_scenarios/searching_page.feature:1
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.1 # features/test_scenarios/searching_
page.feature:13
Given I am redirected on home page # None
When I insert Cork International Hotel to search bar # None
Then I click on searching_button in search bar # None
And I ensure that Cork International Hotel is in searching_bar # None
And I click on option_wife # None
And I check if my option_wife is selected # None
Then I expect True in searching_area for my searching of Cork International Hotel and option_wife # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.2 # features/test_scenarios/searching_
page.feature:14
Given I am redirected on home page # None
When I insert Jurys Inn Cork to search bar # None
Then I click on searching_button in search bar # None
And I ensure that Jurys Inn Cork is in searching_bar # None
And I click on option_wife # None
And I check if my option_wife is selected # None
Then I expect False in searching_area for my searching of Jurys Inn Cork and option_wife # None
HOOK-ERROR in before_scenario: WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a
/chromium.org/chromedriver/home
Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.3 # features/test_scenarios/searching_
page.feature:15
Given I am redirected on home page # None
When I insert The River Lee to search bar # None
Then I click on searching_button in search bar # None
And I ensure that The River Lee is in searching_bar # None
And I click on option_spa # None
And I check if my option_spa is selected # None
Then I expect True in searching_area for my searching of The River Lee and option_spa # None
Scenario Outline: User inserts searching text to the searching engine and expects to be succeed -- @1.4 # features/test_scenarios/searching_
page.feature:16
Given I am redirected on home page # None
When I insert Jurys Inn Cork to search bar # None
Then I click on searching_button in search bar # None
And I ensure that Jurys Inn Cork is in searching_bar # None
And I click on option_spa # None
And I check if my option_spa is selected # None
Then I expect False in searching_area for my searching of Jurys Inn Cork and option_spa # None
Failing scenarios:
features/test_scenarios/home_page.feature:8 User navigates to home page and observes page content -- @1.1
features/test_scenarios/home_page.feature:9 User navigates to home page and observes page content -- @1.2
features/test_scenarios/home_page.feature:11 User navigates to home page and observes Trivago's slogan
features/test_scenarios/home_page.feature:16 User navigates to home page, clicks on search button and is redirected to searching page
features/test_scenarios/home_page.feature:22 User navigates to home page and wants to see a Trivago slogan
features/test_scenarios/searching_page.feature:13 User inserts searching text to the searching engine and expects to be succeed -- @1.1
features/test_scenarios/searching_page.feature:14 User inserts searching text to the searching engine and expects to be succeed -- @1.2
features/test_scenarios/searching_page.feature:15 User inserts searching text to the searching engine and expects to be succeed -- @1.3
features/test_scenarios/searching_page.feature:16 User inserts searching text to the searching engine and expects to be succeed -- @1.4
0 features passed, 2 failed, 0 skipped
0 scenarios passed, 9 failed, 0 skipped
0 steps passed, 0 failed, 0 skipped, 0 undefined, 39 untested
Took 0m0.000s
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591DD0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591EB0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591F50>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x025F1030>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x0253FEB0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x02591110>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x025911F0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x0253FA70>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.del of <selenium.webdriver.chrome.service.S
ervice object at 0x0253FF50>> ignored
`
Help me to identify where i am doing wroung..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.