Author: andrei_exadel
Date: 2008-04-15 09:54:18 -0400 (Tue, 15 Apr 2008)
New Revision: 7839
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
Log:
refactoring
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-15
13:45:04 UTC (rev 7838)
+++
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-15
13:54:18 UTC (rev 7839)
@@ -130,11 +130,15 @@
* Checks if page containing component test has been rendered completely
*/
public void checkPageRendering() {
- String t1 = getTextById("_Selenium_Test_ControlPoint1");
- String t2 = getTextById("_Selenium_Test_ControlPoint2");
- if (t1 == null || t2 == null || !"Control1".equals(t1) ||
!"Control2".equals(t2)) {
- Assert.fail("The page has been not rendered properlly");
- }
+ try {
+ String t1 = getTextById("_Selenium_Test_ControlPoint1");
+ String t2 = getTextById("_Selenium_Test_ControlPoint2");
+ if (t1 == null || t2 == null || !"Control1".equals(t1) ||
!"Control2".equals(t2)) {
+ Assert.fail("The page has been not rendered properlly");
+ }
+ }catch (Exception e) {
+ Assert.fail("The page has been not rendered properlly by the following error:
" + e);
+ }
}
/**
Show replies by date