Giter Site home page Giter Site logo

areynold / commotion-router-test-suite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opentechinstitute/commotion-router-test-suite

0.0 2.0 0.0 256 KB

Automated tests for commotion-router

Home Page: http://commotionwireless.net

License: GNU Affero General Public License v3.0

Python 100.00%

commotion-router-test-suite's Introduction

alt tag commotion-router-test-suite

VERY EARLY DRAFT

Automated tests for Commotion Router

Originally designed to minimize manual input testing on router UI. Many tests, particularly tests of unprivileged functions, use Selenium where it is very inefficient to do so, but are included as simple examples of test structure.

Usage


py.test to run all available tests, or py.test tests/<test_file.py> to run a specific set of tests

Pytest will automatically discover any tests using its defined naming conventions.

Pytest command line defaults are set in the file pytest.ini. Pytest behavior can be configured using the file tests/conftest.py.

See the Pytest documentation for details.

Required Packages


  • Python (v3)
  • Python development libraries
  • Bunch
  • Pytest
  • Netifaces
  • Selenium
  • Unittest
  • Random

Basic Structure


  • tests/ - Unit tests, separated by type or profile
  • objects/ - All objects used in the tests
    • browser.py - Objects representing the browser/user
    • exceptions.py - Commotion-specific exceptions
    • malicious_strings.py - Standard strings for use in input validation tests
    • util.py - Utility functions
    • router/ - Objects used in router-based tests
      • router.py - router-specific node objects
      • page/ - Objects found only in router-based UI pages
        • page.py - Page definitions for router-based nodes

Resources


commotion-router-test-suite's People

Contributors

areynold avatar gradyoti avatar jheretic avatar

Watchers

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