9 562 brands
2 694 000 user's guides


Download your manual, it's FREE! Diplodocs allows you to download several types of document in order to best use your MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL : user manual, user guide, instruction manual.
Search a brand
Advanced Search

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

Diplodocs help download the user guide MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL .

Download the complete user guide (340 Ko)





Preview of the first 3 pages of manual

You either have JavaScript turned off or an old version of Adobe Flash Player
Get the latest Flash Player.
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. All rights reserved. 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. The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational content contained in this guide. Please remember that existing artwork or images that you may want to include in your project may be protected under copyright law. The unauthorized incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure to obtain any permission required from the copyright owner. Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual organization. Adobe, the Adobe logo, Flex, Flex Builder and Flash Player are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. ActiveX and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Linux is a registered trademark of Linus Torvalds. Solaris is a registered trademark or trademark of Sun Microsystems, Inc. in the United States and other countries. All other trademarks are the property of their respective owners. Quicktest and Mercury Quicktest Professional are registered trademarks or trademarks of Mercury Interactive Corporation or its wholly-owned subsidiaries, Freshwater Software, Inc. and Mercury Interactive (Israel) Ltd. in the United States and/or other countries. This product includes software developed by the Apache Software Foundation (http://www.apache.org/). Macromedia Flash 8 video is powered by On2 TrueMotion video technology. © 1992-2005 On2 Technologies, Inc. All Rights Reserved. http:// www.on2.com. This product includes software developed by the OpenSymphony Group (http://www.opensymphony.com/). Portions licensed from Nellymoser (www.nellymoser.com). Portions utilize Microsoft Windows Media Technologies. Copyright (c) 1999-2002 Microsoft Corporation. All Rights Reserved. Includes DVD creation technology used under license from Sonic Solutions. Copyright 1996-2005 Sonic Solutions. All Rights Reserved. This Product includes code licensed from RSA Data Security. Portions copyright Right Hemisphere, Inc. This product includes software developed by the OpenSymphony Group (http://www.opensymphony.com/). Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA Notice to U.S. government end users. The software and documentation are "Commercial Items," as that term is defined at 48 C.F.R. §2.101, consisting of "Commercial Computer Software" and "Commercial Computer Software Documentation," as such terms are used in 48 C.F.R. §12.212 or 48 C.F.R. §227.7202, as applicable. Consistent with 48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial items and (b) with only those rights as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright laws of the United States. Adobe Systems Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60, 60-250 ,and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference. Contents Chapter 1: Working with QuickTest Professional . . . . . . . . . . . . . . 5 Introduction to the testing process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Deploying Flex files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 About the Flex installed testing files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 About the testing environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Test creation overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 About the QTP object model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Storing objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 About the application hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 Recording tests. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 About the testing script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Identifying objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 About operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Using checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Standard checkpoints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Bitmap checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Table checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Using common methods and properties . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Playing back Flex tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Chapter 2: Advanced Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Working with containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Working with Repeater objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Working with data-driven and List-based controls. . . . . . . . . . . . . . . . 22 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 General troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Resolving playback synchronization issues. . . . . . . . . . . . . . . . . . . . 24 Delaying startup test time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Making a test fail but continue to the end . . . . . . . . . . . . . . . . . . . . . . 28 Limitations of automated testing with Flex . . . . . . . . . . . . . . . . . . . . . . . 29 3 4 Contents CHAPTER 1 Working with QuickTest Professional This topic describes how to work with Mercury QuickTest ProfessionalTM and Adobe Flex applications. 1 Contents Introduction to the testing process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Test creation overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Recording tests. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 About the testing script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 About operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Using checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Using common methods and properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Playing back Flex tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Introduction to the testing process Large, complex applications must be tested to make sure that user interactions do not create run-time exceptions and that connections to data services are functioning properly. This document assumes that there are two roles in the testing process: the QA testing professional and the Flex developer. It assumes that the QA testing professional does not know how to develop Flex applications and does not have access to the Flex source code, the Flex compiler, or the Flex documentation. The Flex developer, on the other hand, does not necessarily know how to use a testing tool, such as Mercury QuickTest Professional (QTP). Flex documentation for developers includes a set of guidelines for creating testable applications. These guidelines include instructions on how to compile testable applications, how to instrument custom components so that they can be tested, and how to write applications so that the testing process works more smoothly. For information about the guidelines, see the Flex 2 Developer's Guide. 5 Before you can test a Flex application, a Flex developer compiles a SWF file for you. The developer also provides you with an HTML file that embeds the SWF file in it. This is known as the HTML wrapper. You deploy these two files to any web server. Some Flex applications require the use of external resources, such as web services or remote objects, so you should ensure that your web server can access these resources. You might be required to add a permissions file to the target server to allow your Flex application to access the server. For more information, ask the Flex developer. To run a test, you launch QTP and request the HTML wrapper. QTP records the interaction with the Flex application as it would with any other target type. You should then be able to rerun your tests against the Flex application as long as the web server remains accessible. Deploying Flex files Before you can test the Flex application, you must deploy the application and its supporting files to a location that is accessible by QTP. These files include: Application SWF file HTML wrapper and wrapper files (the wrapper files can include SWF files, JavaScript files, and other files) RSL SWC files Module SWF files Helper files such as theme SWC files, style SWF files, and image, video, and sound files You deploy the Flex application and HTML wrapper file to any location on your HTTP server. You must be able to access this location from QTP. In some cases, files used by the Flex application might be located on a remote server. In this case, you must be sure that the files are accessible through any firewalls. Furthermore, the remote servers might need to include cross-domain permission files to allow remote access. For more information, you should discuss this with the Flex developer. If necessary, you can password-protect the HTML wrapper and use the QTP authentication mechanism to access it. For more information, see the QTP documentation. 6 Working with QuickTest Professional About the Flex installed testing files The Flex support for QTP requires that you install two ActiveX plug-ins on the testing machine. These plug-ins provide the necessary communication layer between Flex and QTP. One plug-in runs inside of QTP, and the other runs inside the browser. The browser plug-in is signed, and is designed to run in Microsoft Internet Explorer 6 on Windows only. Together, these plug-ins ensure that Flash Player and the Flex framework can send the appropriate script interactions to QTP during record mode. Similarly, the plug-ins provide the mechanism for QTP to send script commands to the Flash Player and Flex during playback. The browser plug-in uses the Flash Player flash.external.ExternalInterface class and, therefore, requires the correct security context for flash.external.ExternalInterface to run. If the SWF file runs from a web ...

  Know our Partners   Frequently Asked Questions   Contact Diplodocs team   Last searches
Latest additions
  Sitemap
Brands starting with A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
Copyright © 2005 - 2008 - Diplodocs - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.