2. Selenium versions
• IDE ( FireFox plugin)
– record/playback tool
– exportable to Java, Groovy, C#, Perl, Python, PHP, or Ruby
• Remote Control
– uses JavaScript to drive browsers of choice
– Can be used with Sel. Grid 1 for parallel script execution (support up to
FireFox 10)
– Deprecated – i.e., not supported in spite of market-share
• WebDriver
– native browser drivers
– Paired with Grid 2
– Backward-compatible with Selenium R.C.
3. Test Frameworks (JUnit / Testng)
• JUnit
– As its name implies is well-suited for unit testing
• Testng
– Good for integration and end-to-end testing
– Parameterized tests
– Concurrency (parallel) testing
– Test dependencies
– Test groups
• Both generate reports
• JUnit has market-share, but that is quickly changing
• Will demonstrate Testng in this presentation
4. Java Installation
• Download JavaSE (this is the core platform)
– Run the installer – accepting defaults
– Ensure classpath for Java_Home is set
• Window Environmental variables (System Variable
section) E.g.
• Variable Name: JAVA_HOME
• Variable value: C:Program FilesJavajdk1.6.0_21
5. IDE installation
• Which IDE? IntelliJ, NetBeans, Jcreator, eclipse
• I chose eclipse for this presentation
• Download/install:
– Eclipse IDE for Java EE Developers
• Dismiss Welcome page
6. First steps
• Project
– Select File-New-Java Project
– Name your project e.g., “Test Automation”
• Package(s)
– Testbase: common code for project
– Config: properties used on project
• OR: object recognition identifiers
• CONFIG: defined constants e.g., browserType
– Tests
• Class(es)
– Within each package you can create new java classes or files of varied
type