Feeders
If authentication is supported by the testing application, it should be considered for tests and data
should be used for logging in and out whereas only a few users are oered the action support.
There is no tool in Gatling which can produce such testing data. For an external source’s injec-
tion of data to help testers and work with the sessions of the virtual users, feeders are a quite
powerful API.
Checks
Whenever a server receives a request from Gatling, it generates a response and sends it back.
The analysis of this reply is carried out through checks. A check can be classified as a response
processor which stores some portion of it; it validates the matching of the specified conditions.
For instance, while an HTTP request is sent, it can be anticipated that an HTTP redirect will
come; check can here help in the verification of the response status. Sometimes, checks are also
utilized for the capture of specific elements which are then saved in the session for later reuse.
Assertions
The Gatling statistics’ acceptance criteria are defined by assertions. It causes the Gatling to fail
and reply with a status code for errors.
Reports
When a simulation is ended, reports are produced by default. Such reports entail HTML files,
easily portable and can be viewed easily on any browser with any device.
Which tool is suitable for conducting performance testing? Give reasons.
Flash Question
TESTING SMART WEARABLES
With the advancements in IoT, wearable devices have become an extremely valuable part and
parcel of daily life and helped humans to become a lot more productive than they originally
were, especially in terms of fitness. These wearable devices go through a number of phases
before they are made available for the consumers.
With regard to testing, you have to understand the integration of software and hardware;
particularly how smooth and seamless it is. Following are the phases of wearables testing.
Material Testing
In the middle of manufacturing or while working with a prototype, material testing is often
used. Material testing is split up into the following types.
• Chemical testing: It determines if any dangerous chemicals exist in the wearable
devices. To do this, it performs a scan of all the banned local chemical products.
• Physical testing: It is also known as mechanical testing. It makes sure the wearable’s
components are fitted thoroughly and properly.
• Performance testing: Performance testing is used to strike a balance for all the quality
indicators such as friction, pressure, weather conditions, and others.
218 Internet of Things
Internet_of_Things_CH08_pp201-230.indd 218 9/3/2019 10:15:10 AM
Get Internet of Things now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.