How niranjanrdy/webdriverio_bdd_cucumber_ui_automation works
This repository automates PHPTravels’ web UI using WebdriverIO, Cucumber, and TypeScript. The workflow is scenario steps → login → admin, customer, or supplier actions → success-message checks; test data and Faker supply credentials and form values. Page objects implement the UI interactions and add Allure steps, while WebdriverIO configuration loads the step definitions, configures reporting, and captures failure screenshots. The feature file and configuration excerpts are incomplete, so their scenario-to-step wiring is shown as unverified; other links follow explicit imports and calls.
Main entry points: UIAutomation.page.ts Cucumber steps · wdio.conf.ts WebdriverIO config · login.page.ts Login page · admins.page.ts Admin page
Components 14
BDD workflow
- Cucumber steps
features/step-definitions/UIAutomation.page.ts - Scenarios
features/phpTravelsAutomation.feature
UI page objects
- Login page
features/pageobjects/login.page.ts - Admin page
features/pageobjects/admins.page.ts - Customer page
features/pageobjects/customers.page.ts - Supplier page
features/pageobjects/suppliers.page.ts
Test runtime
- WebdriverIO config
wdio.conf.ts - Results cleanup
features/utils/folderUtils.ts
Test inputs
- Test data
features/test-data/data.json
Other components
- Test operator
- Faker
- PHPTravels UI
- Allure reporting
- Browser session
Connections 21
- Test operator → WebdriverIO config: starts run
README.md - WebdriverIO config → Cucumber steps: loads steps
wdio.conf.ts - Scenarios → Cucumber steps: matches scenarios
- Cucumber steps → Login page: calls login
features/step-definitions/UIAutomation.page.ts - Cucumber steps → Admin page: calls admin actions
features/step-definitions/UIAutomation.page.ts - Cucumber steps → Customer page: calls customer actions
features/step-definitions/UIAutomation.page.ts - Cucumber steps → Supplier page: calls supplier actions
features/step-definitions/UIAutomation.page.ts - Cucumber steps → Test data: reads values
features/step-definitions/UIAutomation.page.ts - Cucumber steps → Faker: generates values
features/step-definitions/UIAutomation.page.ts - Login page → Browser session: opens URL
features/pageobjects/login.page.ts - Login page → PHPTravels UI: drives UI
features/pageobjects/login.page.ts - Admin page → PHPTravels UI: drives UI
features/pageobjects/admins.page.ts - Customer page → PHPTravels UI: drives UI
features/pageobjects/customers.page.ts - Supplier page → PHPTravels UI: drives UI
features/pageobjects/suppliers.page.ts - Login page → Allure reporting: adds steps
features/pageobjects/login.page.ts - Admin page → Allure reporting: adds steps
features/pageobjects/admins.page.ts - Customer page → Allure reporting: adds steps
features/pageobjects/customers.page.ts - Supplier page → Allure reporting: adds steps
features/pageobjects/suppliers.page.ts - WebdriverIO config → Allure reporting: configures reporter
wdio.conf.ts - WebdriverIO config → Results cleanup: clears results
wdio.conf.ts - WebdriverIO config → Browser session: screenshots failures
wdio.conf.ts