Skip to content

Commit 2cf8672

Browse files
Updates to documentation
1 parent 18e4851 commit 2cf8672

File tree

4 files changed

+38
-11
lines changed

4 files changed

+38
-11
lines changed

docs/global-artifacts/01.requirements-engineering/puml/use-case-diagram.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@startuml use-case-diagram
22
left to right direction
33

4-
actor "Developer or CI/CD Pipeline" as Dev
4+
actor "Developer" as Dev
55

66
rectangle "Melmac Performance Testing Framework" {
77
usecase "UC1: As a Developer, I want to create a Test Suite" as UC1

docs/global-artifacts/01.requirements-engineering/use-cases.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
The use case diagram provides a high-level overview of the system's functionality by illustrating the interactions between users (actors) and the system's use cases. It helps identify the main actors and their goals when using the system.
66

7-
![Use Case Diagram](./USE-CASE-DIAGRAM.svg)
7+
![Use Case Diagram](./svg/use-case-diagram.svg)
88

99
## Use Cases
1010

1111
This section outlines the specific use cases for the system, detailing the interactions between actors and the system. Each use case includes a description, preconditions, and postconditions to clarify the expected behavior of the system.
1212

1313
| Use Case | Description |
1414
| -------------------------- | ---------------------------------------------------------------------------- |
15-
| **UC1: Create Test Suite** | The user creates a new test suite to organize related test scripts. |
16-
| **UC2: Create Test Plan** | The user defines a test script, specifying objectives, scope, and resources. |
17-
| **UC3: Run Test Suite** | The user executes all test scripts within a selected test suite. |
18-
| **UC4: Run Test Plan** | The user initiates the execution of a specific test script. |
15+
| **UC1: As a Developer, I want to create a Test Suite** | The user creates a new test suite to organize related test scripts. |
16+
| **UC2: As a Developer, I want to create a Test Plan** | The user defines a test script, specifying objectives, scope, and resources. |
17+
| **UC3: As a Developer, I want to run a Test Suite** | The user executes all test scripts within a selected test suite. |
18+
| **UC4: As a Developer, I want to run a Test Plan** | The user initiates the execution of a specific test script. |
1919

2020
---

script.txt renamed to docs/global-artifacts/script.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
# 1. Create Test Suite
1+
# Alfie Melmac Performance Testing - API Usage
2+
3+
## 1. Create Test Suite
4+
5+
```bash
26
curl -X POST http://localhost:8080/test-suites \
37
-H "Content-Type: application/json" \
48
-d '{
59
"testSuiteName": "My Test Suite",
610
"testSuiteDescription": "Description of my test suite"
711
}'
12+
```
13+
14+
## 2. Create Android Test Plan
815

9-
# 2. Create Android Test Plan
16+
```bash
1017
curl -X POST http://localhost:8080/test-plans \
1118
-H "Content-Type: application/json" \
1219
-d '{
@@ -39,8 +46,11 @@ curl -X POST http://localhost:8080/test-plans \
3946
"executionTypeParameters": [],
4047
"testSuiteVersionId": 1
4148
}'
49+
```
4250

43-
# 3. Create iOS Test Plan
51+
## 3. Create iOS Test Plan
52+
53+
```bash
4454
curl -X POST http://localhost:8080/test-plans \
4555
-H "Content-Type: application/json" \
4656
-d '{
@@ -72,9 +82,16 @@ curl -X POST http://localhost:8080/test-plans \
7282
"executionTypeParameters": [],
7383
"testSuiteVersionId": 1
7484
}'
85+
```
86+
87+
## 4. Execute Test Suite
7588

76-
# 4. Execute Test Suite
89+
```bash
7790
curl -X POST http://localhost:8080/test-suites/1/run
91+
```
92+
93+
## 5. Execute Single Test Plan
7894

79-
# 5. Execute Single Test Plan
95+
```bash
8096
curl -X POST "http://localhost:8080/test-executions/run?testPlanVersionId=2"
97+
```

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,14 @@ curl -X GET http://localhost:8080/api/endpoint
104104

105105
Replace `GET` with the desired HTTP method and update the URL to match your application's endpoint.
106106

107+
You can find API usage examples at [`docs/global-artifacts/script.md`](docs/global-artifacts/script.md). This document provides detailed, step-by-step instructions on how to create test plans and execute them using the API.
108+
109+
## 8. How to Configure CI/CD workflows
110+
111+
To configure CI/CD workflows, you can use tools like [GitHub Actions](https://docs.github.com/en/actions), [GitLab CI](https://docs.gitlab.com/ee/ci/), or [Jenkins](https://www.jenkins.io/doc/).
112+
You can find example workflow files in the [`.github/workflows`](.github/workflows) directory. These files are clickable and define how your project is built, tested, and deployed.
113+
Click on a workflow file to view or edit its configuration directly in your repository.
114+
115+
**Note:** The workflow templates provided are static. If you need to change any parameters (such as environment variables, build steps, or triggers), you must edit the workflow YAML files and commit the changes to your repository for them to take effect.
116+
107117
<img width=100% src="https://capsule-render.vercel.app/api?type=waving&height=120&color=3A4A51&reversal=true&textBg=false&section=footer"/>

0 commit comments

Comments
 (0)