//
archives

Confusions Personified

Confusions Personified has written 33 posts for Misadventures of a castaway coder!

Just-Ask.. An On-Demand Docker Grid

A static Grid (i.e., a hub and a fixed number of nodes) is a good start for setting up a remote execution infrastructure. But once the usage of the hub starts going up, problems start creeping up. Nodes go stale and start causing false failures for the tests and require constant maintenance (restart). Some of … Continue reading

Talk to the Grid

Today I released talk2Grid which is a simple java library that lets you do the following : Find out to which node was a test routed to ? Provide access to the Grid Hub configuration. Provide access to the Grid node configuration to which the hub routed a test to. You can start using it … Continue reading

Simple Se – Page Objects – My first OSS contribution

Its been quite a while since I have been doing bits and pieces of deliveries here and there, contributing to TestNG both via pull requests and also on the mailer list and the same with Selenium as well (although I must admit I dont have too many contributions on Selenium), I have always wanted to … Continue reading

Dears Listeners…stand in Q please

Yes, you read the title right.. but I was not hinting at you the readers.. but I was referring to the TestNG listeners¬†. We have all at some point or the other wondered.. what if I could have my listeners follow some order when they are being executed by TestNG. I too wondered this. There … Continue reading

Testcase specific logs for a Selenium project

Problem statement: You would like to have a separate log file for every testcase so that if there are failures, its very easy for you to be able to debug and find out failures. For going through this, I am going to be using a selenium based test as an example. Selenium has a webdriver … Continue reading

Understanding PageFactory

I recently spent some time building some customisation around PageFactory. That was when I thought that maybe there is a need to explain PageFactory in detail apart from the user facing documentation that is available on the Selenium wiki page. The concept of PageFactory within the Selenium libraries consists of the following components : PageFactory … Continue reading

BrowserMobProxy meets JBrowserDriver

While I was casually skimming through the internet, I stumbled into this new flavour of webdriver which is being recommended as an alternate for “ghostdriver“. Its called “jBrowserDriver“. The github page should pretty much help you get started with using it. In this post we will just look at how do we couple a proxy … Continue reading

How to run test methods in parallel but test classes in sequence

This question came up recently on the TestNG forum. Since when solving this question I had a chance to use one of the lesser known features of TestNG, I thought I should perhaps capture this as a blog so that it can help someone. Here’s the problem statement : A user on the forum wanted … Continue reading

Disabling TRACE in Selenium

I have seen this question come up at-least twice on the Selenium forums. So I thought I might as well just create a blog post which shows how TRACE call can be disabled in the Selenium Uber jar. There’s no direct way of doing it. From what I have googled around, it looks like TRACE … Continue reading

PageFactory, Page Objects and locators from an external file

The reason for this post is basically aimed at answering a forum question that came up. The question read : Can we pass the value for @FindBy from a xml file…? Means for our project we maintain a xml file which contain ¬†all parameter( config, test data, object identification value , etc…) So, what i … Continue reading