//END:assignissue

//START:viewassignedissue
        public AssignedIssuesReport ViewAssignedIssuesReport()
        {
            ReportsPage reportsPage = _codeTrack.GotoReportsPage();
            IssueTable  issueTable  = reportsPage.ShowIssuesAssignedToLoggedInUser();

            return(new AssignedIssuesReport(issueTable.Issues));
        }
Beispiel #2
0
 public void TestCaseSetUp()
 {
     factory      = TestObjectFactory.CreateMockTradeFinderFactory();
     page         = new ReportsPage(factory);
     emptyHeaders = new NameValueCollection();
     emptyQuery   = new NameValueCollection();
 }
        public async Task <IActionResult> Edit(int id, [Bind("Id,ApplicationUserId,HobbyId,MotivationId,PartyId,ReportId")] ReportsPage reportsPage)
        {
            if (id != reportsPage.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(reportsPage);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ReportsPageExists(reportsPage.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ApplicationUserId"] = new SelectList(_context.ApplicationUser, "Id", "Id", reportsPage.ApplicationUserId);
            ViewData["HobbyId"]           = new SelectList(_context.Hobbies, "Id", "HobbyName", reportsPage.HobbyId);
            ViewData["MotivationId"]      = new SelectList(_context.Motivations, "Id", "MotivationText", reportsPage.MotivationId);
            ViewData["ReportId"]          = new SelectList(_context.Reports, "Id", "Content", reportsPage.ReportId);
            return(View(reportsPage));
        }
        public void TabClickThroughAutomation()
        {
            // Navigate to the login page
            LoginPage LP = Navigation.GoToLoginPageMainpro(browser);

            //Login and go to the Dashboard Page
            DashboardPage DP = LP.LoginAsUser("AutomationTestUser-DanielNestor", "test");

            //Go to the Credit Summary Page
            CreditSummaryPage CP = DP.ClickToAdvance(DP.CreditSummaryTab);

            //Go to the Holding Area Page
            HoldingAreaPage HP = CP.ClickToAdvance(CP.HoldingAreaTab);

            //Go to the CPD Activities List Page
            CPDActivitiesListPage ALP = HP.ClickToAdvance(HP.CPDActivitiesTab);

            //Go to the Planning Page
            CPDPlanningPage PP = ALP.ClickToAdvance(ALP.CPDPlanningTab);

            //Go to the Reports Page
            ReportsPage RP = PP.ClickToAdvance(PP.ReportsTab);

            //Once The Reports Page is hit, The test Passes
        }
Beispiel #5
0
 public void TestCaseSetUp()
 {
     factory = TestObjectFactory.CreateMockTradeFinderFactory();
     page = new ReportsPage(factory);
     emptyHeaders = new NameValueCollection();
     emptyQuery = new NameValueCollection();
 }
Beispiel #6
0
 public void Reports_SortingColumns_WS_1225()
 {
     if (!DataParser.ReturnExecution("WS_1225"))
     {
         Assert.Ignore();
     }
     else
     {
         ReportsPage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports();
         Assert.AreEqual(url + "report/bae_awards", reportpage.GetCurrentUrl(), "URL is not the correct");
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(1);
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(2);
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(3);
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(4);
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(5);
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(6);
         Assert.IsFalse(reportpage.LoadTakesMoreThan10sec(), "The Report takes more than 10 sec to load");
         reportpage.ClickHeader(7);
     }
 }
Beispiel #7
0
 public void Awards_ViewDetailsModal_WS_1274()
 {
     if (!DataParser.ReturnExecution("WS_1274"))
     {
         Assert.Ignore();
     }
     else
     {
         ReportsPage reportpage        = InitialPage.Go().Logon().ClickLogin().NavigateToReports();
         string      issuer            = reportpage.GetAwardTable(1, 8),
                     award             = reportpage.GetAwardTable(1, 4),
                     recipient         = reportpage.GetAwardTable(1, 2),
                     awardTie          = reportpage.GetAwardTable(1, 4),
                     teamName          = reportpage.GetAwardTable(1, 6),
                     date              = reportpage.GetAwardTable(1, 1),
                     amount            = reportpage.GetAwardTable(1, 3);
         ReportDetailsPage detailsPage = reportpage.ClickViewDetails(1);
         Assert.AreEqual(issuer, detailsPage.GetIssuer(), "Issuer Value is not the same");
         Assert.AreEqual(award, detailsPage.GetAward(), "Issuer Value is not the same");
         Assert.AreEqual(recipient, detailsPage.GetRecipient(), "Issuer Value is not the same");
         Assert.AreEqual(awardTie, detailsPage.GetAwardTie(), "Issuer Value is not the same");
         Assert.AreEqual(teamName, detailsPage.GetteamName(), "Issuer Value is not the same");
         Assert.AreEqual(date, detailsPage.Getdate(), "Issuer Value is not the same");
         Assert.AreEqual(amount, detailsPage.GetAmount(), "Issuer Value is not the same");
     }
 }
Beispiel #8
0
 public void Filter_by_platform_for_year_2015()
 {
     fileOperation.writeInFile("--------------------- TestCase2 --------------------------", filePath);
     reportsPage = new ReportsPage(GetDriver());
     reportsPage.selectFilter("2015");
     reportsPage.selectFiltersByPlatformAndPrintCount();
     fileOperation.writeInFile("--------------------- -------- --------------------------", filePath);
 }
 public void P20_1_A01_Filter_Compliance_Dashboard_by_Organization_35709()
 {
     CommonSection.Avatar.Reports();
     _test.Log(Status.Info, "Navigate to My Reports Page");
     ReportsPage.ComplianceDashboard();
     _test.Log(Status.Info, "Open Compliance Dashboard Page");
     Assert.IsTrue(ComplianceDashboardPage.ApplyOrganizationFilter());
     _test.Log(Status.Pass, "Compliance Dashboard Page Organization Filter Has been set successfully");
 }
 public void P20_1_A01_Admin_User_Can_See_Users_Transcript_Who_Are_Out_of_Compliance_35361()
 {
     CommonSection.Avatar.Reports();
     _test.Log(Status.Info, "Navigate to My Reports Page");
     ReportsPage.ComplianceDashboard();
     _test.Log(Status.Info, "Open Compliance Dashboard Page");
     Assert.IsTrue(ComplianceDashboardPage.ViewTranscript());
     _test.Log(Status.Pass, "Compliance Dashboard Page Open and User Transcript Page Successfully Open");
 }
 public void P20_1_A02_Filter_Compliance_Dashboard_by_Content_35766()
 {
     CommonSection.Avatar.Reports();
     _test.Log(Status.Info, "Navigate to My Reports Page");
     ReportsPage.ComplianceDashboard();
     _test.Log(Status.Info, "Open Compliance Dashboard Page");
     Assert.IsTrue(ComplianceDashboardPage.ApplyContentFilter(""));
     _test.Log(Status.Pass, "Compliance Dashboard Page Content Filter Has been set successfully");
 }
 public void P20_1_A03_Admin_Can_Send_Email_To_UserManager_From_Out_of_ComplinceDashboard_35365()
 {
     CommonSection.Avatar.Reports();
     _test.Log(Status.Info, "Navigate to My Reports Page");
     ReportsPage.ComplianceDashboard();
     _test.Log(Status.Info, "Open Compliance Dashboard Page");
     Assert.IsTrue(ComplianceDashboardPage.SendEmail_ToUserManager());
     _test.Log(Status.Pass, "Compliance Dashboard Page Open and Admin user able to send email to Users's Manager");
 }
Beispiel #13
0
        public ReportsRelatedScenario() : base()
        {
            _reportsPage       = new ReportsPage(Driver);
            _reportsPageHelper = new ReportsPageHelper(Driver);

            var homePage = LoginHelper.LoginAsStandardUser();

            _dashboardPage = homePage.MainNavigation.NavigateToDashboardPage().ClickOnReportsCard();
        }
        public void P20_1_A05_User_Filter_Data_From_DueDate_Chart_35913()

        {
            CommonSection.Avatar.Reports();
            _test.Log(Status.Info, "Navigate to My Reports Page");
            ReportsPage.ComplianceDashboard();
            _test.Log(Status.Info, "Open Compliance Dashboard Page");
            Assert.IsTrue(ComplianceDashboardPage.Verify_Overdue_Users_by_Completion_Criteria_Chart());
            _test.Log(Status.Pass, "Compliance Dashboard Page Overdue Chart Filter Has been verified successfully");
        }
        public void P20_1_A06_Admin_Change_TimeFrame_Settings_of_DueSoon_Widget_of_Compliance_Dashboard_35912()

        {
            CommonSection.Avatar.Reports();
            _test.Log(Status.Info, "Navigate to My Reports Page");
            ReportsPage.ComplianceDashboard();
            _test.Log(Status.Info, "Open Compliance Dashboard Page");
            ComplianceDashboardPage.Click_DueSoonTab();
            Assert.IsTrue(ComplianceDashboardPage.Change_TimeFrame_Setting());
            _test.Log(Status.Pass, "Compliance Dashboard Page TimeFrame Setting Has been changed successfully");
        }
        public void P20_1_A07_Admin_Can_See_Which_User_And_Organization_Have_Item_DueSoon_35915()

        {
            CommonSection.Avatar.Reports();
            _test.Log(Status.Info, "Navigate to My Reports Page");
            ReportsPage.ComplianceDashboard();
            _test.Log(Status.Info, "Open Compliance Dashboard Page");
            ComplianceDashboardPage.Click_DueSoonTab();
            Assert.IsTrue(ComplianceDashboardPage.Verify_DueSoon_Tab());
            _test.Log(Status.Pass, "Compliance Dashboard Page Due Soon Page Has been verified successfully");
        }
Beispiel #17
0
 public void check_missing_image_link_and_number_of_reports_available(int year)
 {
     fileOperation.writeInFile("--------------------- TestCase3 --------------------------", filePath);
     reportsPage = new ReportsPage(GetDriver());
     fileOperation.writeInFile("For Year " + year, filePath);
     reportsPage.selectFilter(year + "");
     reportsPage.printTotalReportCount();
     reportsPage.scrollToBottomToGetMoreResults();
     reportsPage.printMissingImageCount();
     reportsPage.printMissingLinkCount();
     fileOperation.writeInFile("--------------------- -------- --------------------------", filePath);
 }
 public void ThenUserShouldBeLandedSuccessfullyForReportsPage()
 {
     try
     {
         Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//h3[contains(text(),'Reports')]"));
         Assert.IsTrue(ReportsPage.ReportsText(SelectBrowser.driver).Text.Contains("Reports"));
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }
 public void WhenUserClicksOnTheReportsLink()
 {
     try
     {
         Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//span[contains(text(),'Reports')]"));
         ReportsPage.ReportsText(SelectBrowser.driver).Click();
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }
 public void ThenUserShouldBeLandedSuccessfullyForSalesActivityPage()
 {
     try
     {
         SelectBrowser.driver.SwitchTo().Window(SelectBrowser.driver.WindowHandles.Last());
         Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//button[@type='button']"));
         Assert.IsTrue(ReportsPage.ViewReports(SelectBrowser.driver).Text.Contains("View Report"));
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }
        public async Task <IActionResult> Create([Bind("Id,ApplicationUserId,HobbyId,MotivationId,PartyId,ReportId")] ReportsPage reportsPage)
        {
            if (ModelState.IsValid)
            {
                _context.Add(reportsPage);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ApplicationUserId"] = new SelectList(_context.ApplicationUser, "Id", "Id", reportsPage.ApplicationUserId);
            ViewData["HobbyId"]           = new SelectList(_context.Hobbies, "Id", "HobbyName", reportsPage.HobbyId);
            ViewData["MotivationId"]      = new SelectList(_context.Motivations, "Id", "MotivationText", reportsPage.MotivationId);
            ViewData["ReportId"]          = new SelectList(_context.Reports, "Id", "Content", reportsPage.ReportId);
            return(View(reportsPage));
        }
        public void WhenUserClicksOnTheViewReportsLink()
        {
            try
            {
                SelectBrowser.driver.SwitchTo().Window(SelectBrowser.driver.WindowHandles.Last());
                Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//button[contains(text(),'View Report')]"));
                Thread.Sleep(10000);
                ReportsPage.ViewReports(SelectBrowser.driver).Click();
            }

            catch (Exception ex)
            {
                Console.WriteLine("Exception==>" + ex);
                ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
            }
        }
Beispiel #23
0
 public void Reports_DateFilterWorks_WS_1231()
 {
     if (!DataParser.ReturnExecution("WS_1231"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1231.xml";
         string startDate       = ReportFilterData.GetStartDate(_file),
                finishDate      = ReportFilterData.GetFinishDate(_file);
         ReportsPage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports();
         reportpage.ClickFilter().EnterStartDate(startDate).EnterFinishDate(finishDate).ClickSubmit();
         Assert.AreEqual(startDate, reportpage.GetDate(0), "Start Date is not the same");
         Assert.AreEqual(finishDate, reportpage.GetDate(1), "Start Date is not the same");
     }
 }
Beispiel #24
0
        public void step_02()
        {
            Logger.PrintStepName("Step 2");
            Logger.PrintAction("Переход в  Отчеты'", "");
            string rezult = homePage.GoToReportsPage();

            if (rezult != "success")
            {
                globalR = false;
                Logger.PrintRezult(false, rezult);
            }
            else
            {
                Logger.PrintRezult(true, "Страница Отчеты корректна");
            }
            reportsPage = homePage.reportsPage;
        }
 public void P20_1_A03_Admin_Can_Save_their_Universal_Filter_Setting_37565()
 {
     CommonSection.Avatar.Reports();
     _test.Log(Status.Info, "Navigate to My Reports Page");
     ReportsPage.ComplianceDashboard();
     _test.Log(Status.Info, "Open Compliance Dashboard Page");
     Assert.IsTrue(ComplianceDashboardPage.ApplyOrganizationFilter());
     _test.Log(Status.Pass, "Compliance Dashboard Page Organization Filter Has been set successfully");
     Assert.IsTrue(ComplianceDashboardPage.SaveUniversalFilter());
     _test.Log(Status.Pass, "Compliance Dashboard Page Universal Filter Has been set successfully");
     CommonSection.Learn.Home();
     CommonSection.Avatar.Reports();
     _test.Log(Status.Info, "Navigate to My Reports Page");
     ReportsPage.ComplianceDashboard();
     _test.Log(Status.Info, "Open Compliance Dashboard Page");
     Assert.IsTrue(ComplianceDashboardPage.Verify_AppliedUniversalFilter());
     _test.Log(Status.Pass, "Compliance Dashboard Page Universal Filter reflecting successfully");
 }
        public void P20_1_A04_Compliance_Dashboard_User_filters_selections_36447()

        {
            CommonSection.Avatar.Reports();
            _test.Log(Status.Info, "Navigate to My Reports Page");
            ReportsPage.ComplianceDashboard();
            _test.Log(Status.Info, "Open Compliance Dashboard Page");
            Assert.IsTrue(ComplianceDashboardPage.ApplyOrganizationFilter());
            _test.Log(Status.Pass, "Compliance Dashboard Page Organization Filter Has been set successfully");
            Assert.IsTrue(ComplianceDashboardPage.ResetOrganizationFilter());
            _test.Log(Status.Pass, "Compliance Dashboard Page Organization Filter Has been reset successfully");
            Assert.IsTrue(ComplianceDashboardPage.ApplyContentFilter(""));
            _test.Log(Status.Pass, "Compliance Dashboard Page Content Filter Has been set successfully");
            Assert.IsTrue(ComplianceDashboardPage.ResetContentFilter());
            _test.Log(Status.Pass, "Compliance Dashboard Page Content Filter Has been reset successfully");
            Assert.IsTrue(ComplianceDashboardPage.ApplyDomainFilter());
            _test.Log(Status.Pass, "Compliance Dashboard Page Domain Filter Has been set successfully");
            Assert.IsTrue(ComplianceDashboardPage.ResetDomainFilter());
            _test.Log(Status.Pass, "Compliance Dashboard Page Domain Filter Has been reset successfully");
        }
Beispiel #27
0
 public void Reports_VerifyContainsData_WS_1227()
 {
     if (!DataParser.ReturnExecution("WS_1227"))
     {
         Assert.Ignore();
     }
     else
     {
         ReportsPage reportpage = InitialPage.Go().Logon().ClickLogin().NavigateToReports().SelectPageSize("500");
         int         row = 500, col = 7;
         for (int i = 1; i < row; i++)
         {
             for (int j = 1; j < col; j++)
             {
                 Assert.IsTrue(reportpage.IsCellFull(i, j), "Cell is empty");
             }
         }
         Assert.Pass("All cell Are full");
     }
 }
Beispiel #28
0
 //WS_1057
 public void WS_1057()
 {
     if (!DataParser.ReturnExecution("WS_1057"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1057.xml";
         string user = AwardData.GetAwardUserName(_file), msg = AwardData.GetAwardMessage(_file),
                award = AwardData.GetAwardName(_file), value = AwardData.GetAwardValue(_file);
         NominationHomePage recognitionPage = InitialPage.Go().Logon().ClickLogin().NavigateToNominationSpan();
         Thread.Sleep(1500);
         recognitionPage
         .SearchEmployeeFound(user)
         .SelectAward(award)
         .SelectValues(value)
         .FillMsg(msg)
         .ClickNext()
         .EmailReward();
         Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(),
                         "The message is not ready to send");
         Assert.AreEqual("SEND RECOGNITION", recognitionPage.GetBtnSendRecognitionAward(), "Submit button is not well written");
         recognitionPage.ClickSendRecognition();
         Assert.AreEqual("Success!", recognitionPage.GetSuccesMsg(), "Message its not success");
         Assert.AreEqual("FINISH", recognitionPage.GetBtnFinishLabel(), "Button finish its not correct write");
         Assert.AreEqual("RECOGNIZE SOMEONE ELSE", recognitionPage.GetBtnRecognizOtherLabelXpath(),
                         "Button finish its not correct write");
         ReportsPage details = recognitionPage.NavigateToReportsSpan().NavigateToReports();
         Assert.AreEqual(award, details.GetAwardTable(1, 6), award + "award was not given");
         Assert.AreEqual(user, details.GetAwardTable(1, 3), user + "user was not given or present");
         var proxypage =
             details.NavigateToAdminHomePageSpan()
             .ClickOptionProxy("Proxy")
             .EnterUserName(user)
             .ProxyToMainHomePage().ClosePopUp();
         Thread.Sleep(300);
         var myawards = proxypage.NavigateToMyAwards();
         Assert.AreEqual(award, myawards.GetAwardName(1, 5), award + "award was not given");
     }
 }
Beispiel #29
0
        public ReportsPageHelper CreateReport()
        {
            string summary        = "test summary1";
            string issueType      = "Task";
            string severityType   = "Medium";
            string priorityType   = "Blocker";
            string description    = "test description1";
            string firstStepText  = "test first step1";
            string secondStepText = "test second step1";

            _reportsPage = _reportsPage.ClickOnReportIssueButton();
            _reportsPage = _reportsPage.EnterSummary(summary);
            _reportsPage = _reportsPage.SelectIssueType(issueType);
            _reportsPage = _reportsPage.SelectSeverityType(severityType);
            _reportsPage = _reportsPage.SelectPriorityType(priorityType);
            _reportsPage = _reportsPage.EnterDescription(description);
            _reportsPage = _reportsPage.EnterFirstStep(firstStepText);
            _reportsPage = _reportsPage.AddNewStep();
            _reportsPage = _reportsPage.EnterSecondStep(secondStepText);
            _reportsPage = _reportsPage.SubmitReportIssue();
            return(this);
        }
Beispiel #30
0
        public void CreateNewReportIssue_Success()
        {
            // arrange
            string summary = "test summary";

            // these two values of variables is taken from enums
            string issueType    = ReportsPageConstants.REPORT_ISSUE_TYPE_Task;
            string severityType = ReportsPageConstants.SEVERITY_TYPE_Medium;

            string priorityType   = "Blocker";
            string description    = "test description";
            string firstStepText  = "test first step";
            string secondStepText = "test second step";

            //count the number of reports before deleting
            int oldReportIssuesCount = _reportsPage.ReportIssuesCount;

            // act
            _reportsPage = _reportsPage.ClickOnReportIssueButton();
            _reportsPage = _reportsPage.EnterSummary(summary);
            _reportsPage = _reportsPage.SelectIssueType(issueType);
            _reportsPage = _reportsPage.SelectSeverityType(severityType);
            _reportsPage = _reportsPage.SelectPriorityType(priorityType);
            _reportsPage = _reportsPage.EnterDescription(description);
            _reportsPage = _reportsPage.EnterFirstStep(firstStepText);
            _reportsPage = _reportsPage.AddNewStep();
            _reportsPage = _reportsPage.EnterSecondStep(secondStepText);
            _reportsPage = _reportsPage.SubmitReportIssue();

            // assert that number of technologies is reduced for 1
            Assert.Equal(oldReportIssuesCount + 1, _reportsPage.ReportIssuesCount);
            Assert.Equal(summary, _reportsPage.GetSummaryOfReportIssue(1));


            //  clean up
            _reportsPage.ClickOnReportFromTheList(1);
            _reportsPageHelper.DeleteReport();
        }
Beispiel #31
0
        public ReportsPageHelper(IWebDriver driver) : base(driver)
        {
            _reportsPage = new ReportsPage(Driver);

            wait = new WebDriverWait(Driver, TimeSpan.FromSeconds(5));
        }