-
-
Notifications
You must be signed in to change notification settings - Fork 403
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 #476 from authorjapps/409-csvsource-from-file
ISSUE-409 # Added support for csv file in the `parameterized` `csvSource`
- Loading branch information
Showing
14 changed files
with
200 additions
and
31 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
8 changes: 8 additions & 0 deletions
8
...urces/unit_test_files/engine_unit_test_jsons/08.1_parameterized_csv_source_from_file.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,8 @@ | ||
{ | ||
"valueSource": [ | ||
"hello", | ||
123, | ||
true | ||
], | ||
"csvSource": "unit_test_files/engine_unit_test_jsons/params.csv" | ||
} |
9 changes: 9 additions & 0 deletions
9
...les/engine_unit_test_jsons/08.2_parameterized_csv_source_from_file_containing_header.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,9 @@ | ||
{ | ||
"valueSource": [ | ||
"hello", | ||
123, | ||
true | ||
], | ||
"ignoreHeader": true, | ||
"csvSource": "unit_test_files/engine_unit_test_jsons/params_with_header.csv" | ||
} |
2 changes: 2 additions & 0 deletions
2
core/src/test/resources/unit_test_files/engine_unit_test_jsons/params.csv
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,2 @@ | ||
octocat,The Octocat,San Francisco,583231 | ||
siddhagalaxy,Sidd,UK,33847730 |
3 changes: 3 additions & 0 deletions
3
core/src/test/resources/unit_test_files/engine_unit_test_jsons/params_with_header.csv
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,3 @@ | ||
user,name,city,userid | ||
octocat,The Octocat,San Francisco,583231 | ||
siddhagalaxy,Sidd,UK,33847730 |
3 changes: 0 additions & 3 deletions
3
...ng/src/main/java/org/jsmart/zerocode/zerocodejavaexec/httpclient/JustHelloWorldSuite.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
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
26 changes: 26 additions & 0 deletions
26
...urces/parameterized_csv/hello_world_test_parameterized_csv_source_file_ignore_header.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,26 @@ | ||
{ | ||
"scenarioName": "Fetch and assert GitHub userIds by their userNames", | ||
"steps": [ | ||
{ | ||
"name": "get_user_details", | ||
"url": "/users/${0}", | ||
"method": "GET", | ||
"request": { | ||
}, | ||
"assertions": { | ||
"status": 200, | ||
"body": { | ||
"login" : "${0}", | ||
"type" : "User", | ||
"name" : "${1}", | ||
"location" : "${2}", | ||
"id" : "$EQ.${3}" | ||
} | ||
} | ||
} | ||
], | ||
"parameterized": { | ||
"ignoreHeader": true, | ||
"csvSource":"parameterized_csv/params_with_header.csv" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...src/test/resources/parameterized_csv/hello_world_test_parameterized_csv_source_files.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,25 @@ | ||
{ | ||
"scenarioName": "Fetch and assert GitHub userIds by their userNames", | ||
"steps": [ | ||
{ | ||
"name": "get_user_details", | ||
"url": "/users/${0}", | ||
"method": "GET", | ||
"request": { | ||
}, | ||
"assertions": { | ||
"status": 200, | ||
"body": { | ||
"login" : "${0}", | ||
"type" : "User", | ||
"name" : "${1}", | ||
"location" : "${2}", | ||
"id" : "$EQ.${3}" | ||
} | ||
} | ||
} | ||
], | ||
"parameterized": { | ||
"csvSource":"parameterized_csv/params.csv" | ||
} | ||
} |
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,2 @@ | ||
octocat,The Octocat,San Francisco,583231 | ||
siddhagalaxy,Sidd,UK,33847730 |
3 changes: 3 additions & 0 deletions
3
http-testing/src/test/resources/parameterized_csv/params_with_header.csv
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,3 @@ | ||
user,name,city,userid | ||
octocat,The Octocat,San Francisco,583231 | ||
siddhagalaxy,Sidd,UK,33847730 |