Performance Tool OpenSTA - Training Presentation

15
Corporate Testing Services Corporate Testing Services Performance Tool OpenSTA Training Program

Transcript of Performance Tool OpenSTA - Training Presentation

Page 1: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Corporate Testing Services

Performance Tool OpenSTA Training Program

Page 2: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

What is OpenSTA?

The OpenSTA toolset supplies performance testing software

for evaluating Web Application Environments (WAEs). It is

built on the OpenSTA Architecture which is a distributed

testing architecture that enables you to create and run

versatile production monitoring and HTTP/S load Tests. It

can be employed at all stages of WAE development as well

as being used to continuously monitor system

performance once an WAE goes live.

Page 3: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

System Requirements

Hardware Specifications :• Pentium 200 processor. • 80MB RAM. • 20MB free hard disk space required for installation. Supportive Web Browsers:• Internet Explorer >4• Netscape 4.7 Supported Protocols Load Generation:• HTTP 1.0 and 1.1 • HTTPS

Page 4: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

How to Record a Test Script

Launch Commander:

Click Start > Programs > OpenSTA > OpenSTA Commander.

Page 5: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Activating The Script Modeler

• Right-click Scripts, to display a pop-up menu

from where you can create a New Script > HTTP.

• Double-click on a new Script, to launch Script

Modeler and record a web browser session.

Page 6: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

How to Record a Test Script

• Click the Record button,in the capture/Replay Toolbar, or select Capture > Record, to begin the HTTP/S capture process.

• Type in a URL and hit Return or select a URL from the browser's URL Address bar. Then use the browser as normal to perform the actions you want to record in your Script.

• After you have completed the browser actions you need, switch back to Script Modeler from the browser and click the Stop button, in the Capture/Replay Toolbar to end the recording. Or, close the browser.

Page 7: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Parameterization a Test Script

• LOCAL

• SCRIPT

• Thread

• GLOBAL

Page 8: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Local Scope Variable

• Local scope variables are only accessible to the

Virtual User running the Script in which they

are defined. They cannot be accessed by any

other Virtual Users or Scripts. Similarly, a Script

cannot access any of the local variables defined

within any of the Scripts it calls.

Page 9: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Script Scope Variable

• Script scope variables can be accessed by any Virtual User running the

Script in which they are defined.

• A Script scope variable can be used by Virtual Users 1 to 4 in Script 1 or by

Virtual Users 1 to 4 in Script 2 etc. There is only one copy of the variable

which can be shared by any user. It can only be referenced and used within

the Script that it is defined.

 

Page 10: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Thread Scope Variable

• Thread scope variables are accessible from any Script run by the

Virtual User, or thread, that defines them.

• A Thread scope variable can be used by Virtual User 1 in Scripts 1-

4, Virtual User 2 in Scripts 1-4, etc. Each Virtual User has their

own copy of the variable which cannot be referenced or used by

another Virtual User. A Thread scope variable must be defined in

every Script in the sequence that uses it. Alternatively, define a

thread scope variable in the Global_Variables.INC file to include it

in every Script.

Page 11: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Global Scope Variable

• Global scope variables are accessible to any thread

running any Script under the same Test Manager,

that is, any Script in a particular Test-run.

• A Global scope variable can be used by any Virtual

User in any Script. However, it must be defined in

each Script it is to be used in or included in the

Global_Variables.INC file.

Page 12: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

The Syntax to Declare Variable

• CHARACTER*100 currentUsername, LOCAL

SET currentUsername = "olaf"

• CHARACTER*100 usernames ("user1", "user2", "user3" ), SCRIPT

ACQUIRE TEST-WIDE MUTEX "Login"

NEXT usernames

SET currentusername = usernames

RELEASE TEST-WIDE MUTEX "Login"

LOG "running user ", currentusername

Page 13: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

The Syntax to Declare Variable

• CHARACTER*512 fileuser, FILE = "users", SCRIPT

• CHARACTER*100 currentUsername, LOCAL

• ACQUIRE MUTEX "Login“

NEXT fileuser

SET currentusername = fileuser

 

! LOG "User: ", fileuser,

LOG "User: ", currentUsername

RELEASE MUTEX "Login"

Page 14: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Creating Test And Adding Vuser

• In Commander select File > New Test > Tests.

• In the Repository Window double-click Tests to open the folder and display the Tests contained.

• Double-click a new Test, or an existing Test, to open it in the Configuration tab of the Test Pane, within the Commander Main Window. The Configuration tab displays the Test table where you can add Test Tasks and apply Task Group

settings.

Page 15: Performance Tool OpenSTA - Training Presentation

Corporate Testing Services

Running Test And Result Display

• Running a Test enables you to simulate real end user Web activity and to collect performance data from the components of the system under

test. • At the end of the Test-run all results are stored in the Repository in date and time stamped folders. Display the data collected to help analyze the performance of the target system from

the Test Pane of Commander.