Author: vuthelinh
Date: 2010-09-21 22:20:40 -0400 (Tue, 21 Sep 2010)
New Revision: 4300
Modified:
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java
Log:
resolve Selegen - 23 and 24
Modified:
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java 2010-09-22
01:05:10 UTC (rev 4299)
+++
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java 2010-09-22
02:20:40 UTC (rev 4300)
@@ -374,6 +374,11 @@
sb.append("(\"");
sb.append(param2);
sb.append("\"));\n");
+ } else if (param1.equals("verifyVisible")) {
+ sb.append("TestCase.assertTrue(selenium.isVisible");
+ sb.append("(\"");
+ sb.append(param2);
+ sb.append("\"));\n");
} else if (param1.equals("verifyChecked")) {
sb.append("verifyTrue(selenium.isChecked");
sb.append("(\"");
@@ -456,6 +461,8 @@
sb.append("selenium.waitForPageToLoad(timeout);\n");
} else if (param1.equals("storeAttribute")) {
sb.append("String ").append(param3).append(" =
").append("selenium.getAttribute(\"").append(param2).append("\");\n");
+ } else if (param1.equals("storeElementPositionTop")) {
+ sb.append("String ").append(param3).append(" =
").append("selenium.getElementPositionTop(\"").append(param2).append("\");\n");
} else if (param1.equals("verifyElementPositionTop")) {
sb.append("verifyEquals(").append("\"").append(param3).append("\",
").append("selenium.getElementPositionTop(\"").append(param2).append("\"));\n");
} else if (param1.equals("echo")) {
Show replies by date