User manual MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL

DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!

If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Diplodocs provides you a fast and easy access to the user manual MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL. We hope that this MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL user guide will be useful to you.


MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL : Download the complete user guide (340 Ko)

Manual abstract: user guide MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL

Detailed instructions for use are in the User's Guide.

[. . . ] Testing Flex Applications with MercuryQuickTestProfessional Adobe Flex 2 ® TM © 2007 Adobe Systems Incorporated. Testing FlexTM Applications with Mercury QuickTest ProfessionalTM If this guide is distributed with software that includes an end-user agreement, this guide, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this guide is protected under copyright law even if it is not distributed with software that includes an end-user license agreement. [. . . ] To have QTP open a browser and request a URL, select the second option, as the following example shows: 12 Working with QuickTest Professional When you play back the test, QTP opens the browser and requests the same URL. Be sure to specify an HTML file or other wrapper file type that embeds the application's SWF file. You should not request the SWF file directly. About the testing script QTP records the test in an object level view called the Keyword View, and a text-only view of steps called the Expert View. For example, if you remove a step in the Expert View, QTP removes the step from the Keyword View. The Expert View represents each step in the test as an action in VBScript. Each line ends with an action, followed by parameters that define that action. The following example shows a mouse click in the Expert View: Browser("Main Page"). FlexApplication("MyApp"). FlexButton("b2"). Click The follows example shows the Expert View syntax for Flex applications: Browser("document_title"). FlexApplication("app_name"). test_object("name"). operation [parameters] The document_title property is defined by the <TITLE> tag in the <HEAD> block of an HTML page. For a Flex application, the default value of the <TITLE> tag in an HTML wrapper is the URL to the MXML file. The app_name property is the same as the ID property of the SWF file embedded in the HTML page's <object> tag. The test_object is the QTP test object that the Flex control corresponds to. This object takes a name property, which is the QTP name for the object as it appears in the object repository. This name is usually based on its appearance (such as a label), and is sometimes the same as the Flex id in the Flex MXML source code. About the testing script 13 The operation property is the event dispatched by the object that QTP records. The number and type of parameters depend on the type of control that is dispatching the event. They can be a key that was held down during the operation, an index of a list entry, or the text entered in a text field. For example, when a user enters characters in a FlexTextArea object, the text that the user entered is shown after the operation. If the user entered the number 42 in a FlexTextArea object, the Expert View shows a statement similar to the following example: Browser("Main Page"). FlexApplication("MyApp"). FlexTextArea("ta1"). Input "42" If the user selects text in a FlexTextArea object, QTP records a Select operation. The first parameter is the starting character position, and the second parameter is the ending character position of the selection. If the user selected the first four characters in a FlexTextArea object, the Expert View shows a statement similar to the following example: Browser("Main Page"). FlexApplication("MyApp"). FlexTextArea("ta1"). Select 0, 3 Identifying objects Test objects are the building blocks of the test scripts in QTP. When you record a test, QTP adds each object that you interact with to the object repository and references that object by its test object name in the script. The identifier that QTP uses is the name property of the test object in the repository. This property is sometimes the same as the Flex id that the Flex developer specifies in the Flex application source code. [. . . ] The following example waits 10 seconds before clicking the Milk FlexCheckBox control: Browser("My Page"). FlexApplication("MyApp"). FlexCheckBox("Milk"). Click Wait(10) For more information on using the Wait statements, see the QTP documentation. Checking if objects exist You can also check if the object exists before executing an operation on that control. The following example checks whether the Milk FlexCheckBox control exists before clicking on it: If Browser("My Page"). FlexApplication("MyApp"). FlexCheckBox("Milk"). Exist Then Browser("My Page"). FlexApplication("MyApp"). FlexCheckBox("Milk"). Click End If You can also check for the value of the Exist common property on the control. For more information on using the Exist statement or the Exist common property, see the QTP documentation. Slowing global playback times You can configure QTP to play all events slower by setting a global execution delay. You should first try to insert wait statements before troublesome points in the test, as described in "Adding waits to scripts" on page 25. [. . . ]

DISCLAIMER TO DOWNLOAD THE USER GUIDE MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL




Click on "Download the user Manual" at the end of this Contract if you accept its terms, the downloading of the manual MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL will begin.

 

Copyright © 2015 - manualRetreiver - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.