Want to try Glassfish Admin GUI with Selenium and experience the differences between SilkTest and Selenium tools
1. Run Selenium from the build
If you build admin-gui module you can find the README.SeleniumRC file under the ../glassfish/admin-gui/tests directory. Just follow the instruction from the file, you should be able to setup and run Selenium JBI tests with Glassfish Admin GUI. If you encounter a failure from your browser, open selenium test case files under java directory and replace statement
selenium.waitForCondition("Selenium.browserbot.isNewPageLoaded()", TIMEOUT_PERIOD) by
selenium.waitForPageToLoad( TIMEOUT_PERIOD)
2. Run Selenium with Glassfish V2 binary bit
1. You must setup the environment by installing Selenium IDE on your Firefox browser
2. Having ant 1.6.5 and jdk1.5.0_11 or latest version installed on your system
3. Create a AdminGUITest directory on your system and copy the following 4 files to the ../AdminGUITest/lib directory
selenium-server.jar , selenium-java-client.jar, selenium-java-client-driver-tests.jar and testng-5.5-jdk15.jar and junit.jar
4. Copy the simple test harness (AdminGUITest.jar file) to your AdminGUI directory and unjar the file
5. Update build.properties file with your setup environment
6. Start the selenium remote server (assume you're using a window system)
cd %AdminGUITest.home%
java -jar selenium-server.jar
7. Start glassfish domain1
8. Run the first AdminGUI test case
cd %AdminGUITest.home%
ant run-test
3. Differences between SilkTest and Selenium
| Features | Selenium | SilkTest |
| HTLM Web Object Support | Yes | Yes |
| Easy Creation Object Scripts (Record and Playback) | Yes | Yes |
| Scripting in variety languages (Java, Perl, C#, PHP, ..) | Yes | No (Only 4test language) |
| Ability to run test with build scripts (maven, ant,..) | Yes | No |
| Support Different Browsers | Yes | Yes |
| Reusability of Scripts | Yes | Yes |
| Commercial Support | Yes | Yes |
| Test Debugging | Yes | Yes |
| Result Reporting | Fair | Yes |
| Exception Handling | Fair | Yes |
| Java Objects (beyond the browsers) | No | Yes |
| Https protocol support | Yes (some configuration required) | Yes |
| Capable of record exactly same as end-user desire | Fair | Yes |
| Organize tests according to the manual Test Plan | No | Yes |
| Data Driven Test Framework | No | Yes |
| Mechanism to create test independently (one test should not depend on other) | No | Yes |
| Support Multiple OS | Yes | Yes |
| Comprehesive Test (run for > 8 hrs) | Weak | Yes |
Hi Davis! Is this entry incomplete? Section 3 seems still "to be done".
Thanks, - eduard/o
Posted by Eduardo Pelegri-Llopart on February 12, 2008 at 09:56 PM PST #
Thanks Davis for writing this Blog. The steps you gave is very easy to follow.
Judy
Posted by Judy on March 11, 2008 at 05:43 PM PDT #
Ah! Thanks for fixing. - eduard/
Posted by Eduardo Pelegri-Llopart on March 11, 2008 at 06:30 PM PDT #