|
AppCore
|
TestCardSeparateInterchangeForFellows - Test for separate interchange of fellow travellers. Every fellow traveller OWT is written on separate ticketIndex. Interchange is done for single passenger at once (separate issue for owner, separate issue for first fellow, ...). More...
#include <TestCardSeparateInterchangeForFellows.h>


Classes | |
| class | DataClass |
Public Member Functions | |
| TestCardSeparateInterchangeForFellows () | |
| virtual | ~TestCardSeparateInterchangeForFellows () |
| void | setUp () |
| void | tearDown () |
| void | CheckInterchange () |
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 () |
TestCardSeparateInterchangeForFellows - Test for separate interchange of fellow travellers. Every fellow traveller OWT is written on separate ticketIndex. Interchange is done for single passenger at once (separate issue for owner, separate issue for first fellow, ...).
Line/trip: 3/2
Testcases:
1) Test_owner_issue.xml - Owner has two fellow travellers from first line/trip (3/1), they transfer to other line/trip (3/2). Only owner's ticket should make a transfer.
Input: Owner OWT + 2 fellow travellers (1 full + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on owner's ticket. There should be one ticket in statistics.
2) Test_first_fellow_issue_full_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner has already made an interchange. Fellow traveller with full tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with full tariff. There should be one ticket in statistics.
3) Test_first_fellow_issue_reduced_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner has already made an interchange. Fellow traveller with reduced tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with reduced tariff. There should be one ticket in statistics.
4) Test_second_fellow_issue_full_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner and 'reduced' fellow have already made an interchange. Fellow traveller with full tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff after interchange), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with full tariff. There should be one ticket in statistics.
5) Test_second_fellow_issue_reduced_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner and 'full' fellow have already made an interchange. Fellow traveller with reduced tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full tariff after interchange + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with reduced tariff. There should be one ticket in statistics.
6) Test_third_fellow_issue_reduced_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner and both fellows have already made an interchange. We try to buy another fellow traveller in reduced tariff.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff), both after interchange. Every ticket is on separate ticket index (0-2).
Result: No interchange should be made. New fellow traveller with reduced tariff should be written to fourth ticketIndex. There should be one ticket in statistics.
| TestCardSeparateInterchangeForFellows::TestCardSeparateInterchangeForFellows | ( | ) |
|
virtual |
| void TestCardSeparateInterchangeForFellows::CheckInterchange | ( | ) |

| void TestCardSeparateInterchangeForFellows::setUp | ( | ) |

| void TestCardSeparateInterchangeForFellows::tearDown | ( | ) |

1.8.8