Test results
1 suite, 2 failed tests
com.kinective.testscripts.Customer.CustomerTest
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=, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=isForeign,countryCode,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=})
java.lang.AssertionError: Field 'isForeign' is not present in Response Body at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.JsonVerificationUtils.verifyFieldPresent(JsonVerificationUtils.java:67) at com.generics.utils.JsonVerificationUtils.verifyAllJsonData(JsonVerificationUtils.java:543) at com.kinective.sapi.CustomerSearch.customerSearch(CustomerSearch.java:44) 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 #154 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=#154 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=, customerBase=, relatinshipInformation=, alienStatus=, assetID=Kinective_PremierCO_API_Sandbox, VERIFY FIELDS=tinCertification,passwordClue,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 'tinCertification' is not present in Response Body at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.JsonVerificationUtils.verifyFieldPresent(JsonVerificationUtils.java:67) at com.generics.utils.JsonVerificationUtils.verifyAllJsonData(JsonVerificationUtils.java:543) at com.kinective.sapi.CustomerSearch.customerSearch(CustomerSearch.java:44) 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 #154 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: 21 seconds
Reporter output for Rest Assured Api Suites
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...)
#TC153 Search for customer by tax ID and verify fields 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 10517 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Field Presence Verification ---

Field 'isForeign' is not present in Response Body
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...)
#154 Search with a Business Customer with customerID and verify that subType=Business and verify "tinCertification", "passwordClue", "taxIDType" field 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 4417 milli second
 === Starting Comprehensive JSON Verification ===
 --- Running Field Presence Verification ---

Field '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
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@671ea6ff) 0 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...) 431 ms
premierCoQueryCustomer({VERIFY OBJECT IN ARRAY=, VERIFY ARRAY CONTAINS=, EXPECTED MESSAGE=GetPartyListApi - Status: Success...) 15804 ms