com.kinective.testscripts.Customer.CustomerTest
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=, 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=, 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=, 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.Exception: Failed to Query the customer
at com.kinective.testscripts.Customer.CustomerTest.premierCoCreateCust_verifyBySearchCust(CustomerTest.java:1324)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: org.json.JSONException: A JSONObject text must begin with '{' at 0 [character 1 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:501)
at org.json.JSONObject.<init>(JSONObject.java:208)
at org.json.JSONObject.<init>(JSONObject.java:404)
at com.kinective.testscripts.Customer.CustomerTest.premierCoCreateCust_verifyBySearchCust(CustomerTest.java:1262)
... 26 more
... 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)
premierCoQueryCustomer
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC154 Search with a Business Customer with customerID and verify that subType=Business and verify "tinCertification", "passwordClue", "taxIDType" field in the response body, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=content[0].customerBase.residences:2, VERIFY NO EMPTY OBJECTS=TRUE, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=content[0].customerBase.tinCertification,content[0].customerBase.passwordClue,content[0].customerBase.taxIDType, customerSearchBody=, residences=, BODY={
"assetID": "{{assetID}}",
"content": {
"taxID": "",
"customerID": "3243931"
},
"uuid": "123636"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=content[0].customerBase.residences[0].subType:Business})
java.lang.AssertionError: Field 'content[0].customerBase.tinCertification' is not present in Response Body
at com.generics.utils.Log.fail(Log.java:596)
at com.generics.utils.JsonVerificationUtils.verifyFieldPresent(JsonVerificationUtils.java:71)
at com.generics.utils.JsonVerificationUtils.verifyAllJsonData(JsonVerificationUtils.java:748)
at com.generics.utils.Utils.verifyFieldPresent(Utils.java:739)
at com.kinective.sapi.CustomerSearch.customerSearch(CustomerSearch.java:48)
at com.kinective.testscripts.Customer.CustomerTest.premierCoQueryCustomer(CustomerTest.java:1203)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
... Removed 26 stack frames
(#TC153 #TC154 #TC155 #TC156 #TC157 Search for customer by tax ID and verify fields 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=#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=})
(#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=})
(#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=#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)
premierCoQueryCustomer
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC155 Search with a Person Customer and verify that addressID, tinCertification field is getting returned in the response body, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=content[0].customerBase.residences[0].addressID,content[0].customerBase.tinCertification, customerSearchBody=, residences=, BODY={
"assetID": "{{assetID}}",
"content": {
"taxID": "",
"customerID": "3309526"
},
"uuid": "123636"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=})
(#TC153 #TC154 #TC155 #TC156 #TC157 Search for customer by tax ID and verify fields in the response body)
premierCoQueryCustomer
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC156 Search with a Business Customer with Business Name and verify userFields and "msaCode" are getting returned as expected, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=content[0].userFields,content[0].customerBase.crmSmsa,content[0].customerBase.residences[0].msaCode, customerSearchBody=, residences=, BODY={
"assetID": "{{assetID}}",
"content": {
"taxID": "",
"customerID": "3243931"
},
"uuid": "123636"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=})
(#TC153 #TC154 #TC155 #TC156 #TC157 Search for customer by tax ID and verify fields in the response body)
premierCoQueryCustomer
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC157 Search a customer with Customer ID and verify there is no blank object "{}" present in the Response Json, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=, customerSearchBody=, residences=, BODY={
"assetID": "{{assetID}}",
"content": {
"taxID": "",
"customerID": "3243931"
},
"uuid": "123636"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=})
(#TC153 #TC154 #TC155 #TC156 #TC157 Search for customer by tax ID and verify fields in the response body)
premierCoQueryCustomer
({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success, ERROR MESSAGE=, TEST SCENARIO=#TC153 Search for customer by tax ID and verify fields in the response body, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=15, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=TRUE, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=content[0].customerBase.residences[0].isForeign,content[1].customerBase.phones[0].countryCode,content[0].customerBase.residences[0].msaCode, customerSearchBody=, residences=, BODY={
"assetID": "{{assetID}}",
"content": {
"taxID": "988125678",
"customerID": ""
},
"uuid": "123636"
}, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=;
customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==;
tokenUrl:https://auth.nxtsoft.com/oauth2/token;
key:Th!sisOmn!;, VERIFY VALUES=})
(#TC153 #TC154 #TC155 #TC156 #TC157 Search for customer by tax ID and verify fields in the response body)
C:\Users\Monil Shah\Documents\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.Customer.CustomerTest">
<methods>
<include name="premierCoQueryCustomer"/>
<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
premierCo
premierCoCreateCust_verifyBySearchCust
premierCoQueryCustomer
premierCoCustomer
premierCoCreateCust_verifyBySearchCust
premierCoQueryCustomer
premierCoCustomerSearch
premierCoCreateCust_verifyBySearchCust
premierCoQueryCustomer
Times for Rest Assured Api Suites
Total running time: 1 minutes
Reporter output for Rest Assured Api Suites
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
Status code is matching correctly! (Expected : 200 Actual : 200 )
Field 'statusCode' is present in Response Body
Field 'statusMessage' is present in Response Body
Field 'uuid' is present in Response Body
Object in array 'content' with customerBase.residences[0].address1='9632 25 Hwy' has customerBase.residences[0].isPrimary='true'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
Field 'statusCode' is present in Response Body
Field 'statusMessage' is present in Response Body
Field 'uuid' is present in Response Body
Object in array 'content' with customerBase.residences[0].address1='9632 25 Hwy' has customerBase.residences[0].isPrimary='true'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
Field 'content[0].customerBase.residences[0].addressID' is present in Response Body
Field 'content[0].customerBase.tinCertification' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC155 Search with a Person Customer and verify that addressID, tinCertification field is getting returned in the response body
Steps:
Field 'content[0].customerBase.residences[0].addressID' is present in Response Body
Field 'content[0].customerBase.tinCertification' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
Field 'content[0].userFields' is present in Response Body
Field 'content[0].customerBase.crmSmsa' is present in Response Body
Field 'content[0].customerBase.residences[0].msaCode' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC156 Search with a Business Customer with Business Name and verify userFields and "msaCode" are getting returned as expected
Steps:
Field 'content[0].userFields' is present in Response Body
Field 'content[0].customerBase.crmSmsa' is present in Response Body
Field 'content[0].customerBase.residences[0].msaCode' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
Field 'content[0].customerBase.residences[0].censusTractNumber' is present in Response Body
Field 'content[0].customerBase.residences[0].postalExtension' is present in Response Body
Field 'content[0].customerBase.residences[0].isForeign' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
Field 'content[0].customerBase.residences[0].censusTractNumber' is present in Response Body
Field 'content[0].customerBase.residences[0].postalExtension' is present in Response Body
Field 'content[0].customerBase.residences[0].isForeign' has expected value 'false'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
Field 'content[0].customerBase.crmSmsa' is present in Response Body
Field 'content[0].customerBase.phones[0].isPrimary' has expected value 'true'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
Field 'content[0].customerBase.crmSmsa' is present in Response Body
Field 'content[0].customerBase.phones[0].isPrimary' has expected value 'true'
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC157 Search a customer with Customer ID and verify there is no blank object "{}" present in the Response Json
Steps:
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...)
Field 'content[0].customerBase.residences[0].isForeign' is present in Response Body
Field 'content[1].customerBase.phones[0].countryCode' is present in Response Body
Field 'content[0].customerBase.residences[0].msaCode' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
#TC153 Search for customer by tax ID and verify fields in the response body
Steps:
Field 'content[0].customerBase.residences[0].isForeign' is present in Response Body
Field 'content[1].customerBase.phones[0].countryCode' is present in Response Body
Field 'content[0].customerBase.residences[0].msaCode' is present in Response Body
No empty objects found in JSON
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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:
Status code is matching correctly! (Expected : 200 Actual : 200 )
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
Field 'content[0].customerBase.tinCertification' is not present in Response Body
#TC154 Search with a Business Customer with customerID and verify that subType=Business and verify "tinCertification", "passwordClue", "taxIDType" field in the response body
Steps:
Field 'content[0].customerBase.tinCertification' is not present in Response Body
33 ignored methods
com.kinective.testscripts.Customer.CustomerTest
jh2020CreateCustomer
corelationCreateCustomer
jh2020CreateNewCustomer
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
corelationCreateCustomer
jh2020CreateNewCustomer
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@2e71240b)
0 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
322 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
20694 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
31199 ms
premierCoCreateCust_verifyBySearchCust({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
40951 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...)
46591 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
52219 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
55949 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
60928 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
65305 ms