Beispiel #1
0
        public void P20_1_b19_Subscriptions_Containing_a_Document_27179()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27179");

            _test.Log(Status.Info, "Create a Document");
            string SubscriptionContent = AdminContentDetailsPage.CreatedContent();

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In Button");
            CommonSection.CreateLink.Subscription();
            _test.Log(Status.Info, "Click Subscription");
            SubscriptionsPage.TitleAs(SubscriptionsTitle + "TC27179").SubscriptionType("DynamicDate").Create();
            _test.Log(Status.Info, "Create subscription");
            AdminContentDetailsPage.ClickEditandAddSubscriptionContent(DocumentTitle + "TC27179");
            _test.Log(Status.Info, "Click Edit and Add Subscription Content");
            AdminContentDetailsPage.ClickCheckInbutton();
            CommonSection.SearchCatalog(SubscriptionsTitle + "TC27179");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(SubscriptionsTitle + "TC27179");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.IsSubscriptionBlockDispalyed(SubscriptionContent));
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
            Assert.IsTrue(ContentDetailsPage.IsTitleDisplayed());
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
            Assert.IsTrue(ContentDetailsPage.IsTypeDisplayed());
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
            Assert.IsTrue(ContentDetailsPage.IsCostDisplayed());
            _test.Log(Status.Pass, "Verify Added Document is Displayed in Subscription Block ");
        }