|
AppCore
|
TestCardProlongTicketTimeValidity - testcases for prolonging OWT with time validity (buying additional minutes).
More...
#include <TestCardProlongTicketTimeValidity.h>


Classes | |
| class | DataClass |
Public Member Functions | |
| TestCardProlongTicketTimeValidity () | |
| ~TestCardProlongTicketTimeValidity () | |
| void | setUp () |
| void | tearDown () |
| void | CheckProlongedTicket () |
Public Member Functions inherited from EM::Tests::TestVehicle | |
| TestVehicle (TicketIssueLogic::TicketIssueLogicTestWrapper *ticketIssueLogicTestWrapper) | |
| virtual | ~TestVehicle () |
| void | setUp () |
| void | tearDown () |
Public Member Functions inherited from EM::Tests::TestCommon | |
| TestCommon (TicketIssueLogic::TicketIssueLogicTestWrapper *ticketIssueLogicTestWrapper) | |
| virtual | ~TestCommon () |
| void | setUp () |
| void | tearDown () |
| TicketIssueLogic::TicketIssueLogicTestWrapper * | GetTicketIssueLogicWrapper () |
| GetTicketIssueLogicWrapper. More... | |
| std::string | Message (const QString &shortDescription, int returnValue) |
| Message. More... | |
| long | GetTicketPriceFromOutputDataCollection () |
| GetTicketPriceFromOutputCollection. More... | |
| long | GetTicketDistance () |
| GetTicketDistance. More... | |
| bool | SetTemporaryTariffSystemSetting (const unsigned long tariffSystemSettingNumber, const long tariffSystemSettingValue) |
| bool | SetTemporaryTariffPropertyValue (const unsigned long tariffTicketNumber, const unsigned long tariffPropertyID, const long tariffPropertyValue) |
| bool | GetZonesOfPaidTicketSegments (std::list< unsigned long > &paidZones) |
Public Member Functions inherited from EM::Tests::TestCard | |
| TestCard () | |
| virtual | ~TestCard () |
| bool | PrepareCardFacadeForTest () |
| bool | PrepareCardFacadeForTest (QString &inputCardDataFilePath) |
| void | SimulateCardWrite () |
| bool | CheckWritingFacade () |
| bool | CheckWritingFacade (QString &resultCardDataFilePath) |
Additional Inherited Members | |
Static Public Member Functions inherited from EM::Tests::TestCard | |
| static void | SetOneWayTicketsValidity (const unsigned long validityStartTime, const unsigned long validityEndTime) |
Protected Member Functions inherited from EM::Tests::TestCommon | |
| const QString & | GetConfigurationFileName () const |
| void | IssueTicketAndWriteStatistic () |
TestCardProlongTicketTimeValidity - testcases for prolonging OWT with time validity (buying additional minutes).
Line/trip: 12/1
Testcases:
1) testcase_1_pcl+fellows.xml - Owner has time ticket and two fellow travellers. We are trying to prolong OWT time validity.
Input: Card with TT (CTL 71) + timeTicketRide (CTL=71) + 2x fellow travellers (CTL=210)
Result: Time validity should be increased. There should be 3 tickets in statistics, owner's ticket should have zero price, tickets for fellows should have full price.
2) testcase_2_nopcl.xml - Owner has OWT, we are trying to prolong OWT time validity.
Input: Card with single OWT (CTL=210)
Result: Time validity should be increased. There should be 1 ticket in statistics with full price.
3) testcase_3_nopcl+fellows.xml - Owner has OWT + two fellow travellers. We are trying to prolong OWT time validity.
Input: Card with three OWTs (CTL=210, owner + 2 fellows)
Result: Time validity should be increased. There should be 3 tickets in statistics, all tickets should have full price.
4) testcase_4_nopcl+fellows_owner_only.xml - Owner has OWT + two fellow travellers. We are trying to prolong time validity for owner only.
Input: Card with three OWTs (CTL=210, owner + 2 fellows)
Result: Time validity for owner ticket should be increased, fellow travellers' tickets should be disabled.
| TestCardProlongTicketTimeValidity::TestCardProlongTicketTimeValidity | ( | ) |
| TestCardProlongTicketTimeValidity::~TestCardProlongTicketTimeValidity | ( | ) |
| void TestCardProlongTicketTimeValidity::CheckProlongedTicket | ( | ) |

| void TestCardProlongTicketTimeValidity::setUp | ( | ) |

| void TestCardProlongTicketTimeValidity::tearDown | ( | ) |

1.8.8