Forum Discussion

Krishna_Kumar's avatar
Krishna_Kumar
Contributor
5 years ago
Solved

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
    5 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
    5 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.