Tuesday, 22 March 2016

QTP - 41 - Exit statements in QTP

Exit statements are used in QTP if you want to break the flow of any statement. This is done generally in case of error handling. Suppose we are executing a testcase and any error occurs, now we want to skip that particular step or iteration then we use Exit statement. Below I am mentioning different EXIT statement :

 ExitTest - Exits from the entire QTP test no matter what the run-time iteration settings are.

ExitAction - Exits the current action.

ExitActionIteration - Exits the current iteration of the action.

ExitTestIteration - Exits the current iteration of the QTP test and proceeds to the next iteration.

Sunday, 24 January 2016

QTP - 40 - QTP supported Operating systems and environments.

EnvironmentVersions
Operating Systems
  • Windows 7
  • Windows Vista SP2
  • Windows Server 2008 SP2
  • Windows Server 2008 R2
.NET FrameWork
.NET FrameWork 3.5
Virtualization environment
Citrix 5
Web
  • Firefox 3.5
  • Internet Explorer 8
  • Web 2.0 toolkits: Dojo, GWT, YUI, ASP .NET Ajax
.NET
  • .NET 4.0
  • Silverlight 2 and 3
Java
  • IBM Java 7 beta
  • Eclipse 3. 5
    (also supported for the Java Add-in Extensibility wizard)
  • SWT 3.5
TE
  • PuTTY
  • Attachmate INFOConnect for Unisys
  • Hummingbird HostExplorer 2008 (version 13)
  • Seagull BlueZone 5
SAP
Enhanced CRM 2007 support
Delphi
Delphi 2005
Power Builder
PowerBuilder 11.5
Stingray
  • OG 12 and OT11, OG 12.01, and OT11.01
  • Support for MFC 9.0 in scope of Stingray Studio 10.0 and 10.0.1
VisualAge

SmallTalk 7.5

QTP - 39 - Automatic Parameterization (From Version 11.0)

Automatic parameterization is a smart feature of QTP, which when enabled can create parameterization at the time of recording and corresponding column is generated in data table. While this option is selected, QTP replaces the constant values of your steps with action parameters and generates a column in data-table corresponding to it. This enables us to create actions that can be used for a variety of different purposes or scenarios by referencing different sets of data.When you stop a recording session while this option is selected, QuickTest replaces the constant values in the test object operation arguments of your steps with either Data Table parameters or action parameters, based on your selection in the Options dialog box.

Steps to activate this option : 

From Tools -> Options under General tab, we have a new option "Automatically parameterize steps using" (shown as below), click the check box.

An example showing the steps generated with the auto-parameterize enabled and disabled.

Option disabled (Data is hard coded)
Browser("Google").Page("Google").WebEdit("q").Set "hello world"

Option enabled(Data is parameterized automatically) 
Browser("Google").Page("Google").WebEdit("q").Set Parameter("q_Text") 'q_Text defaults to "hello world"