One or more events occurring within a client-side web application are logged at a remote server using a script-based invocation mechanism. The mechanism comprises a client-side script, and associated server-side code. Upon occurrence of an event to be logged, a script object is created on the client and used to pass logged data to the server, which then issues a response to destroy the script object. In this manner, the script object is created and persists in the client only as long as it is needed to log the event.
|
7. An article associated with a local computer system, comprising:
computer memory; and
a script stored in the computer memory and adapted to be integrated into an application and executed upon a given occurrence, the application being received at the local computer system, wherein, upon such execution at the local computer system, the script (a) dynamically creates and inserts a script object into hypertext markup language (html) associated with the application, the script object being a distinct set of instructions that are not present in the html associated with application prior to its receipt at the local computer system and the given occurrence, wherein the script object operates to collect and forward to a server data about the given occurrence, and (b) upon receipt of a response from the server, destroys the script object by removing the distinct set of instructions from the html associated with the application.
1. A computer program product in a non-transitory computer readable medium article that stores a program, the program being executable in association with a client to:
receive at the client hypertext markup language (html) instructions that comprise a page;
following receipt of the html instructions that comprise the page, dynamically create and insert a script object into the html of the page, the script object being a set of instructions distinct from the html instructions that comprise the page, wherein the script object is not present in the html of the page when the page is received in the client but is created and inserted into the html at the client;
execute the script object to collect data concerning an event and to forward that data to a server, wherein the data describes one of: a feature, a fault, and a failure; and
upon receipt of a response from the server, destroy the script object by removing the set of instructions of the script object from the html of the page.
2. The computer program product as described in
3. The computer program product as described in
4. The computer program product as described in
5. The computer program product as described in
6. The computer program product as described in
9. The article as described in
|
This application includes subject matter that is protected by copyright.
Technical Field
The disclosed subject matter relates generally to software and rich media monitoring, tracking, and return on investment (ROI) analysis.
Description of the Related Art
It is known in the prior art to provide methods and systems for centrally coordinating, collecting and storing error, trace, audit and other information in a computer network. A representative example is U.S. Pat. No. 6,470,388. In this patent, selected applications or processes running at various entities or hosts within the network instantiate one or more “debug” objects that collect given information. Each entity also includes at least one logging service layer that communicates with the application or process, and includes a communications resource and one or more state machine engines. In response to collecting error, trace, audit or other information, each debug object passes that data to the respective logging service layer, which decides whether to forward the data to a centralized logging facility disposed within the network. The forwarding of collected information depends on the state of the debug object. At the centralized logging facility, the information is time-stamped and appended to a log file along with the application's name and the name of the entity or host at which the application is running.
Another representative patent is U.S. Pat. No. 6,591,228. In this patent, a logging service logs to a centralized log diagnostic messages from applications executing in a computing environment in which a plurality of computers are coupled to data storage area. Each computer has one or more subsystems that execute applications. A logging service API writes diagnostic messages to the data storage and, depending on the type of problem, contacts an alert facility.
One or more events occurring within a client-side web or rich media application are logged at a remote server using a script-based invocation mechanism. The mechanism comprises a client-side script, and associated server-side code. Upon occurrence of an event to be logged, a script object is created on the client and used to pass logged data to the server, which then issues a response to destroy the script object. In this manner, the script object is created and persists in the client only as long as it is needed to log the event.
According to a representative embodiment, a markup language page is instrumented with a control script, together with at least one tracking method that is associated with an action handler on the page. In operation, the control script dynamically imports a logging API (e.g., a script object) into the page whenever the action handler is executed but then promptly destroys the API after the logged data is sent to a logging server. In particular, upon execution of the action handler, the control script creates a script object in the page “on-the-fly,” and that object then opens a connection to a logging server and passes the logged data, preferably as a set of http parameters. The logging server logs the event (e.g., feature execution, a fault, a failure, or other event that is being tracked) and issues a response that causes the control script to destroy the just-created script object. The script object may be destroyed gracefully (i.e. over a given time period).
Thus, the control script creates the script object dynamically when an instrumented event occurs and that script object is used to remotely invoke the logging server to log the data that is passed from the script object. The logging server response causes the control script to destroy (cleanup) the script object, as it is no longer needed once the logged data has been received and logged at the server.
The foregoing has outlined some of the more pertinent features of the subject matter. These features should be construed to be merely illustrative. Many other beneficial results can be attained by applying the disclosed subject matter in a different manner or by modifying the invention as will be described.
A user of the service has an Internet accessible machine such as a workstation or notebook computer. Typically, the user accesses the service provider architecture by opening a web browser on the machine to a URL associated with a service provider domain or sub-domain. The user then authenticates to the managed service in the usual manner, e.g., by entry of a username and password. The connection between the machine and the service provider infrastructure may be encrypted or otherwise secure, e.g., via SSL, or the like. Although connectivity via the publicly-routed Internet is typical, the user may connect to the service provider infrastructure over any local area, wide area, wireless, wired, private or other dedicated network. As seen in
The subject matter herein is useful in the context of software development and testing, although one of ordinary skill in the art will appreciate that the subject matter is not limited to such use.
The application under test is one of: application software (such as a program written in Java, .Net, or the like), a script-enabled web application (such as a web page including Javascript, ActiveScript or the like), or a Rich Internet Application (RIA) (e.g., Flash, AJAX-enabled, DHTML, or the like). During the development process, a usage monitoring API is integrated into the application and the application is deployed. As users interact with the application, a log file is generated, typically in one of two ways. If the application is able to write to a local file system (in the user's machine), usage information is gathered in a log file local to the deployed application and then dispatched to an upload server for processing in a batch manner. If the application is not able to write to the user machine's local file system (because, for example, it is a web application or RIA), the usage information is sent to a remote logging server, preferably on a just-in-time basis, and then the log file is generated on the logging server. This is the technique used for web browser-based logging, as will be described in more detail below. Preferably, such logging is accomplished by transmitting the data through http URL parameters to the logging server, which then translates the data into a log file. In either case, preferably the usage information that is tracked comprises “features,” “faults” and “failures” of the application, independent of platform, location, and number of deployed application instances. In general, any application-related event or occurrence may be logged. As noted above, “feature” data refers generally to a collection of information such as which features were used, when, in what order, by whom, on what platform, and with what end-user environment. Typically, features are exposed to end users. The “fault” data refers generally to which features caused programmatic errors (e.g., exceptions). The “failures” data identifies which features failed to complete successfully, for example, if data was entered into a field in an incorrect format.
The following description provides additional details for the embodiment where the application under test is a script-enabled web application or a RIA. As noted above, this is the case where a log file cannot be written to an end user machine local file system. In such case, it is necessary to provide another mechanism to transfer the usage information to a remote logging server. The present invention facilitates this process by a client-side script remote invocation mechanism. As will be described, the remote invocation mechanism remotely (from the logging server's perspective) manages a user's web browser to be able to execute and then clean up script objects dynamically. This technique provides a way to log and track the execution and failures of features in a web-based application or RIA.
As noted above, the mechanism comprises a client-side script, and associated server-side code. Upon occurrence of an event to be logged, a script object is created on the client and used to pass logged data to the server, which then issues a response to destroy the script object. In this manner, the script object is created and persists in the client only as long as it is needed to log the event.
A basic implementation of the solution to track the usage of web applications, Rich Internet Applications, or other application software is as follows. Assume a developer has a web page containing some actionable object such as a button.
As indicated in
With reference now to
The following describes how the dispatching mechanism works in a representative embodiment. As noted above, it is assumed that a series of one or more elements (e.g., a feature, a failure, a fault, some other event being tracked or the like) have been associated with the application. When a particular element is triggered, the control script in the page invokes the javascript code that was included in the page via the .src include of the .js file. The included javascript, a portion of which is illustrated in
With reference to the process flow of
VisibleMeasuresDeleteScript (“3231”)
As can be seen, the delete script references the objectId value.
The control script receives the server response and, using the objectId value for identification, writes the delete script right back into the script object, as shown in
setTimeout(“VisibleMeasuresDeleteScriptObject(“‘+scriptId+’”)”, 500).
This code is executed so that the script object can exit gracefully before being destroyed. This is step 1404 in
Thus, the delete script returned from the log server has the effect of causing the script object (that passed the data from the client to the server) to be deleted (cleaned up). In particular, the delete script object method tries to load the page element defined by the objectId. As indicated by the code in
This remote invocation method as has been described is advantageous. The script objects can load content from any web site. They can be created in large numbers and sequentially to ensure that all log data is passed to the server. Preferably, one script object is created for every log operation (although this is not a requirement), which allows the one or more dynamically-generated script objects to run asynchronously to the rest of the web page. This technique does not interfere with the user's normal interaction with the page, nor is any logged data lost in the logging process. The system only allocates what it needs for HTML elements, and only when needed.
The use of HTML as the markup language is not meant to be limiting, nor is the use of Javascript. Any markup language (e.g., SGML, XML, XHTML, or the like) may be instrumented to include an appropriate client-side script (e.g., ActiveScript, VBScript, ECMAScript, Python, and many others) to facilitate the remote invocation mechanism.
The remote invocation method described herein is not limited for use for logging, as it may be implemented for any just-in-time or on-the-fly data transport operation that may be desired between a client and a remote server.
As previously noted, the hardware and software systems in which the disclosed subject matter is illustrated are merely representative. The technique may be practiced, typically in software, on one or more machines. Generalizing, a machine typically comprises commodity hardware and software, storage (e.g., disks, disk arrays, and the like) and memory (RAM, ROM, and the like). The particular machines used in the network are not a limitation. A given machine includes network interfaces and software to connect the machine to a network in the usual manner. As illustrated in
The hosted service may be implemented in a multi-server cluster environment that is designed to scale efficiently. Each server is designated with a primary and secondary series of tasks. Preferably, one server is dynamically set to be a master server, which server determines the secondary tasks to be performed by all servers. All servers update their existence within a database, and the servers cooperate to determine which server will be the master. The servers in the cluster are assigned tasks (such as log import and event processing) by the master server.
Having described our invention, what we now claim is set forth below.
Wilson, Andrew S., Shin, Brian J.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
6085224, | Mar 11 1997 | Intracept, Inc.; INTRACEPT, INC | Method and system for responding to hidden data and programs in a datastream |
6288715, | May 11 1999 | Qwest Communications International Inc | Screensaver messaging system |
6324685, | Mar 18 1998 | Implicit, LLC | Applet server that provides applets in various forms |
6412021, | Feb 26 1998 | Oracle America, Inc | Method and apparatus for performing user notification |
6470388, | Jun 10 1999 | Cisco Technology, Inc. | Coordinated extendable system for logging information from distributed applications |
6591228, | Feb 13 2001 | CHARLES SCHWAB & CO , INC | Centralized diagnostic logging service |
6677858, | Feb 26 1999 | Reveo, Inc. | INTERNET-BASED METHOD OF AND SYSTEM FOR MONITORING SPACE-TIME COORDINATE INFORMATION AND BIOPHYSIOLOGICAL STATE INFORMATION COLLECTED FROM AN ANIMATE OBJECT ALONG A COURSE THROUGH THE SPACE-TIME CONTINUUM |
6785891, | Oct 12 1999 | International Business Machines Corporation | Data sharing between application environments |
6807558, | Jun 12 1995 | Meta Platforms, Inc | Utilization of information "push" technology |
6985901, | Dec 23 1999 | Accenture Global Services Limited | Controlling data collection, manipulation and storage on a network with service assurance capabilities |
6988126, | Oct 17 2000 | Hewlett Packard Enterprise Development LP | Contact center system and method for specifying different service specific behavior and offering range of corresponding customer services |
7051119, | Jul 12 2001 | R2 SOLUTIONS LLC | Method and system for enabling a script on a first computer to communicate and exchange data with a script on a second computer over a network |
7130773, | Nov 30 2004 | Oracle America, Inc | Method and apparatus for processing data using objects |
7246101, | May 16 2002 | VALTRUS INNOVATIONS LIMITED | Knowledge-based system and method for reconstructing client web page accesses from captured network packets |
7451349, | Apr 16 2004 | HONG FU JIN PRECISION INDUSTRY SHENZHEN CO , LTD ; HON HAI PRECISION INDUSTRY CO , LTD | System and method for automatically testing motherboards |
7610559, | Jul 27 1999 | Samsung Electronics Co., Ltd. | Device customized home network top-level information architecture |
7620948, | Aug 29 2003 | Adobe Inc | Client side software updating |
7860751, | Jun 27 2006 | GOOGLE LLC | Cross domain customer interface updates |
7996450, | Sep 15 2000 | Oracle International Corporation | Network-based file access system |
8225392, | Jul 15 2005 | Microsoft Technology Licensing, LLC | Immunizing HTML browsers and extensions from known vulnerabilities |
8364540, | Sep 14 2005 | BLUE HILLS, SERIES 95 OF ALLIED SECURITY TRUST I | Contextual targeting of content using a monetization platform |
8775919, | Apr 25 2006 | Adobe Inc | Independent actionscript analytics tools and techniques |
20040049737, | |||
20040133848, | |||
20040168122, | |||
20040250130, | |||
20050027846, | |||
20050076230, | |||
20050086315, | |||
20050086643, | |||
20050203747, | |||
20050216844, | |||
20050251536, | |||
20050251856, | |||
20050262092, | |||
20050273762, | |||
20050273849, | |||
20060085420, | |||
20060136309, | |||
20070118844, | |||
20070156871, | |||
20070276675, | |||
20080046562, | |||
20090222329, | |||
20100088411, | |||
20120072539, | |||
20130055097, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jul 22 2013 | Visible Measures Corp. | (assignment on the face of the patent) | / | |||
Mar 31 2017 | VISIBLE MEASURES CORP | Silicon Valley Bank | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 042236 | /0191 | |
Dec 31 2019 | VISIBLE MEASURES CORP | ACUITYADS US INC | MERGER SEE DOCUMENT FOR DETAILS | 056269 | /0509 |
Date | Maintenance Fee Events |
Oct 12 2020 | REM: Maintenance Fee Reminder Mailed. |
Feb 16 2021 | M2551: Payment of Maintenance Fee, 4th Yr, Small Entity. |
Feb 16 2021 | M2554: Surcharge for late Payment, Small Entity. |
Jun 18 2024 | M2552: Payment of Maintenance Fee, 8th Yr, Small Entity. |
Date | Maintenance Schedule |
Feb 21 2020 | 4 years fee payment window open |
Aug 21 2020 | 6 months grace period start (w surcharge) |
Feb 21 2021 | patent expiry (for year 4) |
Feb 21 2023 | 2 years to revive unintentionally abandoned end. (for year 4) |
Feb 21 2024 | 8 years fee payment window open |
Aug 21 2024 | 6 months grace period start (w surcharge) |
Feb 21 2025 | patent expiry (for year 8) |
Feb 21 2027 | 2 years to revive unintentionally abandoned end. (for year 8) |
Feb 21 2028 | 12 years fee payment window open |
Aug 21 2028 | 6 months grace period start (w surcharge) |
Feb 21 2029 | patent expiry (for year 12) |
Feb 21 2031 | 2 years to revive unintentionally abandoned end. (for year 12) |