2019年10月6日

while loop, for loop

摘要: 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. 阅读全文

posted @ 2019-10-06 17:47 子子清清 阅读(140) 评论(0) 推荐(0) 编辑

basic bash learning 1

摘要: 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 阅读全文

posted @ 2019-10-06 17:22 子子清清 阅读(108) 评论(0) 推荐(0) 编辑

Some useful link for leaning linux shell

摘要: BASH Programming - Introduction HOW-TO http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html For parcticing, you can check out this website called hackerra 阅读全文

posted @ 2019-10-06 13:53 子子清清 阅读(111) 评论(0) 推荐(0) 编辑

2019年10月5日

How to Adding ExtendReport in test framework

摘要: Step 1: Add the extentreport dependency in POM.xml Step2: Prepare a ExtentReportListener which implents IReporter. below is an example. Step3: update 阅读全文

posted @ 2019-10-05 19:02 子子清清 阅读(259) 评论(0) 推荐(0) 编辑

如何解决Extent report 无法加载CSS样式 的问题

摘要: how to fix the ExtentReport.html without css styple See the highlight, add htmlReporter.config().setResourceCDN(ResourceCDN.EXTENTREPORTS); private vo 阅读全文

posted @ 2019-10-05 18:43 子子清清 阅读(964) 评论(0) 推荐(0) 编辑

Capturing Screenshots

摘要: import org.apache.commons.io.FileUtils;import org.openqa.selenium.OutputType;import org.openqa.selenium.TakesScreenshot; protected void takeScreenshot 阅读全文

posted @ 2019-10-05 15:15 子子清清 阅读(186) 评论(0) 推荐(0) 编辑

WebDriver switching to new window

摘要: String firstWindow = driver.getWindowHandle(); Set<String> allWindows = driver.getWindowHandles(); Iterator<String> windowsIterator = allWindows.itera 阅读全文

posted @ 2019-10-05 13:42 子子清清 阅读(106) 评论(0) 推荐(0) 编辑

Data Driven Testing - Using DataProvider

摘要: 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 阅读全文

posted @ 2019-10-05 10:31 子子清清 阅读(138) 评论(0) 推荐(0) 编辑

Data Driven testing - Using parameters in TestNG

摘要: 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 阅读全文

posted @ 2019-10-05 08:46 子子清清 阅读(99) 评论(0) 推荐(0) 编辑

2019年10月4日

Run test case with RemoteWebDriver

摘要: To run with remote webDriver, need add two parameters, URL and Capabilities. E.g. URL: the hub location Capabilities: the remote webdriver type: firef 阅读全文

posted @ 2019-10-04 23:09 子子清清 阅读(101) 评论(0) 推荐(0) 编辑

导航