Ejemplo n.º 1
0
        public void BrowseForCustomerInNotesWindow()
        {
            Initialize();
            LandingPage.SelectFromToolbar("Workers");
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.WorkerRating);

            foreach (var datarow in datarows)
            {
                var worker = WorkerSummaryWindow.SelectWorkerFromTable(datarow.ItemArray[10].ToString());
                if (worker)
                {
                    Playback.Wait(2000);
                    WorkerSummaryWindow.SelectMainTab(7);
                    WorkerRatingsandNotesWindow.SelectNotesInComboBox();
                    WorkerRatingsandNotesWindow.ClickOnBrowseBtn();
                    Factory.AssertIsTrue(WorkerRatingsandNotesWindow.VerifyCustomerSearchWindowDisplayed(),
                                         "Customer Search Window Not Displayed");
                    WorkerRatingsandNotesWindow.EnterDataCustomerSearchWindow(datarow);
                    WorkerRatingsandNotesWindow.ClickCancelnotes();
                    WorkerSummaryWindow.ClickOnCloseBtn();
                }
                Factory.AssertIsTrue(worker, "Requested Worker not found");
            }
            Cleanup();
        }
Ejemplo n.º 2
0
        public void AddRatingsForWorker()
        {
            Initialize();
            LandingPage.SelectFromToolbar("Workers");
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.WorkerRating);

            foreach (var datarow in datarows)
            {
                var worker = WorkerSummaryWindow.SelectWorkerFromTable(datarow.ItemArray[10].ToString());
                if (worker)
                {
                    Playback.Wait(2000);
                    WorkerSummaryWindow.SelectMainTab(7);
                    Playback.Wait(1000);
                    Factory.AssertIsTrue(WorkerSurveyWindow.VerifyWorkerProfileWindowDisplayed(),
                                         "Workers Ratings and Notes Tab not Displayed");
                    WorkerRatingsandNotesWindow.SelectRatingsInComboBox();
                    Playback.Wait(1000);
                    Factory.AssertIsTrue(WorkerRatingsandNotesWindow.VerifyRatingsWindowDisplayed(),
                                         "Ratings Window Not Displayed");
                    WorkerRatingsandNotesWindow.EnterdataInRatingsWindow(datarow);
                    WorkerSummaryWindow.ClickOnCloseBtn();
                }
                Factory.AssertIsTrue(worker, "Requested Worker not found");
            }
            Cleanup();
        }