|
AppCore
|
TestCardCrossTransfers - tests for ticket issue on cross transfers. More...
#include <TestCardCrossTransfers.h>


Classes | |
| class | DataClass |
Public Member Functions | |
| TestCardCrossTransfers () | |
| virtual | ~TestCardCrossTransfers () |
| void | setUp () |
| void | tearDown () |
| void | CheckCrossTransfer () |
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 () |
TestCardCrossTransfers - tests for ticket issue on cross transfers.
Testcases:
1) testcase_simple_crosss_transfer.xml - cross transfer for card with owner OWT only
First line/trip: 100001/6
Second line/trip: 3/1
Transfer bus stop: 2 (Brodno, ZST)
Result: cross transfer should be done
2) testcase_simple_crosss_transfer_fellows.xml - cross transfer for card with owner OWT + 2 fellow traveller OWTs
First line/trip: 100001/6
Second line/trip: 3/1
Transfer bus stop: 2 (Brodno, ZST)
Result: cross transfer should be done
3) testcase_cross_transfer_to_continuous.xml - cross transfer to continuous trip
First line/trip: 3/1
Second line/trip: 100001/5 + 100002/3 (continuous)
Transfer bus stop: 2 (Brodno, ZST)
Result: cross transfer should be done, statistics should contains two tickets
Note: 100002/3 is city->suburban (MHD->PAD)
4) testcase_cross_transfer_from_continuous.xml - cross transfer from continuous trip
First line/trip: 2/2 + 3/1 (continuous)
Second line/trip: 100001/5
Transfer bus stop: 2 (Brodno, ZST)
Result: cross transfer should be done, statistics should contains one ticket
5) testcase_second_cross_transfer.xml - owner has already used his ticket for cross transfer (100001/6->3/1) and attempts to use it second time
First line/trip: 3/1
Second line/trip: 100001/5
Transfer bus stop: 2 (Brodno, ZST)
Result: OWT can be used for cross transfer only once (flag wasInterchange) - ticket will be issued with full price
| TestCardCrossTransfers::TestCardCrossTransfers | ( | ) |
|
virtual |
| void TestCardCrossTransfers::CheckCrossTransfer | ( | ) |

| void TestCardCrossTransfers::setUp | ( | ) |

| void TestCardCrossTransfers::tearDown | ( | ) |

1.8.8