my project on rational performance testing

45
A PROJECT REPORTON WEBSITE TESTING PLANTS BY WEBSPHERE Submitted To NIIT INSTITUTE In Partial Fulfillment Of DIPLOMA IN SOFTWARE TESTING AND QUALITY ASSURANCE Submitted By Mr.Pachankar Gajanan (SI-S131108100553) Guided By Page 1 of 45

Upload: ganesh-pachankar

Post on 18-Nov-2014

284 views

Category:

Technology


1 download

DESCRIPTION

No

TRANSCRIPT

Page 1: My Project on Rational Performance Testing

APROJECT REPORTON

WEBSITE TESTINGPLANTS BY WEBSPHERE

Submitted ToNIIT INSTITUTE

In Partial Fulfillment OfDIPLOMA IN SOFTWARE TESTING

AND QUALITY ASSURANCE

Submitted ByMr.Pachankar Gajanan

(SI-S131108100553)

Guided ByMrs. PRAJAKTA JOGLEKAR.

Year 2013-2014

Page 1 of 37

Page 2: My Project on Rational Performance Testing

Batch Code:B140156

Start Date: 15/01/2014

End Date: 30/01/2014

Name of the Coordinator: Mrs. Prajakta Joglekar

Name of the Tester: Mr. Pachankar Gajanan

Date of Submission: 05/02/2014

Page 2 of 37

Page 3: My Project on Rational Performance Testing

ACKNOWLEDGEMENT

This project could not have been completed in this form without support encouragement and help

First and foremest is Mrs.Prajakta Joglekar our internal guide without whom this journey have never completed .Her pivotal guidance made this project to reach Heights that made us think deeper and proper.

One name we would never forget because of her constant inspiration to the project and she is Miss Swati Kashyap Her constant efforts and encouragement just can’t be expressed in words.

All our staff Members deserves our thanks for their Co-operationLastly, Thanks to all those who have directly or indirectly involved in completion of this project.

Page 3 of 37

Page 4: My Project on Rational Performance Testing

Index

Title Page no

Introduction………………………. 6

Started…………………………... 8

Recording………………………. 9

Datapools……………………… 11

Data Correlation……………… 13 Reports………………………….. 16

Folders………………………… 26

Schedules……………………… 27

References……………………… 37

Page 4 of 37

Page 5: My Project on Rational Performance Testing

TOOLS USED FOR TESTING:-

Rational Performance Tester

Page 5 of 37

Page 6: My Project on Rational Performance Testing

INTRODUCTION TO WEBSITE

Plants by WebSphere:Is an Web-based e-commerce application supporting the sale of seeds ,plants and gardening tools .

Using “PlantsByWebsphere”storefront Customer can browse for item to purchaseView product details put items in a shopping Cart. and log into place orders.

The general architecture of Plants ByWebsphereIs a frame based browser front end that communicates with theIBMWebServer Application server layer through an IBM http server

Page 6 of 37

Page 7: My Project on Rational Performance Testing

IBM Rational Performance Tester

IBM Rational Performance Tester is a tool for automated performance testing of web and server based applications from the Rational Software division of IBM. It allows users to create tests that mimic user transactions between an application client and server. During test execution, these transactions are replicated in parallel to simulate a large transaction load on the server. Server response time measurements are collected to identify the presence and cause of any potential application bottlenecks. It is primarily used by Software Quality Assurance teams to perform automated software performance testing.

IBM Rational Performance Tester (RPT) is a performance test automation tool used to measure web and server based application scalability. Using RPT, quality assurance teams can subject a web application or server to a large volume of transactions for the purpose of measuring the server response times. Lengthy response times are considered application bottlenecks, and information regarding these bottlenecks is typically passed along to application developers to correct, in an effort to decrease system response time. RPT is an Eclipse based performance test tool.

Page 7 of 37

Page 8: My Project on Rational Performance Testing

Tools used for Testing:-

Rational Performance Testing

Getting started with IBM web sphere server

Page 8 of 37

