Author: vuthelinh
Date: 2010-09-13 06:54:28 -0400 (Mon, 13 Sep 2010)
New Revision: 4171
Modified:
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java
Log:
add assertAlert() command. it is used in Test_SNF_ECMS_03_CreateCLVPageByContent_ecmdemo
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-13
10:33:00 UTC (rev 4170)
+++
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java 2010-09-13
10:54:28 UTC (rev 4171)
@@ -162,7 +162,11 @@
sb.append("TestCase.assertTrue(selenium.getConfirmation().matches(\"^");
sb.append(param2);
sb.append("$\"));\n");
- } else if (param1.equals("assertLocation")) {
+ } else if (param1.equals("assertAlert")) {
+ sb.append("TestCase.assertTrue(selenium.getAlert().matches(\"^");
+ sb.append(param2);
+ sb.append("$\"));\n");
+ }else if (param1.equals("assertLocation")) {
sb.append("TestCase.assertTrue(selenium.getLocation().matches(\"^");
sb.append(param2);
sb.append("$\"));\n");
Show replies by date