Giter VIP home page Giter VIP logo

hsbc-technical-test's Introduction

Hsbc Technical Test for API Automation

All test scenarios developed by following documentation in the Given URL

https://ratesapi.io/documentation/

Notes about the Test Framework

This Test Automation Framework is built with Following tech stack:

  • Java
  • RestAssured
  • Cucumber
  • Junit
  • Maven
  • Hamcrest Assertion Library

How to run the tests

  • Clone the repository locally (git clone https://github.com/Boshinya/hsbc-technical-test.git)
  • Create a Junit Runner with following VM options
  • Runner Class to be selected is : com.hsbc.RunApiTests -Dcucumber.options="--tags @latest-exchange-rate,@specific-date-xchange-rate" All possible scenarios automated, and there are some duplicate scenarios covered for both Latest and specific dates API.
    JsonSchema generated from the latest API response and used as base to validate JsonSchema. JsonSchema is available in the path /src/test/resources/exchangesratesschema.json

Test Results

After the end of test execution, html report stored in the folder, /Users/bothi/hsbc-technical-test/target/cucumber-report/apiTests/index.html it would display outcome of all the scenarios.

Manual Test case Scenarios

All possible scenarios for both Latest and specific date exchange rates API stored in the following path /src/test/resources/features/manual-test-cases

Observation and Assumption

  • Assumption 1 : if the specific date falls on Weekend and Bank- holiday then previous working day's Exchange rates ar returned.

  • Assumption 2 : When the API request sent to get the latest exchange rates, not always the current date is returned ( need more businees input)

  • Observation 1 : When base currency & symbol query used as "EUR" the 400 response returned where as for all other currencies it is 200 response.

  • Observation 2 : When specific dates used in the past (ex. year 2000), not all of the exchange rates returned, assumed some of those currencies not part of the supported list.

  • Since there are no defined expected results available for exchange rates & also it is dynamic,specific values are not asserted.

hsbc-technical-test's People

Contributors

bothees avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.