Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Tests/Tests.cpp@72:0e8e769fcf76, 2013-09-20 (annotated)
- Committer:
- ashleymills
- Date:
- Fri Sep 20 12:36:03 2013 +0000
- Revision:
- 72:0e8e769fcf76
- Parent:
- 67:a61d60fa342c
Updated VodafoneUSBModem to latest version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ashleymills | 37:847f5f86e9ff | 1 | #include "Tests.h" |
ashleymills | 37:847f5f86e9ff | 2 | // put all of the descriptions on one place for easy reference |
ashleymills | 66:6b00a764e549 | 3 | const char* gTest00Description = "Test 0: Resolve 5 different DNS entries and match against IPs."; |
ashleymills | 66:6b00a764e549 | 4 | const char* gTest01Description = "Test 1: Downloads files from 128 bytes to 1MB, in ^2 increments."; |
ashleymills | 66:6b00a764e549 | 5 | const char* gTest02Description = "Test 2: Sends and SMS with basic alphabet and numbers."; |
ashleymills | 66:6b00a764e549 | 6 | const char* gTest03Description = "Test 3: Waits for an SMS message with irregular characters and numbers."; |
ashleymills | 66:6b00a764e549 | 7 | const char* gTest04Description = "Test 4: Send an SMS message with irregular characters and numbers."; |
ashleymills | 66:6b00a764e549 | 8 | const char* gTest05Description = "Test 5: Send an SMS message with basic characters and numbers."; |
ashleymills | 66:6b00a764e549 | 9 | const char* gTest06Description = "Test 6: Trying out USSD communication sending *#100#"; |
ashleymills | 66:6b00a764e549 | 10 | const char* gTest07Description = "Test 7: Sending BAD USSD string \".2890\""; |
ashleymills | 66:6b00a764e549 | 11 | const char* gTest08Description = "Test 8: Sending USSD over 150 chars \"0(0)00 ... 000(160)\""; |
ashleymills | 66:6b00a764e549 | 12 | const char* gTest09Description = "Test 9: Retrieve signal strength and print it."; |
ashleymills | 66:6b00a764e549 | 13 | const char* gTest10Description = "Test 10: x30 -> Retrieve signal strength and print it."; |
ashleymills | 66:6b00a764e549 | 14 | const char* gTest11Description = "Test 11: x10 -> Retreive MSISDN and send 10 random SMS to self"; |
ashleymills | 66:6b00a764e549 | 15 | const char* gTest12Description = "Test 12: x2 -> Send 25 SMS, wait for recv, read them quickly."; |
ashleymills | 66:6b00a764e549 | 16 | const char* gTest13Description = "Test 13: Wait for SMS. Send a response."; |
ashleymills | 67:a61d60fa342c | 17 | const char* gTest14Description = "Test 14: Uploads \"files\" from 128 bytes to 1MB, in ^2 increments."; |
ashleymills | 72:0e8e769fcf76 | 18 | const char* gTest15Description = "Test 15: Sends SMSs to self that contain carriage returns and newlines."; |
ashleymills | 66:6b00a764e549 | 19 | const char* gTest16Description = "Test 16"; |
ashleymills | 45:f68fea0831d7 | 20 | const char* gTest17Description = "Test 17"; |
ashleymills | 45:f68fea0831d7 | 21 | const char* gTest18Description = "Test 18"; |
ashleymills | 45:f68fea0831d7 | 22 | const char* gTest19Description = "Test 19"; |
ashleymills | 45:f68fea0831d7 | 23 | const char* gTest20Description = "Test 20"; |
ashleymills | 66:6b00a764e549 | 24 | const char* gTest21Description = "Test 21"; |
ashleymills | 66:6b00a764e549 | 25 | const char* gTest22Description = "Test 22"; |
ashleymills | 66:6b00a764e549 | 26 | const char* gTest23Description = "Test 23"; |
ashleymills | 45:f68fea0831d7 | 27 | const char* gTest24Description = "Test 24"; |
ashleymills | 66:6b00a764e549 | 28 | const char* gTest25Description = "Test 25"; |
ashleymills | 66:6b00a764e549 | 29 | const char* gTest26Description = "Test 26"; |
ashleymills | 45:f68fea0831d7 | 30 | const char* gTest27Description = "Test 27"; |
ashleymills | 45:f68fea0831d7 | 31 | const char* gTest28Description = "Test 28"; |
ashleymills | 45:f68fea0831d7 | 32 | const char* gTest29Description = "Test 29"; |
ashleymills | 45:f68fea0831d7 | 33 | const char* gTest30Description = "Test 30"; |
ashleymills | 45:f68fea0831d7 | 34 | const char* gTest31Description = "Test 31"; |
ashleymills | 45:f68fea0831d7 | 35 | const char* gTest32Description = "Test 32"; |
ashleymills | 45:f68fea0831d7 | 36 | const char* gTest33Description = "Test 33"; |
ashleymills | 45:f68fea0831d7 | 37 | const char* gTest34Description = "Test 34"; |
ashleymills | 45:f68fea0831d7 | 38 | const char* gTest35Description = "Test 35"; |
ashleymills | 45:f68fea0831d7 | 39 | const char* gTest36Description = "Test 36"; |
ashleymills | 45:f68fea0831d7 | 40 | const char* gTest37Description = "Test 37"; |
ashleymills | 45:f68fea0831d7 | 41 | const char* gTest38Description = "Test 38"; |
ashleymills | 45:f68fea0831d7 | 42 | const char* gTest39Description = "Test 39"; |
ashleymills | 45:f68fea0831d7 | 43 | const char* gTest40Description = "Test 40"; |
ashleymills | 45:f68fea0831d7 | 44 | const char* gTest41Description = "Test 41"; |
ashleymills | 45:f68fea0831d7 | 45 | const char* gTest42Description = "Test 42"; |
ashleymills | 45:f68fea0831d7 | 46 | const char* gTest43Description = "Test 43"; |
ashleymills | 45:f68fea0831d7 | 47 | const char* gTest44Description = "Test 44"; |
ashleymills | 45:f68fea0831d7 | 48 | const char* gTest45Description = "Test 45"; |
ashleymills | 45:f68fea0831d7 | 49 | const char* gTest46Description = "Test 46"; |
ashleymills | 45:f68fea0831d7 | 50 | const char* gTest47Description = "Test 47"; |
ashleymills | 45:f68fea0831d7 | 51 | const char* gTest48Description = "Test 48"; |
ashleymills | 45:f68fea0831d7 | 52 | const char* gTest49Description = "Test 49"; |
ashleymills | 66:6b00a764e549 | 53 | const char* gTest50Description = "Test 50"; |
ashleymills | 66:6b00a764e549 | 54 | const char* gTest51Description = "Test 51"; |
ashleymills | 45:f68fea0831d7 | 55 | const char* gTest52Description = "Test 52"; |
ashleymills | 45:f68fea0831d7 | 56 | const char* gTest53Description = "Test 53"; |
ashleymills | 45:f68fea0831d7 | 57 | const char* gTest54Description = "Test 54"; |
ashleymills | 45:f68fea0831d7 | 58 | const char* gTest55Description = "Test 55"; |
ashleymills | 66:6b00a764e549 | 59 | const char* gTest56Description = "Test 56"; |
ashleymills | 45:f68fea0831d7 | 60 | const char* gTest57Description = "Test 57"; |
ashleymills | 45:f68fea0831d7 | 61 | const char* gTest58Description = "Test 58"; |
ashleymills | 45:f68fea0831d7 | 62 | const char* gTest59Description = "Test 59"; |
ashleymills | 45:f68fea0831d7 | 63 | const char* gTest60Description = "Test 60"; |
ashleymills | 45:f68fea0831d7 | 64 | |
ashleymills | 45:f68fea0831d7 | 65 | const char* gTestDescriptions[] = { |
ashleymills | 45:f68fea0831d7 | 66 | gTest00Description, gTest01Description, gTest02Description, gTest03Description, gTest04Description, |
ashleymills | 45:f68fea0831d7 | 67 | gTest05Description, gTest06Description, gTest07Description, gTest08Description, gTest09Description, |
ashleymills | 45:f68fea0831d7 | 68 | gTest10Description, gTest11Description, gTest12Description, gTest13Description, gTest14Description, |
ashleymills | 45:f68fea0831d7 | 69 | gTest15Description, gTest16Description, gTest17Description, gTest18Description, gTest19Description, |
ashleymills | 45:f68fea0831d7 | 70 | gTest20Description, gTest21Description, gTest22Description, gTest23Description, gTest24Description, |
ashleymills | 45:f68fea0831d7 | 71 | gTest25Description, gTest26Description, gTest27Description, gTest28Description, gTest29Description, |
ashleymills | 45:f68fea0831d7 | 72 | gTest30Description, gTest31Description, gTest32Description, gTest33Description, gTest34Description, |
ashleymills | 45:f68fea0831d7 | 73 | gTest35Description, gTest36Description, gTest37Description, gTest38Description, gTest39Description, |
ashleymills | 45:f68fea0831d7 | 74 | gTest40Description, gTest41Description, gTest42Description, gTest43Description, gTest44Description, |
ashleymills | 45:f68fea0831d7 | 75 | gTest45Description, gTest46Description, gTest47Description, gTest48Description, gTest49Description, |
ashleymills | 45:f68fea0831d7 | 76 | gTest50Description, gTest51Description, gTest52Description, gTest53Description, gTest54Description, |
ashleymills | 45:f68fea0831d7 | 77 | gTest55Description, gTest56Description, gTest57Description, gTest58Description, gTest59Description, |
ashleymills | 45:f68fea0831d7 | 78 | gTest60Description, |
ashleymills | 45:f68fea0831d7 | 79 | }; |
ashleymills | 45:f68fea0831d7 | 80 | |
ashleymills | 40:32b0558320ea | 81 | |
ashleymills | 40:32b0558320ea | 82 | |
ashleymills | 40:32b0558320ea | 83 | // globals used for tests |
ashleymills | 40:32b0558320ea | 84 | const char* gMyMessage = "myMessage is golden"; |
nherriot | 56:6ca2d4c1ffc4 | 85 | //const char* gTestPhoneNumber = "+447717275049"; |
nherriot | 59:b091324302b4 | 86 | //const char* gTestPhoneNumber = "+447785666088"; |
nherriot | 59:b091324302b4 | 87 | const char* gTestPhoneNumber = "+447785666058"; |
ashleymills | 40:32b0558320ea | 88 | const char* gTestMessage = "this is a test message !"; |
ashleymills | 40:32b0558320ea | 89 | const char* gAlphabetNumbersMessage = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
nherriot | 59:b091324302b4 | 90 | const char* gAllCharsMessage = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ[]{}()!&*,.':;"; |
nherriot | 59:b091324302b4 | 91 | const char* gIrregularMessage = "£@-!#&%()*+=<>:/_"; |