Test results
1 suite, 2 failed tests
com.kinective.testscripts.Customer.CustomerTest
jh2020CreateNewCustomer ({EXPECTED MESSAGE=Invalid risk code, ERROR MESSAGE=, TEST SCENARIO=#TC119 Create a new customer with Invalid Risk Code (Number Validation), coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=[ { "areaCode": "847", "countryCode": "1", "extension": "", "number": "5554321", "phoneType": "Home" }, { "areaCode": "555", "countryCode": "1", "extension": "", "number": "5456621", "phoneType": "Work" } ], TEST ID=jh2020CreateNewCustomer, idList=[ { "expirationDate": "2033-08-24", "issueDate": "2023-08-22", "issuer": "FL", "type": "DL", "issueLocation": "USA", "value": "P625-999-9999" }, { "expirationDate": "", "issueLocation": "USA", "issueDate": "", "issuer": "FL", "type": "SS", "value": "564-56-1154" } ], customerBase={ "customerType": "Person", "riskRating": "15", "dob": "1962-11-15", "email": { "emailAddress": "tcplf@nxtsoft.com", "emailType": "Home" }, "employments": [ { "employerName": "NXTsoft LLC", "occupation": "Self-Employed" } ], "idList": {{idList}}, "name": { "businessName": "", "firstName": "John", "lastName": "Rock", "middleName": "S", "legalName": "John S Rock", "prefix": "MR" }, "phones": {{phones}}, "residences": {{residences}}, "gender": "Male", "naicsCode": null, "fincenExempt": null, "taxID": "222602450", "taxIDType": "P" }, relatinshipInformation=, alienStatus=, VERIFY FIELDS=, customerSearchBody=, residences=[ { "address1": "125 Addr1 test St", "address2": "154", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Current", "city": "Chicago", "country": "", "mailDirectoryCode": "IL", "postalCode": "60601", "postalExtension": "5544", "state": "IL", "streetNumber": "90 West Chester St", "streetName": "", "subType": "", "suite": "877" }, { "address1": "125 Seasonal test St", "address2": "545", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Cust", "subType": "Seasonal", "city": "Lake Mary", "country": "", "mailDirectoryCode": "FL", "postalCode": "32746", "postalExtension": "8772", "seasonBeginDate": "2023-08-24", "seasonEndDate": "2024-02-24", "seasonReoccur": "Y", "state": "FL", "streetNumber": "", "streetName": "", "suite": "" } ], BODY={ "assetID": "jxchange_2020_api_test", "content": { "branchNumber": "10", "customerBase": {{customerBase}}, "officerCode": "JHA", "userFields": [ { "key": "User code #5", "value": "5" }, { "key": "Junior Club", "value": "4" }, { "key": "User code #6", "value": "6" } ] } }, AUTHORIZATION=customerId:f2b4kBcTsJO3FqXGVF+imap2upqKmLC9bqpAROTbTxg=; customerSecret:pRQc7noNapzg561TJUtc9c46YYeeLzARlUHVuSsJ8XFQNHHQDN2k+K4LAsE9crqR69lknCDgo+Mr7CzdXbk9OQ==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;})
java.lang.Exception: Failed to Create the customer at com.kinective.testscripts.Customer.CustomerTest.jh2020CreateNewCustomer(CustomerTest.java:292) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: com.generics.utils.KinectiveException: Failed Create the customer at com.kinective.sapi.CustomerCreate.customerCreateNew(CustomerCreate.java:109) at com.kinective.testscripts.Customer.CustomerTest.jh2020CreateNewCustomer(CustomerTest.java:265) ... 26 more Caused by: org.json.JSONException: Unterminated string at 3846 [character 0 line 114] at org.json.JSONTokener.syntaxError(JSONTokener.java:501) at org.json.JSONTokener.nextString(JSONTokener.java:306) at org.json.JSONTokener.nextValue(JSONTokener.java:414) at org.json.JSONObject.<init>(JSONObject.java:245) at org.json.JSONTokener.nextValue(JSONTokener.java:418) at org.json.JSONArray.<init>(JSONArray.java:105) at org.json.JSONTokener.nextValue(JSONTokener.java:425) at org.json.JSONObject.<init>(JSONObject.java:245) at org.json.JSONTokener.nextValue(JSONTokener.java:418) at org.json.JSONObject.<init>(JSONObject.java:245) at org.json.JSONObject.<init>(JSONObject.java:404) at com.kinective.sapi.CustomerCreate.changeTaxId(CustomerCreate.java:121) at com.kinective.sapi.CustomerCreate.customerCreateNew(CustomerCreate.java:90) ... 27 more ... Removed 26 stack frames
(#TC90, #TC92, #TC93, #TC94 #TC95, #TC96, #TC97, #TC98, #TC99, #TC100, #TC101, #TC111, #TC112, #TC113, #TC114, #TC115, #TC116, #TC117, #TC118, #TC119, #TC120 Customer Create)
jh2020CreateNewCustomer ({EXPECTED MESSAGE=Mapping for Canonical Value not found for required Field Value, ERROR MESSAGE=, TEST SCENARIO=#TC116 Create Customer with Invalid Value in Gender field, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=[ { "areaCode": "847", "countryCode": "1", "extension": "", "number": "5554321", "phoneType": "Home" }, { "areaCode": "555", "countryCode": "1", "extension": "", "number": "5456621", "phoneType": "Work" } ], TEST ID=jh2020CreateNewCustomer, idList=[ { "expirationDate": "2033-08-24", "issueDate": "2023-08-22", "issuer": "FL", "type": "DL", "issueLocation": "USA", "value": "P625-999-9999" }, { "expirationDate": "", "issueLocation": "USA", "issueDate": "", "issuer": "FL", "type": "SS", "value": "564-56-1154" } ], customerBase={ "customerType": "Person", "riskRating": "01", "dob": "1962-11-15", "email": { "emailAddress": "tcplf@nxtsoft.com", "emailType": "Home" }, "employments": [ { "employerName": "NXTsoft LLC", "occupation": "Self-Employed" } ], "idList": {{idList}}, "name": { "businessName": "", "firstName": "John", "lastName": "Rock", "middleName": "S", "legalName": "John S Rock", "prefix": "MR" }, "phones": {{phones}}, "residences": {{residences}}, "gender": "FeMale", "naicsCode": null, "fincenExempt": null, "taxID": "222661280", "taxIDType": "P" }, relatinshipInformation=, alienStatus=, VERIFY FIELDS=, customerSearchBody=, residences=[ { "address1": "125 Addr1 test St", "address2": "154", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Current", "city": "Chicago", "country": "", "mailDirectoryCode": "IL", "postalCode": "60601", "postalExtension": "5544", "state": "IL", "streetNumber": "90 West Chester St", "streetName": "", "subType": "", "suite": "877" }, { "address1": "125 Seasonal test St", "address2": "545", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Cust", "subType": "Seasonal", "city": "Lake Mary", "country": "", "mailDirectoryCode": "FL", "postalCode": "32746", "postalExtension": "8772", "seasonBeginDate": "2023-08-24", "seasonEndDate": "2024-02-24", "seasonReoccur": "Y", "state": "FL", "streetNumber": "", "streetName": "", "suite": "" } ], BODY={ "assetID": "jxchange_2020_api_test", "content": { "branchNumber": "10", "customerBase": {{customerBase}}, "officerCode": "JHA", "userFields": [ { "key": "User code #5", "value": "5" }, { "key": "Junior Club", "value": "4" }, { "key": "User code #6", "value": "6" } ] } }, AUTHORIZATION=customerId:f2b4kBcTsJO3FqXGVF+imap2upqKmLC9bqpAROTbTxg=; customerSecret:pRQc7noNapzg561TJUtc9c46YYeeLzARlUHVuSsJ8XFQNHHQDN2k+K4LAsE9crqR69lknCDgo+Mr7CzdXbk9OQ==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;})
java.lang.AssertionError: Something went Wrong. Status Message : Customer Create Successful. CIF Number: R0012510 Failure on Customer Add: Fault Desc: No OFAC match found Fault Cat: Warning Fault Code: 39 Failure on Customer Add: Fault Desc: The element's value is greater than the provider allows. Element was truncated. Fault Cat: Warning Fault Code: 9920043 Fault Elem: CustDetail.Gender Fault Elem Val: FeMale/F Address Add result 2: Success. Failure on Address Add for Address 2: Fault Desc: No OFAC match found Fault Cat: Warning Fault Code: 39 ID Verify 1 result: Fail. Failure on Identification Add: Fault Desc: Invalid description Fault Cat: Error Fault Code: 25 Fault Elem: IdVerify.IdVerifyQueryArray.IdVerifyQueryInfo.IdVerifyQuery Fault Elem Val: Date of Expiration Failure on Identification Add: Fault Desc: Invalid description Fault Cat: Error Fault Code: 25 Fault Elem: IdVerify.IdVerifyQueryArray.IdVerifyQueryInfo.IdVerifyQuery Fault Elem Val: Expiration Date ID Verify 2 result: Fail at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.WebserviceTestBaseClass.verifyStatusMessage(WebserviceTestBaseClass.java:88) at com.kinective.testscripts.Customer.CustomerTest.jh2020CreateNewCustomer(CustomerTest.java:273) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ... Removed 26 stack frames
(#TC90, #TC92, #TC93, #TC94 #TC95, #TC96, #TC97, #TC98, #TC99, #TC100, #TC101, #TC111, #TC112, #TC113, #TC114, #TC115, #TC116, #TC117, #TC118, #TC119, #TC120 Customer Create)
com.kinective.testscripts.Customer.CustomerTest
jh2020CreateNewCustomer ({EXPECTED MESSAGE=Customer Create Successful, ERROR MESSAGE=, TEST SCENARIO=#TC92 Create a new customer with customer type 'Business', coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=[ { "areaCode": "555", "countryCode": "1", "extension": "", "number": "5456621", "phoneType": "Work" } ], TEST ID=jh2020CreateNewCustomer, idList=, customerBase={ "customerType": "Business", "riskRating": "01", "dob": "1962-11-15", "email": { "emailAddress": "tcplf@nxtsoft.com", "emailType": "Home" }, "employments": [ { "employerName": "Rock em Sock em", "occupation": "Self-Employed" } ], "name": { "businessName": "Rock em Sock em, LLC", "firstName": "", "lastName": "", "middleName": "", "legalName": "", "prefix": "" }, "phones": {{phones}}, "residences": {{residences}}, "annualIncome": "500000", "gender": "Male", "naicsCode": 315210, "fincenExempt": null, "taxID": "592686900", "taxIDType": "B" }, relatinshipInformation=, alienStatus=, VERIFY FIELDS=, customerSearchBody=, residences=[ { "address1": "125 Addr1 test St", "address2": "154", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Current", "city": "Chicago", "country": "", "mailDirectoryCode": "IL", "postalCode": "60601", "postalExtension": "5544", "state": "IL", "streetNumber": "90 West Chester St", "streetName": "", "subType": "", "suite": "877" } ], BODY={ "assetID": "jxchange_2020_api_test", "content": { "branchNumber": "10", "customerBase": {{customerBase}}, "userFields": [ { "key": "User code #5", "value": "5" }, { "key": "Junior Club", "value": "4" }, { "key": "User code #6", "value": "6" } ] } }, AUTHORIZATION=customerId:f2b4kBcTsJO3FqXGVF+imap2upqKmLC9bqpAROTbTxg=; customerSecret:pRQc7noNapzg561TJUtc9c46YYeeLzARlUHVuSsJ8XFQNHHQDN2k+K4LAsE9crqR69lknCDgo+Mr7CzdXbk9OQ==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;}) (#TC90, #TC92, #TC93, #TC94 #TC95, #TC96, #TC97, #TC98, #TC99, #TC100, #TC101, #TC111, #TC112, #TC113, #TC114, #TC115, #TC116, #TC117, #TC118, #TC119, #TC120 Customer Create)
jh2020CreateNewCustomer ({EXPECTED MESSAGE=Invalid risk code, ERROR MESSAGE=, TEST SCENARIO=#TC118 Create a new customer with Invalid Risk Code (Alphabate Validation), coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=[ { "areaCode": "847", "countryCode": "1", "extension": "", "number": "5554321", "phoneType": "Home" }, { "areaCode": "555", "countryCode": "1", "extension": "", "number": "5456621", "phoneType": "Work" } ], TEST ID=jh2020CreateNewCustomer, idList=[ { "expirationDate": "2033-08-24", "issueDate": "2023-08-22", "issuer": "FL", "type": "DL", "issueLocation": "USA", "value": "P625-999-9999" }, { "expirationDate": "", "issueLocation": "USA", "issueDate": "", "issuer": "FL", "type": "SS", "value": "564-56-1154" } ], customerBase={ "customerType": "Person", "riskRating": "A", "dob": "1962-11-15", "email": { "emailAddress": "tcplf@nxtsoft.com", "emailType": "Home" }, "employments": [ { "employerName": "NXTsoft LLC", "occupation": "Self-Employed" } ], "idList": {{idList}}, "name": { "businessName": "", "firstName": "John", "lastName": "Rock", "middleName": "S", "legalName": "John S Rock", "prefix": "MR" }, "phones": {{phones}}, "residences": {{residences}}, "gender": "Male", "naicsCode": null, "fincenExempt": null, "taxID": "222602450", "taxIDType": "P" }, relatinshipInformation=, alienStatus=, VERIFY FIELDS=, customerSearchBody=, residences=[ { "address1": "125 Addr1 test St", "address2": "154", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Current", "city": "Chicago", "country": "", "mailDirectoryCode": "IL", "postalCode": "60601", "postalExtension": "5544", "state": "IL", "streetNumber": "90 West Chester St", "streetName": "", "subType": "", "suite": "877" }, { "address1": "125 Seasonal test St", "address2": "545", "addressLastChanged": "2003-08-24", "addressLastVerify": "2002-08-24", "addressType": "Cust", "subType": "Seasonal", "city": "Lake Mary", "country": "", "mailDirectoryCode": "FL", "postalCode": "32746", "postalExtension": "8772", "seasonBeginDate": "2023-08-24", "seasonEndDate": "2024-02-24", "seasonReoccur": "Y", "state": "FL", "streetNumber": "", "streetName": "", "suite": "" } ], BODY={ "assetID": "jxchange_2020_api_test", "content": { "branchNumber": "10", "customerBase": {{customerBase}}, "officerCode": "JHA", "userFields": [ { "key": "User code #5", "value": "5" }, { "key": "Junior Club", "value": "4" }, { "key": "User code #6", "value": "6" } ] } }, AUTHORIZATION=customerId:f2b4kBcTsJO3FqXGVF+imap2upqKmLC9bqpAROTbTxg=; customerSecret:pRQc7noNapzg561TJUtc9c46YYeeLzARlUHVuSsJ8XFQNHHQDN2k+K4LAsE9crqR69lknCDgo+Mr7CzdXbk9OQ==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;}) (#TC90, #TC92, #TC93, #TC94 #TC95, #TC96, #TC97, #TC98, #TC99, #TC100, #TC101, #TC111, #TC112, #TC113, #TC114, #TC115, #TC116, #TC117, #TC118, #TC119, #TC120 Customer Create)
C:\Users\vasudhap\Documents\qa-automation-standard-api\testxml\jh2020_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.Customer.CustomerTest">
        <methods>
          <include name="jh2020CreateNewCustomer"/>
        </methods>
      </class> <!-- com.kinective.testscripts.Customer.CustomerTest -->
    </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
Times for Rest Assured Api Suites
Total running time: 12 seconds
Reporter output for Rest Assured Api Suites
jh2020CreateNewCustomer({EXPECTED MESSAGE=Customer Create Successful, ERROR MESSAGE=, TEST SCENARIO=#TC92 Create a new custo...)
#TC92 Create a new customer with customer type 'Business'
Steps:
Generating Access Token
 End Point URI:customer/customer-create
 Sending POST Publish command
 Executed URL {}
 Status Code 200
 Time taken to get response is 5102 milli second
 No Fields found to be verified from the Response Body

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: Customer Create Successful. CIF Number: R0012500 Failure on Customer Add: Fault Desc: No OFAC match found Fault Cat: Warning Fault Code: 39
 Customer creation has been successful.
Content is : {"customerID":"R0012500"}
statusMessage is: Customer Create Successful. CIF Number: R0012500 Failure on Customer Add: Fault Desc: No OFAC match found Fault Cat: Warning Fault Code: 39
statusFlag is: true
UUID is: b897b37c-7df4-4467-add6-d9a764f411d8
jh2020CreateNewCustomer({EXPECTED MESSAGE=Invalid risk code, ERROR MESSAGE=, TEST SCENARIO=#TC118 Create a new customer with...)
#TC118 Create a new customer with Invalid Risk Code (Alphabate Validation)
Steps:
Generating Access Token
 End Point URI:customer/customer-create
 Sending POST Publish command
 Executed URL {}
 Status Code 200
 Time taken to get response is 878 milli second
 No Fields found to be verified from the Response Body

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: Fault Desc: Invalid risk code Fault Cat: Error Fault Code: 400020 Fault Elem: RegDetail.RiskRateCode Fault Elem Val: A
 Customer creation has been successful.
Content is : null
statusMessage is: Fault Desc: Invalid risk code Fault Cat: Error Fault Code: 400020 Fault Elem: RegDetail.RiskRateCode Fault Elem Val: A
statusFlag is: false
UUID is: d71b3a5c-618c-40fe-b3a8-cf465ba6484b
jh2020CreateNewCustomer({EXPECTED MESSAGE=Invalid risk code, ERROR MESSAGE=, TEST SCENARIO=#TC119 Create a new customer with...)
#TC119 Create a new customer with Invalid Risk Code (Number Validation)
Steps:
Generating Access Token
 End Point URI:customer/customer-create
jh2020CreateNewCustomer({EXPECTED MESSAGE=Mapping for Canonical Value not found for required Field Value, ERROR MESSAGE=, TE...)
#TC116 Create Customer with Invalid Value in Gender field
Steps:
Generating Access Token
 End Point URI:customer/customer-create
 Sending POST Publish command
 Executed URL {}
 Status Code 200
 Time taken to get response is 1765 milli second
 No Fields found to be verified from the Response Body

Status code is matching correctly! (Expected : 200 Actual : 200 )

Something went Wrong. Status Message : Customer Create Successful. CIF Number: R0012510 Failure on Customer Add: Fault Desc: No OFAC match found Fault Cat: Warning Fault Code: 39 Failure on Customer Add: Fault Desc: The element's value is greater than the provider allows. Element was truncated. Fault Cat: Warning Fault Code: 9920043 Fault Elem: CustDetail.Gender Fault Elem Val: FeMale/F Address Add result 2: Success. Failure on Address Add for Address 2: Fault Desc: No OFAC match found Fault Cat: Warning Fault Code: 39 ID Verify 1 result: Fail. Failure on Identification Add: Fault Desc: Invalid description Fault Cat: Error Fault Code: 25 Fault Elem: IdVerify.IdVerifyQueryArray.IdVerifyQueryInfo.IdVerifyQuery Fault Elem Val: Date of Expiration Failure on Identification Add: Fault Desc: Invalid description Fault Cat: Error Fault Code: 25 Fault Elem: IdVerify.IdVerifyQueryArray.IdVerifyQueryInfo.IdVerifyQuery Fault Elem Val: Expiration Date ID Verify 2 result: Fail
32 ignored methods
com.kinective.testscripts.Customer.CustomerTest
jh2020CreateCustomer
corelationCreateCustomer
symXchangeQueryCustomer
CreateCustomer_ForeignAddressDarkMatters
csiMeridianCreateCustomer_Pers_OnlyCurrentNoForeign
jh2020QueryCustomer
RelatioshipCreateCustToAcct
csiMeridianQueryCustomerByTaxID
RelatioshipCreateCustToCust
csiMeridianQueryCustomerByCustID
jh2020CreateNewCustomerVerifyidList
CreateCustomer_SubTypeError
symXchangeRelatioshipSearch
jXchangeCreateCustomer
CreateCustomer_ForeignAddressCorrect
csiQueryCustomer
corelationQueryCustomer
jXchangeQueryCustomer
corelationRelatioshipSearch
corelationRelatioshipCreate
csiMeridianCreateCustomer_ExistingTaxId
csiMeridianQueryCustomerByGuid
CreateCustomer_AddressNoZipExt
CreateCustomer_Error
jXchangeRelatioshipSearch
CreateCustomer_ForeignAddress
symXChangeCreateCustomer
csiMeridianCreateCustomer_Bus_IRSCurrentMailingForeign
CreateCustomer_AddressTypeError
csiMeridianRelatioshipSearch
CreateCustomer_AllElementsAddress
verifyResponseFieldsRelationShipSearch
Methods in chronological order
com.kinective.testscripts.Customer.CustomerTest
init(org.testng.TestRunner@2c829dbc) 0 ms
jh2020CreateNewCustomer({EXPECTED MESSAGE=Customer Create Successful, ERROR MESSAGE=, TEST SCENARIO=#TC92 Create a new custo...) 436 ms
jh2020CreateNewCustomer({EXPECTED MESSAGE=Mapping for Canonical Value not found for required Field Value, ERROR MESSAGE=, TE...) 9231 ms
jh2020CreateNewCustomer({EXPECTED MESSAGE=Invalid risk code, ERROR MESSAGE=, TEST SCENARIO=#TC118 Create a new customer with...) 11494 ms
jh2020CreateNewCustomer({EXPECTED MESSAGE=Invalid risk code, ERROR MESSAGE=, TEST SCENARIO=#TC119 Create a new customer with...) 12766 ms