![]() |
|
With increasing Mobile Internet users the need for supporting web applications over mobile devices has become a vital requirement. Now just testing web applications over PC based Web Browser is not enough. One need to also ensure that the application is mobile friendly and is accessible to mobile Internet users. iPhone is the most widely used mobile device by mobile Internet users. AppPerfect now supports functional and load testing your web applications using iPhone.
AppPerfect Web Test supports Web Browser based simulation for functional testing your iPhone applications. iPhone uses Webkit browser to run web applications. To simulate iPhone over a Web Browser, AppPerfect just requires a Web browser supporting WebKit engine like Safari / Chrome installed on the machine. You don't need physical iPhone device to test Web Applications on iPhone. AppPerfect can simulate "iPhone" on any Web browser supporting Webkit engine. This is helpful in testing your Web applications without requiring physical iPhone device and yet getting the real experience of your application's behavior over iPhone. While you can use any Web Browser to simulate iPhone but to get real experience one must use Safari or Chrome which supports WebKit engine.
The following section explains on how you can configure iPhone with AppPerfect and use it to Functional Test your Web Applications over iPhone.
To configure iPhone with AppPerfect we require webkit enabled browser like chrome or safari installed on the machine. Once you have Safari / Chrome installed on the machine do the following :



Once you are done configuring iPhone as default browser, Create a New project using File -> New.. menu option. For detailed instructions on new project creation refer to "Creating a New Project" chapter in Product documentation. Once you are done creating new project do the following to record test with iPhone :




Once you are done recording, you can replay the test using Project -> Run menu option. Application uses default configured browser to replay test. Since we have configured iPhone as default device, application will replay test using "iPhone" in this case. Once you start replaying application will launch "iPhone" and execute the recorded test. The following view shows response page fetched during execution in Test Results view :
AppPerfect Web Test can test compatibility of your application on different Web browsers/iPhone at same time. You can record test on any one Web browser/iPhone and run it on different Web browsers and this way test application's behavior on different browsers without need to re-record test on multiple browsers.
Do the following to functional test your application across different Web browsers :





AppPerfect Load Test supports Load testing for Web applications using HTTP protocol and can be configured to simulate the HTTP requests from iPhone. Web Server identifies each client by way of User-Agent string. When Internet users visit a web site, a text string is usually sent in the HTTP header field "User-Agent" to identify the client application. Web applications often include code to detect client version to adjust the page design sent according to the user agent string received. Web application may be designed to work differently for mobile Internet user and PC based Web browsers. AppPerfect Load Test supports execution of HTTP requests with different clients including iPhone.
The following section explains on how you can configure iPhone with AppPerfect and use it to Load Test your Web Applications over iPhone.
To configure test for iPhone or Cross Browser testing, Select Project -> Properties.. menu option. This will launch the Project Properties wizard. Select the "Cross Browser Testing" step. Here you can configure % of virtual users which should be simulated for each of the client. Load Test provides support for IE, Mozilla/Firefox, Chrome, Safari, Opera and iPhone. This list is user configurable and you can add any new custom User-Agent / client to this list using the button provided on right. To simulate requests from iPhone you can edit the list to include iPhone and provide appropriate % of Virtual users which should be used to simulate requests from iPhone. Refer to the image below showing the Test configured for 100% iPhone users. :
Usually network bandwidth for mobile Internet users is less as compared to the bandwidth available to broadband network users or PC based users. Due to this the user experience and response time could vary depending on the available network bandwidth and client device user is using to access your application. You can simulate this variation in AppPerfect Load Test and throttle the test as per the bandwidth available to target users. To throttle test based on Network Bandwidth select Project -> Properties.. menu option. This will launch the Project Properties wizard. Select the "Advanced Settings" step. Here you can configure % of virtual users and Network bandwidth they should use to fetch response from server, Refer to the image below showing the Test configured for 100% users using 56Kbps line. :
We are done setting up test for iPhone. On execution in this case application will take care of simulating 100% users with User-Agent that of iPhone. Application will also use 56Kbps bandwidth for fetching the response for each of the user. To replay the test select Project -> Run menu option. After execution you can see Virtual Users view to check the users who executed test with User-Agent for iPhone. Refer to the image below showing network bandwidth as 56 Kbps and browser column showing iPhone.
© 2003-2010 AppPerfect Corporation
AppPerfect is a trademark of AppPerfect Corporation.
Terms of Use |
Privacy Statement |
Site Map