Author: arthurpeltier
Date: 2010-03-09 04:33:35 -0500 (Tue, 09 Mar 2010)
New Revision: 2052
Modified:
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java
Log:
GTNPORTAL-741 : * Add "VerifyText" action to SeleniumTestCaseGenerator.java
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-03-09
09:31:12 UTC (rev 2051)
+++
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java 2010-03-09
09:33:35 UTC (rev 2052)
@@ -254,6 +254,13 @@
sb.append("(selenium.isTextPresent(\"");
sb.append(param2);
sb.append("\"));\n");
+ } else if (param1.equals("verifyText")) {
+ sb.append("TestCase.assertTrue");
+ sb.append("(selenium.getText(\"");
+ sb.append(param2);
+ sb.append("\").equals(\"");
+ sb.append(param3);
+ sb.append("\"));\n");
} else if (param1.equals("verifyTitle")) {
sb.append("TestCase.assertEquals(\"");
sb.append(param2);
Show replies by date