Comments on: REST Testing with Java Part Two: Getting Started with Rest-Assured https://testguild.com/rest-testing-with-java-part-two-getting-started-with-rest-assured/ Tue, 03 May 2022 07:57:13 +0000 hourly 1 By: Anusha https://testguild.com/rest-testing-with-java-part-two-getting-started-with-rest-assured/#comment-287263 Thu, 29 Jun 2017 09:01:33 +0000 https://testguild.com/?p=1781#comment-287263 How can i write the code for the below if it has got multiple attributes:

Eg: I want to validate the first “paymentMethodCode”

“payments”: [
{
“status”: null,
“paymentMethodCode”: “CARD”,
“creationDateTime”: “2001-12-17T09:30:47Z”,
“confirmationNumber”: “A1-2”,
“authorizationAmount”: 200,
“allocationAmount”: 200,
“requestAmount”: 0,
“cardNumber”: “123412card4123”,
“sortCode”: “010203”,
“accountNumber”: “12345678”,
“chequeNumber”: “2345677”,
“failureReason”: “Authorization fails”
},
{
“status”: null,
“paymentMethodCode”: “BANKPAYMENT”,
“creationDateTime”: “2001-12-17T09:30:47Z”,
“confirmationNumber”: “A1-2”,
“authorizationAmount”: 200,
“allocationAmount”: 200,
“requestAmount”: 0,
“cardNumber”: “123412card4123”,
“sortCode”: “010203”,
“accountNumber”: “12345678”,
“chequeNumber”: “2345677”,
“failureReason”: null
}
]

]]>
By: Anusha https://testguild.com/rest-testing-with-java-part-two-getting-started-with-rest-assured/#comment-286968 Tue, 27 Jun 2017 09:52:14 +0000 https://testguild.com/?p=1781#comment-286968 Hi,

How to loop the below response if I want to validate the first “paymentMethodCode”: “CARD” ?

“payments”: [
{
“status”: null,
“paymentMethodCode”: “CARD”,
“creationDateTime”: “2001-12-17T09:30:47Z”,
“confirmationNumber”: “A1-2”,
“authorizationAmount”: 200,
“allocationAmount”: 200,
“requestAmount”: 0,
“cardNumber”: “123412card4123”,
“sortCode”: “010203”,
“accountNumber”: “12345678”,
“chequeNumber”: “2345677”,
“failureReason”: “Authorization fails”
},
{
“status”: null,
“paymentMethodCode”: “BANKPAYMENT”,
“creationDateTime”: “2001-12-17T09:30:47Z”,
“confirmationNumber”: “A1-2”,
“authorizationAmount”: 200,
“allocationAmount”: 200,
“requestAmount”: 0,
“cardNumber”: “123412card4123”,
“sortCode”: “010203”,
“accountNumber”: “12345678”,
“chequeNumber”: “2345677”,
“failureReason”: null
}
]

]]>
By: Bhavitha https://testguild.com/rest-testing-with-java-part-two-getting-started-with-rest-assured/#comment-254984 Fri, 09 Dec 2016 13:59:39 +0000 https://testguild.com/?p=1781#comment-254984 Its so clear and understandable!
it really helped me to get started.

]]>
By: API Testing: types and tools https://testguild.com/rest-testing-with-java-part-two-getting-started-with-rest-assured/#comment-159051 Tue, 23 Jun 2015 16:03:55 +0000 https://testguild.com/?p=1781#comment-159051 […] is written in BDD, and I kind of like concept of keeping everything consistent, in article "REST Testing with Java Part Two: Getting Started with Rest-Assured" posted by Joe Colantonio / February 26, 2014, explained benefits of using rest-assured, so thanks […]

]]>
By: [BLOCKED BY STBV] Testing Bits – 2/23/14 – 3/1/14 | Testing Curator Blog https://testguild.com/rest-testing-with-java-part-two-getting-started-with-rest-assured/#comment-91365 Tue, 04 Mar 2014 02:47:27 +0000 https://testguild.com/?p=1781#comment-91365 […] Testing JSON REST Service with rest assured; part 2 Given, When, Then – Joe Colantonio – https://testguild.com/2014/02/26/rest-testing-with-java-part-two-getting-started-with-rest-as… […]

]]>