Test results
1 suite, 2 failed tests
com.kinective.testscripts.Monetary.MonetaryTest
premierCoTransferFunds ({VERIFY OBJECT IN ARRAY=, toAccount={ "accountNumber": "1017901", "accountType": "GL", "description": "DDA to GLA Transfer to", "transactionCode": "400" }, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=AddTransferApi - Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC192 Transfer the funds with effective date as past date and verify the success message in the response body, creditGLAccount=, EXPECTED STATUS=200, fromAccount={ "accountNumber": "5041733", "accountType": "Checking", "description": "DDA to GLA Transfer from", "transactionCode": "47" }, responseTimeSeconds=15, TEST ID=premierCoTransferFunds, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, assetID=Kinective_PremierCO_API_Sandbox, debitGLAccount=, VERIFY FIELDS=, BODY={ "assetID": "{{assetID}}", "content": { "amount": 0.12, "effectiveDate": "2025-02-20", "fromAccount": {{fromAccount}}, "toAccount": {{toAccount}}, "transferType": "FundsTransfer" }, "uuid": "9876" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=content.description:Success+})
java.lang.AssertionError: Field 'content.description' value mismatch. Expected: 'Success+', Actual: 'Success' at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.JsonVerificationUtils.verifyFieldValue(JsonVerificationUtils.java:325) at com.generics.utils.JsonVerificationUtils.verifyFieldValues(JsonVerificationUtils.java:113) at com.generics.utils.JsonVerificationUtils.verifyAllJsonData(JsonVerificationUtils.java:758) at com.generics.utils.Utils.verifyFieldPresent(Utils.java:739) at com.kinective.sapi.MonetaryTransfer.transferFunds(MonetaryTransfer.java:54) at com.kinective.testscripts.Monetary.MonetaryTest.premierCoTransferFunds(MonetaryTest.java:232) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 26 stack frames
(#TC25 Transfer the funds - Monetary Transfer)
premierCoTransferFunds ({VERIFY OBJECT IN ARRAY=, toAccount={ "accountNumber": "1017901", "accountType": "GL", "description": "DDA to GLA Transfer to", "transactionCode": "400" }, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=AddTransferApi - Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC191 Transfer the funds from 'checking' account to 'GL' account and assert the success message as 'AddTransferApi - Status: Success'. Also Veriy the fields in the response - isPosted, transactionPostDate, description:success, creditGLAccount=, EXPECTED STATUS=200, fromAccount={ "accountNumber": "5041733", "accountType": "Checking", "description": "DDA to GLA Transfer from", "transactionCode": "47" }, responseTimeSeconds=15, TEST ID=premierCoTransferFunds, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, assetID=Kinective_PremierCO_API_Sandbox, debitGLAccount=, VERIFY FIELDS=content.isPosted,content.transactionPostDate,content.description,statusFlag,statusMessage,statusCode,uuid, BODY={ "assetID": "{{assetID}}", "content": { "amount": 0.12, "effectiveDate": "2025-05-20", "fromAccount": { "accountNumber": "5041733", "accountType": "Checking", "description": "DDA to GLA Transfer from", "transactionCode": "47" }, "toAccount": { "accountNumber": "1017901", "accountType": "GL", "description": "DDA to GLA Transfer to", "transactionCode": "400" }, "transferType": "Fun{ "assetID": "{{assetID}}", "content": { "amount": 0.12, "effectiveDate": "2025-05-20", "fromAccount": {{fromAccount}}, "toAccount": {{toAccount}}, "transferType": "FundsTransfer" }, "uuid": "9876" }dsTransfer" }, "uuid": "9876" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=content.isPosted:true,content.description:Success})
java.lang.Exception: Failed to Transfer the fund from one account to another. at com.kinective.testscripts.Monetary.MonetaryTest.premierCoTransferFunds(MonetaryTest.java:245) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) Caused by: com.generics.utils.KinectiveException: Failed to Transfer the fund from one account to another. at com.kinective.sapi.MonetaryTransfer.transferFunds(MonetaryTransfer.java:68) at com.kinective.testscripts.Monetary.MonetaryTest.premierCoTransferFunds(MonetaryTest.java:232) ... 26 more Caused by: org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1] at org.json.JSONTokener.syntaxError(JSONTokener.java:501) at org.json.JSONObject.<init>(JSONObject.java:208) at org.json.JSONObject.<init>(JSONObject.java:404) at com.kinective.sapi.MonetaryTransfer.transferFunds(MonetaryTransfer.java:52) ... 27 more ... Removed 26 stack frames
(#TC25 Transfer the funds - Monetary Transfer)
C:\Users\Monil Shah\Documents\Gitlab\QA-Automation-Standard-Api\testxml\premierCo_test.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Rest Assured Api Suites" guice-stage="DEVELOPMENT">
  <parameter name="projectKey" value="KP"/>
  <parameter name="environment" value="test"/>
  <parameter name="version" value="v1"/>
  <test thread-count="1" name="Rest Assured">
    <classes>
      <class name="com.kinective.testscripts.Monetary.MonetaryTest">
        <methods>
          <include name="premierCoTransferFunds"/>
        </methods>
      </class> <!-- com.kinective.testscripts.Monetary.MonetaryTest -->
    </classes>
  </test> <!-- Rest Assured -->
</suite> <!-- Rest Assured Api Suites -->
            
Tests for Rest Assured Api Suites
  • Rest Assured (1 class)
Groups for Rest Assured Api Suites
premierCo
premierCoTransferFunds
premierCoMonetary
premierCoTransferFunds
premierCoTransferFunds
premierCoTransferFunds
Times for Rest Assured Api Suites
Total running time: 18 seconds
Reporter output for Rest Assured Api Suites
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={ "accountNumber": "1017901", "accountTy...)
#TC192 Transfer the funds with effective date as past date and verify the success message in the response body
Steps:
Generating Access Token
 End Point URI:monetary/transfer-funds
 Sending POST Publish command
 Executed URL {}
 Status Code 200
 Time taken to get response is 10570 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Field Value Verification ---

Field 'content.description' value mismatch. Expected: 'Success+', Actual: 'Success'
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={ "accountNumber": "1017901", "accountTy...)
#TC191 Transfer the funds from 'checking' account to 'GL' account and assert the success message as 'AddTransferApi - Status: Success'. Also Veriy the fields in the response - isPosted, transactionPostDate, description:success
Steps:
Generating Access Token
 End Point URI:monetary/transfer-funds
 Sending POST Publish command
 Executed URL {}
 Status Code 400
 Time taken to get response is 3573 milli second
6 ignored methods
com.kinective.testscripts.Monetary.MonetaryTest
jXchangeTransferFunds
csiDebitGLAccount
corelationTransferToGLAccount
corelationTransferFunds
creditAndDebitGLAccount
symXchangeTransferFunds
Methods in chronological order
com.kinective.testscripts.Monetary.MonetaryTest
init(org.testng.TestRunner@583fb274) 0 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={ "accountNumber": "1017901", "accountTy...) 260 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={ "accountNumber": "1017901", "accountTy...) 7155 ms