Author: vrockai
Date: 2008-11-07 08:45:45 -0500 (Fri, 07 Nov 2008)
New Revision: 12271
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
dashboard config very slow speed7
Modified: branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2008-11-07 12:22:15 UTC
(rev 12270)
+++ branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/build.xml 2008-11-07 13:45:45 UTC
(rev 12271)
@@ -66,6 +66,7 @@
<arg value="44444" />
<arg value="-log" />
<arg value="selenium.log" />
+ <arg value="-debug" />
<arg value="-userExtensions" />
<arg value="${selsrv.dir}/user-extensions.js" />
</java>
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-07
12:22:15 UTC (rev 12270)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2008-11-07
13:45:45 UTC (rev 12271)
@@ -28,21 +28,21 @@
@BeforeMethod(groups = { "log" })
public void loginBeforeTest() {
- selenium.setSpeed("0");
+ //selenium.setSpeed("0");
login("admin", "admin");
//selenium.setSpeed("10000");
}
@AfterMethod(groups = { "log" })
public void logoutAfterTest() {
- selenium.setSpeed("0");
+ //selenium.setSpeed("0");
logout();
}
@Test(enabled = true)
public void testCreatePage() {
- selenium.setSpeed("0");
+ //selenium.setSpeed("0");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
@@ -61,7 +61,7 @@
@Test(enabled = true, dependsOnMethods = { "testCreatePage" })
public void testUpdateTheme() {
- selenium.setSpeed("10000");
+ //selenium.setSpeed("10000");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
@@ -69,16 +69,12 @@
selectIfNotSelected(SEL_PAGE,"DashTestPage");
- for (String s: selenium.getSelectOptions(SEL_THEME))
- System.out.println("LABEL!:"+s);
-
selenium.select(SEL_THEME, "label=renaissance");
- System.out.println("HOLA2"+selenium.getValue(SUB_LAYOUTSEL));
- System.out.println("HOLA2"+selenium.getXpathCount(SUB_LAYOUTSEL));
+ System.out.println("HOLA2"+selenium.getSelectedLabel(SEL_THEME));
selenium.click(SUB_THEMESEL);
selenium.waitForPageToLoad(PAGE_LOAD);
-
+ System.out.println("HOLA2"+selenium.getSelectedLabel(SEL_THEME));
selenium.windowMaximize();
selenium.captureScreenshot("2x.jpg");
@@ -98,26 +94,24 @@
@Test(enabled = true, dependsOnMethods = { "testCreatePage" })
public void testUpdateLayout() {
- selenium.setSpeed("10000");
+ //selenium.setSpeed("10000");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.click(LNK_CONFIGURE_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.windowMaximize();
selectIfNotSelected(SEL_PAGE,"DashTestPage");
- for (String s: selenium.getSelectOptions(SEL_LAYOUT))
- System.out.println("LABEL!:"+s);
+
selenium.captureScreenshot("3x1.jpg");
selenium.select(SEL_LAYOUT, "label=generic");
+ System.out.println("HOLA3"+selenium.getSelectedLabel(SEL_LAYOUT));
selenium.captureScreenshot("3x2.jpg");
-
- System.out.println("HOLA2"+selenium.getValue(SUB_LAYOUTSEL));
- System.out.println("HOLA2"+selenium.getXpathCount(SUB_LAYOUTSEL));
- selenium.click(SUB_LAYOUTSEL);
+
+ selenium.clickAt(SUB_LAYOUTSEL,"0, 0");
selenium.captureScreenshot("3x3.jpg");
selenium.waitForPageToLoad(PAGE_LOAD);
selenium.captureScreenshot("3x4.jpg");
-
+ System.out.println("HOLA3"+selenium.getSelectedLabel(SEL_LAYOUT));
selenium.captureScreenshot("3x.jpg");
selenium.click(LNK_DASHBOARD);
@@ -136,7 +130,7 @@
@Test(enabled = true, dependsOnMethods = { "testCreatePage" })
public void testAddPortlet() {
- selenium.setSpeed("10000");
+ //selenium.setSpeed("10000");
selenium.click(LNK_DASHBOARD);
selenium.waitForPageToLoad(PAGE_LOAD);
Show replies by date