Hybrid Framework - Need help on integrating Extent Reports to the project

55 views
Skip to first unread message

Nagendra Kuppala

unread,
Jul 17, 2018, 1:10:47 PM7/17/18
to Selenium Users
Hi All,

Is it possible to integrate Extent reports to Hybrid framework project?
I have browsed through the internet, but couldn't find a suitable solution. All the examples over the internet were either for Keyword Driven or Data Driven frameworks where each test case written in a separate method or class  are starting with a '@Test' annotation.

For ex: Keyword or Data Driven Framework structure

@Test
Extent report log
Testcase1

@Test
Extent report log
Testcase2
:
:
so on
...



Where as in Hybrid Driven framework, all the test cases are written in excel sheets and data is also provided through excel sheets. And there is only one main '@Test' annotation class, from which we execute the Test case in order.
I have integrated Extent reports in Main class, so i only get test case name and pass or fail in the reports with no other information. 

For ex: Hybrid Framework structure


@Test
Extent report log
Main class --> call excel sheets reader to execute test cases and iterate through all the test cases. And all the actions functionality is written in Keywords class.

Keyword class

Test case excel sheet -->TCID        Keyword        ObjectPath         Data

Data excel sheet



is there any solutions available ?  Any suggestions could be appreciated. 
Thanks in advance.


satya chaitanya

unread,
May 16, 2020, 12:47:23 AM5/16/20
to Selenium Users
Hi,

I am also in same situation do you find any solution?

Ankit Mundra

unread,
May 17, 2020, 3:44:01 AM5/17/20
to Selenium Users
Hi Nagendra

If I understand correctly, then you must me using one of the extent reports adapter (TestNG Adapters). Instead of using the adapter, I would suggest to have a look at the core API of the extent reports. That should help you achieve what you need.
The documentation for the same :: Extent Reports Usage.

This should give you capabilities to create the Test and test nodes as you would need.

BTW I would also, suggest using AOP, if possible to achieve these kind of things.

Regards
Ankit Mundra
Reply all
Reply to author
Forward
0 new messages