Friday, April 19, 2013

Read data from excel using Web driver



Read data from Excel:

      public String readExcel(int row, int col, int sno) throws Exception {
            File file = new File(
                        "D:\\TestData\\Test cases.xls");
            Workbook wb = Workbook.getWorkbook(file);
            Sheet st = wb.getSheet(sno);
            Cell cl = st.getCell(row, col);
            String sr = cl.getContents();
            return sr;
      }

Contributed by Ch. Suma

AI Prompt - Compatibility Testing / mobile testing

AI Prompt "Propose compatibility test cases for [feature] across [browsers/devices/OS versions]. Include viewport/resolution, touch v...