Closed apsharma closed 2 years ago
@apsharma I'm not getting how your configuration file looks like. Can you share what are you trying to do?
I reviewed our Log4j configuration and it works as expected: https://github.com/reportportal/examples-java/blob/master/example-testng-log4j/src/main/resources/log4j2.xml
I don't see any more points to improve. And the issue is abandoned.
I am noticing that deviating from these suggested settings prevents screenshots from getting reported to or sent to reportportal server. Could someone help me figure out what is causing this behavior ? or what am I not doing right ?
I tried adding an additional logger (below) so that I could see all reportportal related logs and get some more details ..and for some odd reason that too prevented screenshots from being sent over ?
BTW, I don't need a ton of screenshot logging (send screenshots only on failures during a UI test) so this is how I am reporting/sending screenshots/files
ReportPortal.emitLog("Failure Screenshot", "ERROR", testName, errFileName);