Automation, Automation Framework, Browser, Functional Testing, Headless browser, Selenium, System Testing, Testing, Web Automation, Web Testing

How to run Selenium tests in headless mode.

Quick, pace, speed are some synonyms which describes us. We , humans, wants pace in each and every act of ours. We want to speed up things as much as we can do. So we try experimenting things as in we try to search for betterment of work, as we are growing in automating things, replacing human acts to programs or machinery.

If I talk about selenium, then the major time which is spent in framework is at execution. And if I go one step more deeper then the initial point where the execution takes time is when it is trying to open browser be it Chrome, IE or any other. So just to wipe out this pain point there is one such browser which works in headless mode, and is compatible with selenium as well.

Continue reading “How to run Selenium tests in headless mode.”

Advertisements
Automation, Quality Analyst, Services Testing, SoapUI, System Testing, Testing, Uncategorized, Web Automation, Web Testing

SoapUI Tutorial Part 2 : A complete run-through of how to make projects in SoapUI

In this piece of write-up, I will share how can we make new projects , test suite , test case , test steps in a new SoapUI .
SoapUI provides multiple option to make a tester more comfortable and getting fast learning curve of services.
It has that capability via which a user work as if he/she is going through any documentation or user manual.
TIP : Right Click is the answer to most of the questions in SoapUI.
Continue reading “SoapUI Tutorial Part 2 : A complete run-through of how to make projects in SoapUI”

Automation, Automation Framework, Functional Testing, Quality Analyst, Services Testing, SoapUI, System Testing, Testing, Web Automation, Web Testing

Best suited tool for web services testing : SoapUI.

Recently I started working on services based project and in this post I will share how I learnt all about SOA(Service bases architecture) along with the way we should begin with.
In today’s life we have several things ,some which are important and we are ignorant about it. Some are not so important but we think about them all the time ,through out our day. And rest lies in between these two categories. Now the point here, which I would like to make is that , the driving factors of all the happenings is Service ,I am referring only Web here. Though ,in general the answer would be ‘Money’ without any doubt.
Continue reading “Best suited tool for web services testing : SoapUI.”

Selenium, Selenium Errors, Testing, Uncategorized, Web Automation, Web Testing

java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property

java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
at com.google.common.base.Preconditions.checkState(Preconditions.java:177)

at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:89)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:106)
Continue reading “java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property”

Automation, Automation Framework, eclipse, Quality Analyst, System Testing, Testing, Uncategorized, Web Automation, Web Testing

org.openqa.selenium.WebDriverException: f.QueryInterface is not a function

org.openqa.selenium.WebDriverException: f.QueryInterface is not a function
Command duration or timeout: 17 milliseconds
Build info: version: ‘2.41.0’, revision: ‘3192d8a6c4449dc285928ba024779344f5423c58’, time: ‘2014-03-27 11:29:39’
System info: host: ‘ksehgal’, ip: ‘192.168.0.95’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.6.0_43’
Session ID: b469c4b9-7596-4b66-b87e-646db4256726
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox, rotatable=false, locationContextEnabled=true, version=29.0.1, cssSelectorsEnabled=true, databaseEnabled=true, handlesAlerts=true, browserConnectionEnabled=true, nativeEvents=false, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}]

Continue reading “org.openqa.selenium.WebDriverException: f.QueryInterface is not a function”

Agile Testing, Automation, Functional Testing, Selenium Builder, Services Testing, System Testing, Testing, Web Automation, Web Testing

Selenium Builder – Exporting and execution

