Providing links to test outputs in TestNG reports -
in tests, capture output of each test , save them html files in directory. how can provide link these outputs each test in testng reports?
e.g. if there failure recorded in testng results, provide link saved html files.
thanks
it depends on , how want report results. sounds want create custom testng report contain information on status link file generated. there 2 main ways accomplish in testng:
- create test listener - implements org.testng.itestlistener, reports status of every tests after tests executed.
- create test reporter - implements org.testng.ireporter, provides consolidated result of test statuses, when tests executed.
you can refer testng web site examples on listeners.
Comments
Post a Comment