Skip to content

Commit

Permalink
Merge pull request #3 from naodeng/main
Browse files Browse the repository at this point in the history
update README.md and README_EN.md
  • Loading branch information
naodeng authored Nov 1, 2023
2 parents a8a6f06 + d346684 commit af8abea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

一个使用 maven 工具的 RestAssured 演示项目

测试框架:TestNG
测试报告:allure

**中文** | [English](/README_EN.md)


Expand All @@ -13,7 +16,8 @@
## 技术栈
- RestAssured
- TestNG
- Maven
- Maven
- allure
- Github action

## 项目运行
Expand Down
6 changes: 5 additions & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# RestAssured-maven-demo
a RestAssured demo project with maven tool

Test Framework: TestNG
Test report: allure

**English** | [中文](/README.md)

## Environment preparation
Expand All @@ -13,12 +16,13 @@ a RestAssured demo project with maven tool
- RestAssured
- TestNG
- Maven
- allure
- Github action

## How to run

```bash
mvn test
mvn test
```

## Add API Test case
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/example/TestDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Feature("Verify that the Get and POST API returns correctly")
public class TestDemo {

@Test(description = "To get the details of post with id 1", priority = 0)
@Test(description = "To get the details of post with id 1", priority = 1)
@Story("GET Request with Valid post id")
@Severity(SeverityLevel.NORMAL)
@Description("Test Description : Verify that the GET API returns correctly")
Expand All @@ -36,7 +36,7 @@ public void verifyGetAPI() {
.body("body", equalTo("quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"));
}

@Test(description = "To create a new post", priority = 1)
@Test(description = "To create a new post", priority = 2)
@Story("POST Request")
@Severity(SeverityLevel.NORMAL)
@Description("Test Description : Verify that the post API returns correctly")
Expand Down

0 comments on commit af8abea

Please sign in to comment.