com.kinective.testscripts.Loans.LoansTest
premierCoSearchForAnExistingLoan
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Account Identifier is required, automaticFundsTransfer=, ERROR MESSAGE=, TEST SCENARIO=#TC206 Search the loan with blank account number and assert the error in the response body - Account Identifier is required, loanDetails=, EXPECTED STATUS=200, responseTimeSeconds=, TEST ID=premierCoSearchForAnExistingLoan, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, governmentMonitoring=, escrows=, VERIFY FIELDS=statusFlag,statusCode,uuid, customers=Kinective_PremierCO_API_Sandbox, collateral=, loanSearchBody=, BODY={
"assetID": "{{assetID}}",
"content": {
"accountNumber": "",
"accountType": "LOAN"
},
"uuid": "12345"
}, AUTHORIZATION=, VERIFY VALUES=statusFlag:false,statusCode:200})
java.lang.Exception: Failed to search for a Loan
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: com.generics.utils.KinectiveException: Failed search for the Loan
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:80)
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:499)
... 26 more
Caused by: java.lang.IllegalArgumentException: Failed to get default headers
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:68)
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:50)
... 27 more
Caused by: javax.security.sasl.AuthenticationException: Failed to get Access token [Caused by OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}]
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:66)
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:62)
... 28 more
Caused by: OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}
at org.apache.oltu.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:59)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:127)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:96)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:65)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:101)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:60)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:120)
at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:82)
at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:111)
at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:65)
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:59)
... 29 more
... Removed 26 stack frames
(#TC203 #TC204 #TC205 #TC206 #TC207 #TC208 Search for an existing loan account)
premierCoSearchForAnExistingLoan
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Account Number Not On File, automaticFundsTransfer=, ERROR MESSAGE=, TEST SCENARIO=#TC204 Search Loan with invalid account number and assert the error message in the response body - Account Number Not On File, loanDetails=, EXPECTED STATUS=200, responseTimeSeconds=, TEST ID=premierCoSearchForAnExistingLoan, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, governmentMonitoring=, escrows=, VERIFY FIELDS=, customers=Kinective_PremierCO_API_Sandbox, collateral=, loanSearchBody=, BODY={
"assetID": "{{assetID}}",
"content": {
"accountNumber": "8204032096111",
"accountType": "LOAN"
},
"uuid": "12345"
}, AUTHORIZATION=, VERIFY VALUES=statusFlag:false,statusCode:200})
java.lang.Exception: Failed to search for a Loan
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: com.generics.utils.KinectiveException: Failed search for the Loan
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:80)
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:499)
... 26 more
Caused by: java.lang.IllegalArgumentException: Failed to get default headers
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:68)
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:50)
... 27 more
Caused by: javax.security.sasl.AuthenticationException: Failed to get Access token [Caused by OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}]
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:66)
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:62)
... 28 more
Caused by: OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}
at org.apache.oltu.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:59)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:127)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:96)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:65)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:101)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:60)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:120)
at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:82)
at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:111)
at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:65)
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:59)
... 29 more
... Removed 26 stack frames
(#TC203 #TC204 #TC205 #TC206 #TC207 #TC208 Search for an existing loan account)
premierCoSearchForAnExistingLoan
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Unexpected value 'Mortgage', automaticFundsTransfer=, ERROR MESSAGE=, TEST SCENARIO=#TC205 Search the loan with Mortgage account and verify the error message - Unexpected value 'Mortgage', loanDetails=, EXPECTED STATUS=200, responseTimeSeconds=, TEST ID=premierCoSearchForAnExistingLoan, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, governmentMonitoring=, escrows=, VERIFY FIELDS=statusFlag,statusCode,uuid, customers=Kinective_PremierCO_API_Sandbox, collateral=, loanSearchBody=, BODY={
"assetID": "{{assetID}}",
"content": {
"accountNumber": "8204032096",
"accountType": "Mortgage"
},
"uuid": "12345"
}, AUTHORIZATION=, VERIFY VALUES=statusFlag:false,statusCode:200})
java.lang.Exception: Failed to search for a Loan
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: com.generics.utils.KinectiveException: Failed search for the Loan
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:80)
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:499)
... 26 more
Caused by: java.lang.IllegalArgumentException: Failed to get default headers
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:68)
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:50)
... 27 more
Caused by: javax.security.sasl.AuthenticationException: Failed to get Access token [Caused by OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}]
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:66)
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:62)
... 28 more
Caused by: OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}
at org.apache.oltu.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:59)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:127)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:96)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:65)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:101)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:60)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:120)
at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:82)
at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:111)
at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:65)
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:59)
... 29 more
... Removed 26 stack frames
(#TC203 #TC204 #TC205 #TC206 #TC207 #TC208 Search for an existing loan account)
premierCoSearchForAnExistingLoan
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Success, GetPartyAccountRelationshipApi - Status: Success, automaticFundsTransfer=, ERROR MESSAGE=, TEST SCENARIO=#TC208 Search the loan and verify the unformatted phone number, sbaDetails and balance with two decimal places in the response body, loanDetails=, EXPECTED STATUS=200, responseTimeSeconds=, TEST ID=premierCoSearchForAnExistingLoan, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, governmentMonitoring=, escrows=, VERIFY FIELDS=content[0].sbaDetails.processingMethod,content[0].sbaDetails.sbaLoanNumber, customers=Kinective_PremierCO_API_Sandbox, collateral=, loanSearchBody=, BODY={
"assetID": "{{assetID}}",
"content": {
"accountNumber": "8204032096",
"accountType": "LOAN"
},
"uuid": "12345"
}, AUTHORIZATION=, VERIFY VALUES=content[0].loanDetails.principalBalance:53054.7})
java.lang.Exception: Failed to search for a Loan
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: com.generics.utils.KinectiveException: Failed search for the Loan
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:80)
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:499)
... 26 more
Caused by: java.lang.IllegalArgumentException: Failed to get default headers
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:68)
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:50)
... 27 more
Caused by: javax.security.sasl.AuthenticationException: Failed to get Access token [Caused by OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}]
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:66)
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:62)
... 28 more
Caused by: OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}
at org.apache.oltu.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:59)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:127)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:96)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:65)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:101)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:60)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:120)
at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:82)
at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:111)
at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:65)
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:59)
... 29 more
... Removed 26 stack frames
(#TC203 #TC204 #TC205 #TC206 #TC207 #TC208 Search for an existing loan account)
premierCoSearchForAnExistingLoan
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Success, GetPartyAccountRelationshipApi - Status: Success, automaticFundsTransfer=, ERROR MESSAGE=, TEST SCENARIO=#TC207 Search the loan with multiple customers and verify branch number field is present in the response body, loanDetails=, EXPECTED STATUS=200, responseTimeSeconds=, TEST ID=premierCoSearchForAnExistingLoan, VERIFY ARRAY SIZE=content[0].customers:2, VERIFY NO EMPTY OBJECTS=, governmentMonitoring=, escrows=, VERIFY FIELDS=content[0].loanDetails.branchNumber, customers=Kinective_PremierCO_API_Sandbox, collateral=, loanSearchBody=, BODY={
"assetID": "{{assetID}}",
"content": {
"accountNumber": "1082108810",
"accountType": "LOAN"
},
"uuid": "12345"
}, AUTHORIZATION=, VERIFY VALUES=})
java.lang.Exception: Failed to search for a Loan
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: com.generics.utils.KinectiveException: Failed search for the Loan
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:80)
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:499)
... 26 more
Caused by: java.lang.IllegalArgumentException: Failed to get default headers
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:68)
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:50)
... 27 more
Caused by: javax.security.sasl.AuthenticationException: Failed to get Access token [Caused by OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}]
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:66)
at com.kinective.sapi.ApiBaseClass.getDefaultHeaders(ApiBaseClass.java:62)
... 28 more
Caused by: OAuthProblemException{error='invalid_client', description='null', uri='null', state='null', scope='null', redirectUri='null', responseStatus=400, parameters={}}
at org.apache.oltu.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:59)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
at org.apache.oltu.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:127)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:96)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:65)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:101)
at org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:60)
at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:120)
at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:82)
at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:111)
at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:65)
at com.kinective.sapi.Login_Api.getAccessToken(Login_Api.java:59)
... 29 more
... Removed 26 stack frames
(#TC203 #TC204 #TC205 #TC206 #TC207 #TC208 Search for an existing loan account)
premierCoSearchForAnExistingLoan
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Success, GetPartyAccountRelationshipApi - Status: Success, automaticFundsTransfer=, ERROR MESSAGE=, TEST SCENARIO=#TC203 Search the loan and verify the fields and message from the response body, verify the status code 200 and statusFlag as true, loanDetails=, EXPECTED STATUS=200, responseTimeSeconds=, TEST ID=premierCoSearchForAnExistingLoan, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, governmentMonitoring=, escrows=, VERIFY FIELDS=content[0].customers[0].phoneNumbers[0].areaCode,content[0].customers[0].phoneNumbers[0].countryCode,content[0].customers[0].phoneNumbers[0].number,content[0].customers[0].phoneNumbers[0].phoneType,content[0].customers[0].phoneNumbers[0].isPrimary,content[0].customers[0].phoneNumbers[0].unformattedPhone, customers=Kinective_PremierCO_API_Sandbox, collateral=, loanSearchBody=, BODY={
"assetID": "{{assetID}}",
"content": {
"accountNumber": "8204032096",
"accountType": "LOAN"
},
"uuid": "12345"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=statusFlag:true,content[0].customers[0].relationshipCode:Borrower,content[0].loanDetails.accountInformation.accountType:LOAN})
java.lang.AssertionError: Error verifying field 'content[0].customers[0].phoneNumbers[0].areaCode': JSONObject["content"] not found.
at com.generics.utils.Log.fail(Log.java:596)
at com.generics.utils.JsonVerificationUtils.verifyFieldPresent(JsonVerificationUtils.java:76)
at com.generics.utils.JsonVerificationUtils.verifyAllJsonData(JsonVerificationUtils.java:750)
at com.generics.utils.Utils.verifyFieldPresent(Utils.java:739)
at com.kinective.sapi.LoanSearch.searchLoan(LoanSearch.java:64)
at com.kinective.testscripts.Loans.LoansTest.premierCoSearchForAnExistingLoan(LoansTest.java:499)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
... Removed 26 stack frames
(#TC203 #TC204 #TC205 #TC206 #TC207 #TC208 Search for an existing loan account)
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.Loans.LoansTest">
<methods>
<include name="premierCoSearchForAnExistingLoan"/>
</methods>
</class> <!-- com.kinective.testscripts.Loans.LoansTest -->
</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
premierCoSearchForAnExistingLoan
premierCoLoanSearch
premierCoSearchForAnExistingLoan
premierCoLoans
premierCoSearchForAnExistingLoan
Times for Rest Assured Api Suites
Total running time: 13 seconds
Reporter output for Rest Assured Api Suites
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Account Identifier is required, a...)
#TC206 Search the loan with blank account number and assert the error in the response body - Account Identifier is required
Steps:
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Account Number Not On File, autom...)
#TC204 Search Loan with invalid account number and assert the error message in the response body - Account Number Not On File
Steps:
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Unexpected value 'Mortgage', auto...)
#TC205 Search the loan with Mortgage account and verify the error message - Unexpected value 'Mortgage'
Steps:
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Succ...)
#TC208 Search the loan and verify the unformatted phone number, sbaDetails and balance with two decimal places in the response body
Steps:
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Succ...)
#TC207 Search the loan with multiple customers and verify branch number field is present in the response body
Steps:
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Succ...)
Error verifying field 'content[0].customers[0].phoneNumbers[0].areaCode': JSONObject["content"] not found.
#TC203 Search the loan and verify the fields and message from the response body, verify the status code 200 and statusFlag as true
Steps:
Error verifying field 'content[0].customers[0].phoneNumbers[0].areaCode': JSONObject["content"] not found.
15 ignored methods
com.kinective.testscripts.Loans.LoansTest
verifyResponseFieldsLoanSearch
symXchangeSearchForAnExistingLoan
searchForRandomLoan
jXchangeBookNewLoan
jh2020CreateNewLoan
corelationLoanSearch
corelationCreateLoan
createLoanSixBorrowers
jXchangeSearchForAnExistingLoan
createLoanCoupon
CreateLoanWkProductCode
csiBookNewLoan
csiSearchForAnExistingLoan
jh2020SearchForRandomLoan
createLoanWk
symXchangeSearchForAnExistingLoan
searchForRandomLoan
jXchangeBookNewLoan
jh2020CreateNewLoan
corelationLoanSearch
corelationCreateLoan
createLoanSixBorrowers
jXchangeSearchForAnExistingLoan
createLoanCoupon
CreateLoanWkProductCode
csiBookNewLoan
csiSearchForAnExistingLoan
jh2020SearchForRandomLoan
createLoanWk
Methods in chronological order
com.kinective.testscripts.Loans.LoansTest
init(org.testng.TestRunner@297c9a9b)
0 ms
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Succ...)
403 ms
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Account Number Not On File, autom...)
9574 ms
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Unexpected value 'Mortgage', auto...)
9895 ms
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Account Identifier is required, a...)
10847 ms
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Succ...)
11934 ms
premierCoSearchForAnExistingLoan({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetAccountsLOANApi - Status: Succ...)
12906 ms