简体   繁体   中英

Extent Report Monitoring

Just a question to anyone here who is using ExtentReport as a listener.

Is it possible to use ExtentReport to generate the HTML Report during the tests being executed when its being used as a listener?

For example, instead of the report being generated when the tests are finished, the report is generated after the first test, and so on? I want to use ExtentReport to monitor the progress of my tests aswell and showing the results?

I've learnt its possible when using as a logger, as you can do a flush after each tests. However is it possible while using Extent as a Listener?

Thanks in advanced.

Kind regards, Colin.

Yes it is possible. Since extent report is open source. One could edit the function which formulate the structure of our final report. But since extent report uses different functionalities, just modifying an endtest would cause a cascading effect on everything. Or another way is to save the data before flush is called and by calling flussh everytime. One could replace the existing file over and over. My best bet is too leave it as it is and get other listener jars to do the work for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM