Test results
1 suite, 3 failed tests
com.kinective.testscripts.Customer.CustomerTest
premierCoCreateCust_verifyBySearchCust ({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC159 Create a customer with addrType=Secondary and verify in Search Customer isPrimary=true in the response body. Also veirify the statusCode, statusMessage and uuid fields., coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=, phones={ "areaCode": "906", "countryCode": "1", "isPrimary": false, "number": "8782725", "phoneType": "Work" }, TEST ID=premierCoCreateCust_verifyBySearchCust, idList={ "expirationDate": "2026-12-30", "issueDate": "2020-12-30", "issuer": "22", "type": "1", "value": "21301002543894127" }, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, customerBase={ "alienStatus": { "chapter3Status": "0", "chapter4Status": "0", "giin": "777555", "w8Type": "W8-BEN" }, "customerType": "Business", "email": { "emailAddress": "ClimbingCastle@gmail.com", "emailType": "Business" }, "idList": [ {{idList}} ], "naicsCode": 71, "mothersMaidenName": "Molly Moon", "password": "Password@123", "passwordClue": "First and Last Name of your mother", "name": { "businessName": "Living well", "legalName": "Living well, Inc." }, "phones": [ {{phones}} ], "residences": [ {{residences}} ], "taxID": "777335555", "taxIDType": "B", "tinCertification": "Certified" }, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=, customerSearchBody={ "assetID": "{{assetID}}", "content": { "taxID": "", "customerID": "3309990" }, "uuid": "" }, residences= { "address1": "9528 25 Hwy", "city": "Halton Hills", "censusTractNumber": "0011.01", "countryCode": "10", "isForeign": true, "isPrimary": false, "addressType": "Seasonal", "msaCode": 12343, "postalCode": "L9T 2X7", "state": "ON", "subType": "Business" }, { "address1": "9632 25 Hwy", "addressType": "Seasonal", "city": "Duryodhan Hills", "censusTractNumber": "0011.01", "countryCode": "11", "isForeign": false, "isPrimary": true, "msaCode": 12344, "postalCode": "56784", "postalExtension": "1121", "state": "ON", "subType": "Business" }, { "address1": "2221 MILLER", "address2": "STE 123", "addressType": "Seasonal", "city": "FALLS CITY", "isPrimary": false, "isForeign": false, "countryCode": "12", "postalCode": "68361", "postalExtension": "1234", "seasonBeginDate": "2019-08-17", "seasonEndDate": "2027-08-17", "state": "CA", "streetName": "MILLER", "streetNumber": "2221", "subType": "Business", "suite": "STE 123" }, { "address1": "8548 69 Hwy", "city": "Mahabali Hills", "censusTractNumber": "0011.01", "countryCode": "10", "isForeign": true, "isPrimary": false, "addressType": "Seasonal", "msaCode": 12343, "postalCode": "L9T 2X7", "state": "ON", "subType": "Business" }, { "address1": "9528 25 Hwy", "city": "Chanakya Hills", "censusTractNumber": "0011.01", "countryCode": "10", "isForeign": true, "isPrimary": false, "addressType": "Mailing", "msaCode": 12343, "postalCode": "L9T 2X7", "state": "ON", "subType": "Business" }, BODY={ "assetID": "{{assetID}}", "content": { "branchNumber": "2", "customerBase": {{customerBase}}, "officerCode": "160", "originatingBranch": "2" }, "uuid": "12345" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=})
java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 4 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) at java.base/java.util.Objects.checkIndex(Objects.java:385) at java.base/java.util.ArrayList.get(ArrayList.java:427) at com.generics.utils.ExtentReporter.endTest(ExtentReporter.java:217) at com.generics.utils.Log.endTestCase(Log.java:283) at com.kinective.testscripts.Customer.CustomerTest.premierCoCreateCust_verifyBySearchCust(CustomerTest.java:1332) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 25 stack frames
(#TC158 #TC159 #TC160 #TC161 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body)
premierCoCreateCust_verifyBySearchCust ({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC161 Create a customer with person record with foreign=true and verify the fields in the response body. Also verify phone number fields [countryCode, areaCode, number, and extension] are included in the response correctly. Verify multiple phone numbers with same PhoneType is allowed by searching for the same customer we've created, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones={ "areaCode": "402", "countryCode": "1", "extension": "005678", "isPrimary": true, "number": "2190004", "phoneType": "Work" }, { "areaCode": "101", "countryCode": "1", "extension": "987654", "isPrimary": true, "number": "908787", "phoneType": "Work" }, TEST ID=premierCoCreateCust_verifyBySearchCust, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase={ "alienStatus": { "chapter3Status": "0", "chapter4Status": "0", "giin": "0", "w8Type": "W8-BEN-E" }, "createDate": "2021-01-09", "crmSmsa": "1002", "customerType": "Person", "dob": "1988-01-07", "email": { "emailAddress": "EMAIL8@ZOOHO.COM", "emailType": "PERSON" }, "employeeCode": "9", "gender": "Male", "idList": [ { "expirationDate": "2025-12-30", "issueDate": "2020-12-30", "issuer": "US", "type": "A", "value": "21301002543894127" } ], "isUSCitizen": true, "naicsCode": 1, "name": { "firstName": "HOWARD", "fullName": "JOSEPH N HOWARD", "lastName": "JOSEPH", "legalName": "JOSEPH N HOWARD", "middleName": "N", "suffix": "JR" }, "phones": [ {{phones}} ], "residences": [ {{residences}} ], "taxID": "988125678", "taxIDType": "P", "tinCertification": "Certified" }, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=, customerSearchBody={ "assetID": "{{assetID}}", "content": { "taxID": "", "customerID": "3309990" }, "uuid": "" }, residences={ "address1": "2221 MILLER", "address2": "STE 123", "addressType": "Current", "city": "FALLS CITY", "isPrimary": true, "postalCode": "68361", "postalExtension": "1234", "seasonBeginDate": "2019-08-17", "seasonEndDate": "2027-08-17", "state": "CA", "streetName": "MILLER", "streetNumber": "2221", "subType": "Personal", "suite": "STE 123" }, BODY={ "assetID": "{{assetID}}", "content": { "branchNumber": "2", "customerBase": {{customerBase}}, "officerCode": "99", "originatingBranch": "2", "userFields": [ { "dataLength": 40, "dataType": "Alpha", "description": "GoldTier ID", "expirationDate": "2022-12-12", "groupNumber": "0", "key": "700", "requiredFlag": false, "searchFlag": true, "value": "100002" } ] }, "uuid": "12345" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=})
java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 4 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) at java.base/java.util.Objects.checkIndex(Objects.java:385) at java.base/java.util.ArrayList.get(ArrayList.java:427) at com.generics.utils.ExtentReporter.endTest(ExtentReporter.java:217) at com.generics.utils.Log.endTestCase(Log.java:283) at com.kinective.testscripts.Customer.CustomerTest.premierCoCreateCust_verifyBySearchCust(CustomerTest.java:1332) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 25 stack frames
(#TC158 #TC159 #TC160 #TC161 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body)
premierCoCreateCust_verifyBySearchCust ({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC160 Create a customer with person record with foreign=false and verify the fields in the response body. [Bug - KP-762] Also verify that all the address fields are present in the response body , coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones={ "areaCode": "402", "countryCode": "1", "isPrimary": true, "number": "2190004", "phoneType": "Work" }, TEST ID=premierCoCreateCust_verifyBySearchCust, idList={ "expirationDate": "2025-12-30", "issueDate": "2020-12-30", "issuer": "US", "type": "A", "value": "21301002543894127" }, { "expirationDate": "2029-12-30", "issueDate": "2040-12-30", "issuer": "US", "type": "C", "value": "21301002543899999" }, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase={ "alienStatus": { "chapter3Status": "0", "chapter4Status": "0", "giin": "0", "w8Type": "W8-BEN-E" }, "createDate": "2021-01-09", "crmSmsa": "1002", "customerType": "Person", "dob": "1988-01-07", "email": { "emailAddress": "EMAIL8@ZOOHO.COM", "emailType": "PERSON" }, "employeeCode": "9", "gender": "Male", "idList": [ {{idList}} ], "isUSCitizen": true, "naicsCode": 1, "mothersMaidenName": "Jolly Josh", "password": "Hjosheph@123", "passwordClue": "First and Last Name 123", "name": { "firstName": "HOWARD", "fullName": "JOSEPH N HOWARD", "lastName": "JOSEPH", "legalName": "JOSEPH N HOWARD", "middleName": "N", "suffix": "Jr." }, "phones": [ {{phones}} ], "residences": [{{residences}} ], "taxID": "988125678", "taxIDType": "P", "tinCertification": "Certified" }, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=, customerSearchBody={ "assetID": "{{assetID}}", "content": { "taxID": "", "customerID": "3309990" }, "uuid": "" }, residences={ "address1": "2221 MILLER", "address2": "STE 123", "addressType": "Current", "city": "FALLS CITY", "isPrimary": true, "postalCode": "683 61", "postalExtension": "1234", "seasonBeginDate": "2019-08-17", "seasonEndDate": "2027-08-17", "state": "CA", "streetName": "MILLER", "streetNumber": "2221", "subType": "Personal", "suite": "STE 123", "isForeign": false, "countryCode": "2", "msaCode": 0, "censusTractNumber": "009109" }, BODY={ "assetID": "{{assetID}}", "content": { "branchNumber": "2", "customerBase": {{customerBase}}, "officerCode": "99", "originatingBranch": "2", "userFields": [ { "dataLength": 40, "dataType": "Alpha", "description": "GoldTier ID", "expirationDate": "2022-12-12", "groupNumber": "0", "key": "700", "requiredFlag": false, "searchFlag": true, "value": "100002" } ] }, "uuid": "12345" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=})
java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 4 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) at java.base/java.util.Objects.checkIndex(Objects.java:385) at java.base/java.util.ArrayList.get(ArrayList.java:427) at com.generics.utils.ExtentReporter.endTest(ExtentReporter.java:217) at com.generics.utils.Log.endTestCase(Log.java:283) at com.kinective.testscripts.Customer.CustomerTest.premierCoCreateCust_verifyBySearchCust(CustomerTest.java:1332) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 25 stack frames
(#TC158 #TC159 #TC160 #TC161 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body)
com.kinective.testscripts.Customer.CustomerTest
premierCoCreateCust_verifyBySearchCust ({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC158 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones={ "areaCode": "402", "countryCode": "1", "extension": "005678", "isPrimary": true, "number": "2190004", "phoneType": "Work" }, TEST ID=premierCoCreateCust_verifyBySearchCust, idList={ "expirationDate": "2025-12-30", "issueDate": "2020-12-30", "issuer": "US", "type": "A", "value": "21301002543894127" }, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase={ "alienStatus": { "chapter3Status": "0", "chapter4Status": "0", "giin": "0", "w8Type": "W8-BEN-E" }, "createDate": "2021-01-09", "crmSmsa": "1002", "customerType": "Business", "email": { "emailAddress": "EMAIL8@ZOOHO.COM", "emailType": "Business" }, "employeeCode": "9", "idList": [ {{idList}} ], "isUSCitizen": true, "naicsCode": 1, "name": { "businessName": "Life savers inc", "legalName": "Lif" }, "phones": [ {{phones}} ], "residences": [ {{residences}} ], "taxID": "988125678", "taxIDType": "B", "tinCertification": "Certified" }, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=, customerSearchBody={ "assetID": "{{assetID}}", "content": { "taxID": "", "customerID": "3309990" }, "uuid": "" }, residences={ "address1": "2221 MILLER", "address2": "STE 123", "addressType": "Current", "city": "FALLS CITY", "isPrimary": true, "postalCode": "68361", "postalExtension": "1234", "seasonBeginDate": "2019-08-17", "seasonEndDate": "2027-08-17", "state": "CA", "streetName": "MILLER", "streetNumber": "2221", "subType": "Business", "suite": "STE 123" }, BODY={ "assetID": "{{assetID}}", "content": { "branchNumber": "2", "customerBase": {{customerBase}}, "officerCode": "99", "originatingBranch": "2", "userFields": [ { "dataLength": 40, "dataType": "Alpha", "description": "GoldTier ID", "expirationDate": "2022-12-12", "groupNumber": "0", "key": "700", "requiredFlag": false, "searchFlag": true, "value": "100002" } ] }, "uuid": "12345" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=}) (#TC158 #TC159 #TC160 #TC161 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body)
C:\Users\Monil Shah\Documents\Gitlab\QA-Automation-Standard-Api\testxml\premierCo.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="premierCoCreateCust_verifyBySearchCust"/>
        </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
KP-762
premierCoCreateCust_verifyBySearchCust
premierCo
premierCoCreateCust_verifyBySearchCust
premierCoCustomer
premierCoCreateCust_verifyBySearchCust
premierCoCustomerSearch
premierCoCreateCust_verifyBySearchCust
Times for Rest Assured Api Suites
Total running time: 46 seconds
Reporter output for Rest Assured Api Suites
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
#TC158 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body
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 11874 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Empty Objects Verification ---

No empty objects found in JSON
 Verification types detected: No Empty Objects
 === JSON Verification Complete - 1 verification type(s) executed ===

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: AddPartyApi - Status: Success
 Customer has been created successful.
Content is : {"customerID":"3322172"}
statusMessage is: AddPartyApi - Status: Success
statusFlag is: true
UUID is: 12345
 Customer Search test Data are: {VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=, ERROR MESSAGE=, TEST SCENARIO=#TC158 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones={ "areaCode": "402", "countryCode": "1", "extension": "005678", "isPrimary": true, "number": "2190004", "phoneType": "Work" }, TEST ID=premierCoCreateCust_verifyBySearchCust, idList={ "expirationDate": "2025-12-30", "issueDate": "2020-12-30", "issuer": "US", "type": "A", "value": "21301002543894127" }, VERIFY ARRAY SIZE=, accessToken=Bearer eyJraWQiOiJyVk1SeUtqelBpRll5eWJWZFFIRmE2b1oxa1E3MlJhVENvSW9ENWdZSGJrPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiI0cHNtNmJlNWZpaGZ2ZTU5ZGg0dmYwbzVscSIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoidHJhbnNhY3Rpb25zXC9wb3N0IiwiYXV0aF90aW1lIjoxNzU5NzU3MTgzLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21cL3VzLXdlc3QtMl91NTY2V21yUEsiLCJleHAiOjE3NTk3NjA3ODMsImlhdCI6MTc1OTc1NzE4MywidmVyc2lvbiI6MiwianRpIjoiNjRmYTI3NWYtMTNmZS00YThjLTlmYzMtMDBlMmI1OTEyOWEyIiwiY2xpZW50X2lkIjoiNHBzbTZiZTVmaWhmdmU1OWRoNHZmMG81bHEifQ.T2RD8VbYhUV5gl82Naec5vmOhIyGuYaoIttiIrwhyQoCRlxesJg5oLjgc4vLnY9YVfsUHDA4a7SrgjDNdfrIBQivGT34kCjWaptwYWYJH3hSkfOZ1S7pKUPiK5zd_L-Lyq9r5HV3sYAzTKNuxJCQpXfHBVU66DliOF3hQSu7yHVvzMsiYX9pMz0rUd1ynhroQBBGuZPSZzN2y5kN96haG0JaDo5yhaaFHJaxlD5LF3amPAri3eoCnitUuLsInMc4ytd3rpKsS_dSDFb2boTFETwCXY0Hmi7DQW1I3PBiynnBZ7I9N0rSTA7kxDvV0mSTKM6BITG9EtH1yCALNe54Xg, VERIFY NO EMPTY OBJECTS=TRUE, customerBase={ "alienStatus": { "chapter3Status": "0", "chapter4Status": "0", "giin": "0", "w8Type": "W8-BEN-E" }, "createDate": "2021-01-09", "crmSmsa": "1002", "customerType": "Business", "email": { "emailAddress": "EMAIL8@ZOOHO.COM", "emailType": "Business" }, "employeeCode": "9", "idList": [ {{idList}} ], "isUSCitizen": true, "naicsCode": 1, "name": { "businessName": "Life savers inc", "legalName": "Lif" }, "phones": [ {{phones}} ], "residences": [ {{residences}} ], "taxID": "988125678", "taxIDType": "B", "tinCertification": "Certified" }, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=content[0].customerBase.crmSmsa, customerSearchBody={ "assetID": "{{assetID}}", "content": { "taxID": "", "customerID": "3309990" }, "uuid": "" }, residences={ "address1": "2221 MILLER", "address2": "STE 123", "addressType": "Current", "city": "FALLS CITY", "isPrimary": true, "postalCode": "68361", "postalExtension": "1234", "seasonBeginDate": "2019-08-17", "seasonEndDate": "2027-08-17", "state": "CA", "streetName": "MILLER", "streetNumber": "2221", "subType": "Business", "suite": "STE 123" }, BODY={"assetID":"{{assetID}}","uuid":"","content":{"taxID":"","customerID":"3322172"}}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=content[0].customerBase.phones[0].isPrimary:true}
#TC158 Create a customer with addrType=Primary and crmsmsa code and verify in Search Customer isPrimary=true and crmsmsa code is present in the response body
Steps:
Generating Access Token
 End Point URI:customer/customer-search
 Sending POST Publish command
 Executed URL {}
 Status Code 200
 Time taken to get response is 3765 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Field Presence Verification ---

Field 'content[0].customerBase.crmSmsa' is present in Response Body
 --- Running Field Value Verification ---

Field 'content[0].customerBase.phones[0].isPrimary' has expected value 'true'
 --- Running Empty Objects Verification ---

No empty objects found in JSON
 Verification types detected: Fields, Values, No Empty Objects
 === JSON Verification Complete - 3 verification type(s) executed ===

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: GetPartyApi - Status: Success.
 Customer search has been successful.
Content is : [{"userFields":[{"searchFlag":true,"dataType":"Alpha","description":"GoldTier ID","value":"100002","key":"700","requiredFlag":false,"expirationDate":"2022-12-12"}],"branchNumber":"2","officerCode":"99","originatingBranch":"2","customerBase":{"phones":[{"number":"2190004","areaCode":"402","extension":"005678","phoneType":"Work","countryCode":"1","isPrimary":true,"unformattedPhone":"+1-402-2190004+005678"}],"idList":[{"issueDate":"2020-12-30","type":"A","value":"21301002543894127","issuer":"US","expirationDate":"2025-12-30"}],"riskRating":"None","employeeCode":"9","alienStatus":{"chapter3Status":"0","w8Type":"None","giin":"0","chapter4Status":"0","chapter3ExemptCode":"0"},"customerType":"Business","taxID":"938504259","customerID":"3322172","name":{"legalName":"LIF","businessName":"LIFE SAVERS INC"},"taxIDType":"B","tinCertification":"Certified","residences":[{"msaCode":1002,"address2":"STE 123","city":"FALLS CITY","address1":"2221 MILLER","isPrimary":true,"isForeign":false,"postalCode":"68361","subType":"Business","state":"CA","addressID":"2222416","censusTractNumber":"0"}],"crmSmsa":"1002","email":{"emailAddress":"EMAIL8@ZOOHO.COM","emailType":"Work"}}}]
statusMessage is: GetPartyApi - Status: Success.
statusFlag is: true
UUID is: aa05e0a7-d9c6-4b5e-801f-0a7f46c2d5fb
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
#TC159 Create a customer with addrType=Secondary and verify in Search Customer isPrimary=true in the response body. Also veirify the statusCode, statusMessage and uuid fields.
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 9718 milli second
 === Starting Comprehensive JSON Verification ===
 Verification types detected:
 No verification instructions found in testData. Available keys:
 - VERIFY FIELDS: for field presence verification
 - VERIFY VALUES: for field value verification
 - VERIFY ARRAY SIZE: for array size verification
 - VERIFY ARRAY CONTAINS: for array content verification
 - VERIFY OBJECT IN ARRAY: for specific object verification

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: AddPartyApi - Status: Success
 Customer has been created successful.
Content is : {"customerID":"3322173"}
statusMessage is: AddPartyApi - Status: Success
statusFlag is: true
UUID is: 12345
 Customer Search test Data are: {VERIFY OBJECT IN ARRAY=content|customerBase.residences[0].address1=9632 25 Hwy|customerBase.residences[0].isPrimary:true, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=, ERROR MESSAGE=, TEST SCENARIO=#TC159 Create a customer with addrType=Secondary and verify in Search Customer isPrimary=true in the response body. Also veirify the statusCode, statusMessage and uuid fields., coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=, phones={ "areaCode": "906", "countryCode": "1", "isPrimary": false, "number": "8782725", "phoneType": "Work" }, TEST ID=premierCoCreateCust_verifyBySearchCust, idList={ "expirationDate": "2026-12-30", "issueDate": "2020-12-30", "issuer": "22", "type": "1", "value": "21301002543894127" }, VERIFY ARRAY SIZE=, accessToken=Bearer eyJraWQiOiJyVk1SeUtqelBpRll5eWJWZFFIRmE2b1oxa1E3MlJhVENvSW9ENWdZSGJrPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiI0cHNtNmJlNWZpaGZ2ZTU5ZGg0dmYwbzVscSIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoidHJhbnNhY3Rpb25zXC9wb3N0IiwiYXV0aF90aW1lIjoxNzU5NzU3MjAxLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21cL3VzLXdlc3QtMl91NTY2V21yUEsiLCJleHAiOjE3NTk3NjA4MDEsImlhdCI6MTc1OTc1NzIwMSwidmVyc2lvbiI6MiwianRpIjoiMzE5MTYwMTgtZDgxMS00Njk1LWJiZmMtNTE0ZWM1MGU2ZWM2IiwiY2xpZW50X2lkIjoiNHBzbTZiZTVmaWhmdmU1OWRoNHZmMG81bHEifQ.kAA4lab-fB3lxDs9kLziVTKAJgd3tVhyhVgHQk7C09Ygp5c88M2Xw7kbmpG11rLnyqb-YAty3imFp1uXf1r7piTN70hzHX8TgA1Q6KmQJyjnv2fVPzLlDDRBdlMpS6FEuoCM7jNlUr51xA31McJ7jZMjPaAm-iuEs-ZKpVtUSvbeplzN4SIfd9fb9w9Lq0eIYD0gZNexicHoHAxwxT40H_f_HhukCaPSYy3vlSBhThjHIidm5WLScpXeXSiOW8VP0Nx1l7j5s2v83EY0sffHBU69Tkq0i001muZf_tTmMWyc_8MYoRaqS8scZ_CiyjLutAxzcgXzFIKg3C-M4IcuMA, VERIFY NO EMPTY OBJECTS=TRUE, customerBase={ "alienStatus": { "chapter3Status": "0", "chapter4Status": "0", "giin": "777555", "w8Type": "W8-BEN" }, "customerType": "Business", "email": { "emailAddress": "ClimbingCastle@gmail.com", "emailType": "Business" }, "idList": [ {{idList}} ], "naicsCode": 71, "mothersMaidenName": "Molly Moon", "password": "Password@123", "passwordClue": "First and Last Name of your mother", "name": { "businessName": "Living well", "legalName": "Living well, Inc." }, "phones": [ {{phones}} ], "residences": [ {{residences}} ], "taxID": "777335555", "taxIDType": "B", "tinCertification": "Certified" }, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=statusCode,statusMessage,uuid, customerSearchBody={ "assetID": "{{assetID}}", "content": { "taxID": "", "customerID": "3309990" }, "uuid": "" }, residences= { "address1": "9528 25 Hwy", "city": "Halton Hills", "censusTractNumber": "0011.01", "countryCode": "10", "isForeign": true, "isPrimary": false, "addressType": "Seasonal", "msaCode": 12343, "postalCode": "L9T 2X7", "state": "ON", "subType": "Business" }, { "address1": "9632 25 Hwy", "addressType": "Seasonal", "city": "Duryodhan Hills", "censusTractNumber": "0011.01", "countryCode": "11", "isForeign": false, "isPrimary": true, "msaCode": 12344, "postalCode": "56784", "postalExtension": "1121", "state": "ON", "subType": "Business" }, { "address1": "2221 MILLER", "address2": "STE 123", "addressType": "Seasonal", "city": "FALLS CITY", "isPrimary": false, "isForeign": false, "countryCode": "12", "postalCode": "68361", "postalExtension": "1234", "seasonBeginDate": "2019-08-17", "seasonEndDate": "2027-08-17", "state": "CA", "streetName": "MILLER", "streetNumber": "2221", "subType": "Business", "suite": "STE 123" }, { "address1": "8548 69 Hwy", "city": "Mahabali Hills", "censusTractNumber": "0011.01", "countryCode": "10", "isForeign": true, "isPrimary": false, "addressType": "Seasonal", "msaCode": 12343, "postalCode": "L9T 2X7", "state": "ON", "subType": "Business" }, { "address1": "9528 25 Hwy", "city": "Chanakya Hills", "censusTractNumber": "0011.01", "countryCode": "10", "isForeign": true, "isPrimary": false, "addressType": "Mailing", "msaCode": 12343, "postalCode": "L9T 2X7", "state": "ON", "subType": "Business" }, BODY={"assetID":"{{assetID}}","uuid":"","content":{"taxID":"","customerID":"3322173"}}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;, VERIFY VALUES=}
#TC159 Create a customer with addrType=Secondary and verify in Search Customer isPrimary=true in the response body. Also veirify the statusCode, statusMessage and uuid fields.
Steps:
Generating Access Token
 End Point URI:customer/customer-search
 Sending POST Publish command
 Executed URL {}
 Status Code 200
 Time taken to get response is 3986 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Field Presence Verification ---

Field 'statusCode' is present in Response Body

Field 'statusMessage' is present in Response Body

Field 'uuid' is present in Response Body
 --- Running Object In Array Verification ---

Object in array 'content' with customerBase.residences[0].address1='9632 25 Hwy' has customerBase.residences[0].isPrimary='true'
 --- Running Empty Objects Verification ---

No empty objects found in JSON
 Verification types detected: Fields, Object In Array, No Empty Objects
 === JSON Verification Complete - 3 verification type(s) executed ===

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: GetPartyApi - Status: Success.
 Customer search has been successful.
Content is : [{"branchNumber":"2","officerCode":"160","originatingBranch":"2","customerBase":{"phones":[{"number":"8782725","areaCode":"906","phoneType":"Work","countryCode":"1","isPrimary":false,"unformattedPhone":"+1-906-8782725"}],"idList":[{"issueDate":"2020-12-30","type":"1","value":"21301002543894127","issuer":"22","expirationDate":"2026-12-30"}],"mothersMaidenName":"Molly Moon","riskRating":"None","employeeCode":"0","passwordClue":"First and Last Name of your mother","alienStatus":{"chapter3Status":"0","w8Type":"W8-BEN","giin":"777555","chapter4Status":"0","chapter3ExemptCode":"0"},"customerType":"Business","password":"Password@123","taxID":"96245039","customerID":"3322173","name":{"legalName":"LIVING WELL, INC.","businessName":"LIVING WELL"},"taxIDType":"B","tinCertification":"Certified","residences":[{"postalExtension":"1121","msaCode":12344,"city":"Duryodhan Hills","address1":"9632 25 Hwy","countryCode":"11","isPrimary":true,"isForeign":false,"postalCode":"56784","subType":"Business","state":"ON","addressID":"2222417","censusTractNumber":"11.01"},{"seasonBeginDate":"9999-08-17","postalExtension":"1234","address2":"STE 123","city":"FALLS CITY","address1":"2221 MILLER","isForeign":false,"postalCode":"68361","addressID":"2222417","seasonEndDate":"9999-08-17","msaCode":0,"countryCode":"12","isPrimary":false,"subType":"Business","censusTractNumber":"0"},{"msaCode":12343,"city":"Chanakya Hills","address1":"9528 25 Hwy","countryCode":"10","isPrimary":false,"isForeign":true,"postalCode":"L9T2X7","subType":"Business","state":"ON","addressID":"2222418","censusTractNumber":"11.01"}],"crmSmsa":"12344","email":{"emailAddress":"ClimbingCastle@gmail.com","emailType":"Work"}}}]
statusMessage is: GetPartyApi - Status: Success.
statusFlag is: true
UUID is: 1d35f301-e26c-4344-8489-71a13840a981
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
#TC161 Create a customer with person record with foreign=true and verify the fields in the response body. Also verify phone number fields [countryCode, areaCode, number, and extension] are included in the response correctly. Verify multiple phone numbers with same PhoneType is allowed by searching for the same customer we've created
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 5495 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Empty Objects Verification ---

No empty objects found in JSON
 Verification types detected: No Empty Objects
 === JSON Verification Complete - 1 verification type(s) executed ===

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: AddPartyApi - Status: Success
 Customer has been created successful.
Content is : {"customerID":"3322175"}
statusMessage is: AddPartyApi - Status: Success
statusFlag is: true
UUID is: 12345
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
#TC160 Create a customer with person record with foreign=false and verify the fields in the response body. [Bug - KP-762] Also verify that all the address fields are present in the response body
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 4644 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Empty Objects Verification ---

No empty objects found in JSON
 Verification types detected: No Empty Objects
 === JSON Verification Complete - 1 verification type(s) executed ===

Status code is matching correctly! (Expected : 200 Actual : 200 )
 Message: AddPartyApi - Status: Success
 Customer has been created successful.
Content is : {"customerID":"3322174"}
statusMessage is: AddPartyApi - Status: Success
statusFlag is: true
UUID is: 12345
37 ignored methods
com.kinective.testscripts.Customer.CustomerTest
jh2020CreateCustomer
corelationCreateCustomer
jh2020CreateNewCustomer
premierCoCreateCustTest
symXchangeQueryCustomer
CreateCustomer_ForeignAddressDarkMatters
csiMeridianCreateCustomer_Pers_OnlyCurrentNoForeign
jh2020QueryCustomer
RelatioshipCreateCustToAcct
csiMeridianQueryCustomerByTaxID
RelatioshipCreateCustToCust
csiMeridianQueryCustomerByCustID
jh2020CreateNewCustomerVerifyidList
CreateCustomer_SubTypeError
symXchangeRelatioshipSearch
jXchangeCreateCustomer
CreateCustomer_ForeignAddressCorrect
csiQueryCustomer
corelationQueryCustomer
jXchangeQueryCustomer
corelationRelatioshipCreate
corelationRelatioshipSearch
csiMeridianCreateCustomer_ExistingTaxId
csiMeridianQueryCustomerByGuid
CreateCustomer_AddressNoZipExt
CreateCustomer_Error
jXchangeRelatioshipSearch
premierCoRelatioshipCreate
premierCoRelatioshipSearch
premierCoQueryCustomer
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@49cd946c) 0 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...) 23163 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...) 42329 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...) 57796 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...) 63384 ms