Skip to content

Commit 87814a9

Browse files
committed
Update Test & README
* Edit README.md * Using PyTest instead * Edit GitHub Actions
1 parent 1f147e1 commit 87814a9

18 files changed

+137
-630
lines changed

.github/workflows/dev_python3_10.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,5 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel
2727
pip install -r dev_requirements.txt
28-
- name: Test Fast HTTP User
29-
run: python ./test/unit_test/user_test/fast_http_user_test.py
30-
- name: TestMulti Action User
31-
run: python ./test/unit_test/user_test/http_user_test.py
32-
- name: Test Callback
33-
run: python ./test/unit_test/callback_test/callback_test.py
34-
- name: Test Create Project
35-
run: python ./test/unit_test/create_project/create_project.py
36-
- name: Test Generate HTML Report
37-
run: python ./test/unit_test/generate_report/generate_html_report.py
38-
- name: Test Generate XML Report
39-
run: python ./test/unit_test/generate_report/generate_xml_report.py
40-
- name: Test Generate JSON Report
41-
run: python ./test/unit_test/generate_report/generate_json_report.py
42-
- name: Test Executor
43-
run: python ./test/unit_test/executor_test/execute.py
28+
- name: PyTest
29+
run: python -m pytest -v

.github/workflows/dev_python3_11.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,5 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel
2727
pip install -r dev_requirements.txt
28-
- name: Test Fast HTTP User
29-
run: python ./test/unit_test/user_test/fast_http_user_test.py
30-
- name: TestMulti Action User
31-
run: python ./test/unit_test/user_test/http_user_test.py
32-
- name: Test Callback
33-
run: python ./test/unit_test/callback_test/callback_test.py
34-
- name: Test Create Project
35-
run: python ./test/unit_test/create_project/create_project.py
36-
- name: Test Generate HTML Report
37-
run: python ./test/unit_test/generate_report/generate_html_report.py
38-
- name: Test Generate XML Report
39-
run: python ./test/unit_test/generate_report/generate_xml_report.py
40-
- name: Test Generate JSON Report
41-
run: python ./test/unit_test/generate_report/generate_json_report.py
42-
- name: Test Executor
43-
run: python ./test/unit_test/executor_test/execute.py
28+
- name: PyTest
29+
run: python -m pytest -v

.github/workflows/dev_python3_12.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,5 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel
2727
pip install -r dev_requirements.txt
28-
- name: Test Fast HTTP User
29-
run: python ./test/unit_test/user_test/fast_http_user_test.py
30-
- name: TestMulti Action User
31-
run: python ./test/unit_test/user_test/http_user_test.py
32-
- name: Test Callback
33-
run: python ./test/unit_test/callback_test/callback_test.py
34-
- name: Test Create Project
35-
run: python ./test/unit_test/create_project/create_project.py
36-
- name: Test Generate HTML Report
37-
run: python ./test/unit_test/generate_report/generate_html_report.py
38-
- name: Test Generate XML Report
39-
run: python ./test/unit_test/generate_report/generate_xml_report.py
40-
- name: Test Generate JSON Report
41-
run: python ./test/unit_test/generate_report/generate_json_report.py
42-
- name: Test Executor
43-
run: python ./test/unit_test/executor_test/execute.py
28+
- name: PyTest
29+
run: python -m pytest -v

.github/workflows/stable_python3_10.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,7 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel
2727
pip install -r requirements.txt
28-
- name: Test Fast HTTP User
29-
run: python ./test/unit_test/user_test/fast_http_user_test.py
30-
- name: TestMulti Action User
31-
run: python ./test/unit_test/user_test/http_user_test.py
32-
- name: Test Callback
33-
run: python ./test/unit_test/callback_test/callback_test.py
34-
- name: Test Create Project
35-
run: python ./test/unit_test/create_project/create_project.py
36-
- name: Test Generate HTML Report
37-
run: python ./test/unit_test/generate_report/generate_html_report.py
38-
- name: Test Generate XML Report
39-
run: python ./test/unit_test/generate_report/generate_xml_report.py
40-
- name: Test Generate JSON Report
41-
run: python ./test/unit_test/generate_report/generate_json_report.py
42-
- name: Test Executor
43-
run: python ./test/unit_test/executor_test/execute.py
28+
- name: Install PyTest
29+
run: pip install -r pytest
30+
- name: PyTest
31+
run: python -m pytest -v

.github/workflows/stable_python3_11.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,7 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel
2727
pip install -r requirements.txt
28-
- name: Test Fast HTTP User
29-
run: python ./test/unit_test/user_test/fast_http_user_test.py
30-
- name: TestMulti Action User
31-
run: python ./test/unit_test/user_test/http_user_test.py
32-
- name: Test Callback
33-
run: python ./test/unit_test/callback_test/callback_test.py
34-
- name: Test Create Project
35-
run: python ./test/unit_test/create_project/create_project.py
36-
- name: Test Generate HTML Report
37-
run: python ./test/unit_test/generate_report/generate_html_report.py
38-
- name: Test Generate XML Report
39-
run: python ./test/unit_test/generate_report/generate_xml_report.py
40-
- name: Test Generate JSON Report
41-
run: python ./test/unit_test/generate_report/generate_json_report.py
42-
- name: Test Executor
43-
run: python ./test/unit_test/executor_test/execute.py
28+
- name: Install PyTest
29+
run: pip install -r pytest
30+
- name: PyTest
31+
run: python -m pytest -v

