Home
        Testing Appeon Web Applications with QTP
         Contents
1.         Step 3    Click Run in the left pane  In the right pane  select Normal  displays execution  marker   and then type 500 or select 500 using the spin control in the Delay each step  execution by     milliseconds spin control  as shown in the figure below     Figure 3 4  Choose the Run mode    E  General Run    Text Recognition       E Active Screen Run mode      Run    Normal  displays execution marker       Screen Capture       illi  i Delay each step execution by  1500     milliseconds      Windows Applications 2        Advanced Fast  E  Web  E Page Frame Options 7 Submit a defect to Quality Center for each failed step  i Advanced        Y View results when run session ends     7 Allow other HP products to run tests and components    Stop command shortcut key   Ct   Alt   F5       OK   Cancel   Apply   Help         Step 4    In the left pane  expand Windows Applications and click Advanced  In the right  pane  select Always enumerate child windows  may affect performance  option under  Object identification     Testing Appeon Web Applications with QTP Page 5    Configuring QTP Appeon for PowerBuilder 2013       Figure 3 5  Set the object identification    oo   Windows Applications  gt  Advanced       Text Recognition      Folders  i   Active Screen  E  Run    Ol O    El Object identification  Always enumerate child windows  may affect performance     Screen Capture  a Windows Applications        Web O Record only the object s basic operation      Page Frame Options  pr
2.        TW Le atc lomo    tion   eondatawindow    MandatoryProperties RemoveAll       Considerations for Recording Web Applications Appeon for PowerBuilder 2013       4 Considerations for Recording Web  Applications    This section only highlights a few areas that you should pay special attention to when you  test Appeon Web applications with QTP  For step by step instructions on how to use QTP   please refer to the QTP user guide     4 1 Mouse scroll ball    QTP cannot record operations performed by using the mouse scroll ball  therefore avoid  using mouse scroll ball to scroll a window when recording the application with QTP     4 2 Keeping data consistent    Make sure that the data of running a test need to be the same data when the test is recorded   otherwise it may cause run failures     4 3 Recording TreeView DataWindow    The TreeView DataWindow is not a standard Windows TreeView in QTP  therefore when  clicking a TreeView node  its coordinates will be recorded by QTP     4 4 Recording DatePicker    For the DatePicker control or controls of this type  time controls that use x and y coordinates  to recognize data   the date  year and month  to run a test need to be the same as the year and  month when the test is recorded     4 5 Recording Menu    QTP may occasionally record a Menu as a ControlMenu which will cause run failures  When  this happens  you can record the operation again  and make sure that you do not click any  menu other than the one you intend to record  
3.    Typically  to record a sub menu  instead of clicking the menu  move the mouse over the  menu  for example DataWindows and then EditMask as shown in the figure below  until the  sub menu you want to record appears  and then click the sub menu     Testing Appeon Web Applications with QTP Page 8    Considerations for Recording Web Applications Appeon for PowerBuilder 2013       Figure 4 1  Recording Menu  DataWindows   PowerScript SQL Standard Controls Graphs User Objects N        b      b  b  b  b  b  b    Testing Appeon Web Applications with QTP Page 9    Known Issues Appeon for PowerBuilder 2013       5 Known Issues    This section lists the issues one may come across when testing Appeon Web applications  with QTP     5 1 Failing to record operations on SDI windows in Internet  Explorer 8 0    Description  No test script is generated while QTP 10 00 is recording operations on an SDI  window  main type window opened by the PB Open function  in IE 8 0     Cause  It is probably caused by the limited support of QTP 10 00 for IE 8 0   Solution  You can upgrade to QTP 11 00 to avoid this problem     5 2 Generating scripts in an incorrect order  Description  The test scripts are generated in an incorrect order   Cause  This is probably a QTP issue and happens occasionally     Solution  When this happens  you can record the operation again and make sure that the  scripts are generated in the correct order  or you can manually change the scripts into the  correct order in the Exper
4.  Objec  Objec  Objec    tions   tions   tions   tions   consi    tions Objec  tions Objec  tions Objec    tions Objec  tions Objec       tions Objec    tIden  tIden  tIden  tIden  tIden  tIden    tIden  tIden  tIden    identification    tIden  tIden  tIden  tIden  tIden       tIden    tIden  tIden  tIden    identification    tIden  tIden  tIden  tIden  tIden  tIden    tIden  tIden  tIden    identification    tIden  tIden       tIden    Cait Cel  calce  catala   caca  SEEEN  EECa     eie Cel  EalseaL el  calce          tion  WinCheckBox    tion  eoncheckbox    tion   eoncheckbox      tion   eoncheckbox      tion   eoncheckbox      tion   eoncheckbox      ROOKS   Kbox      kbox      tion  eonchec  tion  eonchec  tion  eonchec        MandatoryProperties   AssistiveProperties   App Options ObjectIdentification  eoncheckbox   AssistiveProperties Add  x    App Options ObjectIdentification  eoncheckbox   AssistiveProperties Add     EnableSmartIdentification   BaseFilterProperties RemoveAll       OptionalFilterProperties RemoveAll       oncheckbox        W   osatioa     RemoveAll      RemoveAll      Add  nativeclass     Add   window id      MandatoryProperties  AssistiveProperties       gi       False                configuration for user d  tion  WinButton   CreateUserDefinedObjJect   eoncmdbutton      catala  catala  Calis aes   Eie ea  catala       catala    tifica  tifica  Calis alee     configuration for user defined object    CreateUserDefinedObject   eoncombobox      tifica  c
5.  Screen Capture OCR mechanism configuration      Windows Applications                               Advanced o       Web ol   Page Frame Options   Advanced                      oK   Cancel   Apply Help       Notes     1  If there is unrecognized script obtained and the checkpoint is not an image when you  insert a Text checkpoint  check the configuration here  Make sure the Use Only Window  API is selected in the Use text recognition mechanism in this order dropdown list box     2  Windows 7 and Windows Server 2008 R2 do not support the Windows API test  recognition mechanism  Therefore  when you install relevant QTP 10 00 patches  the Use  text recognition mechanisms in this order option in the Options dialog box  Options  gt   General  gt  Text Recognition  is set to Use only OCR  and cannot be changed  the option  is disabled   as shown in the figure below  However  you can still test a Web application  on Windows 7 or Windows Server 2008 R2  the only problem you might have is the text  that QTP obtain may contain some unrecognizable characters  When this happens  you can  manually modify these unrecognizable characters  For more information  refer to the QTP  10 0 user guide     Testing Appeon Web Applications with QTP Page 4    Configuring QTP Appeon for PowerBuilder 2013       Figure 3 3  View Text Recognition window    General  gt  Text Recognition    Use text recognition mechanisms in this order   Use Only OCR   OCR mechanism configuration     Single text block mode  
6.  To make sure that you can follow this guide easily   you would need to know how to use QTP beforehand  Please read the QTP user manual first  if you do not know the basis of QTP     You will find step by step instructions for the following tasks in this user guide     e Configuring AEM       e Configuring QTP       e Considerations for Recording Web Applications       e Known Issues    e Appendix    Testing Appeon Web Applications with QTP Page 1    Configuring AEM Appeon for PowerBuilder 2013       2 Configuring AEM    To test a Web application converted by Appeon for PowerBuilder  go to AEM and switch the  Run Mode to Test Mode  by default  Normal Mode is selected      For more information  please refer to the Run Mode section in the Appeon Server  Configuration Guide     Figure 2 1  Configuring AEM    Run Mode Settings    Select the run mode for Web applications  If test mode has been turned on  Appeon Server will start in the performance test mode  allowing stress  testing tools  such as LoadRunner  to read and write parameters in the plain text     Run Mode  Normal Mode   O Test Mode    Testing Appeon Web Applications with QTP Page 2    Configuring QTP Appeon for PowerBuilder 2013       3 Configuring QTP    Before you can use QTP to record the operations on the controls or functionalities of a Web  application  you will need to configure QTP properly     3 1 Selecting Web add in    When you start QuickTest  the Add in Manager dialog box opens  In the Add in Manager   se
7. Testing Appeon Web Applications with QTP    Appeon   for PowerBuilder   2013  FOR WINDOWS  amp  UNIX  amp  LINUX    DOCUMENT ID  DC40000 01 065 1 01  LAST REVISED  May 15  2013  Copyright    2000 2013 by Appeon Corporation  All rights reserved     This publication pertains to Appeon software and to any subsequent release until otherwise  indicated in new editions or technical notes  Information in this document is subject to  change without notice  The software described herein is furnished under a license agreement   and it may be used or copied only in accordance with the terms of that agreement     No part of this publication may be reproduced  transmitted  or translated in any form or by  any means  electronic  mechanical  manual  optical  or otherwise  without the prior written  permission of Appeon Corporation     Appeon  the Appeon logo  Appeon Developer  Appeon Enterprise Manager  AEM   Appeon Server and Appeon Server Web Component are registered trademarks of Appeon  Corporation     Sybase  Adaptive Server Anywhere  Adaptive Server Enterprise    Anywhere  PowerBuilder   Sybase Central  and Sybase   Connect for JDBC are trademarks or registered trademarks of  Sybase  Inc     Java and JDBC are trademarks or registered trademarks of Sun Microsystems  Inc     All other company and product names used herein may be trademarks or registered  trademarks of their respective companies     Use  duplication  or disclosure by the government is subject to the restrictions set fort
8. aca  catala  EECa   Tae OE  eer aoe     galica Cel  tifica  catala       tion   eoncmdbutton    tion   eoncmdbutton    tion   eoncmdbutton    tion  eoncmdbutton    tion   eoncmdbutton             ar Mar a fey    ar AE AA    tion   eoncmdbutton    tion   eoncmdbutton    tion   eoncmdbutton      fined object oncmdbutton        Mlocairailoa    RemoveA11      RemoveA11       Add   nativeclass     Add   window id       OrdinalIdentifier   MandatoryProperties   AssistiveProperties   MandatoryProperties   AssistiveProperties       tton    AssistiveProperties Add  x    tton    AssistiveProperties Add  y          EnableSmartIdentification False   BaseFilterProperties RemoveAll      OptionalFilterProperties RemoveAll                tion   eoncombobox     tion  WinComboBox     tion   eoncombobox       tion   eoncombobox       tion   eoncombobox       tion   eoncombobox      Ne  T    tion   eoncombobox      tion   eoncombobox    tion   eoncombobox      oncombobox         Local l  a    RemoveAll      RemoveAll       Add   nativeclass     Add   window id      OrdinalIdentifier  MandatoryProperties  AssistiveProperties  MandatoryProperties  AssistiveProperties       VAS    False       EnableSmartIdentification        BaseFilterProperties RemoveAll      OptionalFilterProperties RemoveAll                configuration for user d  tion  WinObject    CreateUserDefinedObject   eondatawindow      Cuca  catala       catala    tion  eondatawindow    OrdinalIdentifier       fined object ondatawindow 
9. h  in subparagraph  cX 1  11  of DFARS 52 227 7013 for the DOD and as set forth in FAR  52 227 19 a   d  for civilian agencies     Appeon Corporation  1 F  Shell Industrial Building  12 Lee Chung Street  Chai Wan District   Hong Kong     Contents    T OMG AGW s en Odd 1  2 COMIGUBING AEM  ersin lili 2  SAS OMMOUEMNG A eea O O 3  3 1 Selecting Web add iii ibas 3  3 2 Configuring  OpUONS  doi obran 3  3 3 Configuring object identification coso iia 6  4 Considerations for Recording Web Applications     oooooooocccccnnnncccccccnncconananaccnnnonnnnn 8  4 1 Mouse Scroll pall ssai is 8  4 2 Keeping data ConsiStOn tods ollco wetie altledinadeceusieeeetanaceeecenne 8  4 3 Recording TreeView DataWindow      ooooocccccnnnonccccccnnccncancccccnnnnnnnnancncnnnnnnnnns 8  4 4  Recording Date PICKS  sp cate cere a a a a EEAS 8  4 5 R    cording Men st AS 8  SIN EA DLON DA ISSUES ia octal 10  5 1 Failing to record operations on SDI windows in Internet Explorer 8 0         10  5 2 Generating scripts in an incorrect order              ccceeesseeeeeeeeeeeeeeeeeeeeeeeeeeeaes 10  5 3  Falling to TUN TES  S ori a a E O 10    BDDC scart E O 11    Overview Appeon for PowerBuilder 2013       1 Overview    You can automate the testing of Appeon Web application by using QTP  QuickTest  Professional   one of the most popular automatic testing tools  This guide will walk you  through how to configure QTP  It also introduces several considerations and known issues for  recording Web applications with QTP 
10. ide j  3 On mouse button down     lt 3 On mouse button up       El List  O Record only the object s basic operation      8 On mouse hittan dawn  Description                        Specifies the method Quick Test uses to identify objects when running a test or  component           OK   Cancel   Apply   Help      Step 5    Click OK or Apply to save the settings     3 3 Configuring object identification  Copy the following scripts to the Expert View in QTP and click Run     This is to map the Appeon Web application objects with standard QTP objects  And it is  an  import once  use forever  operation  You just need to copy the following scripts to  your QTP Expert View for the very first time when you begin to record Appeon Web  applications     Testing Appeon Web Applications with QTP Page 6    Configuring QTP    Appeon for PowerBuilder 2013       Dim  Dim  Set    App       App   App    Bios     As Application  intPosition  App   CreateObject   QuickTest  Application    Launch   Visible     Configuration of Standard Windows objects     Object identification configuration for user defined object  App Options ObjectIdentification   WinEdit      andatoryProperties Find  attached text    1 mos ito  lt  gt   L Maca  App Options ObjectIdentification   Win    intPosition       End If     Object identification configuration  App Options ObjectIdentification  WinEditor      andatoryProperties Find  attached text    IE AMEPOSMeiom  lt  gt   App Options ObjectIdentification   Win    intPos
11. ition       End If     Object identification configuration for test object object     1 Then        WinEdit            Edit    MandatoryProperties Remove intPosition          for user d       Editor    Manda     WinEditor        fined object       toryProperties Remove intPosition     browser        App Options ObjectIdentification   browser    MandatoryProperties RemoveAl11     App Options ObjectIdentification   browser    AssistiveProperties RemoveAl11           Configuration of user defined objects     Objec  App Op  App Op  App Op  App Op  App Op  App Op    App Op  App Op  App Op     Object    Op  Op  Op  Op  Op  Op    App   BOD   App   App   App   app      App Options ObjectIdentification   eoncmdb   App Options ObjectIdentification   eoncmdb    App Op  App Op  App Op     Object    Op  Op  Op  Op  Op  Op    App   App   App   App   ADD   App      App Options Object Identification   eoncombobox    AssistiveProperties Add  x    App Options ObjectIdentification   eoncombobox    AssistiveProperties Add      App Op  App Op  App Op     Object    App Op  App Op  App Op    t identification configuration for user defined object    CreateUserDefinedObject   eoncheckbox     OrdinalIdentifier    tions Objec  Objec  Objec  Objec  Objec  Objec    TIONS  tions   tions   tions   tions     tions Objec  tions Objec  tions Objec    tions Objec  Objec  Objec  Objec  Objec    tions   tions   tions   ELIAS       tions Objec    tions Objec  tions Objec  tions Objec    tions Objec  Objec  Objec 
12. lect the Web add in  and then click OK to save the settings and close Add in Manager     Note  If the Add in Manager does not open when starting QuickTest  choose Tools  gt   Options  click General and select Display Add in Manager on startup  When you exit and  restart QuickTest  the Add in Manager opens     Figure 3 1  Selecting add ins       E  QuickTest Professional   Add in Manager    Select add ins to load        A O   NET 12 day s  remaining  i O Activex Licensed  O Java 12 day s  remaining           O PowerBuil    12 day s  remaining     Visual Basic Licensed    ca    em ckTest O Web Serv    12 day s  remaining  Professional  iim 12 day s  remaining  Add ins    Add in description     Tests WPF  Windows Presentation Foundation   applications    Tip  To maximize performance and object  identification reliability  load only the addins you  need      Y Show on startup Cancel   Help         3 2 Configuring options  Step 1    Choose Tools  gt  Options  The Options dialog box opens     Step 2    In the left pane  click General  and in the right pane  select Use Only Windows  API from the Use text recognition mechanisms in this order list     Testing Appeon Web Applications with QTP Page 3    Configuring QTP Appeon for PowerBuilder 2013       Figure 3 2  Text Recognition         Options cm                    gt  General General  gt  Text Recognition  Text Recognition    Folders    Use text recognition mechanisms in this order   Active Screen      Run Use Only Windows API s   
13. t View     5 3 Failing to run tests  Description  Test failed to run in QTP  and errors like  Cannot identify the object      occur     Cause A  amp  Solution A  This is caused by the incorrect order in which the record is  generated  See Generating scripts in an incorrect order for details        Cause B  amp  Solution B  Data of running a test is not the same data when the test is recorded   See Keeping data consistent        Testing Appeon Web Applications with QTP Page 10    Appendix Appeon for PowerBuilder 2013       6 Appendix    This section lists the default ID of several objects  They will be used to represent the object  in the Object Repository and the script  You can refer to the following table and modify the  default ID in the Object Repository if you find it difficult to undersand or remember them                                      Control code Description   ATL  Eon000202  MDI Window   ATL  Eon000203  MDI Window with help status bar   ATL  Eon000204  Popup window   ATL  Eon000205  Response window   ATL  Eon000206  Child Window   ATL  Eon000038  User Object                Testing Appeon Web Applications with QTP Page 11    
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Frigidaire Freezer AFFC1466DW  QMS® Tacrolimus Immunoassay      Copyright © All rights reserved. 
   Failed to retrieve file