renaun erickson - structured log testing

8
Structured Log Testing Catch the Vision! Renaun Erickson Flex Developer Adobe Systems Inc. http://renaun.com http://structuredlogs.com 2009.05

Upload: 360conferences

Post on 13-Jan-2015

876 views

Category:

Technology


1 download

DESCRIPTION

The Structured Log Testing approach uses structure logging statements to test and debug applications. This approach provides lots flexibility in testing and creating custom testing tools. Which allows more people then just the developer to be involved, for example getting the end user can submit logs that turn into test scripts. The session will cover Structured Log Testing sdk and tooling that integrates the logging structure for testing, dynamic log checking, creating test scripts, and other custom uses. Go to http://structuredlogs.com for more info.

TRANSCRIPT

Page 1: Renaun Erickson - Structured Log Testing

Structured Log Testing Catch the Vision!

Renaun Erickson Flex Developer

Adobe Systems Inc.

http://renaun.com

http://structuredlogs.com 2009.05

Page 2: Renaun Erickson - Structured Log Testing

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

Page 3: Renaun Erickson - Structured Log Testing

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

Page 4: Renaun Erickson - Structured Log Testing

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

Page 5: Renaun Erickson - Structured Log Testing

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

Page 6: Renaun Erickson - Structured Log Testing

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

Page 7: Renaun Erickson - Structured Log Testing

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

Page 8: Renaun Erickson - Structured Log Testing

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