HYBRID AUTOMATION FRAMEWORK
Selenium RC with Java & TestNG
By: Ramesh Reddy
Components
Java Selenium RC TestNG ANT
Framework Flavours
UI Mapping Data Driven
UI Mapping
UI Mapping is the process in which UI objects are
maintained in a repository(Properties file). Automation code uses the keys of the objects and read the value. When ever the UI object property is changed( id or xpath ) there is no need to go to all the test cases and change the property(will be done in properties file).
Data Driven Approach
When the test case needs to be tested with multiple set of
data, we can have single java method to run multiple times. TestNG provides @DataProvider annotation to achieve this.
Package Structure
Base
Base package is application independent which contains platform related and Selenium related classes and methods. Common Common package contains application related reusable components. Other packages Contains different test classes for individual modules/functionalities.
Code Reusability
Framework allows us to reuse the common methods to
avoid rewriting the code. Example : login(String username, String password).
Thanks
Any Questions ?