예제 #1
0
        public void TC06_ImportDashboardReport()
        {
            HomeObject      homeObj      = new HomeObject(driver);
            HomeAction      homePageAct  = new HomeAction(driver);
            DashboardAction dashboardAct = new DashboardAction(driver);
            ReportingAction reportAct    = new ReportingAction(driver);
            string          fileName     = string.Empty;

            try
            {
                Console.WriteLine("Test Started");

                WaitForMoment(5);
                homePageAct.ClickOnDashboardLink();
                dashboardAct.SelectTheDashboardReport11(driver, out fileName);
                dashboardAct.ClickOnExportButton();
                dashboardAct.CreateCopyFile(fileName + ".dashboard", @"C:\Users\z003uutr\Downloads");
                dashboardAct.ClickOnImportButton();
                dashboardAct.ClickOnSelectFileAndEnterPath(@"C:\Users\z003uutr\Downloads" + "\\" + "Copy_" + fileName + ".dashboard");
                reportAct.ClickOnSaveReportButton();
                dashboardAct.SelectTheDashboardReport(driver, fileName);
                dashboardAct.ClickOnDeleteButton();
                reportAct.ClickOnYesButton();
                dashboardAct.DeleteFiles(@"C:\Users\z003uutr\Downloads");

                Console.WriteLine("Test Finished");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
예제 #2
0
        public void TC06_ExportDashboardReport()
        {
            HomeObject      homeObj      = new HomeObject(driver);
            HomeAction      homePageAct  = new HomeAction(driver);
            DashboardAction dashboardAct = new DashboardAction(driver);
            string          fileName     = string.Empty;

            try
            {
                Console.WriteLine("Test Started");

                WaitForMoment(5);
                homePageAct.ClickOnDashboardLink();
                dashboardAct.SelectTheDashboardReport11(driver, out fileName);
                dashboardAct.ClickOnExportButton();
                dashboardAct.CheckFile(fileName + ".dashboard", @"C:\Users\z003uutr\Downloads");
                dashboardAct.DeleteFiles(@"C:\Users\z003uutr\Downloads");

                Console.WriteLine("Test Finished");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }