Author: ppitonak(a)redhat.com
Date: 2009-09-09 03:45:43 -0400 (Wed, 09 Sep 2009)
New Revision: 15501
Added:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/messages.properties
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarStylingTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/OrganizerTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/locators.properties
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/messages.properties
Log:
* CalendarStylingTestCase, CalendarTestCase, OrganizerTestCase, ColorPickerTestCase and
ComboBoxTestCase refactored
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarStylingTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarStylingTestCase.java 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarStylingTestCase.java 2009-09-09
07:45:43 UTC (rev 15501)
@@ -1,3 +1,21 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
package org.jboss.richfaces.integrationTest.calendar;
import static org.testng.Assert.assertTrue;
@@ -14,13 +32,9 @@
*/
public class CalendarStylingTestCase extends AbstractSeleniumRichfacesTestCase {
- // messages
- private final String MSG_COMPONENT_DESCRIPTION_3 =
getMsg("COMPONENT_DESCRIPTION_3");
- private final String MSG_EVERY_THIRD_CELL = getMsg("EVERY_THIRD_CELL");
-
// locators
private final String LOC_STYLING_FIELDSET = getLoc("STYLING_FIELDSET");
- private final String LOC_STYLING_CELL_X_Y = getLoc("STYLING_CELL_X_Y");
+ private final String LOC_STYLING_CELL_PREFORMATTED =
getLoc("STYLING_CELL_PREFORMATTED");
private final String LOC_STYLING_CALENDAR_BUTTON =
getLoc("STYLING_CALENDAR_BUTTON");
private final String LOC_STYLING_RIGHT_ARROW =
getLoc("STYLING_RIGHT_ARROW");
@@ -40,12 +54,12 @@
for (int i = 3; i < 9; i++) {
for (int j = 2; j < 9; j++) {
- text = selenium.getText(String.format(LOC_STYLING_CELL_X_Y, i, j));
+ text = selenium.getText(format(LOC_STYLING_CELL_PREFORMATTED, i, j));
date = Integer.parseInt(text);
if (date % 3 == 0) {
- text = selenium.getAttribute(String.format(LOC_STYLING_CELL_X_Y, i,
j) + "@class");
+ text = selenium.getAttribute(format(LOC_STYLING_CELL_PREFORMATTED, i,
j) + "@class");
assertTrue(text.contains("everyThirdDay") ||
text.contains("rich-calendar-boundary-dates"),
- MSG_EVERY_THIRD_CELL);
+ "Every third cell should be either disabled (boundary
dates) or styled (dates from current month).");
}
}
}
@@ -69,9 +83,11 @@
/**
* Loads the page containing the calendar component.
*/
+ @SuppressWarnings("unused")
@BeforeMethod
private void loadPage() {
- super.loadPage("richInputs", 1, 3, MSG_COMPONENT_DESCRIPTION_3);
+ openComponent("Calendar");
+ openTab("Client Side Disable/Styling");
scrollIntoView(LOC_STYLING_FIELDSET, true);
}
}
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarTestCase.java 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/CalendarTestCase.java 2009-09-09
07:45:43 UTC (rev 15501)
@@ -1,22 +1,19 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces
- *
- * Copyright (C) 2009 Red Hat, Inc.
- *
- * This code is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this code; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
*/
package org.jboss.richfaces.integrationTest.calendar;
@@ -350,6 +347,7 @@
/**
* Loads the page containing the calendar component.
*/
+ @SuppressWarnings("unused")
@BeforeMethod
private void loadPage() {
openComponent("Calendar");
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/OrganizerTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/OrganizerTestCase.java 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/calendar/OrganizerTestCase.java 2009-09-09
07:45:43 UTC (rev 15501)
@@ -38,22 +38,13 @@
*/
public class OrganizerTestCase extends AbstractSeleniumRichfacesTestCase {
- // messages
- private final String MSG_COMPONENT_DESCRIPTION =
getMsg("COMPONENT_DESCRIPTION");
- private final String MSG_CLASS_ATTRIBUTE_TODAY =
getMsg("CLASS_ATTRIBUTE_TODAY");
- private final String MSG_CLASS_ATTRIBUTE_GREY =
getMsg("CLASS_ATTRIBUTE_GREY");
- private final String MSG_DIALOG_VISIBLE = getMsg("DIALOG_VISIBLE");
- private final String MSG_DIALOG_NOT_VISIBLE =
getMsg("DIALOG_NOT_VISIBLE");
- private final String MSG_CELL_X_Y_NOTE = getMsg("CELL_X_Y_NOTE");
- private final String MSG_CELL_X_Y_DESC = getMsg("CELL_X_Y_DESC");
-
// locators
private final String LOC_FIELDSET = getLoc("FIELDSET");
- private final String LOC_CELL_X_Y = getLoc("CELL_X_Y");
- private final String LOC_CELL_X_Y_DATE = getLoc("CELL_X_Y_DATE");
- private final String LOC_CELL_X_Y_DESC = getLoc("CELL_X_Y_DESC");
- private final String LOC_CELL_X_Y_NOTE = getLoc("CELL_X_Y_NOTE");
+ private final String LOC_CELL_PREFORMATTED = getLoc("CELL_PREFORMATTED");
+ private final String LOC_CELL_DATE_PREFORMATTED =
getLoc("CELL_DATE_PREFORMATTED");
+ private final String LOC_CELL_DESC_PREFORMATTED =
getLoc("CELL_DESC_PREFORMATTED");
+ private final String LOC_CELL_NOTE_PREFORMATTED =
getLoc("CELL_NOTE_PREFORMATTED");
private final String LOC_DIALOG = getLoc("DIALOG");
private final String LOC_DIALOG_DESCRIPTION =
getLoc("DIALOG_DESCRIPTION");
@@ -70,18 +61,18 @@
public void testTodayIsHighlighted() {
String today =
Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH));
String text = null;
-
+
int fromLine = 3;
if (Integer.parseInt(today) > 15) {
fromLine = 5;
}
-
+
for (int i = fromLine; i < 9; i++) {
for (int j = 1; j < 8; j++) {
- text = selenium.getText(String.format(LOC_CELL_X_Y_DATE, i, j));
+ text = selenium.getText(format(LOC_CELL_DATE_PREFORMATTED, i, j));
if (today.equals(text)) {
- text = selenium.getAttribute(String.format(LOC_CELL_X_Y, i, j) +
"@class");
- assertTrue(text.contains("rich-calendar-today"),
MSG_CLASS_ATTRIBUTE_TODAY);
+ assertTrue(belongsClass("rich-calendar-today",
format(LOC_CELL_PREFORMATTED, i, j)),
+ "Class attribute of the cell with today's date
should contain \"rich-calendar-today\".");
return;
}
}
@@ -94,8 +85,8 @@
*/
@Test
public void testLastDayIsGrey() {
- String attr = selenium.getAttribute(String.format(LOC_CELL_X_Y, 8, 7) +
"@class");
- assertTrue(attr.contains("rich-calendar-boundary-dates"),
MSG_CLASS_ATTRIBUTE_GREY);
+ assertTrue(belongsClass("rich-calendar-boundary-dates",
format(LOC_CELL_PREFORMATTED, 8, 7)),
+ "Class attribute of the last cell should contain
\"rich-calendar-boundary-dates\".");
}
/**
@@ -107,12 +98,12 @@
*/
@Test
public void testSaveNote() {
- String text = selenium.getText(String.format(LOC_CELL_X_Y_DESC, 4, 3));
- assertEquals(text, "Nothing planned", String.format(MSG_CELL_X_Y_DESC,
4, 3));
+ String text = selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 4, 3));
+ assertEquals(text, "Nothing planned", "The description in the cell
(week 2, day 3).");
- assertFalse(isDisplayed(LOC_DIALOG), MSG_DIALOG_NOT_VISIBLE);
+ assertFalse(isDisplayed(LOC_DIALOG), "Dialog should not be visible.");
- selenium.click(String.format(LOC_CELL_X_Y, 4, 3));
+ selenium.click(format(LOC_CELL_PREFORMATTED, 4, 3));
// wait for JavaScript to show the dialog
Wait.until(new Condition() {
@@ -121,7 +112,7 @@
}
});
- assertTrue(isDisplayed(LOC_DIALOG), MSG_DIALOG_VISIBLE);
+ assertTrue(isDisplayed(LOC_DIALOG), "Dialog should be visible.");
selenium.type(LOC_DIALOG_DESCRIPTION, "some description");
selenium.type(LOC_DIALOG_NOTE, "note note note note note");
@@ -129,18 +120,16 @@
// wait for JavaScript to change the organizer
Wait.until(new Condition() {
-
public boolean isTrue() {
- return !"Nothing
planned".equals(selenium.getText(String.format(LOC_CELL_X_Y_DESC, 4, 3)));
+ return !"Nothing
planned".equals(selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 4, 3)));
}
-
});
- text = selenium.getText(String.format(LOC_CELL_X_Y_DESC, 4, 3));
- assertEquals(text, "some description", String.format(MSG_CELL_X_Y_DESC,
2, 3));
+ text = selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 4, 3));
+ assertEquals(text, "some description", "The description in the
cell (week 2, day 3).");
- text = selenium.getText(String.format(LOC_CELL_X_Y_NOTE, 4, 3));
- assertEquals(text, "note note note note note",
String.format(MSG_CELL_X_Y_NOTE, 2, 3));
+ text = selenium.getText(format(LOC_CELL_NOTE_PREFORMATTED, 4, 3));
+ assertEquals(text, "note note note note note", "The note in the
cell (week 2, day 3).");
}
/**
@@ -151,12 +140,12 @@
*/
@Test
public void testCancelNoteCancelButton() {
- String text = selenium.getText(String.format(LOC_CELL_X_Y_DESC, 5, 3));
- assertEquals(text, "Nothing planned", String.format(MSG_CELL_X_Y_DESC,
3, 3));
+ String text = selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 5, 3));
+ assertEquals(text, "Nothing planned", "The description in the cell
(week 3, day 3).");
- assertFalse(isDisplayed(LOC_DIALOG), MSG_DIALOG_NOT_VISIBLE);
+ assertFalse(isDisplayed(LOC_DIALOG), "Dialog should not be visible.");
- selenium.click(String.format(LOC_CELL_X_Y, 5, 3));
+ selenium.click(format(LOC_CELL_PREFORMATTED, 5, 3));
// wait for JavaScript to show the dialog
Wait.until(new Condition() {
@@ -165,7 +154,7 @@
}
});
- assertTrue(isDisplayed(LOC_DIALOG), MSG_DIALOG_VISIBLE);
+ assertTrue(isDisplayed(LOC_DIALOG), "Dialog should be visible.");
selenium.type(LOC_DIALOG_DESCRIPTION, "some description");
selenium.type(LOC_DIALOG_NOTE, "note note note note note");
@@ -174,11 +163,11 @@
// wait for JavaScript to finish - nothing should change
waitFor(3000);
- text = selenium.getText(String.format(LOC_CELL_X_Y_DESC, 5, 3));
- assertEquals(text, "Nothing planned", String.format(MSG_CELL_X_Y_DESC,
3, 3));
+ text = selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 5, 3));
+ assertEquals(text, "Nothing planned", "The description in the cell
(week 3, day 3).");
- text = selenium.getText(String.format(LOC_CELL_X_Y_NOTE, 5, 3));
- assertEquals(text, "", String.format(MSG_CELL_X_Y_NOTE, 3, 3));
+ text = selenium.getText(format(LOC_CELL_NOTE_PREFORMATTED, 5, 3));
+ assertEquals(text, "", "The note in the cell (week 3, day
3).");
}
/**
@@ -189,12 +178,12 @@
*/
@Test
public void testCancelNoteCrossButton() {
- String text = selenium.getText(String.format(LOC_CELL_X_Y_DESC, 5, 5));
- assertEquals(text, "Nothing planned", String.format(MSG_CELL_X_Y_DESC,
3, 5));
+ String text = selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 5, 5));
+ assertEquals(text, "Nothing planned", "The description in the cell
(week 3, day 5).");
- assertFalse(isDisplayed(LOC_DIALOG), MSG_DIALOG_NOT_VISIBLE);
+ assertFalse(isDisplayed(LOC_DIALOG), "Dialog should be visible.");
- selenium.click(String.format(LOC_CELL_X_Y, 5, 5));
+ selenium.click(format(LOC_CELL_PREFORMATTED, 5, 5));
// wait for JavaScript to show the dialog
Wait.until(new Condition() {
@@ -203,7 +192,7 @@
}
});
- assertTrue(isDisplayed(LOC_DIALOG), MSG_DIALOG_VISIBLE);
+ assertTrue(isDisplayed(LOC_DIALOG), "Dialog should be visible.");
selenium.type(LOC_DIALOG_DESCRIPTION, "some description");
selenium.type(LOC_DIALOG_NOTE, "note note note note note");
@@ -212,11 +201,11 @@
// wait for JavaScript to finish - nothing should change
waitFor(3000);
- text = selenium.getText(String.format(LOC_CELL_X_Y_DESC, 5, 5));
- assertEquals(text, "Nothing planned", String.format(MSG_CELL_X_Y_DESC,
3, 5));
+ text = selenium.getText(format(LOC_CELL_DESC_PREFORMATTED, 5, 5));
+ assertEquals(text, "Nothing planned", "The description in the cell
(week 3, day 5).");
- text = selenium.getText(String.format(LOC_CELL_X_Y_NOTE, 5, 5));
- assertEquals(text, "", String.format(MSG_CELL_X_Y_NOTE, 3, 5));
+ text = selenium.getText(format(LOC_CELL_NOTE_PREFORMATTED, 5, 5));
+ assertEquals(text, "", "The note in the cell (week 3, day
5).");
}
/**
@@ -277,6 +266,7 @@
/**
* Loads the page containing the calendar component.
*/
+ @SuppressWarnings("unused")
@BeforeMethod
private void loadPage() {
openComponent("Calendar");
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/colorPicker/ColorPickerTestCase.java 2009-09-09
07:45:43 UTC (rev 15501)
@@ -1,22 +1,19 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces
- *
- * Copyright (C) 2009 Red Hat, Inc.
- *
- * This code is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this code; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
*/
package org.jboss.richfaces.integrationTest.colorPicker;
@@ -578,6 +575,7 @@
/**
* Loads the page containing the color picker component.
*/
+ @SuppressWarnings("unused")
@BeforeMethod
private void loadPage() {
openComponent("Color Picker");
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/comboBox/ComboBoxTestCase.java 2009-09-09
07:45:43 UTC (rev 15501)
@@ -1,29 +1,26 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces
- *
- * Copyright (C) 2009 Red Hat, Inc.
- *
- * This code is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this code; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
*/
package org.jboss.richfaces.integrationTest.comboBox;
import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertTrue;
import static org.testng.Assert.assertEqualsNoOrder;
-import static org.testng.Assert.assertTrue;
import org.jboss.richfaces.integrationTest.AbstractSeleniumRichfacesTestCase;
import org.testng.annotations.BeforeMethod;
@@ -37,21 +34,39 @@
*/
public class ComboBoxTestCase extends AbstractSeleniumRichfacesTestCase {
- private final String firstComboInput =
"//fieldset[1]/div/div[1]/div/div[2]/input[1]";
- private final String firstComboButton =
"//fieldset[1]/div/div[1]/div/div[2]/input[3]";
- private final String firstComboConcreteSuggestion =
"//body//div[@class='rich-combobox-list-scroll']/span[{0}]";
- private final String firstComboSuggestions =
"//body//div[@class='rich-combobox-list-scroll']/span";
+ // locators
+ private final String LOC_FIRST_COMBO_INPUT = getLoc("FIRST_COMBO_INPUT");
+ private final String LOC_FIRST_COMBO_BUTTON =
getLoc("FIRST_COMBO_BUTTON");
+ private final String LOC_FIRST_COMBO_CONCRETE_SUGGESTION =
getLoc("FIRST_COMBO_CONCRETE_SUGGESTION");
+ private final String LOC_FIRST_COMBO_SUGGESTIONS =
getLoc("FIRST_COMBO_SUGGESTIONS");
- private final String secondComboInput =
"//fieldset[2]/div/div[1]/div/div[2]/input[1]";
- private final String secondComboButton =
"//fieldset[2]/div/div[1]/div/div[2]/input[3]";
- private final String secondComboConcreteSuggestion =
"//body//div[@class='rich-combobox-list-scroll']/span[{0}]";
- private final String secondComboSuggestions =
"//body//div[@class='rich-combobox-list-scroll']/span";
+ private final String LOC_SECOND_COMBO_INPUT =
getLoc("SECOND_COMBO_INPUT");
+ private final String LOC_SECOND_COMBO_BUTTON =
getLoc("SECOND_COMBO_BUTTON");
+ private final String LOC_SECOND_COMBO_CONCRETE_SUGGESTION =
getLoc("SECOND_COMBO_CONCRETE_SUGGESTION");
+ private final String LOC_SECOND_COMBO_SUGGESTIONS =
getLoc("SECOND_COMBO_SUGGESTIONS");
- private final String thirdComboInput =
"//fieldset[3]/div/div[1]/div/div[2]/input[1]";
- private final String thirdComboButton =
"//fieldset[3]/div/div[1]/div/div[2]/input[3]";
- private final String thirdComboConcreteSuggestion =
"//body//div[@class='rich-combobox-list-scroll']/span[{0}]";
- private final String thirdComboSuggestions =
"//body//div[@class='rich-combobox-list-scroll']/span";
+ private final String LOC_THIRD_COMBO_INPUT = getLoc("THIRD_COMBO_INPUT");
+ private final String LOC_THIRD_COMBO_BUTTON =
getLoc("THIRD_COMBO_BUTTON");
+ private final String LOC_THIRD_COMBO_CONCRETE_SUGGESTION =
getLoc("THIRD_COMBO_CONCRETE_SUGGESTION");
+ private final String LOC_THIRD_COMBO_SUGGESTIONS =
getLoc("THIRD_COMBO_SUGGESTIONS");
+ // messages
+ private final String MSG_INITIAL_STATE_INITIAL_VALUE_1 =
getMsg("INITIAL_STATE_INITIAL_VALUE_1");
+ private final String MSG_INITIAL_STATE_INITIAL_VALUE_2 =
getMsg("INITIAL_STATE_INITIAL_VALUE_2");
+ private final String MSG_INITIAL_STATE_INITIAL_VALUE_3 =
getMsg("INITIAL_STATE_INITIAL_VALUE_3");
+
+ private final int MSG_SUGGESTIONS_FIRST_COMBO_COUNT_1 =
Integer.parseInt(getMsg("SUGGESTIONS_FIRST_COMBO_COUNT_1"));
+ private final int MSG_SUGGESTIONS_FIRST_COMBO_COUNT_2 =
Integer.parseInt(getMsg("SUGGESTIONS_FIRST_COMBO_COUNT_2"));
+ private final String MSG_SUGGESTIONS_FIRST_COMBO_INPUT =
getMsg("SUGGESTIONS_FIRST_COMBO_INPUT");
+
+ private final int MSG_SUGGESTIONS_SECOND_COMBO_COUNT_1 =
Integer.parseInt(getMsg("SUGGESTIONS_SECOND_COMBO_COUNT_1"));
+ private final int MSG_SUGGESTIONS_SECOND_COMBO_COUNT_2 =
Integer.parseInt(getMsg("SUGGESTIONS_SECOND_COMBO_COUNT_2"));
+ private final String MSG_SUGGESTIONS_SECOND_COMBO_INPUT =
getMsg("SUGGESTIONS_SECOND_COMBO_INPUT");
+
+ private final int MSG_SUGGESTIONS_THIRD_COMBO_COUNT_1 =
Integer.parseInt(getMsg("SUGGESTIONS_THIRD_COMBO_COUNT_1"));
+ private final int MSG_SUGGESTIONS_THIRD_COMBO_COUNT_2 =
Integer.parseInt(getMsg("SUGGESTIONS_THIRD_COMBO_COUNT_2"));
+ private final String MSG_SUGGESTIONS_THIRD_COMBO_INPUT =
getMsg("SUGGESTIONS_THIRD_COMBO_INPUT");
+
/**
* Tests the initial state of the page. It checks that there are all
* necessary component and that all combo boxes contain the string
@@ -59,21 +74,21 @@
*/
@Test
public void testInitialState() {
- assertTrue(selenium.isElementPresent(firstComboInput), "First combo's
input is not present.");
- assertTrue(selenium.isElementPresent(firstComboButton), "First combo's
button is not present.");
- assertTrue(selenium.isElementPresent(secondComboInput), "Second combo's
input is not present.");
- assertTrue(selenium.isElementPresent(secondComboInput), "Second combo's
button is not present.");
- assertTrue(selenium.isElementPresent(thirdComboInput), "Third combo's
input is not present.");
- assertTrue(selenium.isElementPresent(thirdComboInput), "Third combo's
button is not present.");
+ assertTrue(selenium.isElementPresent(LOC_FIRST_COMBO_INPUT), "First
combo's input is not present.");
+ assertTrue(selenium.isElementPresent(LOC_FIRST_COMBO_BUTTON), "First
combo's button is not present.");
+ assertTrue(selenium.isElementPresent(LOC_SECOND_COMBO_INPUT), "Second
combo's input is not present.");
+ assertTrue(selenium.isElementPresent(LOC_SECOND_COMBO_INPUT), "Second
combo's button is not present.");
+ assertTrue(selenium.isElementPresent(LOC_THIRD_COMBO_INPUT), "Third
combo's input is not present.");
+ assertTrue(selenium.isElementPresent(LOC_THIRD_COMBO_INPUT), "Third
combo's button is not present.");
- String text = selenium.getValue(firstComboInput);
- assertEquals(text, "Enter some value", "Text in the first combo
box.");
+ String text = selenium.getValue(LOC_FIRST_COMBO_INPUT);
+ assertEquals(text, MSG_INITIAL_STATE_INITIAL_VALUE_1, "Text in the first
combo box.");
- text = selenium.getValue(secondComboInput);
- assertEquals(text, "Enter some value", "Text in the second combo
box.");
+ text = selenium.getValue(LOC_SECOND_COMBO_INPUT);
+ assertEquals(text, MSG_INITIAL_STATE_INITIAL_VALUE_2, "Text in the second
combo box.");
- text = selenium.getValue(thirdComboInput);
- assertEquals(text, "Enter some value", "Text in the third combo
box.");
+ text = selenium.getValue(LOC_THIRD_COMBO_INPUT);
+ assertEquals(text, MSG_INITIAL_STATE_INITIAL_VALUE_3, "Text in the third
combo box.");
}
/**
@@ -81,48 +96,40 @@
* count of all suggestions. Then it types "su", checks the number of
* suggestions and the content of all suggestions. In the end, it clicks on
* the third suggestion and verifies the combo box's input field.
- *
- * <ul>
- * <li><b>FIXME</b>the div containing suggestions moves out of
fieldset</li>
- * <li><b>FIXME</b>"su " has to be clicked instead of
"su"</li>
- * <li><b>FIXME</b>it is not possible to click on the third
suggestion</li>
- * </ul>
*/
@Test
public void testSuggestionsFirstComboBox() {
- scrollIntoView(firstComboButton, true);
+ scrollIntoView(LOC_FIRST_COMBO_BUTTON, true);
- selenium.click(firstComboButton);
- waitForElement(format(firstComboConcreteSuggestion, 1));
- int count = selenium.getXpathCount(firstComboSuggestions).intValue();
- assertEquals(count, 5, "Number of suggestions after after clicking on
button.");
+ selenium.click(LOC_FIRST_COMBO_BUTTON);
+ waitForElement(format(LOC_FIRST_COMBO_CONCRETE_SUGGESTION, 1));
+ int count = selenium.getXpathCount(LOC_FIRST_COMBO_SUGGESTIONS).intValue();
+ assertEquals(count, MSG_SUGGESTIONS_FIRST_COMBO_COUNT_1, "Number of
suggestions after after clicking on button.");
- selenium.click(firstComboInput);
- selenium.typeKeys(firstComboInput, "su");
- // FIXME why is this necessary?
- selenium.typeKeys(firstComboInput, " ");
+ selenium.click(LOC_FIRST_COMBO_INPUT);
+ selenium.typeKeys(LOC_FIRST_COMBO_INPUT, "su");
+ selenium.typeKeys(LOC_FIRST_COMBO_INPUT, " ");
- count = selenium.getXpathCount(firstComboSuggestions).intValue();
- assertEquals(count, 5, "Number of suggestions after typing
'su'.");
+ count = selenium.getXpathCount(LOC_FIRST_COMBO_SUGGESTIONS).intValue();
+ assertEquals(count, MSG_SUGGESTIONS_FIRST_COMBO_COUNT_2, "Number of
suggestions after typing 'su'.");
String[] suggestions = new String[5];
for (int i = 0; i < 5; i++) {
- suggestions[i] = selenium.getText(format(firstComboConcreteSuggestion, i +
1));
+ suggestions[i] = selenium.getText(format(LOC_FIRST_COMBO_CONCRETE_SUGGESTION,
i + 1));
}
- String[] expected = new String[] { "suggestion 1", "suggestion
2", "suggestion 3", "suggestion 4",
- "suggestion 5", };
+ String[] expected = new String[] { "suggestion 1", "suggestion
2", "suggestion 3", "suggestion 4", "suggestion 5", };
assertEqualsNoOrder(suggestions, expected, "Suggestions after typing
'sa'.");
try {
- selenium.clickAt(format(firstComboConcreteSuggestion, 3), "");
+ selenium.clickAt(format(LOC_FIRST_COMBO_CONCRETE_SUGGESTION, 3),
"");
} catch (Exception ex) {
- // TODO why the exception is thrown?
+ // why the exception is thrown?
}
waitFor(1000);
- String text = selenium.getValue(firstComboInput);
- assertEquals(text, "suggestion 3", "Third suggestion was
chosen.");
+ String text = selenium.getValue(LOC_FIRST_COMBO_INPUT);
+ assertEquals(text, MSG_SUGGESTIONS_FIRST_COMBO_INPUT, "Third suggestion was
chosen.");
}
/**
@@ -130,32 +137,26 @@
* count of all suggestions. Then it types "sa", checks the number of
* suggestions and the content of all suggestions. In the end, it clicks on
* the third suggestion and verifies the combo box's input field.
- *
- * <ul>
- * <li><b>FIXME</b>the div containing suggestions moves out of
fieldset</li>
- * <li><b>FIXME</b>"sa " has to be clicked instead of
"sa"</li>
- * </ul>
*/
@Test
public void testSuggestionsSecondComboBox() {
- scrollIntoView(secondComboButton, true);
+ scrollIntoView(LOC_SECOND_COMBO_BUTTON, true);
- selenium.click(secondComboButton);
- waitForElement(format(secondComboConcreteSuggestion, 1));
- int count = selenium.getXpathCount(secondComboSuggestions).intValue();
- assertEquals(count, 50, "Number of suggestions after after clicking on
button.");
+ selenium.click(LOC_SECOND_COMBO_BUTTON);
+ waitForElement(format(LOC_SECOND_COMBO_CONCRETE_SUGGESTION, 1));
+ int count = selenium.getXpathCount(LOC_SECOND_COMBO_SUGGESTIONS).intValue();
+ assertEquals(count, MSG_SUGGESTIONS_SECOND_COMBO_COUNT_1, "Number of
suggestions after after clicking on button.");
- selenium.click(secondComboInput);
- selenium.typeKeys(secondComboInput, "sa");
- // FIXME why is this necessary?
- selenium.typeKeys(secondComboInput, " ");
+ selenium.click(LOC_SECOND_COMBO_INPUT);
+ selenium.typeKeys(LOC_SECOND_COMBO_INPUT, "sa");
+ selenium.typeKeys(LOC_SECOND_COMBO_INPUT, " ");
- count = selenium.getXpathCount(secondComboSuggestions).intValue();
- assertEquals(count, 4, "Number of suggestions after typing
'sa'.");
+ count = selenium.getXpathCount(LOC_SECOND_COMBO_SUGGESTIONS).intValue();
+ assertEquals(count, MSG_SUGGESTIONS_SECOND_COMBO_COUNT_2, "Number of
suggestions after typing 'sa'.");
String[] suggestions = new String[4];
for (int i = 0; i < 4; i++) {
- suggestions[i] = selenium.getText(format(secondComboConcreteSuggestion, i +
1));
+ suggestions[i] =
selenium.getText(format(LOC_SECOND_COMBO_CONCRETE_SUGGESTION, i + 1));
}
String[] expected = new String[] { "Sacramento", "Santa Fe",
"Salem", "Salt Lake City" };
@@ -163,14 +164,14 @@
assertEqualsNoOrder(suggestions, expected, "Suggestions after typing
'sa'.");
try {
- selenium.clickAt(format(secondComboConcreteSuggestion, 3), "");
+ selenium.clickAt(format(LOC_SECOND_COMBO_CONCRETE_SUGGESTION, 3),
"");
} catch (Exception ex) {
- // TODO why the exception is thrown?
+ // why the exception is thrown?
}
waitFor(1000);
- String text = selenium.getValue(secondComboInput);
- assertEquals(text, "Salem", "Third suggestion was chosen.");
+ String text = selenium.getValue(LOC_SECOND_COMBO_INPUT);
+ assertEquals(text, MSG_SUGGESTIONS_SECOND_COMBO_INPUT, "Third suggestion was
chosen.");
}
/**
@@ -178,31 +179,25 @@
* count of all suggestions. Then it types "sa", checks the number of
* suggestions and the content of all suggestions. In the end, it clicks on
* the third suggestion and verifies the combo box's input field.
- *
- * <ul>
- * <li><b>FIXME</b>the div containing suggestions moves out of
fieldset</li>
- * <li><b>FIXME</b>"sa " has to be clicked instead of
"sa"</li>
- * </ul>
*/
@Test
public void testSuggestionsThirdComboBox() {
- selenium.click(thirdComboButton);
+ selenium.click(LOC_THIRD_COMBO_BUTTON);
- waitForElement(format(thirdComboConcreteSuggestion, 1));
- int count = selenium.getXpathCount(thirdComboSuggestions).intValue();
- assertEquals(count, 50, "Number of suggestions after after clicking on
button.");
+ waitForElement(format(LOC_THIRD_COMBO_CONCRETE_SUGGESTION, 1));
+ int count = selenium.getXpathCount(LOC_THIRD_COMBO_SUGGESTIONS).intValue();
+ assertEquals(count, MSG_SUGGESTIONS_THIRD_COMBO_COUNT_1, "Number of
suggestions after after clicking on button.");
- selenium.click(thirdComboInput);
- selenium.typeKeys(thirdComboInput, "sa");
- // FIXME why is this necessary?
- selenium.typeKeys(thirdComboInput, " ");
+ selenium.click(LOC_THIRD_COMBO_INPUT);
+ selenium.typeKeys(LOC_THIRD_COMBO_INPUT, "sa");
+ selenium.typeKeys(LOC_THIRD_COMBO_INPUT, " ");
- count = selenium.getXpathCount(thirdComboSuggestions).intValue();
- assertEquals(count, 4, "Number of suggestions after typing
'sa'.");
+ count = selenium.getXpathCount(LOC_THIRD_COMBO_SUGGESTIONS).intValue();
+ assertEquals(count, MSG_SUGGESTIONS_THIRD_COMBO_COUNT_2, "Number of
suggestions after typing 'sa'.");
String[] suggestions = new String[4];
for (int i = 0; i < 4; i++) {
- suggestions[i] = selenium.getText(format(thirdComboConcreteSuggestion, i +
1));
+ suggestions[i] = selenium.getText(format(LOC_THIRD_COMBO_CONCRETE_SUGGESTION,
i + 1));
}
String[] expected = new String[] { "Sacramento", "Santa Fe",
"Salem", "Salt Lake City" };
@@ -210,55 +205,72 @@
assertEqualsNoOrder(suggestions, expected, "Suggestions after typing
'sa'.");
try {
- selenium.clickAt(format(thirdComboConcreteSuggestion, 4), "");
+ selenium.clickAt(format(LOC_THIRD_COMBO_CONCRETE_SUGGESTION, 4),
"");
} catch (Exception ex) {
- // TODO why the exception is thrown?
+ // why the exception is thrown?
}
waitFor(1000);
- String text = selenium.getValue(thirdComboInput);
- assertEquals(text, "Salt Lake City", "Third suggestion was
chosen.");
+ String text = selenium.getValue(LOC_THIRD_COMBO_INPUT);
+ assertEquals(text, MSG_SUGGESTIONS_THIRD_COMBO_INPUT, "Third suggestion was
chosen.");
}
/**
- * Tests the "View Source". It checks that the source code is not visible,
- * clicks on the link, and checks the first 2 components of source code,
- * i.e. that the source code begins with "<ui:composition".
+ * Tests the "View Source" in the first example. It checks that the source
code is not visible,
+ * clicks on the link, and checks 8 lines of source code.
*/
@Test
public void testFirstComboBoxSource() {
- // index has to be 2 because the combo box is in a div element
- abstractTestSource(1, 2, "<", "ui:composition");
+ String[] strings = new String[] { "<ui:composition
xmlns=\"http://www.w3.org/1999/xhtml\"",
+ "<rich:comboBox defaultLabel=\"Enter some
value\">",
+ "<f:selectItem itemValue=\"suggestion 1\"/>",
+ "<f:selectItem itemValue=\"suggestion 2\"/>",
+ "<f:selectItem itemValue=\"suggestion 3\"/>",
+ "<f:selectItem itemValue=\"suggestion 4\"/>",
+ "<f:selectItem itemValue=\"suggestion 5\"/>",
+ "</rich:comboBox>",
+ };
+
+ abstractTestSource(1, "View Source", strings);
}
-
+
/**
- * Tests the "View Source". It checks that the source code is not visible,
- * clicks on the link, and checks the first 2 components of source code,
- * i.e. that the source code begins with "<ui:composition".
+ * Tests the "View Source" in the second example. It checks that the source
code is not visible,
+ * clicks on the link, and checks 5 lines of source code.
*/
@Test
public void testSecondComboBoxSource() {
- // index has to be 2 because the combo box is in a div element
- abstractTestSource(2, 2, "<", "ui:composition");
+ String[] strings = new String[] { "<ui:composition
xmlns=\"http://www.w3.org/1999/xhtml\"",
+ "<rich:comboBox selectFirstOnUpdate=\"false\"",
+ "defaultLabel=\"Enter some value\">",
+ "<f:selectItems
value=\"#{capitalsBean.capitalsOptions}\" />",
+ "</rich:comboBox>",
+ };
+
+ abstractTestSource(2, "View Source", strings);
}
-
+
/**
- * Tests the "View Source". It checks that the source code is not visible,
- * clicks on the link, and checks the first 2 components of source code,
- * i.e. that the source code begins with "<ui:composition".
+ * Tests the "View Source" in the third example. It checks that the source
code is not visible,
+ * clicks on the link, and checks 3 lines of source code.
*/
@Test
public void testThirdComboBoxSource() {
- // index has to be 2 because the combo box is in a div element
- abstractTestSource(3, 2, "<", "ui:composition");
+ String[] strings = new String[] { "<ui:composition
xmlns=\"http://www.w3.org/1999/xhtml\"",
+ "<rich:comboBox
suggestionValues=\"#{capitalsBean.capitalsNames}\"",
+ "directInputSuggestions=\"true\" defaultLabel=\"Enter
some value\" />",
+ };
+
+ abstractTestSource(3, "View Source", strings);
}
-
+
/**
* Loads the page containing the calendar component.
*/
+ @SuppressWarnings("unused")
@BeforeMethod
private void loadPage() {
- super.loadPage("richInputs", 3, "The component provides editable
combobox element on the page.");
+ openComponent("Combo Box");
}
}
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/locators.properties
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/locators.properties 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/locators.properties 2009-09-09
07:45:43 UTC (rev 15501)
@@ -23,10 +23,10 @@
# second tab
FIELDSET=//fieldset[1]/legend
-CELL_X_Y=//fieldset[1]/div/form/table/tbody/tr[%d]/td[%d]
-CELL_X_Y_DATE=//fieldset[1]/div/form/table/tbody/tr[%d]/td[%d]/div/div/table/tbody/tr[1]
-CELL_X_Y_DESC=//fieldset[1]/div/form/table/tbody/tr[%d]/td[%d]/div/div/table/tbody/tr[2]
-CELL_X_Y_NOTE=//fieldset[1]/div/form/table/tbody/tr[%d]/td[%d]/div/div/table/tbody/tr[3]
+CELL_PREFORMATTED=//fieldset[1]/div/form/table/tbody/tr[{0}]/td[{1}]
+CELL_DATE_PREFORMATTED=//fieldset[1]/div/form/table/tbody/tr[{0}]/td[{1}]/div/div/table/tbody/tr[1]
+CELL_DESC_PREFORMATTED=//fieldset[1]/div/form/table/tbody/tr[{0}]/td[{1}]/div/div/table/tbody/tr[2]
+CELL_NOTE_PREFORMATTED=//fieldset[1]/div/form/table/tbody/tr[{0}]/td[{1}]/div/div/table/tbody/tr[3]
DIALOG=//div[@id='panelContainer']
DIALOG_DESCRIPTION=//table[@id='panelContentTable']/tbody/tr[2]/td/form/table/tbody/tr[1]/td[2]/input
@@ -37,6 +37,6 @@
# third tab
STYLING_FIELDSET=//fieldset[1]/legend
-STYLING_CELL_X_Y=//fieldset[1]/div/table/tbody/tr[%d]/td[%d]
+STYLING_CELL_PREFORMATTED=//fieldset[1]/div/table/tbody/tr[{0}]/td[{1}]
STYLING_CALENDAR_BUTTON=//fieldset[1]/div/span/img
STYLING_RIGHT_ARROW=//fieldset[1]/div/table/tbody/tr[1]/td[1]/table/tbody/tr[1]/td[4]
\ No newline at end of file
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/messages.properties
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/messages.properties 2009-09-08
18:54:35 UTC (rev 15500)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/calendar/messages.properties 2009-09-09
07:45:43 UTC (rev 15501)
@@ -1,13 +0,0 @@
-# second tab
-COMPONENT_DESCRIPTION=This simple example shows the way of calendarDataModel usage for
organizer creation.
-
-CLASS_ATTRIBUTE_TODAY=Class attribute of the cell with today's date should contain
"rich-calendar-today".
-CLASS_ATTRIBUTE_GREY=Class attribute of the last cell should contain
"rich-calendar-boundary-dates".
-DIALOG_VISIBLE=Dialog should be visible.
-DIALOG_NOT_VISIBLE=Dialog should not be visible.
-CELL_X_Y_NOTE=The note in the cell (week %d, day %d).
-CELL_X_Y_DESC=The description in the cell (week %d, day %d).
-
-# third tab
-COMPONENT_DESCRIPTION_3=This simple example shows the way of dates disablement and
styling without dataModel usage.
-EVERY_THIRD_CELL=Every third cell should be either disabled (boundary dates) or styled
(dates from current month).
\ No newline at end of file
Added:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties
(rev 0)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties 2009-09-09
07:45:43 UTC (rev 15501)
@@ -0,0 +1,14 @@
+FIRST_COMBO_INPUT=//fieldset[1]/div/div[1]/div/div[2]/input[1]
+FIRST_COMBO_BUTTON=//fieldset[1]/div/div[1]/div/div[2]/input[3]
+FIRST_COMBO_CONCRETE_SUGGESTION=//body//div[@class='rich-combobox-list-scroll']/span[{0}]
+FIRST_COMBO_SUGGESTIONS=//body//div[@class='rich-combobox-list-scroll']/span
+
+SECOND_COMBO_INPUT=//fieldset[2]/div/div[1]/div/div[2]/input[1]
+SECOND_COMBO_BUTTON=//fieldset[2]/div/div[1]/div/div[2]/input[3]
+SECOND_COMBO_CONCRETE_SUGGESTION=//body//div[@class='rich-combobox-list-scroll']/span[{0}]
+SECOND_COMBO_SUGGESTIONS=//body//div[@class='rich-combobox-list-scroll']/span
+
+THIRD_COMBO_INPUT=//fieldset[3]/div/div[1]/div/div[2]/input[1]
+THIRD_COMBO_BUTTON=//fieldset[3]/div/div[1]/div/div[2]/input[3]
+THIRD_COMBO_CONCRETE_SUGGESTION=//body//div[@class='rich-combobox-list-scroll']/span[{0}]
+THIRD_COMBO_SUGGESTIONS=//body//div[@class='rich-combobox-list-scroll']/span
\ No newline at end of file
Property changes on:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/locators.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/messages.properties
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/messages.properties
(rev 0)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/messages.properties 2009-09-09
07:45:43 UTC (rev 15501)
@@ -0,0 +1,15 @@
+INITIAL_STATE_INITIAL_VALUE_1=Enter some value
+INITIAL_STATE_INITIAL_VALUE_2=Enter some value
+INITIAL_STATE_INITIAL_VALUE_3=Enter some value
+
+SUGGESTIONS_FIRST_COMBO_COUNT_1=5
+SUGGESTIONS_FIRST_COMBO_COUNT_2=5
+SUGGESTIONS_FIRST_COMBO_INPUT=suggestion 3
+
+SUGGESTIONS_SECOND_COMBO_COUNT_1=50
+SUGGESTIONS_SECOND_COMBO_COUNT_2=4
+SUGGESTIONS_SECOND_COMBO_INPUT=Salem
+
+SUGGESTIONS_THIRD_COMBO_COUNT_1=50
+SUGGESTIONS_THIRD_COMBO_COUNT_2=4
+SUGGESTIONS_THIRD_COMBO_INPUT=Salt Lake City
\ No newline at end of file
Property changes on:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/resources/org/jboss/richfaces/integrationTest/comboBox/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain