public void FilterTreeControlTopicScreen() { NavigateToManageTopics(); // Click on Create Button. TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string topicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10); topicdatamaintainance.SetTopicName(topicName); topicdatamaintainance.SetTopicDescription(topicName + " Description"); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); //filter by name - subject topicdatamaintainance.SetFilter(FilterSubject); //Select first statement. topicdatamaintainance.SelectStatement(); //find matching statement descriptions. bool returnValue = topicdatamaintainance.MatchOnStatementDescription(FilterSubject); Assert.IsTrue(returnValue, "Statement Description does not match subject selected."); }
public void PopulateStatement() { //Login NavigateToManageTopics(); // SeleniumHelper.NavigateMenu("Tasks", "Curriculum", "Manage Curriculum Topics"); TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string topicName = topicdatamaintainance.GenerateRandomString(40); topicdatamaintainance.SetTopicName(topicName); topicdatamaintainance.SetTopicDescription(topicName + " Description"); //Selecting NC Year And assessment Period SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); topicdatamaintainance.SelectStatement(); topicdatamaintainance = topicdatamaintainance.ClickSaveButton(); topicdatamaintainance.SaveTopicSuccess(); TopicSearchPanel topicsearchpanel = new TopicSearchPanel(); topicsearchpanel.setTopicName(topicName); Thread.Sleep(3000); topicsearchpanel = topicsearchpanel.Search(); Assert.AreEqual(topicsearchpanel.GetSearchResultCount(), "1"); }
public void CreateTopicBasicDetails() { NavigateToManageTopics(); TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string NewTopicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10); topicdatamaintainance.SetTopicName(NewTopicName); topicdatamaintainance.SetTopicDescription(NewTopicName + " Description"); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); //Saving the Topic topicdatamaintainance = topicdatamaintainance.ClickDialogOkButton(); topicdatamaintainance.SaveTopicSuccess(); Thread.Sleep(3000); List <string> topicNames = topicdatamaintainance.GetTopicNamesFromPicker(); //assert to verify that the Topic is listed in the right hand side picker Assert.IsTrue(topicNames.Contains(NewTopicName.Replace(" ", string.Empty).ToLower())); // topicdatamaintainance.ClickDeleteButton(NewTopicName); // topicdatamaintainance.ContinueButtonClick(); }
public void EditTopic() { //Login NavigateToManageTopics(); TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string NewtopicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10); topicdatamaintainance.SetTopicName(NewtopicName); topicdatamaintainance.SetTopicDescription(NewtopicName + " Description"); //Selecting NC Year And assessment Period SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); //Choose Colour. topicdatamaintainance.AssignColour(); topicdatamaintainance.SelectStatement(); topicdatamaintainance = topicdatamaintainance.ClickSaveButton(); topicdatamaintainance.SaveTopicSuccess(); TopicSearchPanel topicsearchpanel = new TopicSearchPanel(); topicsearchpanel.setTopicName(NewtopicName); Thread.Sleep(2000); topicsearchpanel = topicsearchpanel.Search(); Assert.AreEqual(topicsearchpanel.GetSearchResultCount(), "1"); //select the topic. Thread.Sleep(1000); topicsearchpanel.SelectResult(); Thread.Sleep(2000); //Clear Statements. topicdatamaintainance.ClearStatement(); //filter by name - subject topicdatamaintainance.SetFilter(FilterSubject); //After selecting another statement topicdatamaintainance.SelectStatement(); //Saving the Topic topicdatamaintainance = topicdatamaintainance.ClickSaveButton(); topicdatamaintainance.SaveTopicSuccess(); // run the delete. topicdatamaintainance = topicdatamaintainance.SelectTopicDropDown(); topicdatamaintainance.ClickDeleteButton(NewtopicName); topicdatamaintainance.ContinueButtonClick(); }
public void GenerateTopicTemplate() { NavigateToManageTopics(); TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); // Create New Topic topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string topicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10); topicdatamaintainance.SetTopicName(topicName); topicdatamaintainance.SetTopicDescription(topicName + " Description"); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); //////Saving the Topic topicdatamaintainance = topicdatamaintainance.ClickDialogOkButton(); topicdatamaintainance.SaveTopicSuccess(); Thread.Sleep(3000); //Select Statement topicdatamaintainance.SelectStatement(5); //Allocate Statement topicdatamaintainance.AllocateStatmentByName(topicName); //Generate Template for created Topic topicdatamaintainance = topicdatamaintainance.SelectTopicDropDownByName(topicName); topicdatamaintainance.GenerateTemplateSelecteTopicClick(topicName); //Open Marksheet topicdatamaintainance.OpenPosTemplate(topicName); POSDataMaintainanceScreen posDataMaintainanceScreen = new POSDataMaintainanceScreen(); posDataMaintainanceScreen.SearchFilterButtonClick(); posDataMaintainanceScreen.SelectMarksheetColumnName("En Reading Comp Stat 1.01"); List <IWebElement> columnList = MarksheetGridHelper.FindCellsOfColumnByColumnNameForPOS("En Reading Comp Stat 1.01"); }
public void DefaultTermOnYearSelection() { NavigateToManageTopics(); // Click on Create Button. TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string topicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10); topicdatamaintainance.SetTopicName(topicName); topicdatamaintainance.SetTopicDescription(topicName + " Description"); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, Year4GroupSelected); WaitForElement(TimeSpan.FromSeconds(MarksheetConstants.Timeout), By.CssSelector("input[name='NCYear.dropdownImitator']")); Thread.Sleep(1000); bool foundMatchingTerm = topicdatamaintainance.MatchTermOption(KeyStageTermSelected); Assert.IsTrue(foundMatchingTerm, "Matching Term Key Stage was not found"); }
public void CreatenDeleteTopic() { NavigateToManageTopics(); TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string topicName = topicdatamaintainance.GenerateRandomString(40); topicdatamaintainance.SetTopicName(topicName); topicdatamaintainance.SetTopicDescription(topicName + " Description"); //Selecting NC Year And assessment Period SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); //Saving the Topic topicdatamaintainance = topicdatamaintainance.ClickSaveButton(); topicdatamaintainance.SaveTopicSuccess(); TopicSearchPanel topicsearchpanel = new TopicSearchPanel(); topicsearchpanel.setTopicName(topicName); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicSearchYearDropdownInitiator, YearGroupSelected); Thread.Sleep(3000); topicsearchpanel = topicsearchpanel.Search(); Assert.AreEqual(topicsearchpanel.GetSearchResultCount(), "1"); topicdatamaintainance = topicdatamaintainance.SelectTopicDropDown(); topicdatamaintainance.DeleteButtonClick(); topicdatamaintainance.ContinueButtonClick(); }
public void SearchTopicWithNameAndYear() { NavigateToManageTopics(); // Click on Create Button. TopicDataMaintainance topicdatamaintainance = new TopicDataMaintainance(); topicdatamaintainance = topicdatamaintainance.ClickCreateButton(); // Generating Basice Details string NewtopicName = "Selenium Test Topic " + topicdatamaintainance.GenerateRandomString(10); topicdatamaintainance.SetTopicName(NewtopicName); topicdatamaintainance.SetTopicDescription(NewtopicName + " Description"); //SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, "Curriculum Year 1"); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicYearDropdownInitiator, YearGroupSelected); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicTermDropdownInitiator, TermSelected); //Saving the Topic topicdatamaintainance = topicdatamaintainance.ClickSaveButton(); topicdatamaintainance.SaveTopicSuccess(); //search for saved topic TopicSearchPanel topicsearchpanel = new TopicSearchPanel(); topicsearchpanel.setTopicName(NewtopicName); SeleniumHelper.ChooseSelectorOption(topicdatamaintainance.TopicSearchYearDropdownInitiator, YearGroupSelected); Thread.Sleep(3000); topicsearchpanel = topicsearchpanel.Search(); Assert.AreEqual(topicsearchpanel.GetSearchResultCount(), "1"); // run the delete topicdatamaintainance = topicdatamaintainance.SelectTopicDropDown(); topicdatamaintainance.ClickDeleteButton(NewtopicName); topicdatamaintainance.ContinueButtonClick(); }