Académique Documents
Professionnel Documents
Culture Documents
Testing
2
Copyright 2006 Mentora Group Inc.
Terms & Concepts
• History
– Develop by Cyrano, a French software company
– Released into public domain in 2001
3
Copyright 2006 Mentora Group Inc.
Capabilities
• Applications it will test
– Protocols: Standard http/https only (not Oracle 11i, SAP, RMI, web services…)
– Development technologies: D/HTML, javascript, XML payloads, jvm servers (not java
applets, “latest technologies”)
• Functionality (LoadRunner = 10)
– Script development: 7/10 (Handles sessionid cookies; UI intuitivess “ok”; SCL
language support “good”)
– Test/Debug: 6/10 (Need error-handling and content checks to ensure script
functioning properly)
– Test execution: 7/10 (slow refresh on summary stats
– Results analysis: 3/10 (built-in graphs limited; need to do much in Excel)
• Robustness
– Excellent thread model; spawns a new thread only when it needs it to drive more load
– Sometimes hangs, crashes (must manually clean up processes and sometimes reboot)
– Conflicts with other load testing tools’ listener processes (run only one at a time)
• Limitations
– Does not record with IE7 or Firefox – needs IE6
– Max of 1664 users per Commander session
– Watch out for
• Trip-ups with https
• Too many parameter files can create file open bottleneck, throttling load
• Code your own error handling of http 400 and 500 errors
• V.1.4.3 12/04 is
current release
• 5.7 MB download
• Windows installer
• Runs on XP, W2K,
NT SP5
• Installer (usually)
runs flawlessly
5
Copyright 2006 Mentora Group Inc.
Components & Process
OpenSTA
SD
Sun E NT E RP R I SE
40 00
Ω
ULTRASPARC
DR IVEN
Local load
driver(s)
OpenSTA
Name Server 7
Load Driving System
Copyright 2006 Mentora Group Inc.
Script Modeler
Menu bar
Toolbar
Html
header,
body
Script panes
editor
pane
Replay
output
pane
8
Copyright 2006 Mentora Group Inc.
Modeling Scripts: Cookies
9
Copyright 2006 Mentora Group Inc.
Modeling Scripts:
Parameterizing User-Entered Data
• Define File variable with proper scope
. • Substitute user-entered static data with
. a variable; do “global edit
.
.
.
.
10
Copyright 2006 Mentora Group Inc.
Modeling Scripts:
Capturing System Response Values
11
Copyright 2006 Mentora Group Inc.
Commander
Menu bar
Test start/stop Toolbar
Repository
Tree View
pane
Runtime
options
panel
12
Copyright 2006 Mentora Group Inc.
Commander: Monitoring a Test
Test start/stop Toolbar
Monitoring tab
User
ramp
Execution
graph
error
window
Execution
summary
pane
13
Copyright 2006 Mentora Group Inc.
Commander: Exporting Results
Test start/stop Toolbar
Results tab
Audit log
http
response
list
Timers list
14
Copyright 2006 Mentora Group Inc.
Exporting Bandwidth
Bandwidth
graph
15
Copyright 2006 Mentora Group Inc.
Graphing & Interpreting:
Scalability
• All workflows
scale well
though 60
users,
degrading
exponentially
above that level
16
Copyright 2006 Mentora Group Inc.
Graphing & Interpreting:
Page Times
• Sharp degradation
of "Display All
Studies" indicates
this page is the
major contributor
to RSD process
degradation
17
Copyright 2006 Mentora Group Inc.
Graphing & Interpreting:
Bandwidth Utilization
Bandwidth ramps
steadily and
roughly plateaus Bandwidth Utilization Average bandwidth • Bandwidth line’s
characteristically utilization is 6.8
600 at maximum load Megabits per second 12
shape indicates no
network throughput
500 10
bottleneck
Load (concurrent users)
Mbps
300 6
200 4
100 2
0 0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Test Session Time
18
Copyright 2006 Mentora Group Inc.
Graphing & Interpreting:
Application Errors
500 200
begin above 120
400
150
concurrent users
Errors
300
100
• Error spikes indicate
200
50
unstable application
100
well before target
0 0
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44
load
Concurrent Users 20 60 120 175 235 295 350 410 453 477 497 495 495 492 488 487 486 485 485 484 479 479 478
HTTP 5xx Errors 0 1 1 80 94 178 33 134 1 88 46 230 1 1 211 71 158 92 146 88 1 99 19
19
Copyright 2006 Mentora Group Inc.
Directory Structure
20
Copyright 2006 Mentora Group Inc.
Architecture: Processes
21
Copyright 2006 Mentora Group Inc.
Advanced Topics
• Development standards
– Naming conventions for Scripts, Timers, Tests
– Results directory structure
• Graphing results
– Pivot tables
– Creating & customizing “2 axis” charts
• Advanced script modeling
– Response parsing functions for capturing system dynamic values
– Parameter file management with ACQUIRE MUTEX
– Randomizing think times with GENERATE
– Error handling with ON ERROR
– Handling state ids in redirects with EXTRACT
– Debug statements
• OpenSTA init settings
– Timeout
– Max Ports
22
Copyright 2006 Mentora Group Inc.
Resources: On-Line Help
• Make it your
friend!
• Can get all the
basics and more
23
Copyright 2006 Mentora Group Inc.
Resources: FAQs
24
Copyright 2006 Mentora Group Inc.
Resources: OpenSTA Forum
• Very active forum; email-based
• Quick responses to questions
• Anyone can sign up, read, submit posts
• Many OpenSTA experts respond
25
Copyright 2006 Mentora Group Inc.
Resources: Other
• Testing blogs
– www.testingreflections.com – Antony Marcano
– www.exploratorytesting.com – James Bach
– http://tejasconsulting.com/blog/?p=88 – Danny Fraught
• (comment on using Excel Pivot Tables for graphing)
26
Copyright 2006 Mentora Group Inc.
Questions?
ddowning@mentora.com
www.mentora.com
27
Copyright 2006 Mentora Group Inc.