0% found this document useful (0 votes)
756 views

Hybrid Framework Development With Selenium

The hybrid automation framework uses Selenium RC with Java and TestNG to test user interfaces. It supports both UI mapping and data-driven testing approaches. The framework is organized into packages for base/reusable classes, common application components, and test classes. It promotes code reusability through shared methods to reduce duplicated code across test cases.

Uploaded by

Ansh D'Cruz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
756 views

Hybrid Framework Development With Selenium

The hybrid automation framework uses Selenium RC with Java and TestNG to test user interfaces. It supports both UI mapping and data-driven testing approaches. The framework is organized into packages for base/reusable classes, common application components, and test classes. It promotes code reusability through shared methods to reduce duplicated code across test cases.

Uploaded by

Ansh D'Cruz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

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 ?

You might also like