-
-
Notifications
You must be signed in to change notification settings - Fork 407
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 #577 from authorjapps/issue_568_typecast_fix
PR - Issue 568 typecast fix for 1D array or list
- Loading branch information
Showing
7 changed files
with
213 additions
and
16 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
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/simulators/test_purpose_end_points.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
96 changes: 96 additions & 0 deletions
96
...test_files/test_engine/02_2_resolve_typecast_in_single_dimention_arraylist_assertion.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,96 @@ | ||
{ | ||
"scenarioName": "see assertion section", | ||
"loop": 5, | ||
"steps": [ | ||
{ | ||
"name": "step1", | ||
"loop": 3, | ||
"url": "/persons/${STATIC.ALPHABET:3}", | ||
"operation": "POST", | ||
"request": { | ||
"body": { | ||
"customer": { | ||
"ids": [ | ||
10101, | ||
10102 | ||
], | ||
"firstName": "FIRST_NAME", | ||
"staticName": "${STATIC.ALPHABET:5}", | ||
"addresses": [ | ||
"office-1", | ||
"home-2" | ||
] | ||
} | ||
} | ||
}, | ||
"assertions": { | ||
"status": 201, | ||
"body": { | ||
"id": 1001, | ||
"actualName": "ACTUAL NAME", | ||
"actualNameSize": 5 | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "step2", | ||
"loop": 3, | ||
"url": "/persons/${STATIC.ALPHABET:3}", | ||
"operation": "POST", | ||
"request": { | ||
"body": { | ||
"Customer": { | ||
"id": "(int)${$.step1.request.body.customer.ids[0]}", | ||
"accounts": [ | ||
"${$.step1.request.body.customer.ids[0]}", | ||
"${$.step1.request.body.customer.ids[1]}" | ||
], | ||
"firstName2": "${$.step1.request.body.customer.firstName}", | ||
"nickName": "${RANDOM.NUMBER}", | ||
"noOfAddresses": "${$.step1.request.body.customer.addresses.length()}" | ||
} | ||
} | ||
}, | ||
"assertions": { | ||
"status": 201, | ||
"status": "$GT.499", //<-- cant have presence more thna once, as jackson only reads the latest value ie "$LT.199" | ||
"absentField": "$GT.388", | ||
//"status": "$LT.199", //<-- cant have presence more thna once, as jackson only reads the latest value ie "$LT.199" | ||
"body": { | ||
"id": "$NOT.NULL", | ||
"salary": "$LT.1300", | ||
"actualName": "${$.step1.request.body.customer.staticName}", | ||
"addresses.SIZE": 5, | ||
"job": { | ||
"rate": 700, | ||
"type": "contract" | ||
}, | ||
"allNames": [ | ||
"Rose, Call me by Any Name would Smell Sweet", | ||
{ | ||
"firstName": "R Payal", | ||
"when": "Initiation", | ||
"citizenship": [ | ||
{ | ||
"country": "Italy" | ||
}, | ||
{ | ||
"country": "Noorway" | ||
} | ||
], | ||
"citizenship": "$[]", | ||
"citizenship.SIZE": 4, | ||
"personalities": "$[]", | ||
"pastActivities": "$[]" | ||
|
||
}, | ||
{ | ||
"firstName": "$CONTAINS.STRING:DaddyWithMac", | ||
"when": "$NULL" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |