本文整理汇总了Java中org.suren.autotest.webdriver.downloader.DriverMapping类的典型用法代码示例。如果您正苦于以下问题:Java DriverMapping类的具体用法?Java DriverMapping怎么用?Java DriverMapping使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DriverMapping类属于org.suren.autotest.webdriver.downloader包,在下文中一共展示了DriverMapping类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: browserMap
import org.suren.autotest.webdriver.downloader.DriverMapping; //导入依赖的package包/类
@Test
public void browserMap()
{
DriverMapping driverMapping = new DriverMapping();
driverMapping.init();
Map<String, Set<String>> supportBrowser = driverMapping.supportBrowser();
Assert.assertNotNull(supportBrowser);
Assert.assertTrue(supportBrowser.size() > 0);
for(String type : supportBrowser.keySet())
{
Assert.assertNotNull(type);
System.out.println(type);
Set<String> list = supportBrowser.get(type);
Assert.assertNotNull(list);
Assert.assertTrue(list.size() > 0);
System.out.println(list);
}
}
示例2: chrome
import org.suren.autotest.webdriver.downloader.DriverMapping; //导入依赖的package包/类
@Test
public void chrome()
{
DriverMapping driverMapping = new DriverMapping();
driverMapping.init();
String url = driverMapping.getUrl("chrome", "56");
Assert.assertNotNull(url);
}