public void b03_Document_Delete_Version_button_7482() { CommonSection.CreteNewDocuemnt(DocumentTitle + "TC7482"); _test.Log(Status.Info, "Create a Document"); AdminContentDetailsPage.EditVersioning_Enabled("1.0"); _test.Log(Status.Info, "Enable versioning by adding values"); VersionsPage.Click_Back(); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.AddVersion(); _test.Log(Status.Info, "`Click Add Version"); StringAssert.AreEqualIgnoringCase("The new version was added for the content item.", AdminContentDetailsPage.VerifyNewVersionSuccessMessage()); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Delete version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Manage version Button is Displayed"); AdminContentDetailsPage.DeleteVesion("Version 1.1 English (United States)"); _test.Log(Status.Info, "Delete Version from Dropdown list using Delete Button"); StringAssert.AreEqualIgnoringCase("The version was deleted.", AdminContentDetailsPage.VerifyDeleteVersionSuccessMessage()); _test.Log(Status.Pass, "Verify Delete Version Success Message"); //Assert.IsFalse(AdminContentDetailsPage.VerifyAddVersionButton()); //_test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); }
public void P20_1_z04_Document_Add_Version_7481() { CommonSection.Manage.Training(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC7480"); _test.Log(Status.Info, "Search for Content"); ManageContentPage.filtersearch.Searchfortext(DocumentTitle + "TC7480"); ManageContentPage.Clickflitersearch(); ManageContentPage.ClickContentTitle(DocumentTitle + "TC7480"); _test.Log(Status.Info, "Click on Coure title "); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.AddVersion(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); Assert.IsTrue(Driver.comparePartialString(" The new version was added for the content item.", AdminContentDetailsPage.VerifyNewVersionSuccessMessage())); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddedVersionsInDropDownlist()); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); }
public void b04_Document_Delete_Version_Manage_Versions_7483() { CommonSection.Manage.Training(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); TrainingPage.ManageContentPortlet.SearchForContent(DocumentTitle + "TC7482"); _test.Log(Status.Info, "Search for Content"); ManageContentPage.ClickContentTitle(DocumentTitle + "TC7482"); _test.Log(Status.Info, "Click on Coure title "); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.AddVersion(); _test.Log(Status.Info, "Verify Add version Button is Displayed"); Assert.IsTrue(Driver.comparePartialString(" The new version was added for the content item.", AdminContentDetailsPage.VerifyNewVersionSuccessMessage())); _test.Log(Status.Pass, "Verify New Version Success Message"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddedVersionsInDropDownlist()); _test.Log(Status.Pass, "Verify added version in Dropdown List"); Assert.IsTrue(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsTrue(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); AdminContentDetailsPage.ManageVersion_Delete("Version 1.1 English (United States)"); _test.Log(Status.Info, "Delete Version from Manage Version Button"); Assert.IsTrue(Driver.comparePartialString(" The version was deleted.", ManageVersionsPage.VerifyDeleteVersionSuccessMessage())); _test.Log(Status.Pass, "Verify Delete Version Message"); ManageVersionsPage.Click_Back(); _test.Log(Status.Pass, "Click Back Button"); Assert.IsFalse(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyAddVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyDeleteVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); Assert.IsFalse(AdminContentDetailsPage.VerifyManageVersionButton()); _test.Log(Status.Pass, "Verify Add version Button is Displayed"); }