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})
(#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=Unsupported Function Error, ERROR MESSAGE=, TEST SCENARIO=#TC194 Transfer funds with invalid transferType and verify the error message as 'Unsupported Function Error', 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-05-20",
"fromAccount": {{fromAccount}},
"toAccount": {{toAccount}},
"transferType": "EscrowOnly"
},
"uuid": "9876"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=statusFlag:false})
(#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=Insufficient Funds, ERROR MESSAGE=, TEST SCENARIO=#TC195 Transfer funds with insufficient funds and verify the status message has 'Insufficient Funds' message, 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": 15000,
"effectiveDate": "2025-05-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=statusFlag:false})
(#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=Account Number Not On File, ERROR MESSAGE=, TEST SCENARIO=#TC193 Transfer funds with wrong account number and assert the error message in response body as 'Account Number Not On File' and statusFlag should be false, creditGLAccount=, EXPECTED STATUS=200, fromAccount={
"accountNumber": "5041733000",
"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=statusFlag,statusMessage,statusCode,uuid, BODY={
"assetID": "{{assetID}}",
"content": {
"amount": 0.12,
"effectiveDate": "2025-05-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=})
(#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": {{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.isPosted:true,content.description:Success})
(#TC25 Transfer the funds - Monetary Transfer)
premierCoTransferFunds
({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountType": "GL",
"description": "",
"transactionCode": "400"
}, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Missing transfer description, ERROR MESSAGE=, TEST SCENARIO=#TC196 Transfer funds without description and verify the statusMessage has the message as Missing transfer description, 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-05-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=statusFlag:false})
(#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: 43 seconds
Reporter output for Rest Assured Api Suites
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
Field 'content.description' has expected value 'Success'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC192 Transfer the funds with effective date as past date and verify the success message in the response body
Steps:
Field 'content.description' has expected value 'Success'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
Field 'statusFlag' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC194 Transfer funds with invalid transferType and verify the error message as 'Unsupported Function Error'
Steps:
Field 'statusFlag' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
Field 'statusFlag' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC195 Transfer funds with insufficient funds and verify the status message has 'Insufficient Funds' message
Steps:
Field 'statusFlag' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
Field 'statusFlag' is present in Response Body
Field 'statusMessage' is present in Response Body
Field 'statusCode' is present in Response Body
Field 'uuid' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC193 Transfer funds with wrong account number and assert the error message in response body as 'Account Number Not On File' and statusFlag should be false
Steps:
Field 'statusFlag' is present in Response Body
Field 'statusMessage' is present in Response Body
Field 'statusCode' is present in Response Body
Field 'uuid' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
Field 'content.isPosted' is present in Response Body
Field 'content.transactionPostDate' is present in Response Body
Field 'content.description' is present in Response Body
Field 'statusFlag' is present in Response Body
Field 'statusMessage' is present in Response Body
Field 'statusCode' is present in Response Body
Field 'uuid' is present in Response Body
Field 'content.isPosted' has expected value 'true'
Field 'content.description' has expected value 'Success'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
Field 'content.isPosted' is present in Response Body
Field 'content.transactionPostDate' is present in Response Body
Field 'content.description' is present in Response Body
Field 'statusFlag' is present in Response Body
Field 'statusMessage' is present in Response Body
Field 'statusCode' is present in Response Body
Field 'uuid' is present in Response Body
Field 'content.isPosted' has expected value 'true'
Field 'content.description' has expected value 'Success'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
Field 'statusFlag' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC196 Transfer funds without description and verify the statusMessage has the message as Missing transfer description
Steps:
Field 'statusFlag' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
6 ignored methods
com.kinective.testscripts.Monetary.MonetaryTest
jXchangeTransferFunds
csiDebitGLAccount
corelationTransferToGLAccount
corelationTransferFunds
creditAndDebitGLAccount
symXchangeTransferFunds
csiDebitGLAccount
corelationTransferToGLAccount
corelationTransferFunds
creditAndDebitGLAccount
symXchangeTransferFunds
Methods in chronological order
com.kinective.testscripts.Monetary.MonetaryTest
init(org.testng.TestRunner@72543547)
0 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
1346 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
18748 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
24793 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
29943 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
34245 ms
premierCoTransferFunds({VERIFY OBJECT IN ARRAY=, toAccount={
"accountNumber": "1017901",
"accountTy...)
39774 ms