Download presentation
Presentation is loading. Please wait.
Published byPatience Lamb Modified over 8 years ago
1
CFUNITED – The premier ColdFusion conference www.cfunited.com Load and Functional Testing Flex 2 and ColdFusion Matthew Stevanus Universal Mind
2
June 28 th – July 1 st 2006 Load and Functional Testing Load Testing Find the limits Pinpoint concurrency problems Tune the system Automated Functional Testing Coming soon? Ensure the application does what’s intended Full-regression testing In a hurry
3
June 28 th – July 1 st 2006 Load Testing and Performance Tuning Why test my application? Get the most out of your Servers Application Database Time and effort Keep your customers and your boss off your _______ and out of your _______.
4
June 28 th – July 1 st 2006 Load Testing and Performance Tuning What to Load Test Any new application That is to be released to 2 or more users Concurrency issues can happen at any load An application that has undergone Any significant changes Any major infrastructure changes Network topology changes Operating System upgrades Hardware upgrades
5
June 28 th – July 1 st 2006 Load Testing and Performance Tuning When to Load Test As early as possible Leave enough time before deployment To fix any problems Re-test the application
6
June 28 th – July 1 st 2006 Load Testing Flex 2 Load Testing Tools Mercury LoadRunner Microsoft Web Application Stress Tool Borland SilkPerformer Previously Segue SilkPerformer
7
June 28 th – July 1 st 2006 Load Testing Flex 2 Mercury LoadRunner Advantages Practically industry-standard 77% Market share Disadvantages Scripting language Difficult to master for non-programmer Cannot duplicate AMF Protocol Flash Remoting
8
June 28 th – July 1 st 2006 Load Testing Flex 2 Microsoft Web Application Stress Tool Advantages Free Disadvantages Limited user-defined data No results management Error codes Returned data set sizes No re-directs allowed Cannot duplicate AMF Protocol Flash Remoting
9
June 28 th – July 1 st 2006 Load Testing Flex 2 Borland SilkPerformer Advantages Supports AMF Protocol Recording Playback Disadvantages
10
June 28 th – July 1 st 2006 Load Testing Flex 2 Load Testing Methodology Critical Path Identifcation Bottleneck analysis Performance tuning Reporting
11
June 28 th – July 1 st 2006 Load Testing Flex 2 Load Testing Specifics Stress Testing Worst-case Scenarios No Think Time Concurrency issues quickly detected Real-world testing Matches real traffic more closely More expensive licensing Longer test cycles Concurrency issues not addressed
12
June 28 th – July 1 st 2006 Load Testing Flex 2 Load Testing Specifics (cont’d) Virtual Users Like regular users Each has its own session Including cookies
13
June 28 th – July 1 st 2006 Functional testing for Flex 2 Flex 2 Beta 2 Included Support for Mercury’s QuickTest Professional Moved to an add-on? QuickTest Professional (QTP) Record Playback Verify results
14
June 28 th – July 1 st 2006 Dynamic or Static Loading QTP configuration Dynamic (mxml files deployed) Uses automation.swf Referenced on URL Referenced in HTML page Functional testing for Flex 2 http://www.myhost.com/index.html?automationSwfUrl=/assets/automation.swf...
15
June 28 th – July 1 st 2006 Functional testing for Flex 2 Dynamic or Static Loading (cont’d) Static (Pre-compiled Flex) Automation.swc Must be compiled with application Then taken out before released to production Compile into SWF Add to Flex’s include-libraries options
16
June 28 th – July 1 st 2006 Functional testing for Flex 2 Identifying your Objects QTP identifies objects based on Labels IDs Always give an ID to your objects Use automationName For programmatically named objects
17
June 28 th – July 1 st 2006 Functional testing for Flex 2 Adding events to QTP recorder By default, Not all interactive events are recorded Too many events to record them all Recorded scripts would get too large TEAFlex.xml Identifies all recorded events Example Button only records Mouse Click Not Mouse Over, Down, Up, or Out
18
June 28 th – July 1 st 2006 Functional testing for Flex 2 Adding the MouseOver Event to TEAFlex.xml
19
June 28 th – July 1 st 2006 Functional testing for Flex 2 Excluding Containers Containers do not need to be instrumented Their children, however, do showInAutomationHierarchy attribute False – excludes it from instrumentation True – default
20
June 28 th – July 1 st 2006 Conclusions Performance Testing and Tuning As early as possible in the development cycle Every time a major change is implemented Load Testing Tools Mercury Load Runner Segue SilkPerformer Only tool that supports Flash Remoting
21
June 28 th – July 1 st 2006 Conclusions Functional Testing Manual or Automated Both will lead to successful application deployments Manual Excellent, detailed Use Cases Thorough, obsessive testers
22
June 28 th – July 1 st 2006 Conclusions Functional Testing (cont’d) Automated Detailed Use Cases Recorded Sessions Re-use many times Small QA staff required Faster, more complete than Manual
23
June 28 th – July 1 st 2006 Conclusions Automated Testing Tool Mercury QuickTest Professional Natively supported in Flex
24
June 28 th – July 1 st 2006 Thank you Any questions?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.