Giter VIP home page Giter VIP logo

devices-test's Introduction

devices-test

QA stages

  • familiarization with the requirements for the device service backend
  • test cases implementation (smoke, negative etc.)
  • testing/test automation

Test cases

  1. Check that GET /devices method call will return list of devices with its info
  2. Check that PATCH /devices method call will change specified device parameter
    • duty1
    • duty2
    • freq1
    • freq2
  3. Check that PATCH /devices method call with invalid/incorrect parameters will cause an exception
    • empty parameters
    • empty values to edit
    • unknown address
    • invalid percentage value
    • invalid percentage parameter type
    • invalid frequencies value
    • invalid frequencies parameter type
  4. Check that GET /report method call with valid report type for all known devices will return a report text
    • 100
    • 200
    • 300
    • 400
  5. Check that GET /report method call with invalid/incorrect parameters will cause an exception
    • empty address
    • empty repId
    • unknown address
    • invalid repId value
    • invalid repId type
  6. Check that duties and frequencies data could be received via web socket: /start_monitoring/{address}
  7. Check that proper data could not being received via web socket in invalid parameters specified
    • unknown address
    • invalid address type

How to run tests:

docker-compose up --exit-code-from tests

Issues

Total issues count: 13

  1. Could not monitor Transmission device data (major).

    • Steps to reproduce:
      1. Call start_monitoring method with 129 address specified
      2. Iterate over response to obtain device info
    • Expected result: Device info present in response
    • Actual result: Not Found in response
  2. Could not obtain report with type 400 for all kind of devices (major).

    • Steps to reproduce:
      1. Call GET /report with repId specified as 400
    • Expected result: Response status โ€“ 200 OK. Report content present in response
    • Actual result: Response status โ€“ 404 Not Found. Report is not exist in response

devices-test's People

Contributors

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