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:

  1. create test listener - implements org.testng.itestlistener, reports status of every tests after tests executed.
  2. 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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -