Skip to main content

Posts

Announcing Selenium Tests Automation Framework

Selenium Tests Framework (referred as STF from here on) is a test automation framework for automated testing of Desktop web, mobile site and mobile apps. STF is based on WebDriver, Appium, TestNG and Maven.  STF source code  is available on GitHub . Please NOTICE that if you are new to selenium then you should first watch Java Training Video Tutorials and  Selenium Training Video Tutorials STF supports following features -  • Supports running tests on following environments -  IE, Firefox, Chrome browsers on Windows, Ubuntu and Mac mobile web site tests on android and ios devices mobile app tests on android and ios devices • Awesome Test Reports with step by step details of test actions -     •  Self instantiation of most popular browsers i.e. - Firefox, chrome and IE testing, you need not set up chrome or IE server, our framework does it for you.  Self serve instantiation of web browsers, hence you don'...

Cypress (yet another) Selenium WebDriver killer

There is no perfect tool, there are tools which satisfy specific requirements and Cypress is one such tool. I have not used Cypress and my assessment on this post is limited to information I have gathered reading about Cypress. Cypress appeared to me Selenium Remote Control (aka Selenium 1) repackaged with Chrome browser at it target. Cypress target audience is different than of Selenium's, let's see what requirements they cater to. Cypress target audience seems to be front-end developer. Its power lies in being able to test front end without having real back end or a mocked backend. Selenium's power lies in its integration capability with various other tools and APIs. Imagine testing on staging system which requires java based API to be invoked to create customer account following which using WebDriver to login to frontend and creating a transaction following which data base assertion to verify transaction attributes. Not all of these operations can be carried out using...

Germany vs India (a skewed view)

Having spent 4 years in Germany I thought of jotting down some of the differences I have seen in Germany and India -  You don't owe an explanation to any one in Germany, but in India - Why are you not married, if Married, then why you don't have kids, if you have kids then when are they getting married etc etc In India, one does not need an appointment to have dinner with one's parents Everybody known everybody in India and here in Germany I don't know my neighbours. I am sure they also don't know each other personally :) Germany is a punctual country and I admire that No loud speaker chanting about god(s) in Germany. What a piece of mind Unlike India, not every one wants to be an IT Engineer in Germany Sports are valued as much as education in Germany German politicians don't shout at each other in parliament, at least this is what I have seen on Tagesschau Red means you stop at traffic signal in Germany. Simple, is not it? There is hardl...

I have been offered a Ferrari

Not for real :) I had a fun conversation with a recruiter on LinkedIn and jotting it down here. I have masked/removed the sensitive data - Hi Tarun, I lead the Tech division in XYZ - I'm pretty active in the XYZ tech scene so I wanted to introduce myself. Out of curiosity, how are things going in XYZ? Could a new job get your attention somehow...? (For example, a free Ferrari) I can't promise a new Ferrari (maybe a Porsche?) but I would like to know what will grab your attention (such as more responsibility or a salary increase). Then, I can keep your goals in mind and tell you about relevant opportunities. How does that sound? If now isn't the right time to move that's also okay. I'd still like to chat to you so that when you are ready, we've already gotten the introductions out of the way. :) Look forward to hearing from you!

Do you check for absence of element on page

When writing automated tests we often check presence or absence of element for assertion conditions. This is usually written as -  assertTrue("Element is missing. Bug!!!", pageObject. isSomeElementDisplayed()); And when element is not displayed then above mentioned assert statement fails. In the similar manner we can write following assert statement to check for absence of element -  assertFalse("Element is present. Bug!!!", pageObject. isSomeElementDisplayed()); Above mentioned assert statement would fail if element is displayed on page. Everything looks ok, is not it. Not really, there is catch. Let's have a closer look at assertFalse statement we used above -  assertFalse("Element is present. Bug!!!", pageObject. isSomeElementDisplayed()); This assert statement would also succeed even if webpage results in 404/500 or any other error page, since error page would also be missing the element on which we are p...

Test Java class with JMeter

It is quite easy to test API or Website using JMeter  but you may come across situation when you have to load test java class directly.  This post described how a java class can be load tested.  We will write a java program and use JMeter Java Sampler to load test it - Set up a maven selenium project. If you are new to java and maven then you may like to check my java tutorials Add following dependencies to your maven project (find out latest versions by searching https://search.maven.org/) -  < dependency >     < groupId > org.apache.jmeter </ groupId >     < artifactId > ApacheJMeter_core </ artifactId >     < version > 3.1 </ version > </ dependency > < dependency >     < groupId > org.apache.jmeter </ groupId >     < artifactId > ApacheJMeter_java </ artifactId >     < version > 3.0 </ v...