摘要:1. create a function to generate file with the filename start with 10 random characters 2. Using for loop to write a function to rename file in batch.
阅读全文
摘要:1) a function to check the free memory: 2) using for loop to print the odd number from 1 to 99 3) If and case 4. delete the function name from termina
阅读全文
摘要:BASH Programming - Introduction HOW-TO http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html For parcticing, you can check out this website called hackerra
阅读全文
摘要:Step 1: Add the extentreport dependency in POM.xml Step2: Prepare a ExtentReportListener which implents IReporter. below is an example. Step3: update
阅读全文
摘要:how to fix the ExtentReport.html without css styple See the highlight, add htmlReporter.config().setResourceCDN(ResourceCDN.EXTENTREPORTS); private vo
阅读全文
摘要:import org.apache.commons.io.FileUtils;import org.openqa.selenium.OutputType;import org.openqa.selenium.TakesScreenshot; protected void takeScreenshot
阅读全文
摘要:String firstWindow = driver.getWindowHandle(); Set<String> allWindows = driver.getWindowHandles(); Iterator<String> windowsIterator = allWindows.itera
阅读全文
摘要:Advantages of using data driven framework: Re-usable code Better test coverage Less Maintenance E.g: using invalid login scenario as an example. 1. de
阅读全文
摘要:e.g. for the login case, originally it's hard coded in the script. now using parameters in TestNG.xml //private static String username = "user01; //pr
阅读全文
摘要:To run with remote webDriver, need add two parameters, URL and Capabilities. E.g. URL: the hub location Capabilities: the remote webdriver type: firef
阅读全文