@Test( retryAnalyzer = RerunOnFailure.class, groups = {"full"}, dependsOnMethods = {"ProgramGuideVerification_TC1579"}, alwaysRun = true) public void Cleanup() throws Exception { if (testSuccessful == false) { UserLogin userLogin = applib.openApplication(); userLogin.Login( config.getConfigValueString("Admin1Username"), config.getConfigValueString("Admin1Password")); navigation.Modules(); Modules modules = new Modules(webDriver); modules.DisableModule("Program Guide Example"); } }
/** * *********************************************************************************** TEST CASE - * TC1046 Steps - https://rally1.rallydev.com/#/14663927728d/detail/testcase/17441493787 * *********************************************************************************** */ @Test( retryAnalyzer = RerunOnFailure.class, groups = {"full"}) public void CreateTVSeason_TC1046() throws Exception { // Step 1 UserLogin userLogin = applib.openApplication(); userLogin.Login( config.getConfigValueString("Admin1Username"), config.getConfigValueString("Admin1Password")); List<String> allStates = Arrays.asList("Draft", "Review", "Published"); for (String state : allStates) { // Step 2 navigation.AddContent("TV Season"); // Step 3 contentParent.VerifyRequiredFields(Arrays.asList("Title", "Season", "Synopsis")); PublishingOptions publishingOptions = new PublishingOptions(webDriver); publishingOptions.ClickPublishingOptionsLnk(); contentParent.VerifyRequiredFields(Arrays.asList("Moderation State")); // Step 4 BasicInformation basicInformation = new BasicInformation(webDriver); basicInformation.ClickBasicInformationTab(); String tvSeasonTitle = random.GetCharacterString(15); basicInformation.EnterTitle(tvSeasonTitle); basicInformation.EnterSeasonNumber("1"); basicInformation.EnterSynopsis(); // Step 5 basicInformation.ClickCoverSelectBtn(); SelectFile selectFile = new SelectFile(webDriver); selectFile.SelectDefaultCoverImg(); // Step 6 publishingOptions.ClickPublishingOptionsLnk(); publishingOptions.SelectModerationState(state); // Step 7 contentParent.ClickSaveBtn(); contentParent.VerifyMessageStatus("TV Season " + tvSeasonTitle + " has been created."); WorkBench workBench = new WorkBench(webDriver); workBench.VerifyWorkBenchBlockTextPresent(Arrays.asList(state)); } }
/** * *********************************************************************************** TEST CASE - * TC1579 Steps - https://rally1.rallydev.com/#/14663927728ud/detail/testcase/17926339982 * *********************************************************************************** */ @Test( retryAnalyzer = RerunOnFailure.class, groups = {"full"}) public void ProgramGuideVerification_TC1579() throws Exception { // Step 1 UserLogin userLogin = applib.openApplication(); userLogin.Login( config.getConfigValueString("Admin1Username"), config.getConfigValueString("Admin1Password")); // Step 2 and 3 navigation.Modules(); Modules modules = new Modules(webDriver); modules.EnableModule("Program Guide"); modules.EnableModule("Program Guide Example"); // Step 4 navigation.Structure("Blocks"); // Step 5 Blocks blocks = new Blocks(webDriver); blocks.SelectRegion("Program Guide", "Footer fourth column"); blocks.ClickSaveBlocksBtn(); ContentParent contentParent = new ContentParent(webDriver); contentParent.VerifyMessageStatus("The block settings have been updated."); // Step 6 blocks.VerifySelectedRegion("Program Guide", "Footer fourth column"); navigation.Configuration("Program Guide"); // Step 7 ProgramGuide programGuide = new ProgramGuide(webDriver); programGuide.EnterDataURL(); // Step 8 programGuide.ClickSaveConfigBtn(); contentParent.VerifyMessageStatus("The configuration options have been saved."); // Step 9 navigation.Home(); programGuide.VerifyProgramGuideText(); // Step 10 programGuide.VerifyDateShowInfoColumn(); // Step 11 - N/A // Step 12 Cron cron = new Cron(webDriver); cron.RunCron(); // Step 13 navigation.Reports("Status report"); programGuide.ProgramGuideRunCronStatus(); // Step 14 navigation.Home(); // Step 15 programGuide.VerifyProgramGuideText(); // Step 16 programGuide.VerifyDateShowInfoColumn(); // Step 17 and 18 (truncated) programGuide.VerifyProgramGuideContainsShows(); // Step 19 navigation.Modules(); modules.DisableModule("Program Guide Example"); testSuccessful = true; }