How suryan-code/frameworkupgrade works
This is a TypeScript/Playwright/Cucumber BDD framework for insurance-platform automation. The primary flow is scenario steps requesting platform/module navigation, isolated browser sessions and authentication, then platform page objects performing business interactions and assertions. It also supports API-driven Guidewire workflows, reusable test data, smart locator resolution, form validation, and result reporting. Several platform/page and reporting links are documented but their implementation was not sampled; those links are shown only where README or indexed references support them.
Main entry points: SmartLocatorEngine.ts Smart locator · stepDefinitions Step definitions · NavigationManager.ts Navigation manager · GenericPlatformNavigator.ts Platform navigator
Components 22
Scenario workflow
- BDD scenarios
- Step definitions
src/stepDefinitions - Cucumber support
src/support
Platform automation
- Navigation manager
src/navigation/NavigationManager.ts - Platform navigator
src/navigation/GenericPlatformNavigator.ts - Platform registry
src/core/platform/PlatformRegistry.ts - Platform page objects
src/pages - Page element helpers
src/pageElements
Core engine
- Browser sessions
src/core/browser/BrowserManager.ts - Platform configuration
src/core/config - Playwright engine
src/core/engine/playwrightEngine.ts - Logging
src/core/logger/Logger.ts
Test capabilities
- Insurance data models
src/datamodel/guidewire - Insurance API workflows
src/stepDefinitions/guidewire - Smart locator
src/core/smartlocator/SmartLocatorEngine.ts - Locator strategies
src/core/smartlocator/LocatorStrategyEngine.ts - Locator profiles
src/core/smartlocator/ApplicationProfileManager.ts - Locator cache
src/core/smartlocator/LocatorCache.ts - Locator reporting
src/core/smartlocator/LocatorReporter.ts - Form validation
src/stepDefinitions/formsValidation/FormValidationSteps.ts - Test result reporting
src/core/reporting
Other components
- Insurance platforms
Connections 21
- BDD scenarios → Step definitions: binds steps
README.md - Step definitions → Navigation manager: requests navigation
README.md - Cucumber support → Browser sessions: wires lifecycle
README.md - Navigation manager → Browser sessions: gets sessions
src/navigation/NavigationManager.ts - Navigation manager → Platform configuration: loads platform config
src/navigation/NavigationManager.ts - Navigation manager → Platform navigator: dispatches navigation
src/navigation/NavigationManager.ts - Platform navigator → Insurance platforms: authenticates and navigates
README.md - Platform navigator → Platform registry: selects page implementation
README.md - Platform registry → Platform page objects: resolves page objects
README.md - Platform page objects → Page element helpers: uses interaction helpers
src/pages/guidewire/basePage.ts - Platform page objects → Insurance data models: uses test data
- Step definitions → Insurance API workflows: runs API steps
README.md - Insurance API workflows → Insurance platforms: calls platform APIs
README.md - Smart locator → Locator profiles: loads profile
src/core/smartlocator/SmartLocatorEngine.ts - Smart locator → Locator strategies: resolves strategy
src/core/smartlocator/SmartLocatorEngine.ts - Smart locator → Locator cache: reads and writes cache
src/core/smartlocator/SmartLocatorEngine.ts - Smart locator → Locator reporting: records resolutions
src/core/smartlocator/SmartLocatorEngine.ts - Locator strategies → Insurance platforms: queries page controls
src/core/smartlocator/LocatorStrategyEngine.ts - Step definitions → Form validation: runs validation steps
src/stepDefinitions/formsValidation/FormValidationSteps.ts - Cucumber support → Test result reporting: publishes test results
README.md - Playwright engine → Logging: logs page events
src/core/engine/playwrightEngine.ts