Structured Log Testing Catch the Vision!
Renaun Erickson Flex Developer
Adobe Systems Inc.
http://renaun.com
http://structuredlogs.com 2009.05
Where are you coming from?
•! How many people implement some kind of
testing? (UnitTest,Functional testing)
•! How many people practice TDD?
•! Have you used the Flex logging
framework?
Renaun Erickson – 2009
The Guts of the Session
•! Simplistic Definition of Testing
•! Catch the Vision – See it to Believe it –! Ease of capturing data
–! Flexibility of creating assertion points (TestPoint)
–! Flexibility of creating test scripts (TestPointScript and .slf)
–! Automating the test scripts (SLogTestRunner – FlexUnit4)
–! Flexibility of debugging/testing from clients
•! Testing In a New Light
•! Official Release of Structured Log Testing!
Renaun Erickson – 2009
What is Testing?
Executing Code
Renaun Erickson – 2009
Asserting the Execution of Code
UnitTest
TestDriver
Assert.equals()
Recording QTP Script
Cruise Control
End User Quality Engineer Developer
Pass/Fail
Pass/Fail
Debugger
Profiler Functional Testing
Automation Framework
Mock Objects
Logging Bug Reports
Compilers
Try/Catch
Load Testing Performance Testing
HTTP Sniffers Runtime Introspection
Catch the Vision – The Demos
•! SLog and those TestPoints
–! The basics of the whole approach
•! Where does my message go?
–! ITarget to the rescue
•! Save that Puppy Out
–! Structured Log Testing file format .slf – TestPointScript’s
•! UnitTests anyone?
–! SLogTestRunner and FlexUnit4
•! The Client Test Script
–! Capturing and using end user logs.
Renaun Erickson – 2009
TestPoint Benefits
•! Hard to write a unit test when you don’t know what the class will be, if following TDD.
•! Creating TestPoint’s help you think through class implementation.
•! No going back and forth, get to stay inside the class implementation code.
•! TestPoint’s are not coupled as heavy with execution code, making test scripts easy to create and not have to change during code refactoring.
•! You get logging/debug information.
•! TestDrivers are applications making it easier for others to write test execution code.
Renaun Erickson – 2009
Structured Log Testing
•! SDKs
–! StructuredLogTestingSDK.swc •! Has all the logging classes with useful targets.
•! Not tied to Flex, can be used with AS3 projects.
–! StructuredLogTestingToolingSDK.swc •! Helper classes for visual tools working with SLT data.
•! Gumbo components, will change over time.
•! Site –! http://structuredlogs.com
•! Tool Integration –! RIALoggerApp
–! Looking for others… (REDBug)
Renaun Erickson – 2009
Links
•! Structured Log Testing –! Blog: http://structuredlogs.com
–! Code: http://structuredlogs.com/code
•! RIALoggerApp –! http://renaun.com/rialogger/
•! Contact Info –! renaun <at> gmail <dot> com
–! Blog: http://renaun.com/
Renaun Erickson – 2009
Top Related