You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bhagyaISS You didn't provide any Log4j configuration actually. And I recently updated and tested Log4j integration on our examples, it is working.
So, please do the following things:
Provide Log4j2.xml config and Log4j2 dependencies, which you use.
Describe the bug
I am unable to send scrrenshotOnFailure as an attachment to Report Portal.
Steps to Reproduce
Steps to reproduce the behavior:
String screenShotFilePathCompressed = attachments.get(1);
try {
logger.info("RP_MESSAGE#FILE#{}#{}", screenShotFilePathCompressed, "Attachment");
logger.info("File Location : " + screenShotFilePath);
} catch (Exception e) {
logger.info("Test failed, cannot attach screenshot");
}
Expected behavior
To log screenshot as attachment into report portal
Actual behavior
Screenshot not attached.
Dependency versions
com.epam.reportportal agent-java-testng 5.1.0 com.epam.reportportal logger-java-log4j 5.1.8 org.apache.logging.log4j log4j-api 2.20.0 org.apache.logging.log4j log4j-core 2.20.0Include version info of the following libraries:
selenium-java: 3.141.59
Java:11
Additional context
Log4j2.xml configuration as below:
The text was updated successfully, but these errors were encountered: