Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard to distinguish data-drive tests/Provide placeholders support @Title #397

Closed
2 of 3 tasks
L-Evg opened this issue Jun 14, 2017 · 2 comments
Closed
2 of 3 tasks
Assignees
Labels
type:new feature Change that add something new for end users

Comments

@L-Evg
Copy link

L-Evg commented Jun 14, 2017

I'm submitting a ...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behaviour?

Allure 2 report shows data-driven tests by method name/or fixed title only:
No @Title
2_ _ _

Using @Title
2_ _ _

So, there is no quick way to distinguish data cases, one need to go through the list and click each case to see the difference.

If the current behaviour is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. Develop a data-drive test;
  2. Ensure you have two and more data-cases for the test;
  3. Run the test and generate report;
  4. Have a look at the report.

What is the expected behaviour?

  1. If there is no @Title then test method name + a short excerpt of the arguments' #toString() is shown in the list;
  2. If there is @Title then the title's value is shown (current behaviour);
  3. @Title supports placeholders in the same way as @Step:
    @Title("Check user {data.name }'s data.")
    or
    @Title("Check user's data - {0}.")

What is the motivation / use case for changing the behaviour?

A quick way to distinguish data-drive test executions in the report, no need to go through the list of executions to see the difference.

Please tell us about your environment:

  • Allure version: 2.1.1
  • Test framework: testng@6.10
  • Allure adaptor: allure-testng@2.0-BETA10
  • Generate report using: allure-maven@2.8

Other information

@baev baev added type:new feature Change that add something new for end users selected for dev labels Jun 14, 2017
@baev
Copy link
Member

baev commented Jun 14, 2017

we can display test parameters in tree. Will it fix the problem?

@baev baev assigned baev and unassigned baev Jun 14, 2017
@baev baev changed the title [Defect/Suggestion] Hard to distinguish data-drive tests/Provide placeholders support @Title. Hard to distinguish data-drive tests/Provide placeholders support @Title Jun 14, 2017
@L-Evg
Copy link
Author

L-Evg commented Jun 15, 2017

we can display test parameters in tree. Will it fix the problem?
Do you mean the approach used in Allure 1.* (methodName/Title + Paramaters[].toString())? If yes then it should work.

@baev baev closed this as completed in 0a480b8 Jun 15, 2017
@baev baev removed the review label Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:new feature Change that add something new for end users
Projects
None yet
Development

No branches or pull requests

2 participants