예제 #1
0
    def test_dashboard_2(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-07-26"
        data.transits = ["85647"]

        self.run_dashboard_test(browser, data, temp_dir, 2)
예제 #2
0
    def test_dashboard_3(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-03-31"
        data.transits = ["95307"]

        dashboard = DashBoardPage(browser).open()
        take_screenshot(browser, "dashboard")

        dashboard.clear()

        dashboard.set_date(data.date)

        for transit in data.transits:
            dashboard.select_transit(transit)

        dashboard.search()

        dashboard.download_csv_1()

        actual_file = path.realpath(path.join(temp_dir, "export.csv"))
        wait_until_file_exists(actual_file)

        data = "sfsdfsdf\ndfsdsdf\nsdfsdfsdfs\n"

        self.reporter = GenericDiffReporterFactory().get_first_working()
        verify(data)
예제 #3
0
    def test_position_3(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-07-05"
        data.transits = ["all"]
        data.book = ""

        return self.run_position_test(browser, data, temp_dir, 1)
예제 #4
0
    def test_detail_actuals_1(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-03-31"
        data.transits = []
        data.book = "EQUITY"

        return self.run_detail_test(browser, data, temp_dir, 2)
예제 #5
0
    def test_mmi_tor_1(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-07-26"
        data.transits = ["all"]
        data.book = ""

        return self.run_ntc_test(browser, data, temp_dir, 'grid_0')
예제 #6
0
    def test_position_2(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-07-26"
        data.transits = []
        data.book = "COLVA"

        return self.run_position_test(browser, data, temp_dir, 2)
예제 #7
0
    def test_balance_sheet_1(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-07-26"
        data.transits = ["95307"]
        data.book = "ADMIN"
        data.parallel_mode = "false"

        return self.run_balance_sheet_test(browser, data, temp_dir)
예제 #8
0
    def test_management_view_1(self, temp_dir, browser):
        data = DataBuilder().get_default_data()

        data.date = "2017-07-26"

        return self.run_management_view_test(browser, data, temp_dir)