Posts

Showing posts from June, 2014

Quality Center integration with Selenium Webdriver

Image
Introduction to HP Application Lifecycle Management/Quality Center: HP ALM formerly known as Quality Center is a Test Management tool to manage entire Quality Assurance and testing process for an organization. Before being called HP Quality center it used to be Mercury Test Director. ALM helps make project management, from requirements to deployment easier. It increases predictability and creates a framework to manage projects from a central repository.   Selenium Webdriver : Selenium WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application. Selenium WebDriver is the successor to Selenium RC. Selenium WebDriver accepts commands (sent in Selenese, or via a Client API) and sends them to a browser. This is implemented through a browser-specific browser driver, which sends commands to a browser, and retrieves results Selenium 2.0 aims to provide a basic set of building bloc

BrowserMob with Selenium for Performance Test

BrowserMob Proxy BrowserMob Proxy is a simple utility that help to capture the performance data from browsers and also to manipulate the network traffic. We can integrate BrowserMob utility with our selenium webdriver to get performance related data since Browsermob proxy is one of the proxy that has been closely integrated with Selenium Webdriver. Features: The proxy is programmatically controlled via a REST interface or being embedded directly inside Java-based programs. It captures performance data in the HAR format. HAR (HTTP Archive) is a online tool visualizing. HAR is produced by the HTTP tracking tools, these files captures the details of the client/server communication and this can be used for Performance analysis. You can view the HAR file contents by uploading the HAR extension file in the below website http://pcapperf.appspot.com/ Selenium WebDriver - Browsermob Proxy Integration I would like to explain how to integrate Selenium Webdriver with browsermob proxy using java.

Selenium Webdriver : Junit Testing Framework - Single Run and Parallel Run

Java has several popular testing frameworks, and we have provided examples on Junit Testing Framework & how to use them in conjunction with Automate. JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks which is collectively known as xUnit that originated with SUnit. JUnit is linked as a JAR at compile-time; the framework resides under package junit.framework for JUnit 3.8 and earlier, and under package org.junit for JUnit 4 and later. Junit - Single run  Program Junit - Parallelrun Program

Selenium Webdriver - Handle Upload and Download Dialog

This blog is to provide one stop solution to handle Upload and Download in Webdriver driver script. To Handle to Upload & Download To upload files through Webdriver script: driver.setFileDetector(new LocalFileDetector()); driver.get("http://<AUT Url>/"); driver.findElement(By.id("upfile_0")).sendKeys("<FilePath>"); driver.findElement(By.id("readTermsOfUse")).click(); driver.findElement(By.name("form_uploads")).submit(); Keep in mind that the above thing will work,  If the element  "upfile_0"  should be in the form  <input type="file"> To download files through the test files, you need to create a profile capability containing all the necessary parameters, and then associate it with the WebDriver. FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("browser.download.folderList", 0); profile.setPreference("browser.downloa

Selenium Webdriver with FitNesse

Image
FitNesse is a software development collaboration tool. FitNesse enables customers, testers, and programmers to learn what their software should do, and to automatically compare that to what it actually does do. It compares customers' expectations to actual results. In other words, FitNesse is a lightweight, open-source framework that makes it easy for software teams to: 1. Collaboratively define Acceptance Tests 2. Run those tests and see the results Getting started: · We can easily create and edit pages ·   It requires no configuration or setup. · Just run it and then direct your browser to the machine where it is running The Overview of Integrating the Selenium Webdriver with FitNesse: · Create an object for Selenium Websriver in a code. · Pass the required parameters · Run the script by using FitNesse tool Now, we start from the scratch FitNesse 1st part: 1) Get the latest version of the jar file  “FitNesse jar” f