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

Truncated name of test #442

Closed
ASarco opened this issue Nov 20, 2014 · 6 comments
Closed

Truncated name of test #442

ASarco opened this issue Nov 20, 2014 · 6 comments
Labels
Milestone

Comments

@ASarco
Copy link

ASarco commented Nov 20, 2014

There is a small bug when generating the reports.

My tests use JunitParams because I need to run the same test over many different instruments, which I pass the name (in the form "IX.D.FTSE.DAILY.IP") to the test as parameter. This works very well in Eclipse, I can see the result of every test with the name of the instrument:

allure1

This also looks fine in the XML generated by Allure:

allure2

However, on the final report, the name of the instrument is gone, only the last part after the last dot is shown (which in our case is not very useful because all of our instruments end with .IP):

allure3

@baev
Copy link
Member

baev commented Nov 20, 2014

Thanks for feedback!

You use custom JUnitParams runner which is not compatible with Allure. Problem in this line https://github.com/Pragmatists/JUnitParams/blob/3192213da160c41148ff91141c15af5a50862f48/src/main/java/junitparams/internal/TestMethod.java#L101

Allure expects that test name has the following format: $methodName[$params]. See #408

Workaround:

  • Send PR to JUnitParams and change test name to something like name() + [Utils.stringify(paramSet, i)]
  • Manually set test title for each test with parameters (using JUnit rules or something else and allure events).
  • Wait a bit until we resolve Think more about names and titles in model #408

@dstoianov
Copy link

Is it possible to rename test name or hide TestNG dataprovider objects?
It looks too long, see attached image
ttrt9zp

@baev
Copy link
Member

baev commented Nov 26, 2014

@dstoianov try to use Allure 1.4.4. Issue fixed via #435 Ops, my fault

@clicman
Copy link

clicman commented Jan 14, 2015

@baev will it be fixed in Allure? Faced same problem.

@paulakimenko
Copy link

Hi! I have the same issue.

Use :

  • Java
  • Allure TestNG adaptor
  • Maven

Example :
Step Name :
Input : "open -> http://example.com/"
Output : "Com/"

I tried to find reason of this and found this :
Method : ru.yandex.qatools.allure.data.utils.TextUtils::simplify()
Input : "open -> http://example.com/"
Output : "com/"

@baev
Copy link
Member

baev commented Jun 24, 2016

fixed in Allure 2

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

No branches or pull requests

6 participants