GithubHelp home page GithubHelp logo

calculatorpracticaltest's Introduction

CalculatorPracticalTest

Automation Framework for API and UI for calculator practical test

There are 2 projects in the solution:

  1. WebCalculatorTest: it is an BBD automated framework project for Web testing with multiple browser, specflow, selenium web driver and MsTest in Visual Studio 2019.
  2. APICalculatorTest: it is an automated framework project for REST API about RestSharp and MsTest in Visual Studio 2019.

Reminder for executing: When execute WebCalculatorTest locally, need choose run.settings file (Test -> Configure Run Settings ->Select Solution Wide runsettings file) in Visual Studio 2019, otherswise, might get error due to no selected run.settings file.( using run.settings file to select Browser:Chrome, IE, Firefox)

Test Scenarios:

  • Web & API: Test all left number and right number in all range(Web: -99 to 999, API: from int minvalue to int maximum)
  • Web & API: Test all operators("+","-","*","/")
  • Web & API: Test possible invalid input including out of range, string, special characters, and no number entering etc. *API:No AuthToken for API calculater, wrong josn request body and etc.

Observation:

  1. Web Calculator:

    • It should consider default operator on the UI, if user use the default operator at the first time (no select operator on web with correct left and right number), there is no action after clicking "Calculate" button.
    • It does not consider the negative number scenarios, for example: 1+(-2), expected result: -1, actual result:3, same as other operators("-","*","/").
    • It does not consider the maximum result from server: 999*999, expected result:998001, actual result:99800.
    • It does not return an error message when there is invalid input,for example: 1/0, expected result:error message, actual result:0.
  2. API Calculator:

    • when there is invalid json request, it should return "Bad request", for example: no operator in the request body, expected result:Bad request(400), actual result:Not found(404)
    • It does not consider the negative number scenarios, for example: 1+(-2), expected result: -1, actual result:3, same as other operators("-","*","/").
    • It does not return anything when number divided by 0, example: 1/0, expected result: Bad request, actual result: nothing returns from server,.

calculatorpracticaltest's People

Contributors

jackyna127 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.