public void P20_1_a01_Add_SCROM_Course_to_Cart_26227() { CommonSection.CreteNewScorm(scormtitle + "TC26227"); _test.Log(Status.Info, "Creating New Scorm"); Assert.IsTrue(ContentDetailsPage.IsContentCreated()); _test.Log(Status.Pass, "Verify New Scorm Course is Created"); Assert.IsTrue(ContentDetailsPage.isCostNSalesTaxAccordiandisplayed()); _test.Log(Status.Pass, "Verify Cost and Sales Tax Accordian Display"); ContentDetailsPage.Accordians.ClickEdit_CostNSalesTax(); _test.Log(Status.Info, "Click on Cost & SalesTax Accordian Edit button"); Assert.IsTrue(CostPage.VerifyDifferentPortlets()); _test.Log(Status.Pass, "Verify the Manage Sales Tax, Default Cost, Alternate Costs, Pricing Schedules sections are displayed"); CostPage.DefaultCostAs("15").Save(); _test.Log(Status.Info, "Enter Defailt Cost and Click Save"); Assert.IsTrue(CostPage.Successmessage("The default cost was saved.")); _test.Log(Status.Pass, "Verfy Default cost is saved"); ContentDetailsPage.Click_Check_in(); CommonSection.Logout(); LoginPage.LoginAs("srlearner101").WithPassword("").Login(); CommonSection.SearchCatalog('"' + scormtitle + "TC26227" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + scormtitle + "TC26227" + "from Catalog"); SearchResultsPage.ClickCourseTitle(scormtitle + "TC26227"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed()); //57254 AC6 ContentDetailsPage.ClickAddtoCart_GeneralCourse(); //StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different"); Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay()); Assert.IsTrue(CommonSection.isCountincrease_ShopingCart()); CommonSection.ClickShoppingCart(); ShoppingCartPage.CompletePurchaseProcess(); OrderPage.Click_PurchasedContentTitle(); Assert.IsTrue(ContentDetailsPage.OverviewTab.Costportlet.isViewOrderlinkDisplay()); ContentDetailsPage.OverviewTab.Costportlet.ClickViewOrderlink(); Assert.IsTrue(OrderDetailsPage.VerifyPurchasedContent(scormtitle + "TC26227")); TC26372 = true; TC57930 = true; }
public void P20_1_tc_56398_User_Views_Access_Key_usage_info_when_enrolling_in_curriculum() { #region Create a general course CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC56398"); AdminContentDetailsPage.AddCost(); ContentDetailsPage.ClickEditContent_New19_2(); DocumentPage.ClickButton_CheckIn(); #endregion #region Create a curriculum CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC56398"); _test.Log(Status.Info, "Create A new Curriculum"); ContentDetailsPage.ClickCurriculumContentEditButton(); CurriculumContentPage.ClickAddCurriculumBlock(); CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC56398"); CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC56398"); CurriculumContentPage.ClickBackbutton(); ContentDetailsPage.Accordians.ClickEdit_CostNSalesTax(); CostPage.DefaultCostAs("5").Save(); CostPage.ClickReturn(); ContentDetailsPage.Accordians.ClickEdit_AccessKey(); AccessKeysPage.EnableAccessKey("Yes").Save(); DocumentPage.ClickButton_CheckIn(); #endregion CommonSection.SearchCatalog(curriculamtitle + "_TC51560"); _test.Log(Status.Info, "Enter curriculum title in global search box"); SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC51560"); _test.Log(Status.Info, "Click on search result from catalog"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay()); ContentDetailsPage.OverviewTab.click_AddtoCart(); CommonSection.Completepurchage(curriculamtitle + "_TC51560"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay()); ContentDetailsPage.ContentBanner.Click_Startbutton(); Assert.IsTrue(ContentDetailsPage.isContentTabSelected()); Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse()); ContentDetailsPage.Click_HistoryTab_Curriculum(); Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyEnrolledinSectionwithAccessKey()); }