Closed Mandeep-S closed 5 years ago
@Mandeep-S hi, seems like you are working with TestNG, right ?
@Mandeep-S hi, seems like you are working with TestNG, right ?
Yes, I have implemented a Listener class as well which takes care of scenarios where if a test fails it will try for 2 times.
@Mandeep-S do you know that we already have a lib that integrates reportportal with testng ? You can find it here https://github.com/reportportal/agent-java-testNG By the way, retries are supported in this lib.
@filland Thanks, I used some code from ReportPortal TestNG listener and solved some of the concerns that I have. Can you point me to the class which is taking care of email message ? I want to customize message.
@Mandeep-S Email message ? Could you provide more details ?
@filland The launch status message that we get over email. In ReportPortal, we can setup email notification after a launch which includes details like Total run, passed, failed, etc test case count. So, I want to customize that message details. If you have any insight or code which is taking care of it, please point to it.
@Mandeep-S I got you. Unfortunately there is not way to customize the content of the email since its template is located in the api service of RP.
I am implementing IRetryAnalyzer interface and when one test case fails and retry for second time, Report portal counts it as a new test in the report. Is there a way to handle this ?