@Test public void testSelectDataLayout() { connectUrl("http://code.google.com/p/aost/issues/list"); useCache(false); useCssSelector(false); tisp.selectDataLayout("Grid"); tisp.selectDataLayout("List"); useCache(true); useCssSelector(false); }
@Test public void testSelectColumnMenu() { connectUrl("http://code.google.com/p/aost/issues/list"); useCache(false); useCssSelector(false); tisp.toggleIdColumn("ID"); tisp.toggleIdColumn("Owner"); // tisp.toggleIdColumn("Closed"); useCache(true); useCssSelector(false); }
@Test public void testIdMenu() { connectUrl("http://code.google.com/p/aost/issues/list"); useCache(false); useCssSelector(false); tisp.clickOnTableHeader(2); tisp.mouseMoveIdMenu(); tisp.clickIdMenuSortDown(); tisp.clickIdMenuSortUp(); useCache(true); useCssSelector(true); }
@Test public void testDump() { useCssSelector(false); tisp.dump("issueAdvancedSearch"); useCssSelector(true); useCache(false); tisp.dump("issueAdvancedSearch"); useCssSelector(true); useCache(true); tisp.dump("issueAdvancedSearch"); }
@BeforeClass public static void initUi() { tisp = new TelluriumIssuesPage(); tisp.defineUi(); connectSeleniumServer(); useCssSelector(true); useCache(true); }
@Test public void testSearchIssueTypes() { connectUrl("http://code.google.com/p/aost/issues/list"); useCssSelector(true); useCache(true); setCacheMaxSize(10); String[] ists = tisp.getIsssueTypes(); tisp.selectIssueType(ists[2]); tisp.searchIssue("Alter"); showCacheUsage(); }
@Test public void testGetCellCount() { connectUrl("http://code.google.com/p/aost/issues/list"); useCssSelector(true); useCache(true); useTelluriumApi(true); int count = tisp.getTableCellCount(); assertTrue(count > 0); System.out.println("Cell size: " + count); String[] details = tisp.getAllText(); useTelluriumApi(false); assertNotNull(details); assertEquals(details.length, count); }