#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
10458 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":"3321676"}
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.eyJzdWIiOiI0cHNtNmJlNWZpaGZ2ZTU5ZGg0dmYwbzVscSIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoidHJhbnNhY3Rpb25zXC9wb3N0IiwiYXV0aF90aW1lIjoxNzU4MDEyODgzLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21cL3VzLXdlc3QtMl91NTY2V21yUEsiLCJleHAiOjE3NTgwMTY0ODMsImlhdCI6MTc1ODAxMjg4MywidmVyc2lvbiI6MiwianRpIjoiODU2OTg0MjEtN2I3Mi00MTI0LThiYjctNDA0YzFmY2ZlMjU5IiwiY2xpZW50X2lkIjoiNHBzbTZiZTVmaWhmdmU1OWRoNHZmMG81bHEifQ.QK98L0eAMhS1yBXUfrIM1Fbi2IBSBo9s987VBvBxOenDSCwudOxwIOjkSSu2aznkjjQtVx6c-uCEfMpAEIuZxD6uxPdEeXGRNBvdD6GkDsZLQugjuqMk5JRpRCUXLlejv_k5vV7ny_TclkRH-PLHmBvKLLovELghnDzjQQ4Jr6G0pQD8JxdSuSVLTvTsDvxbIaOJO_5G945-jc3EWdLIR0jJWIkd7RT00tX-n4QR66B2ayiW-E0VAdCa5lT3Ld16aW0dLHRHR_S8q2n8bmmhmga27W4os5YdzZEKcKC0cez8ylauKgYMqigK0cWn484qJZr1WwFnJioCH6EoQyzH5g, 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}}","uuid":"","content":{"taxID":"","customerID":"3321676"}}, 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
3741 milli second
=== Starting Comprehensive JSON Verification ===
--- 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: Values, No Empty Objects
=== JSON Verification Complete - 2 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":"523969418","customerID":"3321676","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":"2221280","censusTractNumber":"0"}],"crmSmsa":"1002","email":{"emailAddress":"EMAIL8@ZOOHO.COM","emailType":"Work"}}}]
statusMessage is: GetPartyApi - Status: Success.
statusFlag is: true
UUID is: 62599253-a158-4f78-a6f2-45c75108786e