SigningTS/client/test.h
changeset 41 b56d7e268634
parent 40 edc0144719a1
child 42 b9716e8867f1
equal deleted inserted replaced
40:edc0144719a1 41:b56d7e268634
     1 #ifndef TEST_H
       
     2 #define TEST_H
       
     3 
       
     4 #include <qstring.h>
       
     5 
       
     6 // Each test will be a subclass of this abstract class.
       
     7 // A test has a sequence of steps. Each step is composed of
       
     8 // a request and reply.
       
     9 
       
    10 const QString BaseURL = "http://localhost:8080/";
       
    11 const QString DefaultKey = "853b128a-0c18-42f2-835f-db9f5b6f7fb9";
       
    12 const int ApiVersion = 1;
       
    13 
       
    14 class TestInterface
       
    15 {
       
    16 
       
    17 public:
       
    18     virtual void  run () = 0 ; // run the test.
       
    19 
       
    20     enum TRESULT_STATE { PASS=0, FAIL, INPROGESS} ;
       
    21     virtual TRESULT_STATE getResult() = 0;
       
    22 
       
    23 
       
    24     enum TAPI_SIGNING_STATE { SUBMITTED=0, SCANNED, FAILED_SCAN, SIGNED,
       
    25                               AUDIT_IN_PROGRESS, FAILED_TESTING,
       
    26                               TESTING_IN_PROGRESS};
       
    27 };
       
    28 
       
    29 #endif // TEST_H