anshooarora / extentreports-java

Community version of Extent API for Java has moved to https://github.com/extent-framework/
http://extentreports.com
Other
528 stars 318 forks source link

extent report for Data-provider test #385

Closed aksharpanchal closed 8 years ago

aksharpanchal commented 8 years ago

Is there a better way to integrate data provider tests?

before

As a work around added test parameters in method name :

after

This is just a example of test that I have, Some of my test which are data-provider driven can end up being 100+

anshooarora commented 8 years ago

Not sure. My initial thought is, it will be quite difficult to manage this much data in such a small block. It will eventually start looking messy. Let me know if you have any ideas though.

aksharpanchal commented 8 years ago

If Tests Step can be coupled with parameters that would be ideal allowing user to use toggle option to open or close Test Detail.

Just to give it a thought here is what I was thinking : test

anshooarora commented 8 years ago

You can already do this as child tests (see appendChild method).

aksharpanchal commented 8 years ago

Yes that what I initially thought and the example shows child tests having indentation but I tried with 100+ test and works like a charm thanks!

Vishwajeet-Mishra commented 8 years ago

Can you give some examples for dataprovider testcases

nsharma-git commented 7 years ago

@aksharpanchal I'm using testng listener and not able to use appendChild. For my use case it would be sufficient to add parameters in the testmethod name. I tried overriding getTestName but the extent report always taking the actual method name and not the overriden one. Can you paste some sample code the way you got dataprovider parameters in the report.

Vishvajeetcse commented 7 years ago

@aksharpanchal I'm using testng listener. Can you please provide the sample code the way you got dataprovider parameters in the report.

rashiatry commented 7 years ago

@Vishvajeetcse Are you able to display your test-data (passed through dataprovider) get displayed on ExtentReport. If yes, how did you do it using testng listener? Can you share your code here.

thanks for your help.