Wednesday 9 April 2014

ATU Reporter for TestNG

Hi There,

Automation without a proper reporting ?

We have developed an Open Source Reporting utility (ATU Reporter) for TestNG. This is a listener for generating customized graphical reports. Following reports can be generated by this listener.

  • Line Charts
  • Bar Charts
  • Pie Charts 

ATU Reporter for TestNG:


The Project is a TestNG Listener which can be used for a more detailed Graphical reports.

This Post is organized into following parts:

Go To: ATU Reporter Part 1  - Contains Details regarding The ATU Reporter
Go To: ATU Reporter Part 2  - Contains Details regarding The usage along with Examples
Go To: ATU Reporter Part 3  - Contains Details regarding Upcoming Releases and Features
Go To: ATU Reporter Part 4  - Contains Details regarding Customizing the Reports
Go To: ATU Reporter Part 5  - Contains Details regarding Excel Reports Dependencies



Download Links: Stable Version 2.1

Download ATU Selenium TestNG Reporter

33 comments:

  1. I am getting error like this ,, can you tell me how to resolve the issue.

    java.lang.IllegalStateException: [ATU Custom Reporter Exception] The Path for the Custom Properties file could not be found
    at atu.testng.reports.listeners.ATUReportsListener.onStart(Unknown Source)
    at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:197)
    at org.testng.SuiteRunner.run(SuiteRunner.java:238)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
    Caused by: [ATU Custom Reporter Exception] The Path for the Custom Properties file could not be found
    at atu.testng.reports.utils.Directory.init(Unknown Source)
    at atu.testng.reports.utils.Directory.verifyRequiredFiles(Unknown Source)
    ... 11 more
    [TestNG] Running:
    C:\Users\gwda\AppData\Local\Temp\testng-eclipse--474925755\testng-customsuite.xml

    ReplyDelete
    Replies
    1. Perhaps you may want to check the path of the properties file. From the exception stack, the path you given is invalid.

      #AT

      Delete
    2. I am also Having same ERROR STACK....Please Help.

      Delete
    3. java.lang.IllegalStateException: [ATU Custom Reporter Exception] The Path for the Custom Properties file could not be found
      at atu.testng.reports.listeners.ATUReportsListener.initChecking(Unknown Source)
      at atu.testng.reports.listeners.ATUReportsListener.onExecutionStart(Unknown Source)
      at org.testng.TestRunner.initListeners(TestRunner.java:354)
      at org.testng.TestRunner.init(TestRunner.java:238)
      at org.testng.TestRunner.init(TestRunner.java:205)
      at org.testng.TestRunner.(TestRunner.java:160)
      at org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:141)
      at org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:271)
      at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:561)
      at org.testng.SuiteRunner.init(SuiteRunner.java:157)
      at org.testng.SuiteRunner.(SuiteRunner.java:111)
      at org.testng.TestNG.createSuiteRunner(TestNG.java:1299)
      at org.testng.TestNG.createSuiteRunners(TestNG.java:1286)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.run(TestNG.java:1057)
      at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      Caused by: [ATU Custom Reporter Exception] The Path for the Custom Properties file could not be found
      at atu.testng.reports.utils.Directory.init(Unknown Source)
      at atu.testng.reports.utils.Directory.verifyRequiredFiles(Unknown Source)
      ... 18 more

      Delete
    4. This comment has been removed by the author.

      Delete
  2. java.io.FileNotFoundException: D:\ATU Reports\Results\Run_8\Test\com\Demo_Iteration1\Demo.html (The system cannot find the path specified)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.(FileOutputStream.java:194)
    at java.io.FileOutputStream.(FileOutputStream.java:84)
    at java.io.PrintWriter.(PrintWriter.java:146)
    at atu.testng.reports.listeners.ATUReportsListener.startReportingForPassed(Unknown Source)
    at atu.testng.reports.listeners.ATUReportsListener.onFinish(Unknown Source)
    at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:200)
    at org.testng.SuiteRunner.run(SuiteRunner.java:243)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

    ReplyDelete
  3. Hi there...
    a really interesting idea... but but very poor documented.
    i actually wanted to know how do you manage the results of last 10 test-runs. ???
    since youve not attached the sources of your code("open-source!"), it not possible to understand what magic does your library uses.
    would be great if you attatch the sources to the downloads, or better you move the project to github or something else.
    thx.

    ReplyDelete
    Replies
    1. I'm also having this error. The situation is next - test is started from GUI and it is run in loop - in the end I receive folders :
      1. Run_1
      2,Run_12
      3.Run-123

      I think that somewhere in code you've put += instead of = that is why this is happening. Please reply. Thanks

      Delete
  4. Do you have the codes for this somewhere which can be shared as this is an open source project

    ReplyDelete

  5. java.lang.IllegalStateException: [ATU Custom Reporter Exception] Unable To Create Required Files for Custom Reports
    at atu.testng.reports.listeners.ATUReportsListener.onStart(Unknown Source)
    at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:197)
    at org.testng.SuiteRunner.run(SuiteRunner.java:238)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
    Caused by: [ATU Custom Reporter Exception] Unable To Create Required Files for Custom Reports
    at atu.testng.reports.utils.SettingsFile.create(Unknown Source)
    at atu.testng.reports.utils.SettingsFile.initSettingsFile(Unknown Source)
    at atu.testng.reports.utils.Directory.verifyRequiredFiles(Unknown Source)
    ... 11 more

    Please help me out . Im facing this error

    ReplyDelete

  6. Hi
    ATU Results generated but not in Order After 5 run.

    ReplyDelete
  7. can anyone tell me how to skip test cases in ATU report

    ReplyDelete
  8. Hi I couldn't find my company logo in report. I have paste my company logo in html_Design_file-->IMG. I have added the path in properties file also.


    Please give soln for it??

    ReplyDelete
  9. Engineering students who are interested in inplant training in chennai can contact us. We provide real time inplant training in chennai for aspiring students.

    ReplyDelete
  10. For first step for each run the bowser type is showing unknown under summery. from second run it is showing correct. Please suggest if it is a defect?

    ReplyDelete
  11. Hello ,
    I am exploring ATU reporter and I'm getting below exception while executing simple test method. Please help me out.

    java.lang.IllegalStateException: java.lang.NullPointerException
    at atu.testng.reports.listeners.ATUReportsListener.onFinish(Unknown Source)
    at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:200)
    at org.testng.SuiteRunner.run(SuiteRunner.java:243)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
    Caused by: java.lang.NullPointerException
    at atu.testng.reports.writers.CurrentRunPageWriter.getPackageName(Unknown Source)
    at atu.testng.reports.writers.CurrentRunPageWriter.writePassedData(Unknown Source)
    at atu.testng.reports.writers.CurrentRunPageWriter.content(Unknown Source)
    at atu.testng.reports.listeners.ATUReportsListener.generateCurrentRunPage(Unknown Source)
    ... 11 more


    Thanks

    ReplyDelete
    Replies
    1. I am also getting the same issue, is any solution to this? please help.

      Delete
    2. I am also getting the same error please let me know the reason

      Delete
  12. Is there any property for disabling ATU reporting when ever required?

    ReplyDelete
    Replies
    1. Hi,

      We can remove/comment properties file path to disable ATU reporting

      Delete
  13. I added ATU report jar file.Added listeners. Is shows error in ATUReports.setWebDriver=driver;
    it shows ther is no such method

    ReplyDelete
    Replies
    1. we need to declare "private WebDriver driver" at class level in the test case then we can use ATUReports.setWebDriver(driver).I think it will help to solve you issue.
      Thanks,

      Delete
  14. Hi AT,

    Could you please help me that how we can share current execution HTML?

    ReplyDelete
  15. [TestNG] Running:
    C:\Users\Goutham\AppData\Local\Temp\testng-eclipse-592829940\testng-customsuite.xml

    java.lang.IllegalStateException: [ATU Custom Reporter Exception] The Path for the Custom Properties file could not be found
    at atu.testng.reports.listeners.ATUReportsListener.onStart(Unknown Source)
    at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:201)
    at org.testng.SuiteRunner.run(SuiteRunner.java:259)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1116)
    at org.testng.TestNG.run(TestNG.java:1024)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)
    Caused by: [ATU Custom Reporter Exception] The Path for the Custom Properties file could not be found
    at atu.testng.reports.utils.Directory.init(Unknown Source)
    at atu.testng.reports.utils.Directory.verifyRequiredFiles(Unknown Source)
    ... 11 more

    ReplyDelete
  16. How to handle parallel execution reporting using ATU Reporter.

    ReplyDelete
  17. While running in parallel, ATU reports merge 2 reports and showing it as one report! How to handle this?

    ReplyDelete
    Replies
    1. I would like to have an answer on this, I'm having 3 reports that I would like to merge into 1

      Delete
  18. Hi ATU, does the ATU support BDD framework, as I am encountering errors when I tried to integrate it. Please share your thoughts

    ReplyDelete
  19. Can we customize how the reports published.
    As of now reports generating in order run 1, run 2, run 3. is there any way we can display latest reports first i.e., run 3 first and then run 2 followed by run 1 in this scenario.

    ReplyDelete
  20. Hi , I got the Excel report generated but i am unable to open the xlsx file ("excel cannot open the file because the extension is not valid") and the file size is 0 . Kindly help me with the same

    ReplyDelete
  21. Langkah paling berani yang diambil oleh player ketika bermain dan menjalankan pemasangan taruhan poker dimana pemain ini akan menyimpan semua chip yang dimilikinya sebagai taruhan dengan kemauan kemenangan dapat lebih besar didapat.
    asikqq
    http://dewaqqq.club/
    http://sumoqq.today/
    interqq
    pionpoker
    bandar ceme terpercaya
    betgratis
    paito warna terlengkap
    syair sgp

    ReplyDelete

  22. java.lang.IllegalStateException: java.lang.NullPointerException
    at atu.testng.reports.listeners.ATUReportsListener.onFinish(Unknown Source)
    at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:304)
    at org.testng.SuiteRunner.run(SuiteRunner.java:367)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
    at org.testng.TestNG.runSuites(TestNG.java:1049)
    at org.testng.TestNG.run(TestNG.java:1017)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
    Caused by: java.lang.NullPointerException
    at atu.testng.reports.writers.CurrentRunPageWriter.getTestCaseHTMLPath(Unknown Source)
    at atu.testng.reports.writers.CurrentRunPageWriter.writeFailedData(Unknown Source)
    at atu.testng.reports.writers.CurrentRunPageWriter.content(Unknown Source)
    at atu.testng.reports.listeners.ATUReportsListener.generateCurrentRunPage(Unknown Source)
    ... 12 more
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8


    Please help me to resolve this issue

    ReplyDelete