Revision: 43
http://jsimplebrowser.svn.sourceforge.net/jsimplebrowser/?rev=43&view=rev
Author: rdimarco
Date: 2007-08-11 08:32:47 -0700 (Sat, 11 Aug 2007)
Log Message:
-----------
Updated unit tests to actually read the HTML file.
Modified Paths:
--------------
trunk/selenium-client/src/test/java/com/software416/jsimplebrowser/seleniumclient/SeleniumClientTest.java
Added Paths:
-----------
trunk/selenium-client/pom.xml
Added: trunk/selenium-client/pom.xml
===================================================================
--- trunk/selenium-client/pom.xml (rev 0)
+++ trunk/selenium-client/pom.xml 2007-08-11 15:32:47 UTC (rev 43)
@@ -0,0 +1,32 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.software416.jsimplebrowser</groupId>
+ <artifactId>jsimplebrowser</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <name>JSimpleBrowser Selenium Client</name>
+ <artifactId>jsimplebrowser-selenium-client</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-httpclient</groupId>
+ <artifactId>commons-httpclient</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.openqa.selenium.client-drivers</groupId>
+ <artifactId>selenium-java-client-driver</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.software416.jsimplebrowser</groupId>
+ <artifactId>jsimplebrowser-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
Modified: trunk/selenium-client/src/test/java/com/software416/jsimplebrowser/seleniumclient/SeleniumClientTest.java
===================================================================
--- trunk/selenium-client/src/test/java/com/software416/jsimplebrowser/seleniumclient/SeleniumClientTest.java 2007-08-11 03:21:37 UTC (rev 42)
+++ trunk/selenium-client/src/test/java/com/software416/jsimplebrowser/seleniumclient/SeleniumClientTest.java 2007-08-11 15:32:47 UTC (rev 43)
@@ -20,10 +20,10 @@
}
@Test public void testElementSearch() throws IOException, BrowserException {
- SeleniumClient sc = new TestSeleniumClient("");
- //assertEquals("/ig?hl=en", sc.getTable("//table[1].1.1"));
- //assertEquals("/ig?hl=en", sc.getTable("foo.1.1"));
- //assertEquals("Command", sc.getTable("foo.0.0"));
+ SeleniumClient sc = new TestSeleniumClient("tableTest.html");
+ assertEquals("/ig?hl=en", sc.getTable("//table[1].2.1"));
+ assertEquals("/ig?hl=en", sc.getTable("foo.2.1"));
+ assertEquals("Command", sc.getTable("foo.1.0"));
assertNull(sc.getTable("foo1.0.0"));
assertNull(sc.getTable("foo1.100.100"));
assertNull(sc.getTable("foo1.100"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|