Posts

Rally + Custom apps + RestAPI to customize reports / test cases

Image
If you are looking to generate custom reports based on the various fields under requirements/ build / test cases then going the Rest API way is not the right solution. Rally provides something called the custom apps which can help you achieve what you want: https://help.rallydev.com/custom If you are not happy with the custom apps that Rally provides then your last resort is the Excel Add-in that rally provides : https://help.rallydev.com/rally-add-excel-installation-user-guide The link above has details that provide information about how to use the add-in.If you have troubles during the installation then make sure you have "visual studio tools for office 2010 runtime" installed!

Testing the Page Layout with Selenium Webdriver

Image
If you are looking to test Overlapping objects with selenium webdriver? page layout of a website? Easiest way to do that: webelement.getPosition() and webelement.getDimension() . These two methods are quite good when it comes to testing the layout of a webpage. I did a quick test and found that the location would return the location of the element relative to the left top corner of the page. That means this should always return the same value irrespective of monitor resolution or window size. If you can record the location and element dimension once and store these values somewhere, You can then run automated tests using selenium to find whether the position or dimension of the element changed. If that change is greater than a delta value, then it means the alignment of the element has changed and the test has Failed!

Book Review - Selenium WebDriver Practical Guide

Image
  In the past few automation years (years where you have new tools that create a big bang effect) everyone wants to know what is it that the open-source world has to offer via Selenium WebDriver. Whether you are new to automation or you are someone who has dipped his feet using other tools, want to know more about: How does WebDriver fit into an agile /Continuous Integration environment? How Selenium WebDriver is able to automate the testing on multiple browsers?   Are there common tips that can be used while automating your scenarios? How do you create a test automation framework that has a collection of libraries and answers to all other business needs? How the book is laid out: It starts with the evolution of selenium and how it got its name, touches upon the bare minimum basics of the tool using Java. This is great, since the hardest thing about starting an automation project is often getting your basics right. The examples in the support f...

Get the style of a web object using selenium webdriver

Image
There are too many posts on this topic but they are all scattered in bits and pieces, bringing it all to one place to solve how to get the background color or any other css property of an element using webdriver These days elements are rarely styled with just inline styles. For example: 1 < div style = "color:red" >text</ div > An element’s style will also be dependent on its parent elements, as well as its class (ie style sheets). 1 2 3 < div style = "color:red" >    < span class = "bigtext" >text</ span > </ div > How do you get the actual style of the element (ie the computed style)? For example color WebElement elem = driver.findElement(By.xpath("//a[contains(@class,'test')]")); System.out.println(elem.getCssValue("color")); System.out.println(elem.getCssValue("background-color")); String color = elem.getCssValue("color...

Some cool testing tips

Image
This is an old one but i thought it was worth a share! P.S Click on the image and download to zoom in!