How to test application using different internet connection speed?
Logic explained!!
Browsing and Download Speed vs Time Formula:
Connection Speed:
1MBps = 1024KBps
2MBps = 2048KBps
Downloading Speed:
Downloading speed = browsing speed/8.
If
I have 1MBps connection, downloading speed will be 256KBps.
2G Speed:
-
In India, network
operators provide average 115KBps speed in 2G network. This speed is not
downloading speed but browsing speed. If we want to consider the download speed
then it’s calculated as “Downloading speed = Browsing speed/8”. So downloading
speed will be approx. 15KBps.
-
If we want to
check native application performance on 2G speed, we should have size of data fetch
by application by all the services.
-
To calculate the
response time of application in 2G speed
o
Check how much
data downloaded by all services. I.e. 1 service download 2Mb of data on service
call by application, another service is downloading 3Mb data on service call.
o
Calculate the
time required for download. If user try to download 2Mb data in 15Kbps speed then
it will be required around 2 mins. Calculation is 2048KB/15KBps = 136 seconds =
2Mins Approx.
o
Using above
calculation, we can check the application response time against internet speed.
If application takes longer than 2 Mins, need to optimize application
performance against data get and set in application.
o
So if application
is not working correctly in 2g speed, then
§ We can calculate the service response time
using above calculation and verify the application is working in such a time!
§ We can increase the service timeout time or
server response time in application if screen is timeout.
§ We can show progress unless & until data
is not downloaded fully.
§ Service can be optimized to download less data
initially and more data in background.
3G Speed:
-
As per my
opinion, Indian Telecom operator provides 3G speed around 2MBps to 4MBps, so
download speed around 256 to 512. Usually it gives 256KBps as I used with many
operators.
-
In this case, we
can measure the application performance using above calculations.
-
Now a days, 2G
connection is almost outdated and 3G data connection cost is also feasible who
are using internet frequently.
-
So we can put our
application under test using 3g connection.
Wi-Fi Speed:
-
WiFi speed is depends
on broadband connection.
-
If we have
dedicated connection of 4MBps with single user, user can access the full 4MBps
connection. If connection is shared with other user, speed will be divided.
-
In the company,
there are many WiFi users so it varies with time and number of user.
Interruption on mobile network:
-
2G to 3G network:
- If user switched to 3G network, response time of service will be increased
based on speed so it will take less time to respond on service call.
-
3G/2G to WiFi
Network: - WiFi connection speed is varying depends on internet connection.
Speed test of the connection will help to resolve these scenarios.
-
In case of 2G
connection, application service can be interrupted when user receives call or
SMS in the mobile. In case of service interruption, it should resume fetching
the data and application should work properly.
-
Same case in
network rejoins or network outage. If internet connection is not proper,
application should work correctly and should display proper validation message
to launch the application again due to internet interruption.
More solutions if we don’t have 2G, 3G network
availability:
-
If we don’t have availability of 2G, 3G
network connection card in mobile, we can download the net limiter application,
set it 2G speed network limit till 115KBps and we can test the application.
Same case in 3G, we can set the network speed limit till 2MBps and we can test
the application.
-
To test the
application in WiFi, user should have dedicated WiFi network speed to check the
response of application.
-
If we need to
test application in PC simulator, NetLimiter software can be used which limit
the network speed in computer and application can be tested in simulator.
-
In Android &
iOS, many data limiter software are available to limit the speed of network. If
we are using wifi connection still we can test how application will be
performed in 2G connection using limit the speed.
GPS & Internet Connection:
-
GPS is related to
navigation system of mobile. User can find own location, other’s location,
latitude and longitude using GPS.
-
Here limitation
is if user does not have internet connection, GPS will not work due to lacks of
availability of Map in the device.
-
Using internet
connection, mobile will be fetch map from the internet and GPS will locate the
mobile in MAP so user can get accurate location.
-
To overcome this
internet connectivity issue to use GPS, user can download offline map using Google
service and use the GPS. In iOS, MAP is already loaded in mobile so it won’t
require internet connection.
-
If user has
internet connectivity only still user can get the approx. location from
internet connection.
I like your post there is a lot of information about software testing, which i would like to learn, thank you for the great guide. Very useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful.Keep up the good work.. Read more about QA Services
ReplyDelete