Featured Post Today
print this page
Latest Post

UFT 12 new features , QTP 12 , ALM , QTP ALM Integration

Finally  UFT 12 is Released and below are the quick look of new features

  • ·         Platform is much more stable and script performance
  • ·         UFT 12 is backward compatible with ALM 11.x versions
  • ·         Improvements in Integration with ALM
  • ·         UFT Installation: faster, smaller, and more secure
  • ·         Additional support for HTML5 Objects on web applicatons
  • ·         Support for the latest versions of each of the browsers (IE, FF, Chrome, Safari)
  • ·         ALM AUT Parameters—Now for GUI tests too
  • ·         New UFT look and feel for BPT
  • ·         Run GUI tests on safari from a remote Mac computer
  • ·         Conditionally upload run results to ALM after a Run Session
  • ·         Run both GUI and API tests using virtualized services
  • ·         Creating web service activities by importing a network capture into an API Test
  • ·         Import a Web Application Description Language (WADL) for API tests
  • ·         New testing extensibility support for Visual Studio 2010 and 2012
  • ·         Run flex tests on Multiple UFT Instances Simultaneously (Windows Sever)
  • ·         UFT 12 C.pngConnect to ALM Using External Authentication (e.g. CAC)
  • ·         Find help more easily and new, web-based Help
  • ·         Use the Run Results Deletion Tool Directly from the Run Results Viewer
  • ·         More detailed reporting options in the UFT Self Check Tool
  • ·         Stop your run session Using a shortcut key
  • ·         Enable or disable test runs to stop at breakpoints during an ALM or Automation Run
  • ·         See details of your test's virtualized services in the run results
  • ·         Continue running GUI tests on a remote computer after disconnecting
  • ·         Simplified parameter management
  • ·         Simplified configuration for flex applications
  • ·         New flex test object methods and properties
  • ·         Specify areas to ignore in an Insight Test Object Image
  • ·         Pass output parameters from a called API test back to the calling GUI test
  • ·         Make your ALM or Network-Based GUI Tests into Portable Tests
  • ·         Create 64-Bit COM object references
  • ·         Action templates and external properties are back
  • ·         Use the errors pane to detect unmapped repository parameters
  • ·         Add-in enhancements for Web, Dojo, and SAP

UFT 12: Minimum system requirements
Computer Processor      :               1.6 Ghz or higher
Operating System          :               Windows 7 Service Pack 1 (32-bit or 64-bit)
Memory                         :               Minimum of 2 GB when no more than three add-ins are loaded simultaneously

An additional 512 MB of RAM are required when using a virtual machine.
Additional memory is required when loading more add-ins and when using the Save movie to results option to capture movies during run sessions.
Hard Disk Drive:                5400 RPM
Color Settings:   High Color (16 bit)
Graphics Card:   Graphics card with 64 MB video memory
Free Hard Disk Space:    2 GB of free disk space for application files and folders
You must also have an additional 1 GB of free disk space on the system disk (the disk on which the operating system is installed).


Introduction WebDriver , difference between selenium RC, selenium WebDriver

Introduction to Selenium WebDriver
WebDriver is a selenium libraries which is developed in java and included from Selenium Ver. 2.0 onwards.
Not like the earlier version of Selenium RC , WebDriver API will directly interact with the Respective browsers like Firefox, IE, Chrome…etc
Selenium WebDriver will do the same as RC (Remote Control) will do, these are additional libraries which are added into Selenium Ver. So
Selenium 1.0 (RC Libraries) + WebDriver (Libraries) + Grid Libraries = Selenium 2.0
  • WebDriver is more simpler than RC and it over comes some of the limitations of RC like file upload or download, pop-ups and dialogs barrier
  • WebDriver is a pure Object Oriented Programming language developed in java where as RC is developed in JavaScript
  • Selenium RC to execute Server need to run first , the selenium program will interact with Selenium Server and Server will interact with Browser like FF, IE..etc,   where as webdriver will directly interacts with Browser
WebDriver is an interface and we can use the below classes to develop the scripts,
AndroidDriver, ChromeDriver, EventFiringWebDriver, FirefoxDriver, HtmlUnitDriver, InternetExplorerDriver, IPhoneDriver, PhantomJSDriver, RemoteWebDriver, SafariDriver
Ex: The below Webdriver program uses FirefoxDriver API to open any given URL
public class Sample
                public static void main(String args[ ])
 FirefoxDriver driver=new FirefoxDriver();
In the above code, object is created for FirefoxDriver class and using the method get(url) to pen the given url in the firefox browser

java program to read data from notepad file, using FileReader, BufferedReader

The below program is a very simple java code, to read line by line from text / notepad file

import java.io.BufferedReader;
import java.io.FileReader;

public class txt_read
    public static void main(String[] args) throws Exception
     String str;   
     FileReader fr=new FileReader("e:\\sel-online\\data.txt");
     BufferedReader br=new BufferedReader(fr);
      ///read line from the file upto null    

Refer : www.venkatgnselenium.blogspot.in

java, writing data into notepad file using FileWriter, BufferedWriter

