Author: mgencur(a)redhat.com
Date: 2009-10-08 10:59:24 -0400 (Thu, 08 Oct 2009)
New Revision: 11562
Modified:
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java
Log:
JBPAPP-2897 Added searchTest
Modified:
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java 2009-10-08
14:54:44 UTC (rev 11561)
+++
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java 2009-10-08
14:59:24 UTC (rev 11562)
@@ -174,6 +174,16 @@
"Page contains \"ERROR_TEXT\" which means that JBSEAM3866
error still exists");
}
+ @Test(groups = "generate-entitiesTest", dependsOnGroups = {
"newProjectGroup" })
+ public void searchTest()
+ {
+ final String searchString = "9999999"; // should return two Audis
+
+ login();
+ browser.clickAndWait(VEHICLE_LINK);
+ assertEquals(search(searchString), 2, "Unexpected number of search results for
" + searchString);
+ }
+
public int search(String pattern)
{
browser.type(SEARCH_REGISTRATION, pattern);
Show replies by date