Detecting errors in web application runtime environments
First Claim
1. A method, comprising:
- receiving a user action script, a first callback queue, and an asynchronous operation queue generated based on a first execution instance of a web application in a first computing environment;
simulating, by operation of a computer processor, the first execution instance of the web application, comprising;
invoking a second execution instance of the web application in a second computing environment, different than the first computing environment;
simulating, during the second execution instance of the web application, each user action of a plurality of user actions specified in the user action script, based on a plurality of callback functions specified in the first callback queue;
simulating, during the second execution instance of the web application, each asynchronous operation of a plurality of asynchronous operations specified in the asynchronous operation queue based on the plurality of callback functions specified in the first callback queue; and
generating, during the second execution instance of the web application, a second callback queue based on the simulated plurality of user actions and asynchronous operations; and
upon determining that an order of the plurality of callback functions specified in the first callback queue matches an order of a plurality of callback functions specified in the second callback queue, returning an indication that the simulation of the first execution instance of the web application was successful.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems, methods, and computer program products to perform an operation comprising receiving a user action script, a first callback queue, and an asynchronous operation queue generated based on a first execution instance of a web application, simulating the first execution instance of the web application, comprising: invoking a second execution instance of the web application, simulating each user action of a plurality of user actions specified in the user action script, based on a plurality of callback functions specified in the first callback queue, simulating each asynchronous operation of a plurality of asynchronous operations specified in the asynchronous operation queue based on the plurality of callback functions specified in the first callback queue, and generating a second callback queue based on the simulated plurality of user actions and asynchronous operations.
20 Citations
18 Claims
-
1. A method, comprising:
-
receiving a user action script, a first callback queue, and an asynchronous operation queue generated based on a first execution instance of a web application in a first computing environment; simulating, by operation of a computer processor, the first execution instance of the web application, comprising; invoking a second execution instance of the web application in a second computing environment, different than the first computing environment; simulating, during the second execution instance of the web application, each user action of a plurality of user actions specified in the user action script, based on a plurality of callback functions specified in the first callback queue; simulating, during the second execution instance of the web application, each asynchronous operation of a plurality of asynchronous operations specified in the asynchronous operation queue based on the plurality of callback functions specified in the first callback queue; and generating, during the second execution instance of the web application, a second callback queue based on the simulated plurality of user actions and asynchronous operations; and upon determining that an order of the plurality of callback functions specified in the first callback queue matches an order of a plurality of callback functions specified in the second callback queue, returning an indication that the simulation of the first execution instance of the web application was successful. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product, comprising:
a non-transitory computer-readable storage medium having computer readable program code embodied therewith, the computer readable program code executable by a processor to perform an operation comprising; receiving a user action script, a first callback queue, and an asynchronous operation queue generated based on a first execution instance of a web application; simulating the first execution instance of the web application, comprising; invoking a second execution instance of the web application; simulating, during the second execution instance of the web application, each user action of a plurality of user actions specified in the user action script, based on a plurality of callback functions specified in the first callback queue; simulating, during the second execution instance of the web application, each asynchronous operation of a plurality of asynchronous operations specified in the asynchronous operation queue based on the plurality of callback functions specified in the first callback queue; and generating, during the second execution instance of the web application, a second callback queue based on the simulated plurality of user actions and asynchronous operations; and upon determining that an order of the plurality of callback functions specified in the first callback queue does not match an order of a plurality of callback functions specified in the second callback queue, returning an indication that the simulation of the first execution instance of the web application was not successful. - View Dependent Claims (8, 9, 10, 11, 12)
-
13. A system, comprising:
-
a processor; and a memory storing one or more instructions which, when executed by the processor, performs an operation comprising; receiving a user action script, a first callback queue, and an asynchronous operation queue generated based on a first execution instance of a web application; simulating the first execution instance of the web application, comprising; invoking a second execution instance of the web application; simulating, during the second execution instance of the web application, each user action of a plurality of user actions specified in the user action script, based on a plurality of callback functions specified in the first callback queue; simulating, during the second execution instance of the web application, each asynchronous operation of a plurality of asynchronous operations specified in the asynchronous operation queue based on the plurality of callback functions specified in the first callback queue; and generating, during the second execution instance of the web application, a second callback queue based on the simulated plurality of user actions and asynchronous operations; and upon determining that an order of the plurality of callback functions specified in the first callback queue does not match an order of a plurality of callback functions specified in the second callback queue, returning an indication that the simulation of the first execution instance of the web application was not successful. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification