This TestNG framework tutorial explains extent reports,how to generate reports,how to build Bat file using ANT,what are listeners
i have seen this video but can you please let me know how to store screenshots taken by webdriver into the folder which is created dynamically in the ExtentManager class. i have created the takeScreenShot in BaseTest class in DDT with junit framework but in that function how can i store screenshots in dynamically crated folder.
ReplyCreate a variable say "screenshotpath" in extent manager. When reports are initialized, update this variable with screenshot path. You can access this variable later to store screenshots. This is also explained in frameworks
ReplyThank you so much for your help. yes it will work now. thanks for quick response.
Reply
Speak Your Mind