Automation Frameworks

Designing responsive as well as failsafe test scripts can be a challenge, due to the need to cover all security requirements, accessibility and navigation of site contents with different media and languages.

  • 11
    Jul

    Factory design pattern

    As per Gang of Four, Factory design pattern define an interface or abstract class for creating an object but let the subclasses decide which class to instantiate. In other words,...

    Read More
  • 09
    Jul

    Appium DesiredCapabilities

    Appium Desired Capabilities Desired Capabilities are keys and values encoded in a JSON object, sent by Appium clients to the server when a new automation session is requested. Some...

    Read More
  • 08
    Jun

    pom.xml for picocontainer and cucumber jvm

    1.8 3.7.0 3.0.2 3.12.0 chrome abc org.apache.maven.plugins maven-compiler-plugin ${maven.compiler.version} ${java.version} ${java.version} io.cucumber cucumber-java ${cucumber.version} io.cucumber cucumber-java8 ${cucumber.version} io.cucumber cucumber-picocontainer ${cucumber.version} io.cucumber cucumber-testng ${cucumber.version} junit junit org.seleniumhq.selenium selenium-java ${selenium.version}

    Read More
  • 07
    Jun

    Implementing dependency injection with Picocontainer

    Implementing Dependency Injection with Picocontainer Step 1: Maven Dependency for Picocontainer: ============================================ 3.0.2 io.cucumber cucumber-picocontainer ${cucumber.version} Step 2: Create a class which needs to be injected via Picocontainer: ====================================================================...

    Read More
  • 31
    May

    Identifying Operating system characteristics via Java program

    Following utility functions can be used to identify IE Version, Is system is 64bit, 32 bit package source.sd.RemoteWebDriver; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public...

    Read More
  • 30
    May

    Selenium driver utilities

    import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.firefox.MarionetteDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import org.openqa.selenium.ie.InternetExplorerDriver; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import java.io.File; import java.net.URL; import java.util.HashMap; import java.util.Map; /** * https://sites.google.com/a/chromium.org/chromedriver/home...

    Read More
  • 29
    Mar

    Capture video during your TestNG / Selenium script execution

    There are many recorders available which allows you to manage script execution recordings in your java code. Following code snippet demonstrates ATUTestRecorder. Pre-requisites: 1. download ATUTestRecorder jars from here...

    Read More
  • 27
    Mar

    testcafe for your web browser automation testing needs

    testcafe – A node.js tool to automate end-to-end web testing read here: https://devexpress.github.io/testcafe/ Features: TestCafe runs on Windows, MacOS, and Linux. It supports desktop, mobile, remote and cloud browsers...

    Read More
  • 27
    Mar

    xPath definitions for descendant, ancestor, sibling, preceding, following

    An object A is called a descendant of an object B, if either A is a child of B or A is a child of an object C that...

    Read More
  • 25
    Mar

    Utility to load all properties files, located in a specified folder

    Following code snippet demonstrates, how to load all property files into memory: ——————————————————————————— Pre-requisite: ————— There exists a folder on local file system which contains files with extension “PROPERTIES”...

    Read More