We can use an Excel sheet as a source of input. We can access data from excel sheet using DataProvider annotation and pass arguments through @Test methods. Mainly this approach is used in Data Driven Framework. Data Driven Framework: A data-driven framework is used to run the same script for a huge amountRead More
FileInputStram
Framework || Simple example of Key Driven Framework using excel sheet in Selenium(JAVA).
This is an small and simple example of Key Driven Framework to execute test cases using excel sheet in Selenium(JAVA). Key Driven framework is based on keywords which are used to control the execution of the script without modifying the actual code. A tester has to just set the keywords whichRead More
Properties File | Accessing properties file for user input or test data.
According to name, a Properties file is used to define properties of keys which would have been used in our Selenium project. A Property file contains data in Key=Value format. It helps external users to communicate with the code and generate output on the basis of inputs. Features of a Property File: Can be usedRead More
File Handling | Copy existing data from one workbook to another workbook in Java.
Copy existing data from one workbook to another workbook in Java using File Handling. We have to copy existing data from one workbook to another workbook in Java. Example: This includes all the sheets and its content from input workbook as mentioned in the below example. Overview of Program As per the above screenshot, we clearlyRead More
Basic Java – 16 || Runtime User Input using BufferedReader Class (Part-2).
An alternate method to take user input is BufferedReader class. Unlike Scanner class, BufferedReader is fast and simple. If you don’t have read about Scanner Class, would request you to please have a look and understanding of Scanner Class, please visit the previous chapter: Basic Java – 15 || Runtime User Input using Scanner Class (Part-1).Read More