Skip to content

testing

Testing 1, 2, 3 (Simulator)

Building better testing tools

With new developments, testing by hand is no longer practical!

As a result, I've developed a Simulator which will do all the major testing from now on.

This post is just a show-and-tell because it's a fun tool.

Comprehensive Simulator / Test Harness

Testing now makes use of new Simulator capabilities, such as:

  • Simulating any scenario, directly feeding encoded data into the live Dashboard
    • No need to transmit to test
  • 27,000+ automated tests, across comprehensive input values, midpoints, etc
    • Test every message type (extensible to new)
    • Test pairs of messages (TT+GT, RT1+BT, etc)

Major Features

  • Simulation of "real" data by Simulator, then sent to Jetpack via JSON link
    • Encoding performed ON Jetpack using Jetpack encoder/decoder
    • Encoding performed Simulator using Dashboard encoder/decoder
    • Resulting values compared by Simulator and differences flagged
  • Drawable GPS path on map
    • With comparative view of grid4/grid6 snap-to path
  • Drawable altitude/speed/temperature/voltage values
  • Bulk Comprehensive test scenarios auto-generated
  • Window construction (any messages, any field values, in any slots)
  • Fingerprinting scenarios
    • Multiple sending profiles to operate simultaneously
      • Any band/channel
    • Multiple receiving station profiles to operate simultaneously
      • Any band/freq-offset
  • Solar angle conditions (choose date/time of simulated period)

Other Cool Stuff

  • 2.6 Mbps data throughput between Simulator and Jetpack traffic via JSON link
    • That's 325,000 bytes/sec for write, and another 325,000 bytes/sec for read
    • Reliable high-bandwidth link supports high-volume low-latency testing

More work to be done to move this set of work ahead but now much easier to test and re-test as changes get made to see what works.