Posts by srentala

    Efficient Parallel Testing using GRID and TestNG

    There is no point explaining, how efficient ‘Automation’ is for a Product Testing. Now imagine ‘icing on the cake’, when parallel testing is introduced along with it. I will showcase how Parallel testing could reduce time and effort, and the same time run the test cases parallel on multiple machines ,operating systems and browsers in this particular blog.
    Traditional Execution of test cases occurred serially, where automation scripts would execute one at a time (even though the CPU resources or other machines are free). Imagine why would one does not want to utilize these idle resources? Somebody imagined out of the box and came up with parallel testing.
    Many Frameworks and utilities are provided and came into existence through which one can implement the same. I will explain one such functionality provided by a framework, which I found very interesting and extremely useful while applying parallel testing using it.

    GRID
    Selenium GRID provides the functionality of distributing the tests on different machines (on different operating systems/browsers).
    Let us see the steps to run tests using Selenium GRID.

    Read more »

    Migrating from JUnit to TestNG

    It’s been quite a long time developers and testers using JUnit as a Unit test Framework or a Reporting Framework. JUnit has emerged as a very powerful open source tool and is still continuing with its abilities and enhanced versions. But lately with the emergence of TestNG, things have taken a slight deviation.
    TestNG emerged as a more powerful tool with much more extra features and utilities than JUnit. In this blog I will be focusing in how the emergence has been useful , key differences between them and how is TestNG far more better than JUnit.
    Let us start with some differences when we are using JUnit and TestNG for different parameters. The differences will be between JUnit-4 vs. TestNG-6
    Read more »

    Tools and Frameworks for testing Web Services

    In this blog I am going to explain what all tools are available in the market to test the SOAP/REST Web Services. What are the pros and cons of each of them and which tool can be used for which testing purpose?
    Recently I had an opportunity to test the implementation of Web Services of our application over REST. I started exploring quite a few tools which are available in market and which are being used in demand.

    After a thorough exploration I found three main tools/ frameworks which can be used to test the Web Services. Let us start digging into REST and SOAP.

    What is REST? The acronym stands for ‘Representational State Transfer’. It means that every link/URL of a website represents a type of Object, and this object can be called using different HTTP methods: GET, POST, PUT, DELETE etc. Rest is nothing but a technology which leverages the HTTP protocol to fetch its web resources. So once these Web Services are hosted/ deployed on the server, our work begins. Let us start with the overview of the tools which can be used to test RESTful Services.
    Read more »

    Mouse Movements in WebDriver

    While automating a website application, we require to handle mouse movements for various different purposes. In this blog, I have tried to cover all the possible scenarios of mouse movements. Let’s look at the various scenarios one by one.
    Handling CSS Menus in Websites using Webdriver
    During Automating websites we testers face certain problems. One of the problems which we all might have faced is handling CSS Context Menus.

    What are CSS Context Menus? CSS menus are the Menus under the Links which get only visible when Mouse is hovered over the Link. The common mistake which we all do is to get the locator (CSS/Xpath/id/Name) of the menu which is under the link and try to use it. And when we run the script, Webdriver is unable to find the Web element in the browser. The reason is that element is hidden to webdriver, and it only becomes visible when the mouse is hovered over the parent link.
    There are certain ways through which we can overcome this problem. I will be discussing few of the solutions to this problem.
    Read more »

    Webdriver Automation Framework Utilities

    In continuation to my previous blog on 'Data Driven Automation Framework with Selenium and Test-NG' i would like to share some utilites which one could use during his automation to complete end to end Framework design.

    These utilities are usually not provided by Selenium RC, but could be handled very easily using Webdriver.SO lets gets started with these utilities.

    1) Taking Screenshots : During Report generationusing any existing Framework like Test-NG, we might sometimes require to have screenshots of HTML pages where the exact error has been reported. Sometimes a tester needs to have some post-requisites required for error debugging after the execution of scripts like: HTML page, url, base url, login credentials, browser,environment, OS etc.. Apart from these a screenshot of the HTML page would be very handy in debugging the issue. One can create this utility using the following code:
    Read more »