In continuation with my last blog I will here share a more advanced capability of Selenium Builder.
Now as we are done with the set up we can talk one step ahead. Lets start with an example :
I have opened a website in firefox and I want to automate some actions on this page . Lets say :

  1.  I want to open the url (https://khyatisehgal.wordpress.com/).
  2. I need to check a blog on this website , the very first one .
  3. I want to see the author’s about me column.

And that’s all.

What I will do for this is ,

  1. I will open the firefox
  2. I will launch Selenium Builder.
  3. I will start doing the above steps .

Continue reading “Selenium Builder – Exporting and execution”

Automation, Automation Framework, eclipse, Java, Java Basics, Selenium, Testing, Uncategorized, Web Automation, Web Testing

My First Selenium – Java Project in eclipse.

Today I will be sharing how to start making new selenium project.I will start with some basic requirements and then will be proceeding to the art of making selenium test scripts.

Pre-requisite:

1. Basic knowledge of a programming language like Java , C, Ruby , etc.

See link to learn Java .

2. Basic knowledge of Selenium tool.

3. Art of finding locators.

4. Set up of eclipse on the operating system you are using.

5. Java set up on your computer machine, in case you are using Java.
Continue reading “My First Selenium – Java Project in eclipse.”

Automation, Functional Testing, Quality Analyst, Selenium, System Testing, Testing, Web Automation, Web Testing

Web Automation – quick walk !

What is WEB ? Everything which is available over internet is Web .

Automation in layman terms is to imitate a user action. It could be a joker who used to mimic as some child or a Robot doing the same stuff an human used to do.

So Automation is a big picture all-in-all it is a task which once done can save a lot of human manual tasks.

So lets start with how we can start this tour ?

images (4)In software development , automation is as important as manual stuff. And to mention specifically for Testing perspective , Automation testing is a base-line which a Team can rely on.

Continue reading “Web Automation – quick walk !”

Agile Testing, Automation, Selenium, Testing

Introduction to Selenium Locators.

Often, Recording and playing back a recorded script using Selenium IDE and Webdriver is just a stepping stone to write a more meaningful test script(see my last blog). Almost, in all the cases, it serves as a template to add more code and to do more.

At times there are many facts which we used to overlook which seems very minute but turns to be very weird when comes to actual writing. While it may be a straight thing to use a locator strategy suggested by the recorded test, this is seldom useful while dealing with dynamic resources. One of them is finding locators.

There are many ways to detect locators in selenium. One way is via Selenium IDE,which records the user action and in return gives the locator. The other way is to find the locator via HTML from web page.
Continue reading “Introduction to Selenium Locators.”

Agile Testing, Automation, BDD, Behaviour Driven Development, Fintesse, Fitnium, Functional Testing, Quality Analyst, Selenium, System Testing, Testing, Web Automation, Web Testing

Behavior Driven Development can make your life more relaxing.

In agile methodology, when we talk about delivery then its all about the customer satisfaction and acceptance. Recently, I presented a session in an open forum stating what Behavior-driven development (BDD) can actually do and how can we start applying BDD in our day-to-day development.

BDD is an interface between a coder and a customer. It turns a requirement into a simplified language, which everyone can understand and then in the backend the required work is done.

Generally, the requirements are not clear initially and then the costs incurred to add changes are more in the long run, say, at the time of delivery. The best part of this technique is that we can bridge the gap and have a common understanding of the Definition Of Done between all; coder,  quality analyst , customer, end user, business analysts. This applies to each and every person who are involved in the software development process right from the initial days to the delivery of the product.

Continue reading “Behavior Driven Development can make your life more relaxing.”

Automation, Functional Testing, Quality Analyst, Testing, Web Automation, Web Testing

All about Automation and its pros and cons !

The current trend in user interfaces is geared towards graphical user interfaces (GUIs). GUIs are very complicated and hence GUI testing is very time consuming. Automation is a requirement for testing any larger graphical user interfaces, but automating GUI tests isn’t a forthright task. Automation is not that easy at first.

Continue reading “All about Automation and its pros and cons !”

Selenium, Testing, Timeout in Selenium, Web Automation, Web Testing

Manage your Selenium scripts with TimeOuts , implicit and explicit waits in.

The most common problem which I used to face while running selenium test scripts is because of the intervention of threads .I went through many forums and communities to see the solution of this problem but was not able to  find the best way out to resolve this problem. So just gave a thought, to write a blog stating the solution which I applied in my project to resolve the time out problems.

While working in a project I faced the same and resolved it via writing a code and separating a class of thread return and thread timeout handling.

Many of the selenium users might have seen this ERROR erstwhile running the scripts.

ERROR: Timed out after 30000ms

Continue reading “Manage your Selenium scripts with TimeOuts , implicit and explicit waits in.”