Moving With Automation

My Recent Blogs

Recently, I was testing a web application which was using WebSocket as a networking layer to talk to the backend server. The messages are serialized using Avro and being sent over the web socket layer to the backend jetty server. For those who are not familiar with WebSocket messages, please go to this link in chrome “https://web-demo.adaptivecluster.com/". Once the page is loaded, open the chrome devtool and navigate to the WS sub-tab under the network tab. ... Read More
If you are a Selenium developer than you would have surely faced this mysterious exception called “StaleElementReferenceException“ Why exactly it occurs? This has been my favorite interview question since last many years and most of the time candidates gets confused it with NoSuchElementException. In case you have never worked on a dynamic ajax based application then there could be a chance that you have never faced it. Let’s go little deeper and unveils the mystery behind it. ... Read More

Integrating cucumber-JVM with TestNG

Published on: 28 August 2016
Cucumber-JVM has a native integration with JUnit to run the BDD scenarios. Junit is a framework which is more popular among developers to support their unit testing. When we talk about function automation testing then TestNG is a better choice as it has more advanced features. In this blog I will be taking more about the Cucumber-JVM and TestNG Integration. With JUnit, the integration is quite straight forward, we simply need to create a test runner class like this. ... Read More

Mobile Emulation In Chromedriver

Published on: 28 June 2015
ChromeDriver 2.11 release has the mobile emulation support using Chrome Dev Tools. I have been waiting for this feature since long. This feature is really handy to run your selenium tests against different mobile screen sizes with minimal setup. This does not provide you 100% emulation but atlest it will give you some fair idea about the compatibility of your application with different mobile screen size. This is how we can emulate different devices using the Java code. ... Read More
This article is also available here Recently, in one of my projects I was asked to come up with an automated way to capture all the JavaScript exceptions from the browser for one of our Web Applications. It is a known fact that most of the modern web applications in use today involve an extensive use of JavaScript for the client side processing which makes it all the more important to capture all JavaScript exceptions and consider each Java Script exception as a bug that needs to be fixed, irrespective of whether it is currently affecting the website functionality or the user experience. ... Read More