Page 9: My Project on Rational Performance Testing

RECORDING

Recording Performance Test

Begin with File>New> Test from RecordingSelect http recording from the dialog and clickNext

By default rational performance tester users the Microsoft internet explorer web browser to record tests. To change the browsers used for recordings open the http recording preferences page and select the browser you want from the Application to record list.

Recorder Control View

Page 9 of 37

Page 10: My Project on Rational Performance Testing

Look at the recorder control view to confirm that your actions are being recorded

Switch back to the browser window click the plants by web sphere toolbar link near the top of the browser.

In IBM RPT Window. On the recorder control tab verify that the Kbytes recorder is not zero and recorder status is recording.

Click bonsai tree in the special section of the site home page.

Click add to cart.

Click check out now.

Click sign in to continue.

Click continue.

Click submit order.

In RPT verify that the recorder control tab reports test generation completed

Page 10 of 37

Page 11: My Project on Rational Performance Testing

DATAPOOLS

Is a Framework used to vary user data in a transaction during test execution.

Used for user emulation during test play back.

Data Type Rational Performance TesterUser DatapoolsApplication state Data correlation

Datapool elements

Record:A row of data.rows are indexed starting with zero

Variable:a named data column cells.data resides in columnCells and typically typed based on what is expected by the application under test

Page 11 of 37

Page 12: My Project on Rational Performance Testing

CREATING A DEFAULT DATAPOOL

Create small datapools on the fly.

Import existing.csv files into the project to create large data sets.

RPT has no automatic data generation tools.

Page 12 of 37

Page 13: My Project on Rational Performance Testing

EDITING A DATAPOOL

OPEN THE DATAPOOL FILESELECT A RECORD OR COLUMN HEADER AND RIGHT CLICK FOR THE POP MENU

Page 13 of 37

Page 14: My Project on Rational Performance Testing

STEPS FOR IMPORTING .CSV FILES TO CREATE DATAPOOLS :

Select Import from the Context menu

Select Datapool from inport source

Browse for the .csv file and select the datapool to import into.

Exported datapool format

Export default datapool file

Add data

Preserve data

Import

Add to test

Page 14 of 37

Page 15: My Project on Rational Performance Testing

DATA CORRELATION

Mechanism used to manage dynamic data within a transaction

With a web based application data is typically returned in a http response that is later used in a http requests.

Incorrect or missing values can cause playback to fail.or generate invalid Workload for testing.

DATA CORRELATION SETTINGS

WindowPreferencesPerformance test generation

Page 15 of 37

Page 16: My Project on Rational Performance Testing

REPORTS Reports are views of statistical test result

Types of Reports: 1. Performance report2. Page element report3. percentile report4. Transaction report5. Verification point report

Performance Report :overall

Page 16 of 37

Reports Performance Report(Default)

Page Element Report

PercentileReport

Transaction Report

Verification Point Report

Overall YES YES NO YES NO

Summary YES NO YES NO YES

Page Performance

YES NO NO NO NO

Response Vs Time Summary

YES YES YES YES NO

Response Vs Time detail

YES YES YES NO NO

Page Throughput

YES YES YES NO NO

Server Health

YES YES YES NO NO

Resources YES NO NO NO NO

Page 17: My Project on Rational Performance Testing

First it goes to the 1.Initializing Computer2.Running3.Performing test log data transfer4. complete

This tab provides following information:

A progress indicator showing the state of the run

Page 17 of 37

Page 18: My Project on Rational Performance Testing

Performance Report :summary

Summary tab summarizes the data most significant to the test runIt enables you to analyze the tests final or intermediate results at a glance.

Page 18 of 37

Page 19: My Project on Rational Performance Testing

Performance Report :Page Performance

The Page performance tab shows the Average response of the slowest ten pages in the test as the test progresses.

Page 19 of 37

Page 20: My Project on Rational Performance Testing

Performance Report:Response vs Time summary

This tab displays the average response trends as graphed through timesIt contain two ;line graph with corresponding summary tables