The below program is a very simple java code which uses File Writer and Buffered Writer to write data into notepad file, save and close

import java.io.BufferedWriter;
import java.io.FileWriter;

public class txt_write
    public static void main(String[] args) throws Exception
     FileWriter fr=new FileWriter("e:\\sel-online\\data.txt");
     BufferedWriter br=new BufferedWriter(fr);
     br.write("This is sample data");
     br.write("selenium testing");
     br.write("java programming");

Refer : www.venkatgnselenium.blogspot.in

UFT , QTP 11.5 new feature Insight object recognizing

Understanding Insight Objects in UFT 11.5

QTP 11.5 has new features which I have specified in http://venkatgn.blogspot.in/2013/05/hp-qtp-11.html

Apart from the above specified features one of the most important features is how to recognize the objects in application using “image” of the object rather than the properties of the image.

The below navigation explains how the object is recognized using “image” recording in “insight mode”

·         Insight is an image-based identification of object in the application.
·         UFT stores an image of the object with insight test objects (Object Repository) and uses this image as main description property to recognize object in the application.
·         For the objects UFT can also use ordinal identifier to uniquely identify the object if 2 more more same images are there in the same page
·         Visual relation identifier can also be used to identify the object based on its relative position with respect to other near by objects in the application.  (up / left / right / bottom / above)

Adding Insight Objects into object Repository:

UFT allow adding Insight object either in recording Mode or manually in object repository:

1.      Insight Recording: When we start recording in UFT, There is an option to select recording mode. The recording modes in UFT are default, analog, Low Level recording, and Insight recording. When we select recording mode as Insight recording, UFT records object as insight object for images and identifies rest of objects like edit box as window object WinObject and perform action on them.

2.   Insight Objects can be added through Object Repository. Go to Resources>Object Repository. This will open Object Repository window. In Object Repository window, Navigate to Object>Add Insight objects to Local. This can also be added by icon as shown below.
Once we click on Add Insight objects to local, UFT asks to select Learn Mode which can be manual and automatic. Manual Mode provides magnifier to select minute objects in the application.

Adding object from object repository

Options available to work with Insight in UFT 11.5:
UFT 11.5 provides following options for working with insight objects. Options for Insight Object are at Tools>Options>GUI Testing>Insight. This pane enables you to define options that customize how UFT handles Insight test objects when creating test object, and during record and run sessions.
Options to customize the insight object are as follows:
a.   Save the clicked coordinates as the test object’s Click Point when recording a test object.
b.   When recording a test, display mouse operations.
options for insight 

c.   When editing shows test object image in steps and displaying Select learn mode dialog box
d.  Snapshots for insight object takes a lot of disk space, we can provide option to limit test object image, maximum pixels around image, and maximum number of snapshots to save when recording a test object


JavaScript execution in WebDriver, JavascriptExecutor Interface, executeScript

public interface JavascriptExecutor :

The interface indicates the driver can execute JavaScript.
////The below example type selenium in google and click search

import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.firefox.FirefoxDriver;

public class google_js
  public static void main(String[] args) throws Exception
   FirefoxDriver fd=new FirefoxDriver();
         ///create object for JavascriptExecutor interface
   JavascriptExecutor js=(JavascriptExecutor)fd;
         ////get the element in the page and perform the required event
   js.executeScript("window.document.getElementById('gbqfq').value='selenium' ");
   js.executeScript("window.document.getElementById('gbqfb').click() ");
executeScript method :
Executes JavaScript in the the current selected frame or window.

If the script has a return value (i.e. if the script contains a return statement), then the following steps will be taken:

    For an HTML element, this method returns a WebElement
    For a decimal, a Double is returned
    For a non-decimal number, a Long is returned
    For a boolean, a Boolean is returned
    For all other cases, a String is returned.
    For an array, return a List with each object following the rules above. We support nested lists.
    Unless the value is null or there is no return value, in which null is returned

Arguments must be a number, a boolean, a String, WebElement, or a List of any combination of the above. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" magic variable, as if the function were called via "Function.apply"

    script - The JavaScript to execute
    args - The arguments to the script. May be empty
    One of Boolean, Long, String, List or WebElement. Or null.

yahoo registration, select country code, webdriver, select class

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;

public class yahoo_reg
    public static void main(String[] args) throws Exception
             ////////create object for FirefoxDriver and get the URL
      FirefoxDriver fd=new FirefoxDriver();
      fd.findElement(By.id("signUpBtn")).click();  ///click on signUp Button
      fd.findElement(By.id("first-name")).sendKeys("abcddfd");  ///input firstname, lastname
      fd.findElement(By.id("selected-country-code-1")).click();  ////click country code
      fd.findElement(By.xpath("//*[@id='country-codes-menu-1']/ul/li[14]")).click(); //select country
      new Select(fd.findElement(By.id("month"))).selectByVisibleText("March"); //select month
      new Select(fd.findElement(By.id("day"))).selectByVisibleText("20");   //select day
      new Select(fd.findElement(By.id("year"))).selectByVisibleText("1982");  //select year

Support :
Copyright © 2013. Software QA Testing - All Rights Reserved