Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

Committer:
ashleymills
Date:
Thu Sep 13 10:05:31 2012 +0000
Revision:
33:16126e029d58
Parent:
32:8ff0b67bb58c
Child:
37:847f5f86e9ff
Changed test framework.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ashleymills 2:ea883307d02f 1 #pragma once
ashleymills 2:ea883307d02f 2 #include "VodafoneUSBModem.h"
ashleymills 2:ea883307d02f 3 #include "VodafoneTestCase.h"
ashleymills 22:5b1feecf2aeb 4 #include "Tests.h"
ashleymills 2:ea883307d02f 5 #include <vector>
ashleymills 3:28336c2e94e4 6
ashleymills 3:28336c2e94e4 7 enum TestNames {
ashleymills 3:28336c2e94e4 8 TEST0_SMSSHORT=0,
ashleymills 3:28336c2e94e4 9 TEST1_SMSLONG
ashleymills 3:28336c2e94e4 10 };
ashleymills 3:28336c2e94e4 11
ashleymills 2:ea883307d02f 12 class TestManager {
ashleymills 2:ea883307d02f 13
ashleymills 2:ea883307d02f 14 public:
ashleymills 2:ea883307d02f 15 TestManager(VodafoneUSBModem *m);
ashleymills 2:ea883307d02f 16 void addTest(VodafoneTestCase *tc);
ashleymills 33:16126e029d58 17
ashleymills 27:0297dbc3252b 18 void listFailures(const int *list, const int listLen);
ashleymills 33:16126e029d58 19
ashleymills 33:16126e029d58 20 bool executeTest(int id);
ashleymills 33:16126e029d58 21 bool executeTest(int id, int numTimes);
ashleymills 33:16126e029d58 22 int executeTestProfile(TestProfile profile);
ashleymills 33:16126e029d58 23 int executeTestList(const int *list, const int listLen);
ashleymills 33:16126e029d58 24
ashleymills 33:16126e029d58 25 VodafoneTestCase* getTest(int index);
ashleymills 22:5b1feecf2aeb 26 int getTestProfileLength(TestProfile profile);
ashleymills 2:ea883307d02f 27
ashleymills 2:ea883307d02f 28 private:
ashleymills 2:ea883307d02f 29 VodafoneUSBModem *_modem;
ashleymills 2:ea883307d02f 30 vector<VodafoneTestCase*> _tests;
ashleymills 33:16126e029d58 31
ashleymills 2:ea883307d02f 32 };