How suryadharshinivijay/bbcsport works
This repository is a Behave/Selenium UI automation framework for BBC Sport navigation and article-comment checks. Its documented workflow runs Gherkin scenarios through step definitions and page objects, using shared Selenium actions and a scenario-scoped browser. The sampled code shows login data loading, navigation, comment-enabled/disabled article selection, and comment-section assertions. The README documents the overall layer sequence; edges between specific feature scenarios and steps are therefore documented at framework level, not verified from the unsampled feature file.
Main entry points: navigation_steps.py Navigation Steps · basePage.py Shared Actions · sport_comment_validation.feature Comment Scenarios · comment_steps.py Comment Steps
Components 13
BDD Scenarios
- Comment Scenarios
features/sport_comment_validation.feature - Login Data
testData/User_details.json
Scenario Steps
- Navigation Steps
features/steps/navigation_steps.py - Comment Steps
features/steps/comment_steps.py
Page Objects
- Home Page
pageObjects/bbcHomePage.py - Sports Page
pageObjects/bbcSportsPage.py - Comment Page
pageObjects/sportsArticleCommentPage.py - Shared Actions
pageObjects/basePage.py
Browser Runtime
- Scenario Hooks
features/environment.py - Driver Factory
utils/driver_factory.py
Other components
- Test User
- Chrome Browser
- BBC Website
Connections 16
- Test User → Comment Scenarios: runs scenarios
README.md - Comment Scenarios → Navigation Steps: binds steps
README.md - Comment Scenarios → Comment Steps: binds steps
README.md - Navigation Steps → Login Data: loads credentials
features/steps/navigation_steps.py - Navigation Steps → Home Page: drives login
features/steps/navigation_steps.py - Navigation Steps → Sports Page: selects articles
features/steps/navigation_steps.py - Comment Steps → Comment Page: checks comments
features/steps/comment_steps.py - Comment Steps → Sports Page: checks articles
features/steps/comment_steps.py - Home Page → Shared Actions: inherits actions
pageObjects/bbcHomePage.py - Sports Page → Shared Actions: inherits actions
pageObjects/bbcSportsPage.py - Comment Page → Shared Actions: inherits actions
pageObjects/sportsArticleCommentPage.py - Scenario Hooks → Driver Factory: creates driver
features/environment.py - Scenario Hooks → Chrome Browser: quits driver
features/environment.py - Driver Factory → Chrome Browser: starts Chrome
utils/driver_factory.py - Driver Factory → BBC Website: opens homepage
utils/driver_factory.py - Shared Actions → Chrome Browser: uses Selenium
README.md