Posts

Image
  How to reduce Selenium Test Execution time by disabling images in Chrome, Edge and Firefox. In this blog I will be sharing how to disable images in browsers like Google Chrome, Edge and Firefox to reduce the Selenium test execution time. I will be sharing two methods to disable images in Chrome and Edge and a single method to disable images in Firefox. disableImagesInChromeMethodOne() public static void disableImagesInChromeMethodOne () { chromeOptions = new ChromeOptions (); chromeOptions.addArguments( "--blink-settings=imagesEnabled=false" ); driver = new ChromeDriver (chromeOptions); driver.manage().window().maximize(); driver.get( "https://www.amazon.in/" ); } disableImagesInChromeMethodTwo() public static void disableImagesInChromeMethodTwo () { chromeOptions = new ChromeOptions (); Map<String, Object> prefs = new HashMap <String, Object>(); prefs.put( "profile.managed_default_content_settings.images" , 2 );
Image
  Data Driven Testing using table keyword in Karate Karate  is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single,  unified  framework. The syntax is language-neutral, and easy for even non-programmers. Assertions and HTML reports are built-in, and you can run tests in parallel for speed. Today we will be focusing on data driven testing in Karate using table keyword. The following concepts will be covered along with Data Driven Testing in this blog. How to call a feature file inside another feature file? Use of embedded expressions to pass payload with request keyword and do assertion along with match keyword How to call another scenario within the same feature file using a tag? For this blog, I will be using  fake json server  for test APIs. The documentation for setting up the server is given in the above link. DDTUsingTableKeyword.feature @ignore Feature: DDTUsingTableKeyword demo feature Background: api end po
Image
  REST API Testing with Bruno Introduction Bruno  is a new and innovative open-source API client, aimed at revolutionizing the status quo represented by popular API testing tools out there. Bruno stores the collections directly in a folder on your filesystem. Bruno uses a plain text markup language, Bru, to save information about API requests. Bruno is lightweight, it supports REST and GraphQL APIs. One can use git or any version control of your choice to collaborate over your API collections. Please download Bruno from  here . Why should Bruno be preferred for API Testing? How are collections saved? Bruno uses a plain text markup language, Bru to save information about API requests instead of using a giant JSON file. Git or any version control of your choice can be used to collaborate over API collections. No more horror stories of  “Bob had the collections for the payment-API service, but he left the company last month.” Where collections are saved? Bruno stores your collections dire