Thursday, 10 March 2011

Parts Of QTP

There are 7 parts in QTP. They are listed as follows:
1.Test Pane
2.Active Screen
3.DataTable
4.Debug viewer pane
5.Information Pane
6.Missing Resources Pane
7.Tools Options

I) TestPane:
 TestPane is an area provided by QTP.which is used to developing,viewing & modifying the test script.
TestPane shows the script in two views.
1.Expert view
2.Keyword view

   1.Expert View:
 It shows the script in vbscript format.
   2.Keyword view:
 It shows the script in a graphical user interface which is further divided into 4 parts.
  i) Item
  ii) Operation
  iiI)Value
  iv) Documentation

     i) Item Column:

    The item on which you want to perform the step (test object, utility object, function call, or statement). This column displays a hierarchical icon-based tree. The highest level of the tree are actions, and all steps are contained within the relevant branch of the tree. Steps performed within the same parent object are displayed under that same object. Function calls, utility objects, and statements are placed in the tree hierarchy at the same level as the item above them (as a sibling).
    ii)Operation Column:

    The operation to be performed on the item. This column contains a list of all available operations (methods, functions, or properties) that can be performed on the item selected in the Item column, for example, Click and Select. The default operation for the item selected in the Item column is displayed by default.
    iii)Value Column:


   The argument values for the selected operation, or the content of the statement. The Value cell is partitioned according to the number of arguments of the selected operation.

If an argument has a predefined list of values, QTP provides a drop-down list of possible values. If a list of values is provided, you cannot manually type a value in this box.
   iv)Documentation:

     The Documentation column translates each of the steps into understandable sentences.



II) Active Screen:
     'Active screen' is an area provided by QTP which holds the snapshots related to each and every recorded statements and used for easily understanding & enhansing the script.
 Note: You can display the Active Screen by choosing View > Active Screen, or by clicking the Active Screen button sl ActiveScreen  QTP Window.
III) DataTable:
 'DataTable' is an Important feature provided by the QTP .It is like an Excel sheet which provides the following facilities:
    1)It is used for handling the test data.
    2)It isolates the test script from the 'data source'.
    3)It provides the provision to import the data from different data sources very easily.
    4)It provides the provision to interact with the data directly.
Note: You can display the Data Table pane by choosing View > Data Table, or by clicking the Data Table button sl data table views new  QTP Window.
IV)Debug Viewer Pane:
It is an area provided by QTP which is used for viewing,modifying (or) setting the current values of the variables during the execution break with the help of 'three tabs'. They are listed below:
1) watch
2) variables
3) commands
 Note: The Debug Viewer pane is not displayed when you open QTP for the first time. You can display the Debug Viewer by choosing View > Debug Viewer.
V)Information Pane:
       It displays a list of syntax errors found in your test and function library scripts.
Note: You can display the Information pane by choosing View > Information.

VI) Missing Resources Pane:
       Provides a list of the resources that are specified in your test but cannot be found, such as missing Recovery Scenarios and missing Function Libraries.
Note: The Missing Resources pane is not displayed when you open QTP for the first time. You can display the Missing Resources pane by choosing View > Missing Resources, or by clicking the Missing Resources button sl missing resources  QTP Window.

 VII)Tools Options: 
   It provides various services to us to configure our QTP tool to compatible with the application what we have to test.





What is QTP???


               'HP QuickTest Professional' software provides functional and regression test automation for software applications and environments. Part of the HP Quality Center tool suite, HP Quick Test Professional can be used for enterprise quality assurance.
HP QuickTest Professional supports keyword and scripting interfaces and features a graphical user interface. It uses the Visual Basic Scripting Edition (VBScript) scripting language to specify a test procedure, and to manipulate the objects and controls of the application under test.
HP QuickTest Professional was originally written by Mercury Interactive. Mercury Interactive was subsequently acquired by Hewlett Packard (HP) in 2006. HP QuickTest Professional 11 is currently available from HP Software Division.
Supported Technologies
   The supported technologies depend on the QTP version, so far are available the following:
  • Web
  • Java(Core and Advanced)
  • .Net
  • WPF
  • SAP
  • Oracle
  • Siebel
  • PeopleSoft
  • Delphi
  • Power Builder
  • Stingray 1
  • Terminal Emulator
  • Flex
  • Web Services
  • Windows Mobile
  • VisualAge Smalltalk
  • Silverlight
  • Mainframe terminal emulators

Languages

   HP QuickTest Professional uses VBScript as its scripting language. VBScript supports classes but not polymorphism and inheritance. Compared with Visual Basic for Applications (VBA), VBScript lacks the ability to use some Visual Basic keywords, does not come with an integrated debugger, lacks an event handler, and does not have a forms editor. HP has added a debugger, but the functionality is more limited when compared with testing tools that integrate a full-featured IDE, such as those provided with VBA, Java, or VB.NET.

 Drawbacks

   HP QuickTest Professional cannot be used by a plug-in in non-Windows environments. It fetches objects like ActiveX from the Windows environment but not from other operating systems. QTP cannot be used to test with all browser types and versions.

Automation Testing

 An 'Automation Testing' is a process in which all the drawbacks of manual testing are addressed properly & provides speed and accuracy to existing testing process.
Advantages:
1.Time Consuming
2.Accuracy
3.Simultaneous actions can performs well

Drawbacks of Automation Testing:
1. Automated tools are expensive
2.Some of the areas in the Application can't be tested with automated tools.
3.Lac of  Automation tools experts


Automated tool:
  An Automated tool is an Assistant of a test engineer which works based instructions & information given by him and finally shows the results.
In the further classes we are going to learn about QTP (Quick Test Professional 9.5).