Docsity

Software Quality Assurance: Lab 03 - Load Testing with JMeter, Assignments of Mathematics

Toggle sidebar
bg1
PAF- KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY
College of Engineering
(Software Engineering)
SEN 321– Software Quality Assurance
Semester: _Spring 2023___________ Date of Experiment: _____________________
Student name: _Muhamamad Muneeb Faculty Signature: ______________________
Student ID: _10731________________ Remarks/Comments: ____________________
Lab03
Automation testing – Load testing using JMeter
PLOs
PLO1 – Engineering Knowledge
Bloom’s Taxonomy
C1 – Recall
PLO5 – Modern Tool Usage
C3 - Apply
PLO8 – Ethics
P2 – Set
LAB TASK PERFORMANCE
CLO’s
Aspects of Assessments
Average
(50-75%)
Poor
(<50%)
Marks
CLO1
10%
Recall Recall the associated
concepts form theory
regarding basic concepts of
White box testing.
Complete understanding of the
concepts of testing / less
actively participate during
lecture.
Student lacks clear understanding
of concepts of testing/ Unable to
read and interpret it.
CLO4
80%
Tools Utilization Apply and
discover different basic level
features of software testing
using Modern tools and
languages
create test cases but obtain
slightly different output as per
requirement/ given tasks.
Not able to create test cases as per
requirement/ given tasks. don’t
understand how required output
and task is achieved.
CLO5
P LO4
Experimental Validation
Select an appropriate and
suitable advance software
quality testing technique,
implement the test, to test and
application to validate the
working of different modules.
Correctly select the to perform
particular task (real world
modelling) but some cases are
not working accurately or
program have some minor errors.
unable to write a correct logic the
required output and as per given
in a task.
CLO7
10%
Lab Safety Properly handle
lab infrastructure/safety
precautions
Moderate level lab handling
and safety measurements
Minor or no safety measurements
has been considered.
Total Marks: 10
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Software Quality Assurance: Lab 03 - Load Testing with JMeter and more Assignments Mathematics in PDF only on Docsity!

PAF- KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY

College of Engineering

(Software Engineering)

SEN 321– Software Quality Assurance

Semester: _Spring 2023___________ Date of Experiment: _____________________

Student name: _Muhamamad Muneeb Faculty Signature: ______________________

Student ID: _ 10731 ________________ Remarks/Comments: ____________________

Lab03 Automation testing – Load testing using JMeter

PLOs

PLO1 – Engineering Knowledge

Bloom’s Taxonomy

C1 – Recall

PLO5 – Modern Tool Usage C3 - Apply

PLO8 – Ethics P2 – Set

LAB TASK PERFORMANCE

CLO’s Aspects of Assessments
Excellent
Average
Poor
Marks

CLO 10% Recall Recall the associated concepts form theory regarding basic concepts of White box testing. Complete understanding of the concepts of testing / actively participate during lecture. Complete understanding of the concepts of testing / less actively participate during lecture. Student lacks clear understanding of concepts of testing/ Unable to read and interpret it. CLO 80% Tools Utilization Apply and discover different basic level features of software testing using Modern tools and languages Accurately create test cases obtain the correct output as per requirement/ given tasks. create test cases but obtain slightly different output as per requirement/ given tasks. Not able to create test cases as per requirement/ given tasks. don’t understand how required output and task is achieved. CLO PLO Experimental Validation Select an appropriate and suitable advance software quality testing technique, implement the test, to test and application to validate the working of different modules. Correctly select the software quality testing technique to perform particular task (real world modelling) and validate the working of different modules. Correctly select the to perform particular task (real world modelling) but some cases are not working accurately or program have some minor errors. unable to write a correct logic the required output and as per given in a task. CLO 10% Lab Safety Properly handle lab infrastructure/safety precautions Properly handle lab equipment & obey safety measures. Moderate level lab handling and safety measurements Minor or no safety measurements has been considered.

Total Marks: 10

Objective:

1) Make attendee familiar with Automation Software testing techniques.

2) Make attendee familiar with JMeter framework.

3) Make attendee learn or create basic test cases to perform load testing.

Automation Testing:

Automation testing is the process of testing software and other tech products to ensure it meets strict

requirements. Essentially, it's a test to double-check that the equipment or software does exactly what it was

designed to do. It tests for bugs, defects, and any other issues that can arise with product development.

Load Testing:

It helps to identify the maximum operating capacity of an application as well as any bottlenecks and

determine which element is causing degradation. E.g. If the number of users are increased then how

much CPU, memory will be consumed, what is the network and bandwidth response time.

Steps to Install JMeter: Step 1) Install Java

Because JMeter is pure Java desktop application, it requires a fully compliant JVM 6 or higher. You can

download and install the latest version of Java SE Development Kit. Download Java Platform (JDK)

Step 2 ) Setting java path and class path

Many programs which are developed in Java require JAVA_HOME to set in an environment variable to

execute error-free

 Press ⊞ Windows Key and click on the search box Search advanced system settings.

 In the Environment Variables window under System variables click on the path.

 Click Edit.

 In the Edit environment variable window click New.

 Then Paste the below path as:

After installation and setting path is finished, you can use the following procedure to check whether Java JDK is

installed successfully in your system

If the Java runtime environment is installed successfully, you will see the output as the figure below

Step 3 ) Download JMeter

As of this writing, the latest version of JMeter is Apache JMeter 5.5. You can download

it https://jmeter.apache.org/download_jmeter.cgi

Choose the Binaries file (either zip or tgz) to download as shown in the figure below

JMeter Interface:

What is thread group(user)?

Example 1:

What is the JMeter HTTP Request?

The JMeter HTTP Request is a sampler that lets you send an HTTP/HTTPS request to a web server

for load testing.

There are different methods the sampler is able to use, like:

 GET

 POST

 PUT

 HEAD

 DELETE

 PATCH

 OPTIONS

To add “Sampler” right click on “Test Plan” and select “Sampler” then “thread group” then configure

thread properties as:

To add an HTTP Request, add a Thread Group, and then right-click on Thread Group - > Add - >

Sampler - > HTTP Request

 Redirect Automatically : This option will check if the response of the server is a redirectionIf this is true,

it will redirect to this URL.

 Follow redirects : This option will also check if the response of the server is a redirection. If this is true, it

will also redirect to the URL. The difference from the first redirect (Redirect Automatically) is that

Redirect Automatically will not consider each redirect as a separate request, whie Follow Redirects does.

This will be seen when you add a listener, like the View Results Tree.

 Use Keep Alive : Sets the connection value to KeepAlive as the request header.

 Use multipart/form-data: Sets the Content-type value to multipart/form-data as the request header.

 Browser-compatible headers : When using multipart/form-data, this option suppresses the Content-Type

and Content-Transfer-Encoding headers; so only the Content-Disposition header is sent.

After running the test result will be visualized as:

Lab Task:

Perform the above example to verify test results.

Home Task:

Consider any web of your choice and perform load testing with following configuration.

Threads (Users) Ramp-up time Loop

10 2 infinite

LABTASK:

HOMETASKS:

Q1:

Q3:

Q5: