• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • CourierTesterProfile
  • CourierTesterProfile Struct

    The weather a CourierTester makes: how likely each test step is, how long it sleeps, and in which order it delivers. More...

    Header: #include <CourierTesterProfile>
    Since: 1.0

    Detailed Description

    A profile is a value that CourierTester::setProfile() copies. It holds a weight for each of eight steps: send, receive, drop and corrupt, for each of the two couriers. randomStep() picks a step at random, in proportion to the weights. Each weight is clamped to the range 0 to 1, and the weights need not add up to 1. The drop and corrupt steps are not implemented yet, so their default weight is 0.

    The profile also sets the random sleep before each step, and the order in which the tester takes queued packets: FIFO, LIFO or random. Two flags make the tester send or receive even when the mandate of the courier says it does not want to.