Test results
1 suite, 3 failed tests
com.kinective.testscripts.Account.AccountTest
reserveAccountNumber ({EXPECTED MESSAGE=Account Number Generated Successfully, ERROR MESSAGE=, TEST SCENARIO=#TC16 Reserve new account number, VERIFY FIELDS=, EXPECTED STATUS=200, responseTimeSeconds=15, TEST ID=reserveAccountNumber, BODY={ "assetID": "jxchange_api_test", "content": { "accountType": "D" } }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;})
java.lang.AssertionError: Status code for '#TC16 Reserve new account number' is not matching. <b>Expected</b>:[200], <b>Actual</b> : [502]! <br> <b>Error Message : Internal server error</b> at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.Log.assertThat(Log.java:783) at com.generics.utils.WebserviceTestBaseClass.verifyFailureResponse(WebserviceTestBaseClass.java:132) at com.kinective.testscripts.Account.AccountTest.reserveAccountNumber(AccountTest.java:45) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 26 stack frames
(#TC16 Reserve new account number)
searchAccountHistoryOfExistingAccount ({EXPECTED MESSAGE=Account History Search successful, ERROR MESSAGE=, TEST SCENARIO=#TC23 Search the account History of an existing account holder, VERIFY FIELDS=, EXPECTED STATUS=200, responseTimeSeconds=15, TEST ID=searchAccountHistoryOfExistingAccount, BODY={ "assetID": "jxchange_api_test", "content": { "accountNumber": "7023", "accountType": "D", "startDate": "2022-09-01", "endDate": "2025-09-02" }, "uuid": "string" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;})
java.lang.AssertionError: Status code for '#TC23 Search the account History of an existing account holder' is not matching. <b>Expected</b>:[200], <b>Actual</b> : [502]! <br> <b>Error Message : Internal server error</b> at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.Log.assertThat(Log.java:783) at com.generics.utils.WebserviceTestBaseClass.verifyFailureResponse(WebserviceTestBaseClass.java:132) at com.kinective.testscripts.Account.AccountTest.searchAccountHistoryOfExistingAccount(AccountTest.java:77) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 26 stack frames
(#TC23 Search the account History of an existing account holder)
searchAccountHistoryOfRandomAccount ({EXPECTED MESSAGE=Account not found, ERROR MESSAGE=, TEST SCENARIO=#TC24 Search the account History of a random account holder, VERIFY FIELDS=, EXPECTED STATUS=200, responseTimeSeconds=15, TEST ID=searchAccountHistoryOfRandomAccount, BODY={ "assetID": "jxchange_api_test", "content": { "accountNumber": "46635", "accountType": "D", "startDate": "2022-09-01", "endDate": "2022-09-02" }, "uuid": "string" }, AUTHORIZATION=customerId:HlWgdjnvRm3Sh55L6DeRiDw930i1LSEDn8MCZ6o/NuU=; customerSecret:urQ7XxEj1oN/Afp/TCcqRtg4sDzhcDFIUsWa9jcHM1Xt19XaTO7mJISknkI+Y8JXKbdzuMOxeJtNZXrHFSpXFg==; tokenUrl:https://auth.nxtsoft.com/oauth2/token; key:Th!sisOmn!;})
java.lang.AssertionError: Status code for '#TC24 Search the account History of a random account holder' is not matching. <b>Expected</b>:[200], <b>Actual</b> : [502]! <br> <b>Error Message : Internal server error</b> at com.generics.utils.Log.fail(Log.java:596) at com.generics.utils.Log.assertThat(Log.java:783) at com.generics.utils.WebserviceTestBaseClass.verifyFailureResponse(WebserviceTestBaseClass.java:132) at com.kinective.testscripts.Account.AccountTest.searchAccountHistoryOfRandomAccount(AccountTest.java:141) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ... Removed 26 stack frames
(#TC24 Search the account History of a random account holder)
C:\Users\Monil Shah\Documents\Gitlab\QA-Automation-Standard-Api\testxml\jXchange_dev.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="dev"/>
  <parameter name="version" value="v2"/>
  <test thread-count="1" name="Rest Assured">
    <classes>
      <class name="com.kinective.testscripts.Account.AccountTest">
        <methods>
          <include name="reserveAccountNumber"/>
          <include name="searchAccountHistoryOfExistingAccount"/>
          <include name="searchAccountHistoryOfRandomAccount"/>
        </methods>
      </class> <!-- com.kinective.testscripts.Account.AccountTest -->
    </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
jXchange
reserveAccountNumber
searchAccountHistoryOfExistingAccount
searchAccountHistoryOfRandomAccount
jXchangeAccount
reserveAccountNumber
searchAccountHistoryOfExistingAccount
searchAccountHistoryOfRandomAccount
jXchangeReserveAccountNumber
reserveAccountNumber
jXchangeSearchAccountHistory
searchAccountHistoryOfExistingAccount
searchAccountHistoryOfRandomAccount
Times for Rest Assured Api Suites
Total running time: 9 seconds
Reporter output for Rest Assured Api Suites
reserveAccountNumber({EXPECTED MESSAGE=Account Number Generated Successfully, ERROR MESSAGE=, TEST SCENARIO=#TC16 Reserve...)
#TC16 Reserve new account number
Steps:
Generating Access Token
 End Point URI:account/account-number
 Sending POST Publish command
 Executed URL {}
 Status Code 502
 Time taken to get response is 2625 milli second
 No Fields found to be verified from the Response Body
 Failed to reserve a new account number

Status code for '#TC16 Reserve new account number' is not matching. Expected:[200], Actual : [502]!
Error Message : Internal server error
searchAccountHistoryOfRandomAccount({EXPECTED MESSAGE=Account not found, ERROR MESSAGE=, TEST SCENARIO=#TC24 Search the account History ...)
#TC24 Search the account History of a random account holder
Steps:
Generating Access Token
 End Point URI:account/account-history
 Sending POST Publish command
 Executed URL {}
 Status Code 502
 Time taken to get response is 1699 milli second
 No Fields found to be verified from the Response Body
 Failed to Search the account History

Status code for '#TC24 Search the account History of a random account holder' is not matching. Expected:[200], Actual : [502]!
Error Message : Internal server error
searchAccountHistoryOfExistingAccount({EXPECTED MESSAGE=Account History Search successful, ERROR MESSAGE=, TEST SCENARIO=#TC23 Search the ...)
#TC23 Search the account History of an existing account holder
Steps:
Generating Access Token
 End Point URI:account/account-history
 Sending POST Publish command
 Executed URL {}
 Status Code 502
 Time taken to get response is 1614 milli second
 No Fields found to be verified from the Response Body
 Failed to Search the account History

Status code for '#TC23 Search the account History of an existing account holder' is not matching. Expected:[200], Actual : [502]!
Error Message : Internal server error
3 ignored methods
com.kinective.testscripts.Account.AccountTest
symXchangeSearchAccountHistoryOfExistingAccount
verifyResponseFields
corelationSearchAccountHistoryOfExistingAccount
Methods in chronological order
com.kinective.testscripts.Account.AccountTest
init(org.testng.TestRunner@f238e4f) 0 ms
reserveAccountNumber({EXPECTED MESSAGE=Account Number Generated Successfully, ERROR MESSAGE=, TEST SCENARIO=#TC16 Reserve...) 13834 ms
searchAccountHistoryOfExistingAccount({EXPECTED MESSAGE=Account History Search successful, ERROR MESSAGE=, TEST SCENARIO=#TC23 Search the ...) 18556 ms
searchAccountHistoryOfRandomAccount({EXPECTED MESSAGE=Account not found, ERROR MESSAGE=, TEST SCENARIO=#TC24 Search the account History ...) 20763 ms