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

https://github.com/phantu279999/usertest

This tool about automation test on website, It is aimed at users who are easy to use
https://github.com/phantu279999/usertest

chromedriver reactjs selenium selenium-python test-automation testing-library user-test web-automation webdriver

Last synced: 4 months ago
JSON representation

This tool about automation test on website, It is aimed at users who are easy to use

Awesome Lists containing this project

README

          

# ๐Ÿงช Simple Automation Test Framework
> โš ๏ธ *This project is currently under development.*

---

## ๐Ÿ“ Configuration

### `config_actions.json`
This file defines the test cases and corresponding actions to automate.

- Each test case includes a list of actions (e.g., click, input, verify).
- Fully customizable with flexible action types and locators.

---

## Front-end Auto Config

### `frondend/fe-auto`
- React-powered interfaces can help users configure actions more easily.

```commandline
npm install
npm install lucide-react
npm run dev
```

![img.png](frontend/fe-auto/src/assets/img.png)

---

## ๐Ÿš€ How to Run Tests

### `main.py`

This script starts executing the automation test cases defined in `config_actions.json`.

### Example Output:
```bash
--------------- Start run |test_login| --------------
------------- Action 1 -------------
True Passed
------------- Action 2 -------------
True Passed
------------- Action 3 -------------
True Passed
------------- Action 4 -------------
True Passed
------------- Action 5 -------------
True (title) Passed

--------------- Start run |test_search| --------------
------------- Action 1 -------------
True Passed
------------- Action 2 -------------
True Passed
------------- Action 3 -------------
True Passed
------------- Action 4 -------------
True (xpath_text) Passed
```

---

## ๐ŸŒ Supported Environment Drivers

| Environment | Description |
|--------------------------|-----------------------------------------|
| `chrome` | Run on Chrome in normal mode |
| `chrome_headless` | Run on Chrome in headless mode |
| `chrome_mobile` | Simulate mobile browser on Chrome |
| `chrome_mobile_headless` | Mobile simulation in headless Chrome |
| `firefox` | Run on Firefox browser |
| `chrome_grid` | Run on Remote mode + parallel + mul env |

> โœ… Default is `chrome`.

---

## ๐Ÿ“œ License

This project is licensed by **Phan Anh Tu**.
Use and contribute freely with credit.

---

Feel free to suggest more features or contribute with pull requests!