.github/workflows/stable_python3_12.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,7 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip wheel
2727
pip install -r requirements.txt
28-
- name: Test Fast HTTP User
29-
run: python ./test/unit_test/user_test/fast_http_user_test.py
30-
- name: TestMulti Action User
31-
run: python ./test/unit_test/user_test/http_user_test.py
32-
- name: Test Callback
33-
run: python ./test/unit_test/callback_test/callback_test.py
34-
- name: Test Create Project
35-
run: python ./test/unit_test/create_project/create_project.py
36-
- name: Test Generate HTML Report
37-
run: python ./test/unit_test/generate_report/generate_html_report.py
38-
- name: Test Generate XML Report
39-
run: python ./test/unit_test/generate_report/generate_xml_report.py
40-
- name: Test Generate JSON Report
41-
run: python ./test/unit_test/generate_report/generate_json_report.py
42-
- name: Test Executor
43-
run: python ./test/unit_test/executor_test/execute.py
28+
- name: Install PyTest
29+
run: pip install -r pytest
30+
- name: PyTest
31+
run: python -m pytest -v

README.md

Lines changed: 26 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,35 @@
1-
## LoadDensity
2-
[![Downloads](https://static.pepy.tech/badge/je-load-density)](https://pepy.tech/project/je-load-density)
3-
4-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b3f05488c16a44959cbf0ec28d4c977c)](https://www.codacy.com/gh/JE-Chen/LoadDensity/dashboard?utm_source=github.com&utm_medium=referral&utm_content=JE-Chen/LoadDensity&utm_campaign=Badge_Grade)
5-
6-
[![LoadDensity Stable Python3.8](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_8.yml/badge.svg)](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_8.yml)
7-
8-
[![LoadDensity Stable Python3.9](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_9.yml/badge.svg)](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_9.yml)
9-
10-
[![LoadDensity Stable Python3.10](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_10.yml/badge.svg)](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_10.yml)
11-
12-
[![LoadDensity Stable Python3.11](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_11.yml/badge.svg)](https://github.com/Intergration-Automation-Testing/LoadDensity/actions/workflows/stable_python3_11.yml)
13-
14-
### Documentation
15-
16-
[![Documentation Status](https://readthedocs.org/projects/loaddensity/badge/?version=latest)](https://loaddensity.readthedocs.io/en/latest/?badge=latest)
17-
18-
[LoadDensity Doc Click Here!](https://loaddensity.readthedocs.io/en/latest/)
19-
20-
---
21-
> Project Kanban \
22-
> https://github.com/orgs/Integration-Automation/projects/2/views/1
23-
> * Load automation.
24-
> * Easy setup user template.
25-
> * Load Density script.
26-
> * Generate JSON/HTML/XML report.
27-
> * 1 sec / thousands requests.
28-
> * Fast spawn users.
29-
> * Multi test on one task.
30-
> * Specify test time.
31-
> * OS Independent.
32-
> * Remote automation support.
33-
> * Project & Template support.
34-
---
35-
36-
## install
1+
# LoadDensity
2+
A high‑performance load testing and automation tool.
3+
It supports fast user spawning, flexible templates, and generates reports in multiple formats.
4+
Designed to be cross‑platform and easy to integrate into your projects.
5+
6+
- Load automation: Quickly set up and run load tests
7+
- User templates: Simple configuration for reusable test users
8+
- Load Density scripts: Define and execute repeatable scenarios
9+
- Report generation: Export results in JSON, HTML, or XML
10+
- High throughput: Thousands of requests per second
11+
- Fast user spawning: Scale up test users instantly
12+
- Multi‑test support: Run multiple tests on a single task
13+
- ⏱Configurable test duration: Specify how long tests should run
14+
- OS independent: Works across major operating systems
15+
- Remote automation: Execute tests remotely
16+
- Project & template support: Organize and reuse test setup
17+
18+
## Installation
3719

3820
```
3921
pip install je_locust_wrapper
4022
```
4123

42-
## require
24+
## Require
4325

4426
```
45-
python 3.8 or later
27+
python 3.9 or later
4628
```
4729

48-
>* Test on
49-
>> * windows 10 ~ 11
50-
>> * osx 10.5 ~ 11 big sur
51-
>> * ubuntu 20.0.4
52-
>> * raspberry pi 3B+
53-
>> * All test in test dir
54-
>> *
55-
### Architecture Diagram
56-
![Architecture Diagram](architecture_diagram/LoadDnesity_Archirecture.drawio.png)
30+
## Tested Platforms
31+
- Windows 10 ~ 11
32+
- macOS 10.15 ~ 11 Big Sur
33+
- Ubuntu 20.04
34+
- Raspberry Pi 3B+
35+
- All test cases are located in the test directory

0 commit comments

Comments
 (0)