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

Logs from Listener attached to Test level instead of Test Method level (@Test) in case of fail in Step #97

Closed
maxski opened this issue Apr 1, 2020 · 3 comments · Fixed by #98
Assignees

Comments

@maxski
Copy link

maxski commented Apr 1, 2020

Pre-conditions:

  1. TestWithStep where Step has failure
  2. TestWithoutStep where Test itself has failure
  3. Listener should add logs in case of fail.

Scenario:

  1. Run both tests.

Expected behavior: Both tests has listener logs on Test Method level.
Actual behavior: TestWithoutStep has logs on Test Method level. But TestWithStep doesn't have logs on Test Method level, instead they appears on Test level.

Project for reproduction: https://github.com/maxski/rp-fail-in-step

@DzmitryHumianiuk
Copy link
Member

@maxski version of RP server?

dependencies {
    compile 'org.testng:testng:7.1.0'
    compile 'com.epam.reportportal:agent-java-testng:5.0.0-BETA-9'
    compile 'com.epam.reportportal:logger-java-log4j:5.0.0-BETA-9'
    compile 'org.slf4j:slf4j-log4j12:1.7.30'
}

@maxski
Copy link
Author

maxski commented Apr 6, 2020

@DzmitryHumianiuk
Current version:API Service: 5.0.0;Index Service: 5.0.5;Authorization Service: 5.0.0;Service UI: 5.0.0;

@HardNorth HardNorth transferred this issue from reportportal/agent-java-testNG May 12, 2020
@HardNorth
Copy link
Member

Fixed with: #98

@HardNorth HardNorth linked a pull request May 12, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants