Automated testing framework to facilitate Behavior driven development (BDD) methodology for application development. Tools used are
- Playwright
- Open source (Developed & backed by Microsoft)
- Reliable end to end testing for the modern web apps
- Any Browser, Any platform
- Cucumber
- Cucumber enables you to write test cases that anyone can easily understand regardless of their technical knowledge.
- Allure Reporting
- Allure Report is a flexible multi-language test report tool to show you a detailed representation of what has been tested and extract maximum from the everyday execution of tests
Key driver for selecting testing frame tools is “No subscriptions/payments - Open Source”.
- Developemnt language: Nodejs (Javascript)
- Framework: Playwright, Cucumber
- Database: MongoDB
- Reporter: Cucumber Reporter, Allure Reporter, Playwright trace
- CI/CD: Github Action
- The project combined both UI, API and DB automation testing for Milana Web Application
- Use Node v20+ (should 20 in my suggestion)
- Install yarn
- Clone the project & run yarn install , yarn prepare
-
yarn test-all-suites(default of CI/CD) for run all tests with all emulation devices -
yarn clean-test-devfor run all tests in Dev environment (UI + API + DB) -
yarn test-ui-dev:chromefor run test UI with Playwright - Chrome -
yarn test-ui-dev:firefoxfor run test UI with Playwright - Firefox -
yarn test-ui-dev:iPhone14for run test UI with Playwright - IPhone14 Emulation -
yarn test-api-devfor run test API using bundled Playwright API request -
yarn test-db-devfor connect MongoDB and run DB testing (health check, query logic)... and more in
package.json
- After run local any tests, there will be 2 reporter generated: Cucumber and Allure
- For Cucumber HTML report, just check the
test-resultsfolder - For Allure report, please run
yarn show-reportto display it
Alluret Test report contains testing suites for • Database Testing • API Testgiing • UI Testing • Browsers testing for chrome, Firefox ( fyi Playwright can run tests on Chromium, WebKit, and Microsoft Edge) • Emulators using Phone 14, iPad Pro 11, Pixel7, Galaxy S9 mobiles • Android devices emulator using Appium UiAutomator2 Driver • UI Test results contains video of UI Test execution steps
- We are using Github Action CI CD
- Test run automatically by the Github Runner
- We can run workflow dynamically by specify the test command and run it from Github Action UI
- After test finished, the Allure report will automatically real-time deploy using Github Page on: https://bsapac.github.io/PWA-automated-testing-framework/