UTAF-TypeScript-Selenium is an automated testing framework for web applications, built with the following technologies:
TypeScript: Static typing and modern JavaScript development.
Selenium WebDriver: Browser automation for end-to-end testing.
Mocha: Test framework for structuring and running test cases.
Axios: HTTP client for API and web service testing.
Allure Results: Generates detailed and interactive test reports, providing insights into test execution, failures, and history for better analysis and debugging.
Azure DevOps: CI/CD integration for automated build and deployment pipelines.
- Modular and scalable structure for automated tests.
- Support for UI and API testing.
- Test result reporting.
- Flexible test data management and configuration.
- Test execution on multiple browsers (Chrome, Firefox, Edge).
- Example of continuous integration (CI) with Azure Dev Ops.
-
Clone then repo.
git clone https://github.com/MauricioAvitia/UTAF-TypeScript-Selenium
-
Navigate to root folder.
cd UTAF-TypeScript-Selenium
-
Install yarn (global installation recomended).
npm install --global yarn
-
Pull all dependencies.
yarn
-
Install "Allure" commandline to generate reports.
npm install -g allure-commandline --save-dev
-
Configure parameters in
config/config.json
. -
To run api tests use the following:
yarn testapi
-
To run ui tests use the following:
yarn testui
-
To generate web report page use:
allure server allure-results
``` ├── src/ │ ├── tests/ # Test cases │ ├── pages/ # Page Objects │ ├── utils/ # Utilities and helpers │ └── config/ # Configuration ├── reports/ # Test reports ├── package.json └── README.md ```
Contributions are welcome. Please open an issue or submit a pull request.