public void P20_1_a11_SCORM_Banner_Actions_Request_Access_57923()
        {
            CommonSection.CreteNewScorm(scormtitle + "TC57923");
            _test.Log(Status.Info, "Creating New Scorm");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Content is Created");

            Assert.IsTrue(ContentDetailsPage.isAccessApprovalAcordianDisplay());
            _test.Log(Status.Pass, "Verify Access Approval Acordian Display");
            ContentDetailsPage.Accordians.ClickEdit_AccessApproval();
            Assert.IsTrue(AccessApprovalPage.verifyFields());
            _test.Log(Status.Pass, "Verify Approval required, Search for options are available on page");
            // Driver.Instance.Checkout();
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Asign Approver path to content");
            StringAssert.AreEqualIgnoringCase("The approval path is now associated with the content.", ContentDetailsPage.VerifyFeedbackMessage());
            _test.Log(Status.Pass, "Verify feedback message");
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click check in button");
            // CommonSection.Logout();
            //  LoginPage.LoginAs("siteadmin").WithPassword("password").Login();
            CommonSection.SearchCatalog('"' + scormtitle + "TC57923" + '"');
            _test.Log(Status.Info, "Search created scrom from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC57923");
            _test.Log(Status.Info, "Click searched scrom course title");
            Assert.IsTrue(ContentDetailsPage.isRequestAccessbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display in content details page");
            ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest");
            _test.Log(Status.Info, "Submit Request Access");
            Assert.IsTrue(ContentDetailsPage.isCancleRequestbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Cancle Request Access button display");
            TC57930_1 = true;
        }
示例#2
0
        public void P20_1_tc_57027_Bundles_Request_Access()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57027");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Subscriptions");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57027", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57027");
            ContentDetailsPage.ClickCheckInbutton();
            Assert.IsTrue(ContentDetailsPage.isAccessApprovalAcordianDisplay());
            _test.Log(Status.Pass, "Verify Access Approval Acordian Display");
            ContentDetailsPage.Accordians.ClickEdit_AccessApproval();
            Assert.IsTrue(AccessApprovalPage.verifyFields());
            _test.Log(Status.Pass, "Verify Approval required, Search for options are available on page");

            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Asign Approver path to content");
            StringAssert.AreEqualIgnoringCase("The approval path is now associated with the content.", ContentDetailsPage.VerifyFeedbackMessage());
            _test.Log(Status.Pass, "Verify feedback message");
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click check in button");

            CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57027" + '"');
            _test.Log(Status.Info, "Search created scrom from Catalog");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57027");
            _test.Log(Status.Info, "Click searched scrom course title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display in content details page");
            ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest");
            _test.Log(Status.Info, "Submit Request Access");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Cancle Request Access button display");

            ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            TC57028 = true;
        }
示例#3
0
 public void P20_1_A02_User_Request_Access_To_Curriculum_26343()
 {
     #region Set access approval
     ContentDetailsPage.ClickEditContent_New19_2();
     _test.Log(Status.Info, "Click edit content button");
     DocumentPage.ClickButton_CheckOut();
     ContentDetailsPage.Accordians.ClickEdit_AccessApproval();
     Assert.IsTrue(AccessApprovalPage.verifyFields());
     _test.Log(Status.Pass, "Verify Approval required, Search for options are available on page");
     AccessApprovalPage.AssignApproverPath();
     _test.Log(Status.Info, "Asign Approver path to content");
     StringAssert.AreEqualIgnoringCase("The approval path is now associated with the content.", ContentDetailsPage.VerifyFeedbackMessage());
     _test.Log(Status.Pass, "Verify feedback message");
     CurriculumContentPage.Remove_PreRequisites();
     DocumentPage.ClickButton_CheckIn();
     CommonSection.SearchCatalog(curriculamtitle + "_TC26367");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26367");
     _test.Log(Status.Info, "Click on search result from catalog");
     #endregion
     Assert.IsTrue(ContentDetailsPage.RequestAccess_Curriculum());
     Assert.IsTrue(ContentDetailsPage.RequestAccessHistory_Curriculum());
     Assert.IsTrue(ContentDetailsPage.CancelRequestAccess_Curriculum());
 }