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

[TestNg] Set Up/Tear down sections collect and display information from all tests #107

Closed
1 of 3 tasks
IZaiarnyi opened this issue Jul 14, 2017 · 1 comment
Closed
1 of 3 tasks

Comments

@IZaiarnyi
Copy link

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 behavior?

Set Up/Tear down sections collect and display information from all tests

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

Str:

public class BaseTest {
    @BeforeClass(alwaysRun = true)
    public static void start() {
        System.out.println("start");
    }

    @AfterClass(alwaysRun = true)
    public static void finish() {
        System.out.println("finish");
    }
}
public class Tests extends BaseTest {
    @BeforeClass
    public static void init() {
        System.out.println("init");
    }

    @Test
    public void tests(){
        System.out.println("test1");
    }
}
public class Tests2 extends BaseTest {
    @BeforeClass
    public static void init() {
        System.out.println("init");
    }

    @Test
    public void test2(){
        System.out.println("test2");
    }
}
  1. Run xml configuration
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Complex suite" configfailurepolicy="continue" preserve-order="true" verbose="1" parallel="classes" thread-count="5" >
    <test name="All tests">
        <classes>
            <class name="Tests" />
            <class name="Tests2" />
        </classes>
    </test>
</suite>

setupsection
teardownsection

What is the expected behavior?

Set Up/Tear down sections should contain only related to the test information

setupsection

teardownsection

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

Right now It's very confusing and weird realization that doesn't give you useful information.

Please tell us about your environment:

Allure version 2.2.1
Test framework testng@6.10
Allure integration allure-testng@2.0-BETA15
Generate report using allure-commandline

Other information

@baev
Copy link
Member

baev commented Jul 14, 2017

duplicate #99 , fixed in #100 , will be available in next release

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

No branches or pull requests

2 participants