摘要:
assertTrue 分析: 示例: boolean value=webDriver.findElement(By.xpath("......")).isDisplay();//判断是否显示xx assertTrue("Failed to go to the Login page", value); 阅读全文
posted @ 2017-02-03 18:09
留白*
阅读(26134)
评论(0)
推荐(0)
摘要:
定义一个类,在类的上方添加@RunWith(Suite.class)和@SuiteClasses({XX.class,YY.class,...})实例有两个类分别为:public class Login{ @Beforepublic void setUp() throws Exception{... 阅读全文
posted @ 2017-02-03 17:43
留白*
阅读(342)
评论(0)
推荐(0)
摘要:
在eclipse主窗口最上面的工具条选项中,找到Window,点击里面的Reset Perspective,即可,这样视图就重置了。 在eclipse主窗口最上面的工具条选项中,找到Window,点击里面的Reset Perspective,即可,这样视图就重置了。 Path: Window>>>> 阅读全文
posted @ 2017-02-03 11:52
留白*
阅读(2468)
评论(0)
推荐(1)
摘要:
import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.CoreMatchers.anyOf; import static org.hamcrest.CoreMatchers.both; import sta 阅读全文
posted @ 2017-02-03 11:03
留白*
阅读(1028)
评论(0)
推荐(0)
摘要:
@BeforeClass public static void setUpBeforeClass() throws Exception { } @AfterClass public static void tearDownAfterClass() throws Exception { } 1)使用@ 阅读全文
posted @ 2017-02-03 10:03
留白*
阅读(2485)
评论(0)
推荐(0)