public void DeleteStrand() { NavigateToModifyExistingScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // delete strand schemeSearchPanel = schemeSearchPanel.ClickDeleteStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); Thread.Sleep(1000); }
public void EditStrand() { NavigateToModifyExistingScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // edit strand schemeSearchPanel = schemeSearchPanel.ClickEditStrandButton(); schemeSearchPanel.SetNameAndDescription(StrandName + ". Edited", StrandDescription + ". Edited", StrandShortName + ". Edited"); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); }
public void CloneScheme() { NavigateToCreateScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); string schemeName = SchemeSearchPanel.GenerateRandomString(10); string schemeDescription = SchemeSearchPanel.GenerateRandomString(20); string schemeShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(schemeName, schemeDescription, schemeShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); AddStatement(); schemeSearchPanel.ClickSaveButton(); schemeSearchPanel.waitforSavemessagetoAppear(); schemeSearchPanel.SaveMessageAssertionSuccess(); schemeSearchPanel.ClickCancelButton(); schemeSearchPanel.NavigateToNewFromExistingScheme(); CloneSchemeSearchPanel cloneschemeSearchPanel = new CloneSchemeSearchPanel(); cloneschemeSearchPanel.SetSchemeName(schemeName); cloneschemeSearchPanel.Search(); cloneschemeSearchPanel.SelectSchemeByName(schemeName); cloneschemeSearchPanel.ClickSelectSchemeButton(); cloneschemeSearchPanel.ClickOkButton(); string clonedSchemeName = cloneschemeSearchPanel.GetClonedSchemeName(); Assert.IsTrue(clonedSchemeName.Contains(schemeName)); }
public void DeleteStatement() { NavigateToModifyExistingScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); //add Levels schemeSearchPanel = schemeSearchPanel.ClickAssignExistingLevelButton(); schemeSearchPanel = schemeSearchPanel.ClickAddExistingLevelLink(); schemeSearchPanel.SelectLevel(1); schemeSearchPanel.SelectLevel(2); schemeSearchPanel = schemeSearchPanel.AddExistingLevelOKButton(); //create Statement schemeSearchPanel = schemeSearchPanel.ClickLevelNode(); schemeSearchPanel = schemeSearchPanel.ClickCreateStatementButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStatementLink(); string StatementName = SchemeSearchPanel.GenerateRandomString(10); string StatementDescription = SchemeSearchPanel.GenerateRandomString(20); string StatementShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StatementName, StatementDescription, StatementShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // delete statement schemeSearchPanel = schemeSearchPanel.ClickDeleteStatementButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); Thread.Sleep(1000); }
public void AddNewScheme() { NavigateToCreateScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); string schemeName = SchemeSearchPanel.GenerateRandomString(10); string schemeDescription = SchemeSearchPanel.GenerateRandomString(20); string shortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(schemeName, schemeDescription, shortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); }
private void AddStatement() { SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // add Levels schemeSearchPanel = schemeSearchPanel.ClickAssignExistingLevelButton(); schemeSearchPanel = schemeSearchPanel.ClickAddExistingLevelLink(); schemeSearchPanel.SelectLevel(1); //schemeSearchPanel.SelectLevel(2); schemeSearchPanel = schemeSearchPanel.AddExistingLevelOKButton(); // create Statement schemeSearchPanel = schemeSearchPanel.ClickLevelNode(); schemeSearchPanel = schemeSearchPanel.ClickCreateStatementButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStatementLink(); string StatementName = SchemeSearchPanel.GenerateRandomString(10); string StatementDescription = SchemeSearchPanel.GenerateRandomString(20); string StatementShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StatementName, StatementDescription, StatementShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); }
private void AddStrand() { SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); // create Subject schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewSubjectLink(); string SubjectName = SchemeSearchPanel.GenerateRandomString(10); string SubjectDescription = SchemeSearchPanel.GenerateRandomString(20); string SubjectShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(SubjectName, SubjectDescription, SubjectShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); // create Strand schemeSearchPanel = schemeSearchPanel.ClickCreateStrandButton(); schemeSearchPanel = schemeSearchPanel.ClickCreateNewStrandLink(); string StrandName = SchemeSearchPanel.GenerateRandomString(10); string StrandDescription = SchemeSearchPanel.GenerateRandomString(20); string StrandShortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(StrandName, StrandDescription, StrandShortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); }
public void DeleteScheme() { NavigateToCreateScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); string schemeName = SchemeSearchPanel.GenerateRandomString(10); string schemeDescription = SchemeSearchPanel.GenerateRandomString(20); string shortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(schemeName, schemeDescription, shortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); AddStatement(); schemeSearchPanel.ClickSaveButton(); schemeSearchPanel.waitforSavemessagetoAppear(); schemeSearchPanel.SaveMessageAssertionSuccess(); schemeSearchPanel = schemeSearchPanel.ClickDeleteSchemeButton(); schemeSearchPanel = schemeSearchPanel.ClickDeleteOKButton(); schemeSearchPanel.DeleteMessageAssertionSuccess(schemeName); }
public void GenerateTemplateFromScheme() { NavigateToCreateScheme(); SchemeSearchPanel schemeSearchPanel = new SchemeSearchPanel(); string schemeName = SchemeSearchPanel.GenerateRandomString(10); string schemeDescription = SchemeSearchPanel.GenerateRandomString(20); string shortName = SchemeSearchPanel.GenerateRandomString(10); schemeSearchPanel.SetNameAndDescription(schemeName, schemeDescription, shortName); schemeSearchPanel = schemeSearchPanel.ClickOKButton(); AddStatement(); schemeSearchPanel.ClickSaveButton(); schemeSearchPanel.waitforSavemessagetoAppear(); schemeSearchPanel.SaveMessageAssertionSuccess(); schemeSearchPanel = schemeSearchPanel.ClickCreateSubjectButton(); schemeSearchPanel = schemeSearchPanel.ClickGenerateTemplateLink(); schemeSearchPanel.waitforSavemessagetoAppear(); schemeSearchPanel.GenerateTemplateMessageAssertionSuccess(); schemeSearchPanel.OpenPosTemplate(); }