public void WhenICreateLicensesForDifferentProduct(int ProductLicenseCount, Product.ProductTypeEnum productTypeEnum) { //License the Product Logger.LogMethodEntry("ProductLicense", "LicenseTheProduct", base.IsTakeScreenShotDuringEntryExit); //To select the product stored in memory List <Product> products = new List <Product>(); products = Product.GetAll(productTypeEnum); for (int i = 1; i <= ProductLicenseCount; i++) { //License the Product new AvailableProductsPage().LicenseProduct(products[i - 1].Name); //Enter License Details new CreateLicensePage().EnterLicenseDetail(productTypeEnum); if (i != ProductLicenseCount) { //Click on Add Product Link new LicensesPage().ClickAddProductOptionLink(); } } Logger.LogMethodExit("ProductLicense", "LicenseTheProduct", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Select Licensing And Product Type For Synapse Product. /// <param name="productTypeEnum">This is product by type enum.</param> /// </summary> private void SelectEnableLicensingAndProductTypeOptions (Product.ProductTypeEnum productTypeEnum) { // Select Licensing And Product Type For Synapse Product Logger.LogMethodEntry("NewProductPage", "SelectEnableLicensingAndProductTypeOptions", base.IsTakeScreenShotDuringEntryExit); switch (productTypeEnum) { case Product.ProductTypeEnum.DigitalPath: case Product.ProductTypeEnum.PromotedAdminDigitalPath: //Select Digital Path License and Product this.SelectDigitalPathEnableLicesingOptionValue(); SelectDigitalPathProductTypeOptionValue(); break; case Product.ProductTypeEnum.NovaNET: //Select NovaNET License and Product this.SelectNovaNETEnableLicensingOptionValue(); this.SelectNovaNETProductTypeOptionValue(); break; case Product.ProductTypeEnum.DigitalPathDemo: this.SelectNovaNETEnableLicensingOptionValue(); this.SelectDigitalPathProductTypeOptionValue(); break; } Logger.LogMethodExit("NewProductPage", "SelectEnableLicensingAndProductTypeOptions", base.IsTakeScreenShotDuringEntryExit); }
public void WhenICreateLicenseForTheProduct(int ProductLicenseCount, Product.ProductTypeEnum productTypeEnum) { //License the Product Logger.LogMethodEntry("ProductLicense", "LicenseTheProduct", base.IsTakeScreenShotDuringEntryExit); //To select the product stored in memory Product product = Product.Get(productTypeEnum); //To add same product Multiple Times var produtname = product.Name; for (int i = 1; i <= ProductLicenseCount; i++) { //License the Product new AvailableProductsPage().LicenseProduct(produtname); //Enter License Details new CreateLicensePage().EnterLicenseDetail(productTypeEnum); if (i != ProductLicenseCount) { //Click on Add Product Link new LicensesPage().ClickAddProductOptionLink(); } } Logger.LogMethodExit("ProductLicense", "LicenseTheProduct", base.IsTakeScreenShotDuringEntryExit); }
public void WhenISelectProductAtCurriculum(Product.ProductTypeEnum productTypeEnum) { Product product = Product.Get(productTypeEnum); string productName = product.Name.ToString(); new ContentLibraryPage().SelectProductAtCurriculum(productName); }
/// <summary> /// Upload BannerAnd Icon Images For School Product. /// </summary> /// <param name="productTypeEnum">This is product type enum.</param> private void UploadBannerAndIconImagesForSchoolProduct (Product.ProductTypeEnum productTypeEnum) { // Create Product Logger.LogMethodEntry("NewProductPage", "UploadBannerAndIconImagesForSchoolProduct", base.IsTakeScreenShotDuringEntryExit); switch (productTypeEnum) { case Product.ProductTypeEnum.DigitalPath: case Product.ProductTypeEnum.PromotedAdminDigitalPath: //Upload Banner Image this.UploadProductBannerImageForDigitalPathProduct(); //Upload Product Icon Image this.UploadProductIconImageForDigitalPathProduct(); break; case Product.ProductTypeEnum.DigitalPathDemo: //Upload Banner Image this.UploadProductBannerImageForDigitalPathProduct(); //Upload Product Icon Image this.UploadProductIconImageForDigitalPathProduct(); //Upload Welcome Banner Image this.UploadWelcomeBannerImageForNovanetDemoProduct(); break; } Logger.LogMethodExit("NewProductPage", "UploadBannerAndIconImagesForSchoolProduct", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyForClassNotDisplayedInClassesChannel(Class.ClassTypeEnum classTypeEnum, Product.ProductTypeEnum productTypeEnum) { //Validate class name Logger.LogMethodEntry("CreateClass", "VerifyClassForMultipleMLDisplayedInClassesChannel", base.IsTakeScreenShotDuringEntryExit); //Get class and course name from memory Class Class = Class.Get(classTypeEnum); Product Product = Product.Get(productTypeEnum); string className = Class.Name + ": " + Product.Name; var stopwatch = new Stopwatch(); stopwatch.Start(); while (stopwatch.Elapsed.TotalMinutes < 15) { string actualClass = new HomePage().GetDisplayClassName(className); if (!(actualClass == className)) { break; } { new HomePage().GetDisplayClassName(className); } } Logger.LogAssertion("ValidateClassDisplayInClassesChannel", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreNotEqual(className, new HomePage().GetDisplayClassName(className))); Logger.LogMethodExit("CreateClass", "VerifyClassForMultipleMLDisplayedInClassesChannel", base.IsTakeScreenShotDuringEntryExit); }
public void WhenIAddProductToTheClass(string action, Product.ProductTypeEnum productTypeEnum) { //get the product Product product = Product.Get(productTypeEnum); string productName = product.Name; new CentralAdminDashboardPage().contineoTrial(action, productName); }
public void SelectProductInTheCurriculumDropdown(Product.ProductTypeEnum productName) { Logger.LogMethodEntry("GlobalHome", "SelectProductInTheCurriculumDropdown", base.IsTakeScreenShotDuringEntryExit); Product product = Product.Get(productName); string productTitle = product.Name.ToString(); new ContentLibraryPage().SelectProductFromCurriculumDropdown(productTitle); Logger.LogMethodExit("GlobalHome", "SelectProductInTheCurriculumDropdown", base.IsTakeScreenShotDuringEntryExit); }
public void clickEtextLink(Activity.ActivityTypeEnum etextName, Product.ProductTypeEnum productName) { // Click eText in Curriculum Channel Logger.LogMethodEntry("GlobalHome", "clickEtextLink", base.IsTakeScreenShotDuringEntryExit); new HomePage().ClickEtext(etextName, productName); Logger.LogMethodExit("GlobalHome", "clickEtextLink", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyWelcomeMessageText(Product.ProductTypeEnum productType) { Logger.LogMethodEntry("GlobalHome", "VerifyProductInTheCurriculumChannel", base.IsTakeScreenShotDuringEntryExit); VerifyDisplayOfWelcomeBannerImageAndMessageOneByOne(1); Logger.LogMethodExit("GlobalHome", "VerifyProductInTheCurriculumChannel", base.IsTakeScreenShotDuringEntryExit); }
public void RefreshCalendarFrame(Product.ProductTypeEnum productName) { //Validate assigned content in calendar Logger.LogMethodEntry("AssignmentCalendar", "RefreshCalendarFrame", base.IsTakeScreenShotDuringEntryExit); Product Product = Product.Get(productName); string digitalPathProductName = Product.Name.ToString(); new CalendarDefaultGlobalUXPage().VerifyAssignedTextOnCalendar(digitalPathProductName); Logger.LogMethodExit("AssignmentCalendar", "RefreshCalendarFrame", base.IsTakeScreenShotDuringEntryExit); }
public void CreateProductUsingProgram(Product.ProductTypeEnum productTypeEnum, Program.ProgramTypeEnum programTypeEnum) { //Creation of Product Logger.LogMethodEntry("CreateProduct", "CreateProductUsingProgram", base.IsTakeScreenShotDuringEntryExit); //Create Product new NewProductPage().CreateNewProduct( productTypeEnum, programTypeEnum); Logger.LogMethodExit("VerifyCreateNewProduct", "CreateProductUsingProgram", base.IsTakeScreenShotDuringEntryExit); }
public void CreateProductUsingProgram(Product.ProductTypeEnum productTypeEnum, Program.ProgramTypeEnum programTypeEnum) { //Creation of DP Product logger.LogMethodEntry("CreateProduct", "CreateProductUsingProgram", base.isTakeScreenShotDuringEntryExit); //Click On Create new Product Link new ManageProductsPage().ClickOnCreateNewProductLink(); //Create DP Product new NewProductPage().CreateNewProduct(productTypeEnum, programTypeEnum); logger.LogMethodExit("VerifyCreateNewProduct", "CreateProductUsingProgram", base.isTakeScreenShotDuringEntryExit); }
public void SelectProductFromCurriculumDropdown(Product.ProductTypeEnum productName) { Logger.LogMethodEntry("AssignmentCalendar", "SelectProductFromCurriculumDropdown", base.IsTakeScreenShotDuringEntryExit); //Get the Product Name from Test Data Product Product = Product.Get(productName); string digitalPathProductName = Product.Name.ToString(); CalendarDefaultGlobalUXPage calendarDefaultGlobalUXPage = new CalendarDefaultGlobalUXPage(); calendarDefaultGlobalUXPage.SelectProductInCurriculumDropdown(digitalPathProductName); Logger.LogMethodExit("AssignmentCalendar", "SelectProductFromCurriculumDropdown", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyProductInTheCurriculumChannel(Product.ProductTypeEnum productName) { Product Product = Product.Get(productName); string prodName = Product.Name.ToString(); //Validate class creation success message Logger.LogMethodEntry("SetUpWizard", "VerifyProductInTheCurriculumChannel", base.IsTakeScreenShotDuringEntryExit); Logger.LogAssertion("VerifyProductInTheCurriculumChannel", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual(prodName, new frmSetupWizardPage().VerifyProductName(prodName))); Logger.LogMethodExit("SetUpWizard", "VerifyProductInTheCurriculumChannel", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Create Product Based on Type. /// </summary> /// <param name="productTypeEnum">This is product type enum.</param> private void EnterDetailsBasedOnProductType (Product.ProductTypeEnum productTypeEnum) { Logger.LogMethodEntry("NewProductPage", "EnterDetailsBasedOnProductType", base.IsTakeScreenShotDuringEntryExit); switch (productTypeEnum) { case Product.ProductTypeEnum.HedCoreGeneral: case Product.ProductTypeEnum.HedMilGeneral: //Enter Product Details this.EnterDetailsForGeneralTypeProductForHed(); break; case Product.ProductTypeEnum.HedCoreProgram: //Enter Product Details this.EnterDetailsForProgramTypeProductForHed(); //Select Discipline Option Value SelectDisciplineNameToCreateHedProgramTypeProduct(); break; case Product.ProductTypeEnum.HedMilProgram: //Enter Product Details this.EnterDetailsForProgramTypeProductForHed(); //Select Discipline Option Value SelectDisciplineNameToCreateHedProgramTypeProduct(); //Select MyItLab Program Admin Reporting CheckBox this.SelectMyItLabProgramAdminReportingCheckBox(); break; //Create Digital Path and NovaNET Product case Product.ProductTypeEnum.DigitalPath: case Product.ProductTypeEnum.PromotedAdminDigitalPath: case Product.ProductTypeEnum.NovaNET: //Select License and Product Type Options this.SelectEnableLicensingAndProductTypeOptions(productTypeEnum); //Enter Product Details this.UploadBannerAndIconImagesForSchoolProduct(productTypeEnum); break; case Product.ProductTypeEnum.DigitalPathDemo: //Select License and Product Type Options this.SelectEnableLicensingAndProductTypeOptions(productTypeEnum); //Enter Demo Access Code this.EnterDemoAccessCode(); //Upload Banner Image for Demo Product this.UploadBannerAndIconImagesForSchoolProduct(productTypeEnum); break; } Logger.LogMethodExit("NewProductPage", "EnterDetailsBasedOnProductType", base.IsTakeScreenShotDuringEntryExit); }
public void WhenISelectProduct(Product.ProductTypeEnum productName) { //Method to select the Product using checkbox Logger.LogMethodEntry("setupwizard", "WhenISelectProduct", IsTakeScreenShotDuringEntryExit); //Get the Product Name from Test Data Product Product = Product.Get(productName); string prodName = Product.Name.ToString(); // Select the Checkbox of Product new frmSetupWizardPage().SelectProduct(prodName); Logger.LogMethodEntry("setupwizard", "WhenISelectProduct", IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Enter License Details /// </summary> public void EnterLicenseDetail(Product.ProductTypeEnum productType) { //Enter License Details logger.LogMethodEntry("CreateLicensePage", "EnterLicenseDetail", base.IsTakeScreenShotDuringEntryExit); try { //Get Start Date Value string getStartDate = DateTime.Now.ToString(CreateLicensePageResource. CreateLicense_Page_FromDate_Value); //Get End Date Value string getEndDate = DateTime.Now.AddDays(90).ToString(CreateLicensePageResource. CreateLicense_Page_ToDate_Value); //Wait for Create License Window base.WaitUntilWindowLoads(CreateLicensePageResource.CreateLicense_Page_Window_Title); base.SelectWindow(CreateLicensePageResource.CreateLicense_Page_Window_Title); base.WaitForElement(By.Id(CreateLicensePageResource. CreateLicense_Page_FromDate_Input_Id_Locator)); //Fill Start Date Value base.FillTextBoxById(CreateLicensePageResource. CreateLicense_Page_FromDate_Input_Id_Locator, getStartDate); base.WaitForElement(By.Id(CreateLicensePageResource. CreateLicense_Page_ToDate_Input_Id_Locator)); //Fill End Date Value base.FillTextBoxById(CreateLicensePageResource. CreateLicense_Page_ToDate_Input_Id_Locator, getEndDate); base.WaitForElement(By.Id(CreateLicensePageResource. CreateLicense_Page_Quantity_Input_Id_Locator)); //Fill License Qunatity base.FillTextBoxById(CreateLicensePageResource. CreateLicense_Page_Quantity_Input_Id_Locator, CreateLicensePageResource. CreateLicense_Page_Quantity_Input_Value); //Click on Save and Return Button this.ClickOnSaveAndReturnButton(); //Wait to pop up get close if (base.IsPopUpClosed(3)) { //Store License Details In Memory StoreTheLicenseDetailsInMemory(getStartDate, getEndDate, Convert.ToInt32(CreateLicensePageResource. CreateLicense_Page_Quantity_Input_Value), productType); } } catch (Exception e) { ExceptionHandler.HandleException(e); } logger.LogMethodExit("CreateLicensePage", "EnterLicenseDetail", base.IsTakeScreenShotDuringEntryExit); }
public void SelectThePeriod(Product.ProductTypeEnum productTypeEnum) { Logger.LogMethodEntry("CustomizeContent", "ClickOnOkButton", base.IsTakeScreenShotDuringEntryExit); //Get the expected period name Product product = Product.Get(productTypeEnum); string periodName = product.PeriodName.ToString(); // Select the period at Assign window new AssignContentPage().SelectPeriod(periodName); Logger.LogMethodExit("CustomizeContent", "ValidateAssignedContentInCalendarFrame", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyDisplayOfProductBrandingImages(int productCount, Product.ProductTypeEnum productType) { Logger.LogMethodEntry("GlobalHome", "VerifyDisplayOfProductBrandingImages", base.IsTakeScreenShotDuringEntryExit); IList <Product> demoProductList = Product.GetAll(productType); IList <string> productIdList = new HomePage().GetProductIdOfProductBrandingImagesDispayed(); var result = demoProductList.Where(product => productIdList.Contains(product.ProductId)); Assert.AreEqual(productCount, result.Count()); Logger.LogMethodExit("GlobalHome", "VerifyDisplayOfProductBrandingImages", base.IsTakeScreenShotDuringEntryExit); }
public void SelectProgramTypeProductFromCatalog( Product.ProductTypeEnum productTypeEnum) { //Add Course From Search Catalog Logger.LogMethodEntry("InstructorSearchCatalog", "AddProductFromSearchCatalog", base.IsTakeScreenShotDuringEntryExit); //Closing the Announcement(s) new AnnouncementPopUpLightBoxUXPage().CloseAnnouncementPopUp(); //Click 'Search Catalog' Link new HEDGlobalHomePage().ClickSearchCatalogOption(); //Adding Product From Instructor Search Catalog new CourseCatalogMainPage().AddProductFromSearchCatalog(productTypeEnum); Logger.LogMethodExit("InstructorSearchCatalog", "AddProductFromSearchCatalog", base.IsTakeScreenShotDuringEntryExit); }
public void OneProductShouldBeLicensedInOrganization(Product.ProductTypeEnum productType , int licenceCount) { Logger.LogMethodEntry("RegisterDemoAccount", "OneProductShouldBeLicensedInOrganization", base.IsTakeScreenShotDuringEntryExit); //Ensure that product exists Product.Get(productType); User.GetAll(User.UserTypeEnum.DPDemoUser).Single( u => u.ProductInstance == "1") .CreationDate = DateTime.Now; Logger.LogMethodExit("RegisterDemoAccount", "OneProductShouldBeLicensedInOrganization", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyTheProduct( Product.ProductTypeEnum productTypeEnum) { //Verify The Product Logger.LogMethodEntry("AccessClass", "VerifyTheProduct", IsTakeScreenShotDuringEntryExit); //Get product from memory Product product = Product.Get(productTypeEnum); //Assert for product name Logger.LogAssertion("VerifyProductName", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.AreEqual (product.Name, new HomePage().GetTheProduct(product.Name))); Logger.LogMethodExit("AccessClass", "VerifyTheProduct", IsTakeScreenShotDuringEntryExit); }
public void LicenseTheProduct(Product.ProductTypeEnum productTypeEnum) { //License the Product Logger.LogMethodEntry("ProductLicense", "LicenseTheProduct", base.IsTakeScreenShotDuringEntryExit); //To select the product stored in memory Product product = Product.Get(productTypeEnum); //License the Product new AvailableProductsPage().LicenseProduct(product.Name); //Enter License Details new CreateLicensePage().EnterLicenseDetail(productTypeEnum); Logger.LogMethodExit("ProductLicense", "LicenseTheProduct", base.IsTakeScreenShotDuringEntryExit); }
public void SelectProductTypeInRightFrame (Product.ProductTypeEnum productTypeEnum) { //Search and select Product in right frame logger.LogMethodEntry("CourseAssociation", "SelectProductTypeInRightFrame", base.isTakeScreenShotDuringEntryExit); //To select the product stored in memory Product product = Product.Get(productTypeEnum); //Click Search Product Link new ProductManagementContainerPage().ClickSearchProductLink(); //Search the Product new ProductSearchPage().SearchProduct(product.Name); logger.LogMethodExit("CourseAssociation", "SelectProductTypeInRightFrame", base.isTakeScreenShotDuringEntryExit); }
public void VerifyProductInTheCurriculumChannel( Product.ProductTypeEnum productTypeEnum) { //Verify the Product in the curriculum channel Logger.LogMethodEntry("GlobalHome", "VerifyProductInTheCurriculumChannel", base.IsTakeScreenShotDuringEntryExit); // Get the Product name from memory Product product = Product.Get(productTypeEnum); //Assert Product Name Displayed Logger.LogAssertion("VerifyDisplayOfProductName", ScenarioContext. Current.ScenarioInfo.Title, () => Assert.AreEqual (product.Name, new ContentLibraryPage().GetProductName())); Logger.LogMethodExit("GlobalHome", "VerifyProductInTheCurriculumChannel", base.IsTakeScreenShotDuringEntryExit); }
public void VerifyDisplayOfDragAndDropActivity(string activityName, Product.ProductTypeEnum productName) { Logger.LogMethodEntry("AssignmentCalendar", "VerifyDisplayOfDragAndDropActivity", base.IsTakeScreenShotDuringEntryExit); //Get the Product Name from Test Data Product Product = Product.Get(productName); string digitalPathProductName = Product.Name.ToString(); Logger.LogAssertion("VerifyAssignedAssetUnderPeriodInCalendarDayView", ScenarioContext.Current.ScenarioInfo.Title, () => Assert.IsTrue(new CalendarDefaultGlobalUXPage().IsDragDropActivityPresentInCalendar(activityName, digitalPathProductName))); base.SelectDefaultWindow(); Logger.LogMethodExit("AssignmentCalendar", "VerifyDisplayOfDragAndDropActivity", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Add Product From Instructor Search Catalog. /// </summary> /// <param name="productType">This is Product by Type.</param> public void AddProductFromSearchCatalog (Product.ProductTypeEnum productType) { // add course from instructor search catalog Logger.LogMethodEntry("CourseCatalogMainPage", "AddProductFromSearchCatalog", base.IsTakeScreenShotDuringEntryExit); try { // get product from memory Product product = Product.Get(productType); //Program course Guid Name Guid programCourseGuidName = Guid.NewGuid(); // generate new course name Guid switch (productType) { case Product.ProductTypeEnum.MyITLabForOffice2013Program: this.SearchCourseByTextBookName(product.Name); break; case Product.ProductTypeEnum.MyITLabForOffice2013General: this.BrowseCourseByDiscipline(); break; } // click next button this.ClickOnNextButton(); // search product in instructor catalog this.SearchCourseInInstructorCatalog(product.Name); // Check to verify the availibility of finish button CatalogFinishButtonAvailability(programCourseGuidName); // verify is Search Catalog Pop Up Closed if (base.IsPopUpClosed(2)) { // save course details in memory this.StoreCourseInMemory(programCourseGuidName, Course.CourseTypeEnum.MyITLabOffice2013Program); } } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("CourseCatalogMainPage", "AddProductFromSearchCatalog", base.IsTakeScreenShotDuringEntryExit); }
public void SelectProductTypeInRightFrame( Product.ProductTypeEnum productTypeEnum) { //Select Product Logger.LogMethodEntry("ApproveCourse", "SelectProductTypeInRightFrame", base.IsTakeScreenShotDuringEntryExit); // Purpose: To pick the product stored in memory Product product = Product.Get(productTypeEnum); //Click Search Product Link new ProductManagementContainerPage().ClickSearchProductLink(); //Search Product new ProductSearchPage().SearchProduct(product.Name); Logger.LogMethodExit("ApproveCourse", "SelectProductTypeInRightFrame", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Create New Product. /// </summary> /// <param name="productTypeEnum">This is product type enum.</param> /// <param name="programTypeEnum">This is program type enum.</param> public void CreateNewProduct (Product.ProductTypeEnum productTypeEnum, Program.ProgramTypeEnum programTypeEnum) { //Create New product Logger.LogMethodEntry("NewProductPage", "CreateNewProduct", base.IsTakeScreenShotDuringEntryExit); try { //Select Window this.SelectCreateNewProductWindow(); //Enter Product Name String productName = this.EnterProductName(productTypeEnum); //Click On Search Program Link Thread.Sleep(5000); ClickSearchProgramsLink(); //Enter Program Name To Search EnterProgramNameToSearch(programTypeEnum); //Select Program Name this.SelectProgramNameInTheSearchFrame(); //Create Product Based on Type EnterDetailsBasedOnProductType(productTypeEnum); //for demo Product String demoAccessCode = string.Empty; String welcomeMessage = string.Empty; if (productTypeEnum == Product.ProductTypeEnum.DigitalPathDemo) { demoAccessCode = base.GetValueAttributeById(NewProductPageResource. NewProduct_Page_AccessCode_Textbox_Id_Locator); welcomeMessage = this.EnterWelcomeMessage(); } //Click To Save Button this.ClickToSaveProduct(); //Store Product Details in Memory StoreProductDetailsInMemory(productTypeEnum, productName, demoAccessCode, welcomeMessage); } catch (Exception e) { ExceptionHandler.HandleException(e); throw; } Logger.LogMethodExit("NewProductPage", "CreateNewProduct", base.IsTakeScreenShotDuringEntryExit); }