Professional Documents
Culture Documents
Reference Material for AutoIT
Reference Material for AutoIT
What is AutoIT
Install AutoIT
AutoIT Scripting
Integrating AutoIT with Selenium
ControlFocus("Open","","Edit1")
ControlSetText("Open","","Edit1","C:\Users\rahul\Documents\check\visit.pdf")
ControlClick("Open","","Button1")
Runtime.getruntime.exe(“exe file path”)
Runtime.getruntime.exe(“.exe file path”)
Extent report:
Create object extentsparkreporter class- Explicitly provide a path to store extent report
Extentspark reporter is a helper class which is helping to create some configuration and that will
finally report to main class which is extentsreports
Extent.flush ()- is used to generate report. Which we need to write add the end of test
Program:
ExtentReports extent;
@BeforeTest
es.config().setReportName("WebAutomation Result");
es.config().setDocumentTitle("test result");
extent.attachReporter(es);
extent.setSystemInfo("Tester", "Divya");
@Test
extent.createTest("reports");
//System.setProperty("webdriver.chrome.driver","C:\\Users\\Divya\\eclipse-
workspace\\selenium\\src\\test\\resources\\config.properties");
driver.get("https://rahulshettyacademy.com/AutomationPractice/");
extent.flush();