Forum Discussion

Krishna_Kumar's avatar
Krishna_Kumar
Contributor
6 years ago

Error: Error while generating Extent Report in Test complete

Am trying to generate extent report with test complete. Below are the configuration I tried,  but am getting an error. Error:  "TypeError: Cannot read property 'ExtentReports' of undefined"   ...
  • AlexKaras's avatar
    AlexKaras
    6 years ago

    Hi,

     

    Well... At a glance:

    -- The screenshot references com_relevantcodes_extentreports.ExtentReport class

    -- While the error says about .ExtentReports

     

    What if you change .ExtentReports to .ExtentReport ? Does it help?

     

  • tristaanogre's avatar
    tristaanogre
    6 years ago

    My guess is that it's a similar problem to what you already fixed... that you may have a typo or something that is misrepresenting the object in question.  You need to make sure that you are using the object as it is referenced by the TestComplete engine.  JavaBridge objects do have Intellisence capabilities so try and see what's available there.