+ All Categories
Home > Software > Selenium Automation Framework

Selenium Automation Framework

Date post: 23-Jan-2015
Category:
Upload: mindfire-solutions
View: 520 times
Download: 15 times
Share this document with a friend
Description:
This presentation is all about - Modular Framework, Data Driven Framework , Hybrid Framework.
14
Selenium Automation Framework Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions Date: 1/08/2014
Transcript
Page 1: Selenium Automation  Framework

Selenium Automation Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire SolutionsDate: 1/08/2014

Page 2: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

About Me :

Total Experience:- 3.5 years

Companies: Qualitree Solutions Pvt. Ltd. PointCross.com Pvt. Ltd.

Certification:- Vskills(VS-1083) Selenium Certification

Skills :- Selenium RC, Selenium WebDriver, QTP, Manual Testing,SQL

Page 3: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

AGENDA / Topic INDEX

--> What is Automation Framework?

--> Why Automation Framework?--> Types of Automation Famework--> Modular Framework--> DataDriven Framework--> Hybrid Framework

Page 4: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

-->What is Automation Framework?

A test automation framework is a set of assumptions,concepts, and practices that provide support for automated software testing.

So is a framework or methodology built to successfully carry out test automation

Page 5: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Why Automation Framework?

1. To have control over the testcases to be executed.

2. To get Customized Test Execution Report.

3. For better maintenance of testdata and test objects (Low Cost maintenance)

4. Comprehensive coverage against requiremrnts.

5. Execution of testcase with multiple sets of data.

Page 6: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Types Of Framework---------------------------------

1. Modular Framework

2. DataDriven Framework

3. Keyword Driven Framework

4. Hybrid Framework

Page 7: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Modular Framework-----------------------------

modularity framework requires the creation of small, independent scripts that represent modules, sections, and functions of the application-under-test. These small scripts are then used in a hierarchical fashion to construct larger tests, realizing a particular test case.

It is almost similar to record and playback feature.

Page 8: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Data Driven Framework--------------------------------It facilitates reusability of a function or a test. Using DataDriven a frame work you can write a method and use it several times, It also enables you to run multiples sets of data.

UserName Password

admin admin

Page 9: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Code For fetching data from excel sheet

-------------------------------------------------------public String getCellData(String sheetName, String colNa

me, int rowNum)

throws Exception{

String path = System.getProperty("user.dir");

System.out.println("Path :"+path);

try{Workbook workbook = Workbook.getWorkbook(new File(path+"

\\

testdata\\testdata.xls"));Sheet sheet = workbook.getSheet(sheetName);int i=0;int colNum;for(i=0; i<sheet.getColumns(); i++){

if(sheet.getCell(i,0).getContents().equals(colName)){

break;}

}colNum = i;Cell cell = sheet.getCell(colNum, rowNum);

String cellContents = cell.getContents();System.out.println("CellContents="+cellContents);

return cellContents;

}catch(BiffException getCellDataException){

System.out.println("Error While fetching data from Excel

Sheet :"+getCellDataException.getMessage());

return "Fail :"+getCellDataException.getMessage();

}}

Page 10: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Hybrid Framework--------------------------------

Page 11: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Question and Answer

Page 12: Selenium Automation  Framework

http://www.automationframework.info/

Page 13: Selenium Automation  Framework

Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions

Thank you

Page 14: Selenium Automation  Framework

www.mindfiresolutions.com

https://www.facebook.com/MindfireSolutions

http://www.linkedin.com/company/mindfire-solutions

http://twitter.com/mindfires


Recommended