pilatus-automated-testing-framework
v1.0.0
Published
Reusable Playwright + Cucumber framework with Xray integration
Maintainers
Readme
Pilatus Automated Testing Framework
This is a reusable end-to-end (E2E) automated testing framework built with Playwright and Cucumber.js. It is designed to be imported and reused across multiple projects, providing:
- ✅ Centralized and extensible step definitions
- ✅ Native support for Jira Xray test management
- ✅ HTML and Xray-compatible JSON reports
- ✅ Optional override of Cucumber settings
🚀 Features
- ✅ Behavior-Driven Development (BDD) with Gherkin syntax
- 🎭 Playwright for fast, cross-browser web automation
- 📄 Reusable step definitions for common web testing tasks
- 🧩 Plug-and-play architecture for consuming projects
- 📊 JSON & HTML reports generation
- 🧷 Xray integration: Generate Xray-compatible results for Jira upload
📄 Supported Step Definitions
These reusable steps are defined in the framework and ready to use in .feature files:
🟢 Navigation & Interaction
- Given the user navigates to
{string}page - Given the user uses
{string} - When the user clicks the
{string} - When the user selects
{string}from{string} - When the user fills in the
{string}with{string} - When the user clears the
{string}
👀 Visibility & State Assertions
- Then the user should see the
{string} - Then the user should not see the
{string} - Then the
{string}should be disabled - Then the user should be in
{string}page
Note: Each
{string}maps to keys in your<page>.jsonelement selector configuration or values that define expected behavior.
🧩 How to use the framework?
Please refer to this section for more details on how to start implementing your own automated tests project.
📊 Reporting
🟢 HTML Report
Automatically generated under reporting/report.html.
🟡 Xray JSON Report
Output saved as reporting/xray-report.json, compatible with Xray Cucumber Results Import.
🛡️ Requirements
- Node.js ≥ 18.x
- Playwright-compatible environment (GUI or headless)
🤝 Contributions
Internal use only. Contributions via merge request are welcome. Please ensure all new steps are documented. Made with 💻 + ❤️
