Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

Committer:
ashleymills
Date:
Thu Sep 06 15:13:38 2012 +0000
Revision:
27:0297dbc3252b
Parent:
22:5b1feecf2aeb
Child:
32:8ff0b67bb58c
Commended out dependency stuff. TestManager now prints numbers and descriptions of failed tests.

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 19:26fbed33d4e7 17 int executeTestList(const int *list, const int listLen);
ashleymills 27:0297dbc3252b 18 void listFailures(const int *list, const int listLen);
ashleymills 22:5b1feecf2aeb 19 int executeTestProfile(TestProfile profile);
ashleymills 22:5b1feecf2aeb 20 int getTestProfileLength(TestProfile profile);
ashleymills 4:1f8e079924ba 21 bool runTest(int id);
ashleymills 4:1f8e079924ba 22 bool runTest(int id, int numTimes);
ashleymills 2:ea883307d02f 23
ashleymills 2:ea883307d02f 24 private:
ashleymills 2:ea883307d02f 25 VodafoneUSBModem *_modem;
ashleymills 2:ea883307d02f 26 vector<VodafoneTestCase*> _tests;
ashleymills 2:ea883307d02f 27 };