public void A10_Test_AccessKeys_Accordian_For_AICC_35819() { #region Create AICC Course Document documentpage = new Document(driver); string expectedresult = "Summary"; string expectedresult1 = "The course was created."; AICC aicccourse = new AICC(driver); Scorm12 CreateScorm = new Scorm12(driver); CommonSection.CreateLink.AICC(); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0")); CreateScorm.buttoncreateclick(driver, true); string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]")); Assert.IsTrue(driver.Compareregexstring(expectedresult, actualresult)); driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]")); Assert.IsTrue(driver.Compareregexstring(expectedresult1, driver.gettextofelement(By.XPath("//*[contains(@class,'alert alert-success')]")))); aicccourse.populatesummaryform(driver, browserstr); Assert.IsTrue(CreateScorm.buttonsaveclick(driver)); #endregion GeneralCoursePage.setCost("5"); _test.Log(Status.Info, "Cost Has Been Set"); DocumentPage.ClickButton_CheckOut(); Assert.IsTrue(ClassroomCoursePage.enableAccessKeys()); _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for AICC Course"); }
public void a16_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_AICC_Course_35688() { #region Create AICC Course Document documentpage = new Document(driver); string expectedresult = "Summary"; string expectedresult1 = "The course was created."; AICC aicccourse = new AICC(driver); Scorm12 CreateScorm = new Scorm12(driver); CommonSection.CreateLink.AICC(); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0")); CreateScorm.buttoncreateclick(driver, true); // UploadaiccPage.UploadfileandClickCreate(); CreateAICCPage.CreateAICC(AICCTitle + "TC35688"); _test.Log(Status.Info, "Create a new AICC Course"); #endregion Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed()); _test.Log(Status.Info, "Verify Survey accordian display on RHS side"); ContentDetailsPage.Accordians.ClickManage_Survey(); _test.Log(Status.Info, "Click Survey Manage button"); Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid")); _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record"); SurveysPage.ClickAssignSurveysnew(); _test.Log(Status.Info, "Click on Assign Surveys Button"); Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed()); _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal"); string Surveytitle_OnEnroll = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When learner enrolls"); _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When learner enrolls"); SurveysPage.ClickAssignSurveysnew(); _test.Log(Status.Info, "Click on Assign Surveys Button"); string Surveytitle_OnContentComplete = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When content completed"); _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When content completed"); SurveysPage.Click_backbutton(); ContentDetailsPage.ClickCheckInbutton(); CommonSection.SearchCatalog(AICCTitle + "TC35688"); SearchResultsPage.ClickCourseTitle(AICCTitle + "TC35688"); Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete)); Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable); ContentDetailsPage.ClickEnroll(); Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnEnroll)); //AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent(); // Assert.IsFalse(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnContentComplete)); }
public void tc_7401_Create_a_new_AICC_course() { Document documentpage = new Document(driver); // driver.UserLogin("admin", browserstr); string expectedresult = "Summary"; string expectedresult1 = "The course was created."; //driver.openadminconsolepage(); AICC aicccourse = new AICC(driver); Scorm12 CreateScorm = new Scorm12(driver); CommonSection.CreateLink.AICC(); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0")); driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0")); CreateScorm.buttoncreateclick(driver, true); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); GeneralCoursePage.SearchTagForNewContent(tagname + "TC7401"); _test.Log(Status.Info, "Searching Tag."); string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]")); Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); CreateAICCPage.Title(AICCCourseTitle + "TC7401"); EditSummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Create a new AICC Course"); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7401')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC7401", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes")); _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet"); CommonSection.SearchCatalog(AICCCourseTitle + "TC7401"); Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(AICCCourseTitle + "TC7401")); _test.Log(Status.Pass, "Verify Created content is Searched"); }
public void InitializeBase(IWebDriver objDriver) { //LoginPage = new MdnHomePage(driver); //LoginPage1 = new MdnLoginPage1(driver); //HomePage = new MdnHomePage(driver); //CommonPage = new MdnCommonPage(driver); #region initialize old driver = objDriver; CheckOutobj = new CheckOut(driver); takeScreenhsot = new ScreenShot(driver); approvalrequest = new Approvalrequestobject(driver); instructors = new Instructor(driver); approvalrequest = new Approvalrequestobject(driver); DomainConsoleobj = new DomainConsole(driver); ManageGradebookobj = new ManageGradebook(); Instructorsobj = new Instructorspof(); MyResponsibilitiesobj = new My_Responsibilities(driver); manageuserobj = new ManageUsers(driver); objTrainingHome = new TrainingHomes(driver); objCurriculum = new CreateCurriculum(driver); classroomcourse = new ClassroomCourse(driver); ContentSearchobj = new ContentSearch(driver); objCreate = new Create(driver); detailspage = new Details(driver); TrainingHomeobj = new TrainingHomes(driver); AdminstrationConsoleobj = new AdminstrationConsole(driver); Testsobj = new Tests(driver); Detailsobj = new Details(driver); EditSummaryobj = new EditSummary(driver); Scorm1_2obj = new Scorm1_2(driver); EditQuestionobj = new EditQuestion(driver); EditQuestionGroupobj = new EditQuestionGroup(driver); AddUsrObj = new AddUsers(driver); generalcourseobj = new GeneralCourse(driver); myteachingscheduleobj = new MyTeachingSchedule(); professionaldevelopmentobj = new ProfessionalDevelopments(driver); documentobj = new Document(driver); CreateNewAccountobj = new CreateNewAccount(driver); ManageUsersobj = new ManageUsers(driver); Createobj = new Create(driver); summaryobj = new Summary(driver); reauiredtrainingconsoleobj = new RequiredTrainingConsoles(driver); requiredtrainingobj = new RequiredTraining(driver); Trainingobj = new Training(driver); Loginobj = new Login(driver); Contentobj = new Content(driver); Creditsobj = new Credits(driver); AddContentobj = new AddContent(driver); Summaryobj = new Summary(driver); ScheduleAndManageSectionobj = new ScheduleAndManageSection(driver); SearchResultsobj = new SearchResults(driver); CourseSectionobj = new CreateNewCourseSectionAndEventPage(driver); Transcriptsobj = new Transcripts(driver); Productsobj = new Products(driver); BrowseTrainingCatalogobj = new BrowseTrainingCatalog(driver); ShoppingCartsobj = new ShoppingCarts(driver); ProfessionalDevelopmentsobj = new ProfessionalDevelopments(driver); Createnewproficencyscaleobj = new Createnewproficencyscale(driver); Createnewcompetencyobj = new Createnewcompetency(driver); CreateNewSucessProfileobj = new CreateNewSucessProfile(driver); SucessProfileobj = new SucessProfile(driver); Searchobj = new Search(driver); TrainingActivitiesobj = new TrainingActivities(driver); ProfessionalDevelopments_learnerobj = new ProfessionalDevelopments_learner(driver); Organizationobj = new Organization(driver); DevelopmentPlansobj = new DevelopmentPlans(driver); AddDevelopmentActivitiesobj = new AddDevelopmentActivities(driver); MyAccountobj = new MyAccount(driver); UsersUtilobj = new UsersUtil(driver); MyCalendersobj = new MyCalenders(driver); MyReportsobj = new MyReports(driver); Config_Reportsobj = new Config_Reports(driver); ConfigurationConsoleobj = new ConfigurationConsole(driver); ApprovalPathobj = new ApprovalPath(driver); MyMessageobj = new MyMessages(driver); MessageUtilobj = new MessageUtil(driver); MyRequestsobj = new MyRequests(driver); Blogsobj = new Blogs(driver); CollabarationSpacesobj = new CollabarationSpaces(driver); Faqsobj = new Faqs(driver); HomePageFeedobj = new HomePageFeed(driver); ProductTypesobj = new ProductTypes(driver); Surveysobj = new Surveys(driver); SurveyScalesobj = new SurveyScales(driver); AuditingConsolesobj = new AuditingConsoles(driver); Categoryobj = new Category(driver); Trainingsobj = new Trainings(driver); VirtualMeetingsobj = new VirtualMeetings(driver); CreditTypeobj = new CreditType(driver); AssignedUserobj = new AssignedUser(driver); AddUsersobj = new AddUsers(driver); CustomFieldobj = new CustomField(driver); CreateNewCustomFieldobj = new CreateNewCustomField(driver); EditFieldobj = new EditField(driver); EducationLevelobj = new EducationLevel(driver); EditOrganizationobj = new EditOrganization(driver); SelectManagerobj = new SelectManager(driver); Roleobj = new Role(driver); SelectTrainingPOCobj = new SelectTrainingPOC(driver); Complexobj = new Complex(driver); AccountCodesobj = new AccountCodes(driver); AccountCodeTypesobj = new AccountCodeTypes(driver); DiscountCodesobj = new DiscountCodes(driver); ManageTaxRatesobj = new ManageTaxRates(driver); TaxItemCategoriesobj = new TaxItemCategories(driver); Certificatesobj = new Certificates(driver); CourseProvidersobj = new CourseProviders(driver); ExternalLearningsobj = new ExternalLearnings(driver); ExternalLearningConsolesobj = new ExternalLearningConsoles(driver); ExternalLearningtypesobj = new ExternalLearningtypes(driver); RequiredTrainingConsolesobj = new RequiredTrainingConsoles(driver); SelectProfileobj = new SelectProfile(driver); TrainingProfilesobj = new TrainingProfiles(driver); EditTrainingProfileobj = new EditTrainingProfile(driver); MergeUsersobj = new MergeUsers(driver); UserGroupobj = new UserGroup(driver); SelectCertificateobj = new SelectCertificate(driver); ManageProficencyScaleobj = new ManageProficencyScale(driver); ArchivedProficencyScaleobj = new ArchivedProficencyScale(driver); MappedContentobj = new MappedContent(driver); MappedCompetencyobj = new MappedCompetency(driver); ManageSuccessProfileobj = new ManageSuccessProfile(driver); FAQ_lobj = new FAQ_l(driver); Announcements_lobj = new Announcements_l(driver); JobTitlesobj = new JobTitles(driver); ManageJobTitleobj = new ManageJobTitle(driver); ManagePricingScheduleobj = new ManagePricingSchedule(driver); ExternalLearningSearchobj = new ExternalLearningSearch(driver); urlobj = new url(driver); skinobj = new skin(driver); MyOwnLearningobj = new MyOwnLearningUtils(driver); CurrentTrainingsobj = new CurrentTrainings(driver); scormobj = new Scorm12(driver); aicccourse = new AICC(driver); ojtcourse = new OJT(driver); TrainingCatalogobj = new TrainingCatalogUtil(driver); accesskeys = new AccessKeys(driver); #endregion }