Performance Report:Response vs Time Details

Page 20 of 37

Page 21: My Project on Rational Performance Testing

This tab lets you see the response trend as graphed through time

Minimum page response time for the run Average page response time for the run Maximum page response time for the run

Performance Report:Page throughput

Page 21 of 37

Page 22: My Project on Rational Performance Testing

This tab provides an overview of the frequency of requests being transferred per interval

Page 22 of 37

Page 23: My Project on Rational Performance Testing

Performance Report:server Health Summary

This tab provides the overall indication of how well the server is responding to the laod

Page 23 of 37

Page 24: My Project on Rational Performance Testing

Performance Report:server Health Detail

This tab provides specific details for the ten least successful pages.

Page 24 of 37

Page 25: My Project on Rational Performance Testing

MANAGING REPORTS:

Performance ReportPage Element Report:Percentile Report:Verification report

Page 25 of 37

Page 26: My Project on Rational Performance Testing

FOLDERS

CREATING AND ORGANIZING PROJECT FOLDERS

In the Test Navigator select the MyPlant project And then clickFile >New>Folder

Accept default parent folderIn the folder name box type 01_tests and then click finishIn the same manner create the following folders

02. schedules

03. Datapools

04. agents

05. results

SCHEDULES

Page 26 of 37

Page 27: My Project on Rational Performance Testing

CREATE AND RUNNING SIMPLE PERFORMANCE TEST SCHEDULE :

Select 02.schedules folderSelect new> performance schedule

Page 27 of 37

Page 28: My Project on Rational Performance Testing

CREATE AND RUNNING MORE COMPLEX PERFORMANCE TEST SCHEDULE:

Schedule Attributes:

Test:

Random selector:Define weight of items

Loop:Number of Iterations

Delay:fixed period of time

Comment:

Page 28 of 37

Page 29: My Project on Rational Performance Testing

REPORT FOR PERFORMANCE TEST SCHEDULE:OVERALL

Page 29 of 37

Page 30: My Project on Rational Performance Testing

This tab provides following information:

A progress indicator showing the state of the run

REPORT FOR PERFORMANCE TEST SCHEDULE:SUMMARYPage 30 of 37

Page 31: My Project on Rational Performance Testing

Summary tab summarizes the data most significant to the test runIt enable you to analyze the tests final or intermediate results at a glance

REPORT FOR PERFORMANCE TEST SCHEDULE:PAGE PERFORMANCE

Page 31 of 37

Page 32: My Project on Rational Performance Testing

The Page performance tab shows the Average response of the slowest ten pagesin the test as the test progresses.

Page 32 of 37

Page 33: My Project on Rational Performance Testing

REPORT FOR PERFORMANCE TEST SCHEDULE:PAGE VS TIME SUMMARY

This tab displays the average response trends as graphed through timesIt contain two ;line graph with corresponding summary tables

Page 33 of 37

Page 34: My Project on Rational Performance Testing

REPORT FOR PERFORMANCE TEST SCHEDULE:RESPONSE VS TIME DETAIL

This tab lets you see the response trend as graphed through time

Minimum page response time for the run Average page response time for the run Maximum page response time for the run

Page 34 of 37

Page 35: My Project on Rational Performance Testing

REPORT FOR PERFORMANCE TEST SCHEDULE:PAGE THROUGHPUT

This tab provides an overview of the frequency of requests being transferred per interval

Page 35 of 37

Page 36: My Project on Rational Performance Testing

REPORT FOR PERFORMANCE TEST SCHEDULE:SERVER HEALTH SUMMARY

This tab provides the overall indication of how well the server is responding to the laod

Page 36 of 37

Page 37: My Project on Rational Performance Testing

REPORT FOR PERFORMANCE TEST SCHEDULE:SERVER HEALTH DETAIL

This tab provides specific details for the ten least successful pages.

References:-Rational Performance Tester

Reference link:-http://localhost:9080/PlantsByWebsphere

Page 37 of 37