Author: mvitenkov
Date: 2009-06-01 05:22:03 -0400 (Mon, 01 Jun 2009)
New Revision: 14419
Modified:
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf7140/Test.java
Log:
test correction
Modified:
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf7140/Test.java
===================================================================
---
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf7140/Test.java 2009-06-01
09:12:24 UTC (rev 14418)
+++
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf7140/Test.java 2009-06-01
09:22:03 UTC (rev 14419)
@@ -4,26 +4,27 @@
import org.testng.Assert;
public class Test extends SeleniumTestBase {
+ private static final String FORM = "form";
@org.testng.annotations.Test
public void testExecute() throws Exception {
renderPage();
- clickAjaxCommandAndWait("//form[@id='form']/table[1]/thead/tr/th");
- String t1FirstRow =
selenium.getTable("//form[(a)id='form']/table[1].1.0");
- String t1LastRow =
selenium.getTable("//form[(a)id='form']/table[1].4.0");
+ clickAjaxCommandAndWait("//form[@id='" + FORM +
"']/table[1]/thead/tr/th");
+ String t1FirstRow = selenium.getTable("//form[@id='" + FORM +
"']/table[1].1.0");
+ String t1LastRow = selenium.getTable("//form[@id='" + FORM +
"']/table[1].4.0");
clickAjaxCommandAndWait("//form[@id='form']/table[1]/thead/tr/th");
- Assert.assertEquals(selenium.getTable("//form[(a)id='form']/table[1].1.0"),
t1LastRow);
- Assert.assertEquals(selenium.getTable("//form[(a)id='form']/table[1].4.0"),
t1FirstRow);
+ Assert.assertEquals(selenium.getTable("//form[@id='" + FORM +
"']/table[1].1.0"), t1LastRow);
+ Assert.assertEquals(selenium.getTable("//form[@id='" + FORM +
"']/table[1].4.0"), t1FirstRow);
clickAjaxCommandAndWait("//form[@id='form']/table[4]/thead/tr/th");
- String t4FirstRow =
selenium.getTable("//form[(a)id='form']/table[4].1.0");
- String t4LastRow =
selenium.getTable("//form[(a)id='form']/table[4].4.0");
+ String t4FirstRow = selenium.getTable("//form[@id='" + FORM +
"']/table[4].1.0");
+ String t4LastRow = selenium.getTable("//form[@id='" + FORM +
"']/table[4].4.0");
clickAjaxCommandAndWait("//form[@id='form']/table[4]/thead/tr/th");
- Assert.assertEquals(selenium.getTable("//form[(a)id='form']/table[4].1.0"),
t4LastRow);
- Assert.assertEquals(selenium.getTable("//form[(a)id='form']/table[4].4.0"),
t4FirstRow);
+ Assert.assertEquals(selenium.getTable("//form[@id='" + FORM +
"']/table[4].1.0"), t4LastRow);
+ Assert.assertEquals(selenium.getTable("//form[@id='" + FORM +
"']/table[4].4.0"), t4FirstRow);
}