Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TestManager.h Source File

TestManager.h

00001 #pragma once
00002 #include "VodafoneUSBModem.h"
00003 #include "VodafoneTestCase.h"
00004 #include "Tests.h"
00005 #include <vector>
00006 
00007 #define NUMBER_OF_TESTS 100
00008 
00009 class TestManager {
00010 
00011    public:
00012       TestManager(VodafoneUSBModem *m);
00013       void addTest(VodafoneTestCase *tc);
00014       
00015       bool runTest(int id);
00016       bool runTest(int id, int numTimes);
00017       int  runTestProfile(TestProfile profile);
00018       int  getTestProfileLength(TestProfile profile);
00019       
00020       
00021    private:
00022       VodafoneUSBModem *_modem;
00023       vector<VodafoneTestCase*> _tests;
00024       VodafoneTestCase* constructTest(int id);
00025       int  runTestList(const int *list, const int listLen);
00026       void listFailures(const int *list, const int listLen);
00027       void resetTestOutcomes();
00028       bool *_testOutcomes;
00029       
00030 };