io.qameta.allure.TmsLink Java Examples
The following examples show how to use
io.qameta.allure.TmsLink.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestWithMethodLinks.java From allure-java with Apache License 2.0 | 7 votes |
@Test @Link(name = "LINK-1") @Links({ @Link(name = "LINK-2", url = "https://example.org/link/2"), @Link(url = "https://example.org/some-custom-link") }) @TmsLink("TMS-1") @TmsLinks({ @TmsLink("TMS-2"), @TmsLink("TMS-3") }) @Issue("ISSUE-1") @Issues({ @Issue("ISSUE-2"), @Issue("ISSUE-3") }) void someTest() { }
Example #2
Source File: LinksOnTests.java From allure-java with Apache License 2.0 | 6 votes |
@Test @Links({ @Link("nested1"), @Link("nested2"), }) @Link("nested3") @Issue("issue1") @Issues({ @Issue("issue2"), @Issue("issue3") }) @TmsLink("tms1") @TmsLinks({ @TmsLink("tms2"), @TmsLink("tms3") }) public void shouldHasLinksAsWell() throws Exception { }
Example #3
Source File: ComponentExampleTest.java From frameworkium-examples with Apache License 2.0 | 6 votes |
@TmsLink("CET-1") @Test(enabled = false) public final void componentExampleTest() { // Navigate to homepage then use the nav bar to go to the explore page var explorePage = HomePage.open().then().with().theHeader().clickExplore(); // not a good assertion, improving this is an exercise for the reader assertThat(explorePage.getTitle()).isEqualTo("Explore ยท GitHub"); // Search for "Selenium" and check SeleniumHQ/selenium is one of the returned repos. var searchResults = explorePage.with().theHeader() .search("Selenium") .getRepoNames(); assertThat(searchResults).contains("SeleniumHQ/selenium"); }
Example #4
Source File: FailedTest.java From allure-java with Apache License 2.0 | 5 votes |
@Test @Link("link-1") @Link("link-2") @Issue("issue-1") @Issue("issue-2") @TmsLink("tms-1") @TmsLink("tms-2") public void failedTest() throws Exception { assertThat(true).isFalse(); }
Example #5
Source File: LinksOnTestsInherited.java From allure-java with Apache License 2.0 | 5 votes |
@Override @Test @Link("inheritedLink1") @Link("inheritedLink2") @Issue("inheritedIssue") @TmsLink("inheritedTmsLink") public void shouldHasLinksAsWell() throws Exception { super.shouldHasLinksAsWell(); }
Example #6
Source File: PlanJourneyTest.java From frameworkium-examples with Apache License 2.0 | 5 votes |
@TmsLink("TFL-1") @Test(enabled = false) public final void planJourneyTest() { var planJourneyPage = HomePage.open().clickPlanJourneyLink(); // Plan a journey between two locations var resultsPage = planJourneyPage .planJourney("Clapham Junction", "Oxford Circus Underground Station"); // Check that the title displayed on the page is "JOURNEY RESULTS" assertThat(resultsPage.getTitleText()).isEqualTo("JOURNEY RESULTS"); }
Example #7
Source File: CalculatorAppTest.java From frameworkium-examples with Apache License 2.0 | 5 votes |
/** * Example test for https://appium.s3.amazonaws.com/TestApp7.1.app.zip */ @Test(description = "Test sum computation", enabled = false) @TmsLink("CALC-1") public void testIOSApp() { String result = PageFactory .newInstance(CalculatorPage.class) .computeSum(1, 2).then() .getResult(); assertThat(result).isEqualTo("3"); }
Example #8
Source File: LargestMountainTest.java From frameworkium-examples with Apache License 2.0 | 5 votes |
@TmsLink("WIKI-1") @Test(description = "Playing with data inside highest mountain table") public final void exploring_the_highest_mountain_table() { var page = HighestMountainPage.open(); assertThat(page.getRankByName("Mount Everest")).isEqualTo("1"); assertThat(page.getFirstAscentByName("Annapurna I")).isEqualTo("1950"); assertThat(page.mountainsHigherThan(8000)).isEqualTo(14L); }
Example #9
Source File: EnglishCountiesTest.java From frameworkium-examples with Apache License 2.0 | 5 votes |
@TmsLink("WIKI-2") @Test(description = "Playing with English Counties data") public final void exploring_english_counties_data() { var countiesPage = EnglishCountiesPage.open(); assertThat(countiesPage.populationOf("Cornwall")) .isAtLeast(550_000); // at least two counties have population densities of more than 3000 assertThat(countiesPage.densities() .filter(density -> density > 3000) .limit(2) .count()) .isEqualTo(2L); }
Example #10
Source File: TestIdUtils.java From frameworkium-core with Apache License 2.0 | 5 votes |
/** * Get {@link TmsLink} or {@link Issue} for a method. * If both are specified it will return jus the {@link TmsLink} value. * * @param method the method to check for test ID annotations. * @return Optional of the {@link TmsLink} or {@link Issue} value. */ public static Optional<String> getIssueOrTmsLinkValue(Method method) { TmsLink tcIdAnnotation = method.getAnnotation(TmsLink.class); Issue issueAnnotation = method.getAnnotation(Issue.class); if (nonNull(tcIdAnnotation)) { return Optional.of(tcIdAnnotation.value()); } else if (nonNull(issueAnnotation)) { return Optional.of(issueAnnotation.value()); } else { return Optional.empty(); } }
Example #11
Source File: DocumentationTest.java From frameworkium-core with Apache License 2.0 | 5 votes |
@Test(retryAnalyzer = RetryFlakyTest.class) @TmsLink("ANG-1") public void angular_documentation_test() { String guideTitle = DeveloperGuidePage.open() .searchDeveloperGuide("Bootstrap") .clickBootstrapSearchItem() .getGuideTitle(); assertThat(guideTitle) .endsWith("Bootstrap"); }