This application is a U.S. National Stage Application of and claims priority to International Patent Application No. PCT/CN2013/084746, filed on Sep. 30, 2013, and entitled “CONTROLLING A PROXY TOOL WITH INJECTED WIDGET CODE,” the entire contents of which are hereby incorporated in its entirety.
Tools for testing applications utilize scripts to emulate real users. The scripts include a series of requests from a client directed to an application. The scripts can also include corresponding response from the application. Scripts can be created by recording a requests generated by a real user and corresponding responses. Thus, when executed, the script replays that user's interaction with the application.
Tools for recording interactions between a client device and an application can reside on a proxy server positioned between the client device and a server hosting the application. Communication between the client device and the application are routed through the proxy server allowing the proxy tools to record client requests and corresponding application responses. The application can be exposed to a user via a graphical user interface (GUI) displayed by a web browser or other application executing on the client device. A GUI for controlling the script recording tool can also be displayed by that browser or other application. Using the recording tool's GUI, a user can instruct the tool to begin recording. Through the application's GUI the user can interact with the application making a series of requests that are then recorded by the recording tool.
Embodiments described below operate to inject code for the recording tool's GUI in to the code for the application's GUI. When processed by the client device, the recording tool's GUI is viewable with the application's GUI. For client devices having limited display size, the recording tool's GUI may overlay the application's GUI. Where display size is not a limiting factor, the recording tool's GUI may be displayed adjacent to the application's GUI. In this fashion a user interacting with the application to generate the script need not switch between a screen for the application GUI and a screen for the recording tool's GUI. Instead, the user can interact with both on the same screen.
The following description is broken into sections. The first, labeled “Example” describes example screen views of an application GUI displayed with a recording tool's GUI. The second, labeled “Components,” describes examples of various physical and logical components for implementing various embodiments. The third section, labeled “Operation,” describes steps taken to implement various embodiments.
Components:
Application server device 26 represents any computing device configured to host an application for client devices 30. Proxy server device 28 represents generally any computing device configured function as an intermediary for requests from client devices 30 seeking resources from application server device 26. Client device 30 connects to proxy server device 28 making a request for an application served by application server device 26. Proxy server device 28 can process the request and pass it on to application server device 26. Responses to the request are returned to proxy server device 28, processed, and then passed on to the client device 30. Stated another way, software executing on proxy server device 28 intercepts requests from client device 30 and corresponding responses from application server device 26. That software can then process those requests and responses as desired before passing them on to their intended targets. Client devices 30 represent generally any computing device with which a user may interact to communicate with application server device 26 via proxy server device 28.
Proxy tool control system 24 is implemented using proxy server device 28 and is configured to intercept and process communications between client device 30 and application server device 26. Explained in more detail with respect to
Injection engine 40 is configured to inject widget code into the application code of responses intercepted by proxy engine 38. In an example, such application code is configured to be processed by a client device to render an application interface also referred to herein as rendered application code. Widget code is code configured to be processed by the client device to insert a widget viewable with the rendered application code. A widget, as used herein, is a user interface having controls for interacting with proxy tool 44, that is, an application different than the application from which the response was received.
Proxy engine 38 is also responsible for determining whether a request from the client device corresponds to user interaction with the rendered application code or the widget. Upon a determination that an intercepted request from the client device corresponds to user interaction with the rendered application code and not the widget, proxy engine passes the request to the application. Conversely, that request is passed to control engine 42 which is configured to modify a state of proxy tool 44 based on the given request.
Proxy tool 44 represent a tool for processing communications passing through a proxy server device. Proxy tool 44, for example may be a recording tool configured to record data from a client device and corresponding responses intercepted by proxy engine 38 before they are passed on to their intended destination. The recorded data, for example, can be used to assemble a script that can later be replayed to simulate a real user when testing the application. In changing a state of proxy tool 44, control engine 42 may selectively cause proxy tool 44 to record, pause recording, stop recording, or to execute some other specified action.
Upon a determination that an intercepted request from the client device corresponds to user interaction with the widget, injection engine 40 may return a response with updated widget code that when processed by the client device causes an update to the widget viewable with the rendered application code. Such an update may communicate a change in status or state of recording tool 44. For example, the updated widget may indicate that recording has started, paused or stopped. The updated widget may have updated controls for interacting with recording tool 44 in its changed state. Communication between the widget and system 24 may utilize ajax calls or calls of another asynchronous protocol such that the widget may be refreshed without re-rendering the application code.
When injecting widget code, injection engine 40 may do so such that widget code that when processed with the application code by the client device, the widget code inserts a widget that overlays the rendered application code such as in
In foregoing discussion, engines 38-42 were described as combinations of hardware and programming. Engines 38-42 may be implemented in a number of fashions. Looking at
Memory resource 46 represents generally any number of memory components capable of storing instructions that can be executed by processing resource 48. Memory resource 46 is non-transitory in the sense that it does not encompass a transitory signal but instead is made up of more or more memory components configured to store the relevant instructions. Memory resource 46 may be implemented in a single device or distributed across devices. Likewise, processing resource 48 represents any number of processors capable of executing instructions stored by memory resource 46. Processing resource 48 may be integrated in a single device or distributed across devices. Further, memory resource 46 may be fully or partially integrated in the same device as processing resource 48, or it may be separate but accessible to that device and processing resource 48.
In one example, the program instructions can be part of an installation package that when installed can be executed by processing resource 48 to implement system 24. In this case, memory resource 46 may be a portable medium such as a CD, DVD, or flash drive or a memory maintained by a server from which the installation package can be downloaded and installed. In another example, the program instructions may be part of an application or applications already installed. Here, memory resource 48 can include integrated memory such as a hard drive, solid state drive, or the like.
In
Operation:
A response from an application directed to a client device is intercepted (step 56). The response corresponds to a previous request from the client device directed to the application. Referring to
A subsequent request from the client device directed to the application is intercepted, and it is determined whether that subsequent request corresponds to user interaction with the widget or the rendered application code (step 60). Such interaction, for example may be the selection of a control provided by the widget or the rendered application code. The determination can be made, for example, through address matching. Selection of a control causes the client device to send a request directed to an address such as an URL Uniform resource Locator). The address used by a control from the rendered application code will correspond to the application. An address used by the widget will at least indirectly correspond to the proxy tool.
Upon a determination that the second request corresponds to user interaction with the widget, a state of the proxy tool is modified based on the subsequent request (step 62). Referring to
The application code when rendered may include controls for interacting with the application. Likewise, the widget may have controls for interacting with the proxy tool. Thus determining, in step 60 can include determining if the user interacted with a control of the widget or a control of the rendered application code. As explained above, such may be accomplished through address matching.
Following a determination in step 60 that the subsequent request from the client device corresponds to user interaction with the widget and not the rendered application code, updated widget code may be returned to the client device. When processed, the updated widget code causes an update to the widget viewable with the rendered application code. Such an update may reflect the change in state of the proxy tool. Such an update may include new controls for interacting with the proxy tool in its updated state. Thus, upon a determination that the request resulted from interaction with a control of the rendered application code, that request is passed on to the application. Upon a determination that the request resulted from interaction with a widget control, the state of the proxy tool is updated accordingly.
Injecting in step 60 may include injection widget code that when processed with the application code by the client device, the widget code inserts a widget that overlays the rendered application code such as in
Embodiments can be realized in any memory resource for use by or in connection with processing resource. A “processing resource” is an instruction execution system such as a computer/processor based system or an ASIC (Application Specific Integrated Circuit) or other system that can fetch or obtain instructions and data from computer-readable media and execute the instructions contained therein. A “memory resource” is any non-transitory storage media that can contain, store, or maintain programs and data for use by or in connection with the instruction execution system. The term “non-transitory is used only to clarify that the term media, as used herein, does not encompass a signal. Thus, the memory resource can comprise any one of many physical media such as, for example, electronic, magnetic, optical, electromagnetic, or semiconductor media. More specific examples of suitable computer-readable media include, but are not limited to, hard drives, solid state drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory, flash drives, and portable compact discs.
Although the flow diagram of
The present invention has been shown and described with reference to the foregoing exemplary embodiments. It is to be understood, however, that other forms, details and embodiments may be made without departing from the spirit and scope of the invention that is defined in the following claims.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/084746 | 9/30/2013 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2015/042969 | 4/2/2015 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
7565332 | Williams | Jul 2009 | B2 |
8150939 | Murray | Apr 2012 | B1 |
8296445 | Hackborn et al. | Oct 2012 | B1 |
20020188661 | Casais | Dec 2002 | A1 |
20040054715 | Cesario | Mar 2004 | A1 |
20070022406 | Liu | Jan 2007 | A1 |
20090083726 | Amend | Mar 2009 | A1 |
20090106769 | Nakamura | Apr 2009 | A1 |
20090313601 | Baird | Dec 2009 | A1 |
20110246879 | White et al. | Oct 2011 | A1 |
20110289428 | Yuen | Nov 2011 | A1 |
20120023407 | Taylor | Jan 2012 | A1 |
20120188661 | Demmer | Jul 2012 | A1 |
20120290940 | Quine | Nov 2012 | A1 |
20120290959 | Quine | Nov 2012 | A1 |
20120291005 | Quine | Nov 2012 | A1 |
20130055289 | Maltese et al. | Feb 2013 | A1 |
20130290203 | Purves | Oct 2013 | A1 |
20140052617 | Chawla | Feb 2014 | A1 |
20140181725 | Yang | Jun 2014 | A1 |
Number | Date | Country |
---|---|---|
101364230 | Feb 2009 | CN |
101605294 | Dec 2009 | CN |
101833417 | Sep 2010 | CN |
101887396 | Nov 2010 | CN |
102339282 | Feb 2012 | CN |
Entry |
---|
IBM, Using the Manual Test Recording Monitor, 2000 http://pic.dhe.ibm.com/infocenter/rfthelp/v8r3/index.jsp?topic=%2Fcom.ibm.rational.test.ft.doc%2Ftopics%2Fr_mta_rec_toolbar_options.htm. |
State Intellectual Property Office of the P.R. China, International Search Report and Written Opinion, dated Jun. 24, 2014, 13 pages, Beijing, China. |
Number | Date | Country | |
---|---|---|---|
20160210162 A1 | Jul 2016 | US |