MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Manual do Utilizador Página 21

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 27
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 20
500Testing
But if things don’t go well, the items that failed appear on the right with a dump of
the diagnostics to go with them (see figure 23.8). Clicking a failure shows a stack trace
that describes the situation when the test failed.
Another unit-testing framework available to Flex is Fluint, which works in the same
manner.
23.2.4 Fluint (unit testing)
Originally known as the oddly named dpUInt (that’s not a typo), Fluint is the relative
newcomer on the block; it was created by Digital Primates (www.digitalprimates.net)
and released as an open source project. It’s free and available at http://code.goo-
gle.com/p/fluint.
It’s similar to FlexUnit, but it’s considered a unit and integration test framework
(which explains the name). It goes beyond what FlexUnit can do by adding robust
asynchronous support, test sequencing,
XML output, test UI components, and Adobe
Integrated Runtime (
AIR) support.
Test methods are the functions that actually perform a test. They’re contained in test
cases, which in turn are used by test suites.
Like FlexUnit, Fluint has documentation, but we’ll briefly run down how to use it.
SETTING UP FOR FLUINT
Fluint also uses a test runner to execute tests—you can make a separate project to
facilitate this or run it as a secondary application to your main project. In this exam-
ple, you’ll run it from an existing project:
1 Download the latest SWC file from http://code.google.com/p/fluint/downloads.
2 Open your project in Flex Builder.
3 Right-click the project’s top-level folder, and select Properties.
4 Click the Library Path tab.
5 Click the Add SWC button.
6 Navigate to the directory to which you downloaded the SWC file, and select the file.
Figure 23.8 FlexUnit’s
display outputs all
issues it encounters.
Vista de página 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 27

Comentários a estes Manuais

Sem comentários