MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software-Handbücher MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL herunter. Flex 3 in Action Sample Chapter 23 Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 2 - Flex 3 in Action

489 CHAPTER 23 Debugging and testingUsing this technique and the Flash log file can get you reasonably far, but to take yourgame to a new level, you’l

Seite 3

490DebuggingWhen you launch your application using the Debug but-ton (see figure 23.2), all network traffic appears in theConsole view. This feature i

Seite 4 - BRIEF CONTENTSvi

491 CHAPTER 23 Debugging and testing Breakpoints —Points at which you want the application to stop running so youcan pause and evaluate the situation.

Seite 5 - Debugging and testing

492DebuggingNow that you can control execution, the feature that people generally use the Debug-ger for is watching variables.WATCHING VARIABLESWatchi

Seite 6 - 23.1 Debugging

493 CHAPTER 23 Debugging and testing myVar = myText.text; } </mx:Script> <mx:TextInput id="myText

Seite 7 - 486Debugging

494Testingprofiling tools, you can identify memory leaks and unnecessary processing overheadand highlight areas that could use optimization.UNIT TESTI

Seite 8 - 23.1.4 Trace-log viewers

495 CHAPTER 23 Debugging and testing Object count/object allocation —How many objects have been instantiated? What ifyou have many instances of the sa

Seite 9 - ObjectUtil

496TestingCONTROLLING EXECUTIONOnce the Profiler is running, you’ll see your application listed in the Profile view.Select the application, and a bunc

Seite 10 - 23.1.6 FxSpy

497 CHAPTER 23 Debugging and testingThe Profiler is the only tool available for Flex that allows this kind of testing, and itdoes a great job. It give

Seite 11 - 23.1.8 Using the Debugger

498Testingnience when you’re working with a lot of test cases. Listing 23.7 shows an example ofa test-runner application.<?xml version="1.0&qu

Seite 12 - 3 Select Toggle Breakpoint

Flex 3 in Action by Tariq Ahmedwith Jon Hirschiand Faisal AbidChapter 23 Copyright 2009 Manning Publications

Seite 13 - 2 Select Watch

499 CHAPTER 23 Debugging and testing ts.addTest( new myTest( "testMilesToKm" ) ); ts.addTest( new myTest( "

Seite 14 - 2 Watch the

500TestingBut if things don’t go well, the items that failed appear on the right with a dump ofthe diagnostics to go with them (see figure 23.8). Clic

Seite 15 - 23.2.2 Flex Profiler

501 CHAPTER 23 Debugging and testingWith Fluint installed, let’s look at how to create the test runner.CREATING A TEST RUNNERThe test runner is a mini

Seite 16 - SWF file

502Testingpackage { import net.digitalprimates.fluint.tests.TestCase; public class testCase extends net.d

Seite 17 - 496Testing

503 CHAPTER 23 Debugging and testingNow you’re ready to rock. Test cases are grouped into test suites, and the test runnerexecutes the test suites.EXE

Seite 18 - TestSuite

504Testing Compile your application with the RIATest module embedded in it, or use itsloader feature to dynamically wrap the agent around your applica

Seite 19

505 CHAPTER 23 Debugging and testing23.2.8 IBM Rational Functional Tester (functional testing)Not many Flex developers are aware that Rational Functio

Seite 21 - 23.2.4 Fluint (unit testing)

vbrief contentsPART 1APPLICATION BASICS ... 11 Introduction to Flex 32 Getting started 213 Work

Seite 22 - Add test

BRIEF CONTENTSvi15 Working with XML 31616 Objects and classes 34017 Custom components 35518 Advanced reusability in Flex 380PART 3THE FINISHIN

Seite 23

484Debugging and testingThis chapter’s purpose is to give you a sampling of all the weaponry available bothout of the box and in the form of third-par

Seite 24 - U.S. and

485 CHAPTER 23 Debugging and testing23.1 DebuggingYou can use debugging at multiple levels. We’ll review each approach, starting withthe easiest.23.1.

Seite 25

486DebuggingYou’ll want to set up your mm.cfg file to look like this:TraceOutputFileEnable=1ErrorReportingEnable=1MaxWarnings=500With logging now enab

Seite 26 - 23.3 Summary

487 CHAPTER 23 Debugging and testingshowing end copyhiding end copyshowing end copySomething is currently: show this pleaseThis is an effective mechan

Seite 27

488DebuggingBut for more complex objects like ArrayCollections, the ObjectUtil ActionScriptclass has a toString() function that takes a reference of a

Kommentare zu diesen Handbüchern

Keine Kommentare