Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Selenium Automation Framework

4 347 vues

Publié le

This presentation is all about - Modular Framework, Data Driven Framework , Hybrid Framework.

Publié dans : Logiciels
  • Identifiez-vous pour voir les commentaires

Selenium Automation Framework

  1. 1. Selenium Automation Framework Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions Date: 1/08/2014
  2. 2. 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 Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  3. 3. AGENDA / Topic INDEX --> What is Automation Framework? --> Why Automation Framework? --> Types of Automation Famework --> Modular Framework --> DataDriven Framework --> Hybrid Framework Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  4. 4. -->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 Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  5. 5. 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. Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  6. 6. Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions Types Of Framework --------------------------------- 1. Modular Framework 2. DataDriven Framework 3. Keyword Driven Framework 4. Hybrid Framework
  7. 7. 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. Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  8. 8. 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 Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  9. 9. Code For fetching data from excel sheet ------------------------------------------------------- public String getCellData(String sheetName, String colName, int rowNum) throws Exception{ String path = System.getProperty("user.dir"); System.out.println("Path :"+path); try{ Workbook workbook = Workbook.getWorkbook(new Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions File(path+"testdatatestdata.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(); } }
  10. 10. Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions Hybrid Framework --------------------------------
  11. 11. Question and Answer Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  12. 12. http://www.automationframework.info/
  13. 13. Thank you Presenter: Rajendra Narayan Mahapatra, Mindfire Solutions
  14. 14. www.mindfiresolutions.com https://www.facebook.com/MindfireSolutions http://www.linkedin.com/company/mindfire-solutions http://twitter.com/mindfires

×