Closed irushah closed 8 years ago
@baev Anything you see i'm missing?
@irushah sorry I don't know much about TestNg, it is supported mostly by the community.
@irushah can you show screenshots?
Here's screenshot of above described code where i expect to see TestCase1 instead of "UnknownTestCase" and testCaseMethod instead of "Unknown test case"
@irushah could you please describe how Test ID 4413 got included in report (there is no such ID in your code)?
Ohh, ignore that, i missed to add in my example code above. I dont think its related to that. But, i have corrected the example code with TestCaseId annotation above after @Test
@TestCaseId("4413")
@irushah Allure takes test case meta data from annotations on method level, not on type level.
Also if you annotate type as @Test
it will execute all public methods as tests not taking into account method annotations. That is why IMO it is a mistake to annotate both type and method.
Ohh.. I got it. I removed @Test(groups = Group2)
from the type and added the group to method. And that fixed it.
Thanks alot @volkovs.
Closing the bug.
Hi,
I added Allure reports to my existing TestNg framework. I run the tests using Maven from test suite files which have defined which classes and tests to run. For some reason, the generated report shows test names as "Unknown test case" and for some Parameterized test cases it shows the dataset parameters as the test name.
Is it expected behaviour? How do i make it show proper test names.
Here's snippet of test suite: testng.xml
Test case example: