-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #674 from prayascoriolis/ISSUE-207-Meta-Data-Section
[Issue #207] Implementing Feature : Meta Data section (Scenario JSON)
- Loading branch information
Showing
8 changed files
with
177 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/metadatatest/MetaDataTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.jsmart.zerocode.testhelp.tests.metadatatest; | ||
|
||
import org.jsmart.zerocode.core.domain.JsonTestCase; | ||
import org.jsmart.zerocode.core.domain.TargetEnv; | ||
import org.jsmart.zerocode.core.runner.ZeroCodeUnitRunner; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
@TargetEnv("github_host.properties") | ||
@RunWith(ZeroCodeUnitRunner.class) | ||
public class MetaDataTest { | ||
@Test | ||
@JsonTestCase("metadatatest/metadatatest.json") | ||
public void testMetaData() throws Exception { | ||
|
||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
http-testing/src/test/resources/metadatatest/metadatatest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"scenarioName": "Scenario - Get GitHub User Details with Metadata", | ||
"steps": [ | ||
{ | ||
"name": "get_user_details", | ||
"url": "/users/octocat", | ||
"method": "GET", | ||
"request": { | ||
}, | ||
"assertions": { | ||
"status": 200, | ||
"body": { | ||
"login": "octocat", | ||
"id": 583231, | ||
"type": "User" | ||
} | ||
} | ||
} | ||
], | ||
"meta": { | ||
"authors": ["Emma", "Sidd", "Krish"], | ||
"tickets": ["ISSUE-519", "GT-312"], | ||
"categories": ["api", "regression"], | ||
"description": ["This test verifies the GitHub user API"], | ||
"last_updated": ["2023-05-15"] | ||
} | ||
} |