IP Library › Granted Patent US 9,300,520
Granted Patent B2
US 9,300,520 · App. 13/907,193 · Granted Mar 29, 2016

Mobile network application test

Inventors: Gu Yi He (Shanghai, CN); Wei Huang (Shanghai, CN); Yang Liu (Shanghai, CN); Si Qi Zhong (Shanghai, CN); Deng Peng Zhou (Shanghai, CN)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
H04L29/08594G06F11/36G06F11/3664G06F11/3668G06F11/3672G06F11/3688H04L29/0809H04L67/02H04L67/142
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,300,520
App. No.
13/907,193
Granted
Mar 29, 2016
Kind
B2
Abstract

Embodiments relate to a method, system, and computer program product for testing a mobile network application. An aspect includes a method that receives a test request for a mobile network application and activating a test session window on a browser of a mobile device according to the test request. The method also includes obtaining a request in hypertext markup language (HTTP) that corresponds to the test request such that the HTTP request contains session information for the test session window and sending the HTTP request to the mobile network application. An HTTP response containing session information is then received from the mobile network application.

Claims (50)

1. A method for testing a mobile network application, comprising:

receiving a test request for a mobile network application, the test request sent from a mobile network application of a client;

activating a test session window on a browser of a mobile device according to the test request, the test session generated to correspond to the client mobile network application;

obtaining a request in hypertext transfer protocol (HTTP) that corresponds to the test request such that the HTTP request contains session information for the test session window;

sending the HTTP request to the mobile network application;

receiving an HTTP response containing session information from the mobile network application; and

sending to the client mobile network application content displayed in response to the HTTP response, wherein the HTTP displayed response is provided in the test session window based on the session information provided.

2. The method according to claim 1 , wherein the test request contains client identification information and information relating to an action event.

3. The method according to claim 2 , wherein activating a test session window on a browser of a mobile device further comprises:

in response to receiving the test request, interpreting an action event information contained in the test request; and

triggering the action event in the browser of the mobile device so as to activate the test session window.

4. The method according to claim 1 , wherein obtaining a HTTP request corresponding to the test request further comprises:

obtaining an initial HTTP request generated by the browser of the mobile device according to the test request; and

containing in the obtained initial HTTP request, the session information corresponding to the activated test session window, so as to obtain an HTTP request corresponding to the test request.

5. The method according to claim 1 , wherein sending to the client mobile network application content displayed in response to the HTTP response in the test session window corresponding to the session information further comprises:

activating a corresponding test session window according to the session information contained in the HTTP response;

determining a corresponding client according to the test session window; and

sending to the determined corresponding client the content displayed in response to the HTTP response in the test session window.

6. The method according to claim 1 , wherein the session information is stored in a cookie corresponding to the test session window; and wherein obtaining an HTTP request corresponding to the test request further comprises:

obtaining an initial HTTP request generated by a browser of a mobile device in the mobile network according to the test request;

obtaining cookie information corresponding to the activated test session window, the cookie information containing session information of the test session window; and

replacing cookie information in the initial HTTP request with the cookie information corresponding to the test session window, so as to obtain an HTTP request corresponding to the test request.

7. The method according to claim 6 , wherein receiving an HTTP response from the mobile application server further comprises: storing cookie information contained in the received HTTP response as the cookie information corresponding to the test session window.

8. The method according to claim 1 , wherein the session information is stored in a local buffer and the test request further comprises mobile device identification information for identifying the mobile device.

9. The method according to claim 1 , wherein a test session window is activated according to one or more customized conditions.

10. The method according to claim 9 , wherein the customized conditions can include any of the following: receipt of the arrival of a new test request; end of an ongoing action event in a test session window; or completion of the processing in a current active test session window.

11. A system for testing a mobile network application, comprising:

a receiver means configured to receive a test request for a mobile network application from a client;

a window activator means configured to activate a test session window on a browser of a mobile device according to the test request, wherein the test session window corresponds to the mobile network application from the client;

hypertext markup language (HTTP) processing means configured to:

obtain an HTTP request corresponding to the test request, wherein the HTTP request contains session information of the test session window;

send the HTTP request corresponding to the test request to an application server of the mobile network application; and

receive an HTTP response of the application server to the HTTP request, the HTTP response containing session information of the test session window; and

sending means configured to send to the mobile network application from the client content displayed in response to the HTTP response in the test session window corresponding to the session information.

12. The system according to claim 11 , wherein the test request contains client identification information and action event information on an action event.

13. The system according to claim 12 , wherein the window activating means comprises:

action event interpreting means configured to, in response to receiving the test request, interpret the action event information contained in the test request; and

action event triggering means configured to trigger the action event in the browser of the mobile device so as to activate the test session window.

14. The system according to claim 13 , wherein the HTTP processing means is configured to obtain an initial HTTP request generated by the browser of the mobile device according to the test request.

15. The system according claim 11 , wherein the window activating means is further configured to activate a corresponding test session window as per session information contained in the HTTP response.

16. The system according to claim 11 wherein the session information is stored in a cookie having information corresponding to the test session window.

17. The system according to claim 16 , wherein the HTTP processing means is configured to obtain cookie information corresponding to the activated test session window having session information of the test session window, and to replace cookie information in the initial HTTP request with the cookie information corresponding to the test session window.

18. The system according to claims 11 wherein the session information is stored in a local buffer.

19. A computer program product for testing a mobile network application, the computer program product comprising a non-transitory computer readable storage medium having program code embodied therewith, the program code executable by a processor to:

receive a test request for a mobile network application, the test request sent from a mobile network application of a client;

activate a test session window on a browser of a mobile device according to the test request, the test session generated to correspond to the client mobile network application;

obtain a request in HTTP that corresponds to the test request such that the HTTP request contains session information for the test session window;

send the HTTP request to the mobile network application;

receive an HTTP response containing session information from the mobile network application; and

sending to the client mobile network application content displayed in response to the HTTP response, wherein the HTTP displayed response is provided in the test session window based on the session information provided.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 31, 2013
From: HE, GU YI; HUANG, WEI; LIU, YANG; ZHONG, SI QI; ZHOU, DENG PENG
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 030525/0909 →
Priority Claims (1)
CN 2012 1 0177863 · May 31, 2012 · national
Continuity (1)
Related Publication 20130326074A1 · Dec 5, 2013