|
AppCore
|
TestCardCheckoutOptimalization - tests for optimizing one-way tickets on card during checkout (tariff modification and refund) More...
#include <TestCardCheckoutOptimalization.h>


Classes | |
| class | DataClass |
Public Member Functions | |
| TestCardCheckoutOptimalization () | |
| virtual | ~TestCardCheckoutOptimalization () |
| void | setUp () |
| void | tearDown () |
| void | CheckCheckoutOptimalization () |
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 () |
TestCardCheckoutOptimalization - tests for optimizing one-way tickets on card during checkout (tariff modification and refund)
Line/trip: 12/1
Testcases:
1) testcase_no_fellows.xml - OWT for card owner only (no fellow travellers). Passenger does checkout on third bus stop, tariff should be modified and EP value should be increased.
2) testcase_fellows.xml - OWT for card owner + two OWTs for fellow travellers. Passengers do checkout on third bus stop, all tariffs should be modified and EP value should be increased.
3) testcase_pcl_and_fellows.xml - TT for owner + two OWTs for fellow travellers. Passengers do checkout on third bus stop, tariffs for fellow travellers should be modified and EP value should be increased by price difference on fellow travellers tariffs. Tariff on owner ticket is not modified.
| EM::Tests::TestCardCheckoutOptimalization::TestCardCheckoutOptimalization | ( | ) |
|
virtual |
| void EM::Tests::TestCardCheckoutOptimalization::CheckCheckoutOptimalization | ( | ) |
| void EM::Tests::TestCardCheckoutOptimalization::setUp | ( | ) |

| void EM::Tests::TestCardCheckoutOptimalization::tearDown | ( | ) |

1.8.8