com.kinective.testscripts.Customer.CustomerTest
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=, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, 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=#TC157 Search a customer with Customer ID and verify there is no blank object "{}" present in the Response Json, coreSpecificFields=, EXPECTED STATUS=200, responseTimeSeconds=, 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=, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, 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)
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=, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, 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=#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=, phones=, TEST ID=premierCoQueryCustomer, idList=, VERIFY ARRAY SIZE=, VERIFY NO EMPTY OBJECTS=, 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})
(#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"/>
</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
premierCoQueryCustomer
premierCoCustomer
premierCoQueryCustomer
premierCoCustomerSearch
premierCoQueryCustomer
Times for Rest Assured Api Suites
Total running time: 36 seconds
Reporter output for Rest Assured Api Suites
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
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
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
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
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
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
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 present in Response Body
Field 'content[0].customerBase.passwordClue' is present in Response Body
Field 'content[0].customerBase.taxIDType' is present in Response Body
Field 'content[0].customerBase.residences[0].subType' has expected value 'Business'
Status code is matching correctly! (Expected : 200 Actual : 200 )
#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 present in Response Body
Field 'content[0].customerBase.passwordClue' is present in Response Body
Field 'content[0].customerBase.taxIDType' is present in Response Body
Field 'content[0].customerBase.residences[0].subType' has expected value 'Business'
Status code is matching correctly! (Expected : 200 Actual : 200 )
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
corelationRelatioshipCreate
corelationRelatioshipSearch
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
corelationRelatioshipCreate
corelationRelatioshipSearch
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@25c2a9e3)
0 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...)
1040 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
18410 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
23020 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
27471 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=Status: Success, ERROR MESSAGE=, ...)
31618 ms