Skip to content

Commit d713fc9

Browse files
WIP: [Issue #207] Implementing Feature : Meta Data section in the scenario JSON (unit test java file and assertion json file added)
1 parent ad6c834 commit d713fc9

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package org.jsmart.zerocode.testhelp.tests.metadatatest;
2+
3+
import org.jsmart.zerocode.core.domain.JsonTestCase;
4+
import org.jsmart.zerocode.core.domain.TargetEnv;
5+
import org.jsmart.zerocode.core.runner.ZeroCodeUnitRunner;
6+
import org.junit.Test;
7+
import org.junit.runner.RunWith;
8+
9+
@TargetEnv("github_host.properties")
10+
@RunWith(ZeroCodeUnitRunner.class)
11+
public class MetaDataTest {
12+
@Test
13+
@JsonTestCase("metadatatest/MetaDataTestAssertion.json")
14+
public void testmetadata() throws Exception {
15+
16+
}
17+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"scenarioName": "Scenario - Get GitHub User Details with Metadata",
3+
"steps": [
4+
{
5+
"name": "get_user_details",
6+
"url": "/users/octocat",
7+
"method": "GET",
8+
"request": {
9+
},
10+
"assertions": {
11+
"status": 200,
12+
"body": {
13+
"login": "octocat",
14+
"id": 583231,
15+
"type": "User"
16+
}
17+
}
18+
}
19+
],
20+
"meta": {
21+
"authors": ["Emma", "Sidd", "Krish"],
22+
"tickets": ["ISSUE-519", "GT-312"],
23+
"categories": ["api", "regression"],
24+
"description": ["This test verifies the GitHub user API"],
25+
"last_updated": ["2023-05-15"]
26+
}
27+
}

0 commit comments

Comments
 (0)