上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 47 下一页

2015年6月16日

摘要: Reading Properties file :Properties prop = new Properties()def path = "D:\\SoapUIStudy\\application.properties"FileInputStream fs = new FileInputStrea... 阅读全文
posted @ 2015-06-16 15:15 张缤分 阅读(188) 评论(0) 推荐(0)
摘要: Hashset:HashSet set = new HashSet()set.add("India")set.add("USA")set.add("China")log.info "Set size is : " + set.size()set.add("China")log.info "Set s... 阅读全文
posted @ 2015-06-16 15:08 张缤分 阅读(341) 评论(0) 推荐(0)
摘要: Array:def x = new String[5]x[0] = "India"x[1] = "USA"x[2] = "Korea"x[3] = "Japan"x[4] = "China"log.info "Size of list is " + x.size()log.info "The fir... 阅读全文
posted @ 2015-06-16 14:54 张缤分 阅读(410) 评论(0) 推荐(0)
摘要: def x="I like to read books before bed"def temp = x.split(" ")log.info "Size of array is : "+temp.lengthlog.info temp[0]log.info temp[1]log.info x.sub... 阅读全文
posted @ 2015-06-16 14:42 张缤分 阅读(383) 评论(0) 推荐(0)
摘要: Code example :package com.file.properties;import java.io.FileInputStream;import java.util.Properties;public class ReadProperties { Properties prop; ... 阅读全文
posted @ 2015-06-16 14:16 张缤分 阅读(180) 评论(0) 推荐(0)

2015年6月9日

摘要: public void dragWidgetToElementContainner(String widgetName, String targetPosition){ WebElement widgetIconEl=page.getWidgetIconInDockMenu(widgetName)... 阅读全文
posted @ 2015-06-09 13:44 张缤分 阅读(425) 评论(0) 推荐(0)
摘要: 当Case在本地运行成功,在Grid模式下运行失败时,我们需要在Grid模式下进行调试,同时登录远程的node去查看运行的情况。Hub是随机将case分配到某台node上运行的,怎样知道当前的case是运行在哪台node上呢?可以通过这段代码获取node的信息:public void getComp... 阅读全文
posted @ 2015-06-09 11:23 张缤分 阅读(463) 评论(0) 推荐(0)

2015年6月8日

摘要: 通过java获取计算机名String hostname = "Unknown"; try { InetAddress addr; addr = InetAddress.getLocalHost(); hostname = addr.getHostName(); }... 阅读全文
posted @ 2015-06-08 17:34 张缤分 阅读(2187) 评论(0) 推荐(0)

2015年6月5日

摘要: 点击下拉框之后,下拉列表会显示出来,但是有时候下拉列表会很快就消失掉,导致后面选择元素的时候会失败。像这种情况,需要将鼠标移动到下拉列表上,使下拉列表维持显示,然后才选择元素进行点击。将鼠标移动到下拉列表上,有时候只要提供整个下拉列表的Dom结构就可以,有时候下拉列表很长,这种方式也会失败。后来采用... 阅读全文
posted @ 2015-06-05 17:07 张缤分 阅读(3366) 评论(0) 推荐(0)

2015年6月4日

摘要: Description:Find outthe DDLin Treegrid, but cannot clickonit.Because the element is under a hidden element.Have tried all below solutions:1) theDDL.cl... 阅读全文
posted @ 2015-06-04 18:09 张缤分 阅读(437) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 47 下一页

导航