Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Requirements and free link additions to test case annotations #918

Closed
jaheikki opened this issue Feb 5, 2017 · 6 comments
Closed

Requirements and free link additions to test case annotations #918

jaheikki opened this issue Feb 5, 2017 · 6 comments
Milestone

Comments

@jaheikki
Copy link

jaheikki commented Feb 5, 2017

Now that there's possibility to use annotations to make links from the allure report to issue tracker system or link to system having testcase descriptions. But as far as I have understood there is no such option to link system requirements (from requirements tool) to the testcase report. Also it would be useful to add any free format links to testcase report.

As a reference see existing annotation features:
https://github.com/allure-framework/allure1/wiki/Issues
https://github.com/allure-framework/allure1/wiki/Test-Case-ID

I propose to add following features to the Allure report:

  • "Requirement annotation" (see example below) + corresponding "pattern" to allure.properties.
  • "Link annotation" to enable free format links added to allure report (see example below).

Example of the required new annotations (issue&testcase id exist already) to BDD style test:

"Feature: MyFeature

@SeverityLevel.BLOCKER
@issue("Bug0001")
@issue("Bug0002")
@testcaseid("MyTest1")
@requirement("MyReq1")
@requirement("MyReq2")
@link("https://cucumber.io/docs/reference/jvm")
@link("https://github.com/allure-framework/allure-cucumberjvm")
Scenario: Test scenario1
Given myPreconditions
When user does things
Then do something"

@baev
Copy link
Member

baev commented Feb 5, 2017

Allure 2 supports custom links

@jaheikki
Copy link
Author

jaheikki commented Feb 6, 2017

@baev Two questions:

  1. When the Allure 2 will be available?
  2. I'm using 'allure-maven-plugin' to generate the Allure report, so do I need to wait release > 2.5 of allure-maven-plugin to be able to get new releases of Allure frontend, regardless if it is new release 1.x or 2.0 of Allure?
    BR. Jari

@baev
Copy link
Member

baev commented Feb 6, 2017

When the Allure 2 will be available?

It depends on adaptor you are using. Our first priority are PyTest, TestNg and Jenkins/TeamCity/Bamboo integrations

so do I need to wait release > 2.5 of allure-maven-plugin

Yep, current Maven integration isn't support Allure 2

@jaheikki
Copy link
Author

jaheikki commented Feb 6, 2017

@baev I'm using Allure Cucumber-JVM Adaptor v.1.6.1 and allure-maven-plugin v.2.5. Please correct me if I'm wrong, are these the steps I need to wait to get Allure 2 UI officially?:

  1. First Allure 2 release
  2. New Cucumber-JVM Adaptor release having allure-2 dependencies included
  3. New Allure Maven plugin release

@baev
Copy link
Member

baev commented Feb 6, 2017

I need to wait to get Allure 2 UI officially

Maven plugin update allure-framework/allure2#49 . As far as Allure 2 supports old adaptors as well that is pretty much all.

@sseliverstov sseliverstov added this to the 2.0 milestone Feb 14, 2017
@baev
Copy link
Member

baev commented Feb 14, 2017

moved to allure-framework/allure-java#1

@baev baev closed this as completed Feb 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants