Skip to main content

Posts

How to get data from excel sheet based on scenario name in Katalon

How to get data from an Excel sheet based on the Cucumber feature file scenario name in Katalon Studio    For my project, I created some methods to read data from an Excel sheet   based on my cucumber scenario . It is 100% working. By default, Katalon Studio doesn't have any method to get data from an Excel sheet based on the scenario name. So, in this post, I am going to explain how I did it.   Let's get straight into the coding! Create Excel file:         Create an Excel sheet with the column name "Scenario name." Keep this Excel sheet inside your project. Then add it to the data files.             For ex: Create Property file:           Create a property file. In that property file, keep your Excel sheet name like you did in the below image. This is one of the best ways to reduce maintenance work by keeping everythin...
Recent posts

How to open a second browser without closing the first in Katalon

  How to open a second browser without closing the first in Katalon                B y default, when you are opening a new browser, it will close the previous one and open a new one. In some cases, we need to do our test activities in both the browsers. As of now Katalon is doing like this. So, we need to do some scripting to achieve this. In this blog, we are going to see how to open a second browser without closing the first. Let’s get into this...! Create two drivers:      public static WebDriver driver1 ;      public static WebDriver driver2 ;           We have to create two different drivers and keep those as a static. So, that you can call anywhere you want across the project. Create a method to open browser: public ChromeDriver openChromeBrowser() {         System. setProperty ( "webdriver.chrome.driver" ,DriverFactory. getChromeDriverPath (...