An open API service indexing awesome lists of open source software.

https://github.com/mauricioavitia/utaf-typescript-selenium

Framework de pruebas automatizadas en Selenium, TypeScrip, Mocha y Axios
https://github.com/mauricioavitia/utaf-typescript-selenium

allure-report api-testing-framework azure-pipelines chai mocha node selenium test-automation typescript ui-testing-framework xunit

Last synced: 4 months ago
JSON representation

Framework de pruebas automatizadas en Selenium, TypeScrip, Mocha y Axios

Awesome Lists containing this project

README

          

# ![TypeScript Logo](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white&style=flat) UTAF-TypeScript-Selenium

UTAF-TypeScript-Selenium is an automated testing framework for web applications, built with the following technologies:

- ![TypeScript Logo](https://img.shields.io/badge/TypeScript-007ACC?logo=typescript&logoColor=white&style=flat) **TypeScript**: Static typing and modern JavaScript development.
- ![Selenium Logo](https://img.shields.io/badge/Selenium-43B02A?logo=selenium&logoColor=white&style=flat) **Selenium WebDriver**: Browser automation for end-to-end testing.
- ![Mocha Logo](https://img.shields.io/badge/Mocha-8D6748?logo=mocha&logoColor=white&style=flat) **Mocha**: Test framework for structuring and running test cases.
- ![Axios Logo](https://img.shields.io/badge/Axios-5A29E4?logo=axios&logoColor=white&style=flat) **Axios**: HTTP client for API and web service testing.
- ![Allure Logo](https://img.shields.io/badge/Allure-FF43A4?logo=allure&logoColor=white&style=flat) **Allure Results**: Generates detailed and interactive test reports, providing insights into test execution, failures, and history for better analysis and debugging.
- ![Azure Logo](https://img.shields.io/badge/Azure%20DevOps-0078D7?logo=azure&logoColor=white&style=flat) **Azure DevOps**: CI/CD integration for automated build and deployment pipelines.

## ![Authors Icon](https://img.shields.io/badge/Authors-181717?logo=github&logoColor=white&style=flat) Authors

- ![GitHub Logo](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white&style=flat) [MauricioAvitia](https://github.com/MauricioAvitia)
- ![GitHub Logo](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white&style=flat) [328999_nttds](https://github.com/328999_nttds)

## ![Features Icon](https://img.shields.io/badge/Features-43B02A?logo=selenium&logoColor=white&style=flat) Features

- 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.

## ![Install Icon](https://img.shields.io/badge/Install-007ACC?logo=typescript&logoColor=white&style=flat) Installation

1. Clone then repo.
```bash
git clone https://github.com/MauricioAvitia/UTAF-TypeScript-Selenium
```

2. Navigate to root folder.
```bash
cd UTAF-TypeScript-Selenium
```

3. Install yarn (global installation recomended).
```bash
npm install --global yarn
```

4. Pull all dependencies.
```bash
yarn
```

5. Install "Allure" commandline to generate reports.
```bash
npm install -g allure-commandline --save-dev
```

## ![Usage Icon](https://img.shields.io/badge/Usage-8D6748?logo=mocha&logoColor=white&style=flat) Usage

1. Configure parameters in `config/config.json`.
2. To run api tests use the following:

```bash
yarn testapi
```

3. To run ui tests use the following:

```bash
yarn testui
```

4. To generate web report page use:

```bash
allure server allure-results
```

## ![Report Icon](https://img.shields.io/badge/Report-FF43A4?logo=allure&logoColor=white&style=flat) Example Report

![Allure Report Example](img/allure-example.PNG)

## ![Structure Icon](https://img.shields.io/badge/Structure-5A29E4?logo=axios&logoColor=white&style=flat) Project Structure

```
├── src/
│ ├── tests/ # Test cases
│ ├── pages/ # Page Objects
│ ├── utils/ # Utilities and helpers
│ └── config/ # Configuration
├── reports/ # Test reports
├── package.json
└── README.md
```

## ![Contribute Icon](https://img.shields.io/badge/Contribute-4CAF50?logo=github&logoColor=white&style=flat) Contributing

Contributions are welcome. Please open an issue or submit a pull request.