Read Data From Excel Using Column Name
Please use the following link to install the Katalon Studio:
https://katalon.com/sign-up?getr=krishnaRef Check Tubebuddy Features Here:
https://www.tubebuddy.com/krishnasakinala Facebook : https://www.facebook.com/automationtesting2016/
Linkedin : https://twitter.com/krishnasakinala
Google+ : https://plus.google.com/105286300926085335367
Twitter : https://www.linkedin.com/feed/?trk=hb_signin
http://automationtesting.in/read-data-from-excel-using-column-name/
Read data from excel using column name will discuss about how we can read test data from the excel sheet while automating any application using selenium webdriver. We might get doubt that why we need to put the test data in excel and why to read data from that. If an application need so much of data to be feeded to test; then we will manage those data using external sources like text file, xml file and excel file etc… . Among these; Excel is very user friendly that we can organize the data very easily and we can read the data how we want. So, we mostly use excel to maintain the test data. In order to create a data driven framework then it is easy with using excel.
So, if you want to read data from excel; we need to use some third party API which are available. In those one of the famous is Apache POI. In this blog we will use Apache POI to read the data from the excel sheet. To interact with the excel, Apache POI given so many classes to interact with the excel and get the data. To read excel data we will use Java and Apache POI classes.
Below are the classes will use to read the data:
FileInputStream – A FileInputStream is an inputstream for reading data from a File.
XSSFWorkbook
XSSFSheet
XSSFRow
XSSFCell
Below are the methods will use to read the data which are available in the above classes:
getSheet(“sheetName”) – Get sheet with the given name
getLastCellNum() – Get the index of the last cell contained in the row Plus one as index starts from ZERO
getStringCellValue() – Get the value of the cell as a String
getRow(int) – Returns the row.
getCell(int) – Get the cell representing a given column
getNumericCellValue() – Get the value of the cell as a number.
getDateCellValue() – Get the value of the cell as a date.
getBooleanCellValue() – Get the value of the cell as a boolean.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Read Data From Excel Using Column Name», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.