Skip to main content

That's not test automation framework!!!

I have been flabbergasted by the amount of misinformation test automation engineers have.
Many of my colleagues use QTP or Test Complete and believe that they have developed a test automation framework. Using a tool or creating directory structure for test automation is not equivalent to creation of test automation framework, in fact not at all. Moreover Indian software industry is so fascinated with word "framework" that this question keeps popping - "Did u design any framework", I wonder if every software test project needs a customized framework, and if so then I am not that so expert that keep designing framework for each and every project!!!

Comments

  1. Many thanks for STF and thanks again for posting such a insightful article here. This is indeed a favorite question of a interviewer, when he/she is looking for Automation Engineer/tester.
    You wrote "Using a tool...Infact not at all", so whats the correct answer what is the meaning of framework, is it "Keyword driven, Data Driven, Hybrid or Modular (most of the times interviewer settles on answers like this)?

    ReplyDelete

Post a Comment

No spam only genuine comments :)

Popular posts from this blog

Verify email confirmation using Selenium

Email confirmation seems to be integral part of any registration process. I came across an application which lets you provide your email address. You can follow the sign up link in you mail and then complete the registration process. Lets consider we provide GMail address for it. Now if were to use only Selenium then we would have to follow following steps - Launch GMail using Selenium; Some how search for new mail in the list of available mails; Some how click on it; Parse the mail message; Get the registration link; Follow up with registration process What do you think of an approach in which you can

Return only first or last element from webelements collection

We often come across situation when there are multiple elements on a page and we probably like to exercise only a few of them using selenium webdriver. May be just first and last element. For example on a search result page we may like to click on only first and last link and not all. This is when Iterables API comes handy. (By the way I am assuming that you have already completed watching selenium training videos :)). Once we have collection of web element then we can use Iterables to get only first or last element as following - Consider that we fetch collection of element as - List< WebElement > webElements = getDriver().findElements(By. id ( "htmlID" ));   Now we can get the first web element from this collection as -  WebElement firstElement = Iterables. getFirst (webElements,  getDriver().findElement(By. id ( "defaultElement" )));   Herein second argument -   (getDriver().findElement(By. id ( "defaultElement" )))    in the me

Using xPath to reach parent of an element

Well, I am big fan of css locator my self there are times when css locators don't fit requirement. One such requirement is when you want to navigate to parent element of an element and may be parent of parent and even more. Unfortunately css locators don't provide any mechanism to navigate to parent of an element. See this for more. Of late I came across a scenario when I wanted to click on a link depending upon the text in a text box. Herein parent of text box and parent of link were at the same location. More over there could have been many such combinations in application. Fortunately I just need to pick first such instance and Web Driver any way considers only first instance when multiple locators are found matching an element. Element in question is in following html - Here I need to click on highlighted anchor on the basis of input element (which is also highlighted in image) Herein first I need to reach div parent (class = 'left couponmainarea