Currently Browsing

Posts Tagged ‘ Android ’

Mobile Website Load Testing

Internet usage on mobile devices increases every year. Even though mobile screens became bigger, its size is still significantly smaller than PC monitors. As the result the website won’t appear correctly or the content will be too small. Because of that the websites needs to be adjusted for the current device. For this purpose there is usually created a mobile version of the website. These changes can cause different performance and stability issues. That’s why there is a need for testing on those pages as well.
There is a variety of devices and web browsers. The website to identify from what device/browser the request came from it will check the “User agent” header string which contains this information. In the later part we will show an example of the header.

For the load test we will be using JMeter. You can download the newest release from here: Download JMeter

Some useful information for Android and IOS testing

This basic information wrote down in this post is maybe unneeded and not necessary for most of users, but just remember, when you got the first Android/IOS device and need to setup something. So the information below is a basic testing startup guide.

First important thing is to check your Android or IOS device system version. The possibilities are different for Android or IOS systems and the application settings are depending of the OS versions. It is very important to the developers to have the information, which device was used for testing and which characteristics they have.

Android/iPhone application testing – online services

In my previous post I have mentioned mobile application testing on simulator/emulator. This time I will describe the manual mobile application testing using online services. I have searched for online testing tools in Google and found many sites/services. Some of them only allow some devices listed and you can check only a website, by entering the URL. What about the apps made for mobile devices? I continued the search for something where I can test apps and URL’s, too.
Find the next page: http://www.browserstack.com/

You can create a trial account and try it for free.

Android/iPhone application testing – simulator/emulator

Testing the application made for Android/iPhone can be a real nightmare for developers. There are many models and types of Android/iPhone smart devices and it is very hard to ensure that the application will run without having problems on various hardware, various screen sizes and various OS version.

To ensure that application will work correctly, the developers/testers has few options:

  • Buy many smart devices and test the application on real them – this is a very expensive way
  • Use a simulator or emulator
  • Use an online service for testing

Mobile testing – Screen recording on Android – non-rooted device

In my previous post Mobile testing – Screen recording on Android – rooted device I was talking about screen recording on rooted Android devices. The easy way to get a screencast app is by installing the app directly on the device(requires rooted device and in 99% with rooting users will void the warranty).
Here, we’ll describe how a user can record the screen onto a non-rooted device(this way is a little bit more complicated than the previous one.)

Mobile testing – Screen recording on Android – rooted device

Along with the spreading of the Android smart phones, more and more Android applications have been published. These apps should be thoroughly tested before they appear for download in the Play Store.

When testing a mobile application, you will need to take screenshots and record a video to document the error that happened.

There are apps that can make screenshots simple and now if you have Android with Ice Cream Sandwich or above installed, screenshot option is built-in. That’s fine, but what about recording video on Android?

Mobile testing -Taking Screenshot on Android

Taking a screenshot while testing on Android phone can be a bit confusing, since the process isn’t the same on every device. There are different ways to take a screenshot.

1 – Ice Cream Sandwich (4.0) and above

If you have Android Smartphone with Ice Cream Sandwich or above installed, screenshot option is built-in! Just press the Volume Down and Power buttons at the same time, hold them for a second, and your phone will take a screenshot.

How To Make Android Screenshots for testing

When testing Android mobile applications the one of the first things that come up is how to record and document the error that happened.
As in desktop testing there are apps that allow you to record the screen. The only thing that you need to do is to make sure the phone
is rooted before using the screenshot applications. (there are several descriptions out there just Google for them for the specific android
version and phone model).

Here is a list of screenshot applications:

Screenshot V1.4 from http://www.geeksofts.com/ (I Suggest this one)

  • You can use the camera button to take screenshots
  • You can also choose to shake the phone to take pictures when you want

Screenshot It Trial from http://www.koushikdutta.com/ (only 5 screenshots in the trial mode)

  • Hold down the camera button
  • Assign a hot key to the application
  • Use a delayed timer