Software architects often engage in a process of improving software after deployment of the software. The improvements may be implemented by modifying a software system or by creating a new software system (e.g., a replacement system), where the modified or new software system is intended to replace or operate beside the deployed (current) software system. Deployment of the modified or the new software system may have an impact on hardware that supports the software system (e.g., require more or less processing power and/or time), may impact outcomes resulting from user interaction (e.g., satisfy, annoy, or frustrate users, etc.), or may have other possible outcomes (e.g., include bugs, etc.). Therefore, it is desirable to perform a comparison test to compare results following execution of the modified or new software system against results following execution of the deployed software system prior to a full deployment of the modified or new software system. However, comparison tests of deployed software systems with modified or new software systems may result in detection of differences that are unimportant or otherwise not meaningful, for example, random differences.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The same reference numbers in different figures indicate similar or identical items.
This disclosure is directed in part to software testing that may process a production request using a production (or “live”) software system and an intercepted request, which is a duplicate of or is based on the production request. Some implementations may comprise a testing service operating a candidate software system that may be a candidate version of the production software system or a similarly functioning software system. For example, the candidate software system may be a trial or test version, a replacement software system, a new implementation, or so on. In some implementations, the testing service may further operate one or more authority software systems which may be a software system or version of a software system which is used for validating the candidate software system or candidate version of the software system.
The testing service may be part of the production system, a separate system, or part of another system. The production software system may update production system data and may transmit data back to the end users while the intercepted request handled by the candidate software system (and any authority software system(s)) does not output to the users and/or affect the production system. In some implementations, the testing service may operate to compare a response to a candidate request processed by the candidate software system and to a response to a corresponding authority (or production) request processed by the authority (or production) software system. The testing service may also operate to compare the processing of the respective systems in generating the responses. Such a comparison may be referred to herein as a candidate test. In contrast to typical A/B testing, the testing of the candidate software system may occur without updating production system data and thus may be used to test system functionality and performance when executing requests that are based on actual client requests to the production system (i.e., that were or are processed with the production software system).
In some implementations, an interceptor module of a testing service may use sampling rules to intercept client requests and initiate testing based on various factors, rules or logic. Thus, not all client requests may be intercepted, forwarded and/or issued as candidate requests. In some implementations, as each client request is received and processed by the testing service, the testing service system may analyze the result of the candidate software system. For example, the testing service may analyze the result of the candidate software system by performing a candidate test by comparing the result returned for the candidate request to the result returned for the production request by the production software system. The testing service may then derive metrics and log data about the testing on a request-by-request or aggregate basis. Some or all of the data may then be presented via a dashboard service. The dashboard service may be used to replay one or more intercepted requests for various purposes, such as to replay the request to the candidate software system after a code change or patch has been applied.
In some implementations, the testing service may further operate to obtain a plurality of control responses to a production or authority request (also referred to herein as a control request) corresponding to the candidate request. As used herein, a plurality of control responses for a control request may refer to a plurality of responses including any combination of production responses and/or authority responses to the intercepted request. The testing service may then compare the plurality of control responses and the processing of the one or more systems in generating the control responses. Such a comparison may be referred to herein as a control test. The control responses may be generated and the associated processing may be performed by a single stack or by a plurality of stacks. In either case, the control requests may be handled in a sequential manner, a serial manner, a parallel manner or any other suitable manner. In some implementations involving a plurality of stacks, the plurality of stacks may include any combination and/or number of authority and/or production stacks.
In some implementations, the testing service may filter or score differences detected in the candidate test by utilizing information collected in the control test. For example, the testing service may evaluate the differences detected in the candidate test by determining if difference(s) were also detected between the same logical portion(s) of the control responses. As used herein, a logical portion of a response may refer, but is not limited to, a field, a variable, blank portion or other part of the response. For example, in an e-commerce implementation, a logical portion of a response may take the form of a product identifier field, a shipping address field, a payment account number field, or so on.
As mentioned above, in some implementations, when a candidate test is initiated, a plurality of control responses may be obtained for the candidate test and the control test. In implementations that obtain one or more of a plurality of authority responses or a plurality of production responses, the testing service may submit the same intercepted request to a particular authority stack or a particular production stack more than once. In addition or alternatively, the testing service may submit the intercepted request to two or more authority stacks or two or more production stacks. For example, in the illustrated implementations of
As alluded to above, in some implementations, the testing service may operate to allow for the above described functions to be performed with respect to different software systems, software implementations, and/or different versions. In other words, in some implementations, the candidate software system is not limited to a new version of a production software system. For example, the “candidate software system” of some implementations may be a different implementation of the production software system based on a different framework and/or may include a different interface or the like.
The techniques and systems described herein may be implemented in a number of ways and are not limited to those specifically discussed herein. The implementations provided below with reference to the figures are merely examples.
In operation, the user 102 (e.g., a downstream consumer or user) may, using a user device 104, transmit a client request 120 for electronic data from the production system 106. However, in some implementations, the client request 120 may be a request generated by another service, the production system 106, or another process, and may not be a human-generated request. The production system 106 may be part of an electronic marketplace, an electronic financial service, a messaging service, a social network, and/or any other service that exchanges electronic data with users. The production system 106 may operate various versions of a software system that are executable in a framework and processed by production system resources. The versions may include the version of the software system utilized by the production stack 108 that is currently deployed to fulfill user requests, such as client request 120.
The interceptor 112 intercepts at least some requests sent to the production system 106, such as the client request 120, and forwards (or publishes) the requests to the production stack 108 as production requests 122. In addition, the interceptor 112 (or another component of the testing service system) may store the intercepted requests 124. The production stack 108 processes the production requests 122 normally using the production software system and replies with production responses 126, for example, responses including electronic data requested by the client request from the production system 106. In the example implementation shown in
In addition to forwarding production requests 122 to the production stack 108, the interceptor 112 may forward the intercepted requests 124 to the testing service 110 for use by the testing service 110 in testing. To handle testing in general, the testing service system may use a protocol for testing with standardized meta-data for requests and responses. For example, regarding the meta-data, the interceptor 112 may extract some basic meta-data about the intercepted request 124, service, and/or realm and store the meta-data for use by the testing service 110 along with or as part of the intercepted request 124. The interceptor 112 may operate so as to allow the requests to be intercepted in an asynchronous, non-blocking manner to minimize the potential for disruption of the production system 106 due to, for example, failures in the testing service system (such as a failure of the interceptor 112). Though not shown in the illustrated implementation, in some implementations, similar interception and meta-data extraction operations may be performed for the production responses 126. For example, the intercepted production responses may be used as control responses. In some such implementations, the interceptor 112 may provide the intercepted requests and intercepted responses to the testing service 110 at the same time.
In some implementations, the interception of requests and/or responses for the testing service 110 may be configurable, such as on a per application programming interface (API) level. Some configurable parameters may include a publishing percentage, a sampling methodology, etc. Further, the interceptor 112 may operate based on multiple sets of interception rules, scenarios, tests, etc. For example, in some implementations, the interceptor 112 may be configured to intercept and forward a first percentage (e.g., 50%) of an indicated first type of client request 120 (e.g., product search, purchase order, etc.) and to intercept and forward a second percentage (e.g., 40%) of an indicated second type of client request 120. Further, the interceptor 112 may be configured to cap the forwarding of intercepted requests. For example, the interceptor 112 may be configured to cap the interception and forwarding of the first type of client request 120 at five (5) client requests 120 per second and the interception and forwarding of the second type of client request 120 at eight (8) client requests 120 per second. In another example, the interceptor 112 may be configured to intercept and forward an indicated percentage of all client requests 120 with a cap of twenty-five (25) requests per second. Moreover, these are merely examples of the configuration of the interceptor 112 and implementations may include any combination of these and/or other configurable parameters.
The testing service 110 processes the intercepted requests 124. Depending on the processing desired, the testing service 110 operates to replay the intercepted requests 124 to one or more of the production stack 108, candidate stack 114, the authority stacks 116A and 116B and or other stacks. This is illustrated in
In a first processing scenario, the testing service 110 replays the intercepted request 124 to the candidate stack 114 and to the authority stacks 116A and 116B as a candidate request 130 and authority requests 132A and 132B. The testing service 110 utilizes the resulting candidate response 134 and authority responses 136A and 136B in testing the software system operated by the candidate stack 114.
In a second processing scenario (not shown), the testing service 110 replays the intercepted request 124 to the candidate stack 114 and an authority stack 116. The second control response may be obtained by the interceptor 112 of the testing service 110 by intercepting the production response 126 as an intercepted response. The candidate response 134, an authority response 136 and the intercepted response are then used in testing the candidate software system operated by the candidate stack 114. In another variation of this processing scenario, the authority stacks 116A and 116B may be removed and the production system 106 may be operated to process a control request to obtain a second control response for the processing.
As mentioned above, the candidate stack 114 is a stack operating a candidate software system which is to be validated, such as an altered application stack or software system that is to be validated or a new software system or implementation of the software system being adopted for the production system 106. The authority stacks 116A and 116B are stacks operating software system(s) which may be used for validating the software system operated by the candidate stack 114 in some types of testing. Depending on the details of the implementation, the software systems operated by the authority stacks 116A and 116B may be the same or different.
In some implementations, the authority stacks 116A and 116B may be a most recent version of a software system of the production system 106 known to have acceptable functionality and performance (e.g., an acceptable level of errors, an acceptable processing time for various types of requests, etc.). For example, the software system operated by the authority stacks 116A and 116B may be mirror copies of the software system of the production stack 108 operated by the production system 106. As mentioned above, in some implementations, the production stack 108 may be operated to perform the functions of the authority stack(s) 116A and/or 116B. In such a case, in some implementations, one or more of the authority requests 132A and 132B may be sent to the production system 106 by the testing service 110 and may be tagged such that the production stack 108 knows the authority requests 132A and/or 132B are shadow requests and should be returned to the testing service 110 instead of the user device 104 and that the processing of the authority requests 132A and/or 132B should not result in changes in production system data used to perform production requests 122. Depending on the implementation, the production system 108 may be issued two authority requests 132A and 132B or the production response 126 and information pertaining to the production response 126 may be used in place of one of the authority responses 136A or 136B.
As mentioned above, at a logical level, the testing service 110 may operate to determine (1) differences between the candidate response 134 and an authority response 136A or 136B (i.e. a candidate test) and (2) differences (if any) between the authority responses 136A and 136B (i.e. a control test). Then, the differences found in the candidate test may be filtered, evaluated and/or scored. For example, at a conceptual level, if a control test difference occurs between the authority responses 136A and 136B at a logical location, a difference between the candidate response 134 and the authority response 136 at the same logical location is not likely a meaningful difference (e.g., it may be a serial number or response number that changes between each responses or a random field). On the other hand, a candidate test difference at a logical location where a difference does not appear in the control test is more likely a meaningful difference. As used herein, a meaningful difference may be a difference resulting from a difference between the candidate software system and the production or authority software system or the operation thereof and may be an undesirable difference. For example, in an e-commerce setting, such a meaningful difference may be an incorrect or different tax amount calculated by the candidate software system or some other likely error.
In some implementations, the testing service 110 may operate to dynamically modify at least some of the parameters of the intercepted requests 124 before replaying the requests as shadow requests to the candidate stack 114 and authority stacks 116A and 116B. In such an implementation, the testing service 110 may preserve the integrity of the modified shadow requests, apart from the intended modifications, to faithfully replay the shadow requests.
In operation, the candidate stack 114 and authority stacks 116A and 116B each receive the candidate requests 130 and authority requests 132A and 132B, respectively, from the testing service 110 and process the received requests according to its respective software system. In some implementations, unlike the processing performed by the production system 106 for the production request 120, the processing at the candidate stack 114 and authority stack(s) 116 may not be revealed or reported to the user 102 and/or may not modify data used by the production system 106. Thus, any outputs and/or manipulations of data from the candidate stack 114 and authority stacks 116A and 116B may not be seen by the user 102 and/or used to generate data that is later output to the user 102. Instead, the processing by the candidate stack 114 and authority stacks 116A and 116B is used to test execution of the software system operated by the candidate stack 114. Upon completion of the processing of each of the candidate requests 130 or authority requests 132A and 132B, the candidate stack 114 and authority stacks 116A and 116B send a candidate response 134 or authority responses 136A and 136B to the testing service 110, respectively. While
To perform the candidate test and control test, upon receiving a candidate response 134 and corresponding authority responses 136A and 136B, the testing service 110 may compare the fields contained in the candidate response 134 and the authority responses 136A and 136B along with other information such as latency data or other performance metrics and logs the results. The results of the comparison and the logs are then available for use by the components of the testing service 110 and dashboard service 118, as will be discussed in more detail below with respect to
As mentioned above, in the other processing scenario, one or more intercepted production responses and any meta-data extracted regarding the intercepted production responses may be utilized instead of the authority responses 136A and 136B in a similar manner to that discussed above and below. Except where explicitly noted otherwise, with regard to the remaining discussion, authority responses and production responses being used in the candidate test and/or control test will be discussed as authority or control responses due to the similar treatment of the responses. Still, as would be recognized by one of ordinary skill in the art, the treatment of the authority responses 136 and intercepted production responses may differ in some implementations (e.g., if both are utilized).
The computing architecture 200 may include one or more processor(s) 202 and computer readable media 204 that store various modules, applications, programs, or other data. The processor(s) 202 may be a single processing unit or a number of processing units, all of which may include single or multiple computing units or multiple cores. The processor(s) 202 can be implemented as one or more hardware processors such as microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, and/or any devices that manipulate signals based on operational instructions. Among other capabilities, the processor 202 can be configured to fetch and execute computer-readable instructions stored in the computer-readable media 204, a mass storage device, or other computer-readable media. The computer-readable media 204 may include instructions that, when executed by the one or more processors 202, cause the processors to perform the operations described herein for the testing service 110. In some embodiments, the computer-readable media 204 may store a replay module 206, a comparator module 208, a metrics module 210 and associated components, a logger module 212 and associated components, and a controller module 214 and associated components, which are described in turn. The components may be stored together or in a distributed arrangement.
The replay module 206 may operate to replay the intercepted requests 124 to the candidate stack 114 and, in a least some cases, the authority stacks 116A and 116B. In the following discussion, it should be understood that the authority stacks 116A and 116B may not be utilized for all operations of the testing service 110 (e.g. in operations in which production responses 130 and/or the results of authority requests to the production system 106 are utilized). Thus, simultaneous discussion of the operations of the candidate stack 114 and authority stack 116 is for convenience and not limitation.
In summary, in some implementations, the replay module 206 operates to impersonate the entity making the request and interacts with the candidate stack 114 and authority stacks 116A and 116B in accordance with this role. In some implementations, the replay module 206 operates to dynamically modify at least some of the parameters of the intercepted requests 124 before replaying the requests to the candidate stack 114 and authority stacks 116A and 116B as the candidate requests 130 and authority requests 132A and 132B. For example, the replay module 206 may modify candidate requests 130 to the candidate stack 114 to simulate specific behavior for test purposes. In such an implementation, the replay module 206 may preserve the integrity of the modified candidate request, apart from the intended modifications, to faithfully replay the candidate request 130.
As mentioned above, in some implementations, the candidate stack 114 may operate a candidate software system which is a different implementation of the software system operated by the production stack 106 or the authority stacks 116 (e.g., an implementation utilizing a different framework or interface to similar core logic). The candidate stack 114 may also operate a candidate software system which is an entirely different software system to that operated by the production stack 106 or the authority stacks 116. In these and similar scenarios, the replay module 206 may operate to modify the intercepted requests 124 to match a specification of the candidate software system operated by candidate stack 114.
Upon receiving the candidate response 134 and authority responses 136A and 136B corresponding to a particular intercepted request 124, the replay module 206 may extract meta-data for the responses and publish the responses and meta-data to the comparator module 208. Some examples of meta-data that may be extracted include information that may be used to derive latency data or other performance metrics.
The comparator module 208 may receive the candidate response 134 and authority responses 136A and 136B and, with regard to each candidate/authority response set, perform a candidate test between the candidate response 134 and one or more of the authority responses 136A and 136B and a control test between the authority responses 136A and 136B. In some implementations, the comparator module 208 tags and/or classifies at least some of the differences that are ascertained between the responses. For example, the comparator 208 may tag or classify candidate test differences which are specified to be important or unacceptable to the functioning of the software system. As discussed above, at least a part the determination of and/or classification of candidate test differences may be performed by determining if similarly located differences are found in the control test.
In some implementations, extensible modeling language based definitions may be used to define the comparison and replay by the testing service 110 based on a standardized format. Using such definitions, the comparator module 208 may allow differences based on planned functionality changes in the candidate stack 114 to be suppressed (e.g. ignored). In some implementations, such suppression of differences based on planned functionality changes in the candidate stack 114 may be implemented at a variety of levels and/or other modules rather than by the comparator module 208. The results of the comparison module 208 are provided to the metrics module 210 and the logger module 212.
It should be noted that the differences determined in the candidate test and control test are not limited to any particular type of differences. For example, the differences that are tagged may also include processing differences. An example of a processing difference is a difference in the processing of the request which may not change the result of the request or result in a latency difference in the response but which causes non-critical error messages or issues unnecessary or superfluous internal requests and may represent an additional processing burden on another system or process. A large number of such processing differences may cause other services or systems to become overwhelmed without an apparent difference in the timing or content of the response to the request.
In some implementations, the comparator module 208 may utilize the results of the control test with respect to such processing differences to determine whether or not the processing differences detected in the candidate test are likely due to the differences between the software systems of the stacks 114 and 116A and/or 116B. For example, if a latency difference detected in the candidate test is similar to the latency difference detected in the control test, the latency difference of the candidate test, even if significant, is less likely to be due to differences between the candidate software system and authority software system. In some implementations, the comparator module 208 may not perform the evaluations of the results of the comparisons. Rather, the comparisons may be evaluated by other modules, such as the metrics module 210 or a different module or combination of modules.
In some implementations, the comparator 208 may, or may be configurable to, omit and/or filter some of the results that the comparator 208 provides to the metrics module 210. For example, the comparator 208 may omit and/or filter the results based on whether the differences are determined to likely be the result of differences between the candidate software system and the authority software system. In some implementations, such filtering and/or omitting may also be performed by selectively suppressing such differences in the results such that some differences for a candidate response will be reported while other differences will be suppressed.
The metrics module 210 may generate metrics from the results of the processing by the candidate stack 114 and the authority stacks 116 that were provided by the comparator module 208. In some implementations, the statistical analyzer 216 may determine a trend in the number of differences identified by the comparator module 208 to be likely or unlikely to be due to differences in the candidate software system and authority software system, the number of differences identified by the comparator module 208 to be unacceptable, determine the number of unacceptable differences identified, capture the trend and/or cause an alarm to be sent to the dashboard service 118, and so on. The statistical analyzer 216 may determine positive or negative trends for the candidate software system operated by the candidate stack 114. For example, the statistical analyzer 216 may determine that a particular client request is indicative of or correlated with a particular outcome (either good or bad). The statistical analyzer 216 may then indicate or record the trend to enable the dashboard service 118 to report the trend and allow for appropriate action to be taken, if necessary. The statistical analyzer 216 may also use confidence levels when determining the trends. The performance analyzer 218 may determine or measure performance trends based on performance of each of the candidate stack 114 and the authority stack(s) 116. The performance analyzer 218 may determine how the system resources are responding to use of the different versions or software systems, include processing of spikes in activity, response time, memory allocation, throughput, bandwidth, or other system performance measurement attributes. The system performance may be analyzed using business metrics, system level metrics (e.g., memory usage, processor usage, etc.), and/or application level metrics (e.g., bugs, errors, diff count, etc.). For example, the performance analyzer 218 may provide statistics on latency differences between the candidate software system of the candidate stack 114 and the authority software system of the authority stack(s) 116. The metrics module 210 or the comparator module 208 may also determine when a candidate software system operated by the candidate stack 114 includes a bug or other error. Further, in some embodiments, the results of the metrics module 210 and/or the comparator module 208 may be used to identify a failing service in a cascading sequence of service calls where the failing service is a downstream service that is causing differences in one or more upstream services. The results of the statistical analyzer 216 and performance analyzer 218 may be output at least to the logger module 212. As with the comparator 208, the operations of the metrics module 210 may take into account whether differences between the candidate stack response and/or processing and the authority stack response(s) and/or processing are determined to be likely due to the differences in respective software systems. Such operations may be configurable to allow for adjustable inclusion or reporting thresholds based on the determined likelihood that a candidate test difference is due to differences between the software systems. In some implementations, different classifications of candidate test differences may be treated differently based on the determined likelihood that the candidate test differences are due to differences in the software systems.
The logger module 212 shown in
As mentioned above, many operations of the replay module 206, the comparator module 208, the metrics module 210 and the logger module 212, as well as the interceptor 112, are configurable. In the implementation shown in
Similar to the computing architecture 200, the computing architecture 300 may include one or more processors 302 and computer readable media 304 that stores various modules, applications, programs, or other data. The computer-readable media 304 may include instructions that, when executed by the one or more processors 302, cause the processors to perform the operations described herein for the dashboard service 118. In some embodiments, the computer-readable media 304 may store a reporting module 306, a replay module 308, a testing control module 310 and a user interface module 312, which are described in turn. The components may be stored together or in a distributed arrangement.
As mentioned above, the dashboard service 118 provides for interaction with and/or control of the testing service 110. In some implementations, the dashboard service 118 provides the interaction and/or control, in at least two regards. First, the dashboard service 118 collects and parses the results logged by the logger module 212, providing users of the dashboard service 118 with this information. Second, the dashboard service 118 interacts with the controller module 214 to configure the testing service 110, configure the interceptor 112 and/or to setup and request replay of one or more intercepted requests 124. For example, the dashboard service 118 may setup and request the replay of a set of the intercepted requests 124 represented in the logs generated by the request log generator 220 or the intercepted requests 124 as received from the interceptor 112. To select the one or more logged or stored intercepted requests 124 to be replayed, the dashboard service 118 may provide search and display capability for stored requests and differences.
For example, subsequent to a change in the candidate stack 114, the dashboard service 118 may request that the testing service 110 replay the intercepted requests 124 that resulted in meaningful unacceptable differences between the candidate responses 134 and authority response(s) 136 to a new/altered/different candidate stack 114 and, in some implementations, to the authority stack(s) 116 as well. Once the intercepted requests 124 have been replayed, either the testing service 110 or the dashboard service 118 may make a comparison between the new responses and the original responses to determine if the unacceptable differences have been resolved. The general purpose of modules 306-312 in the example implementation shown in
The reporting module 306 may operate to collect or receive the data generated by the logger module 212 and any other data, and prepare the data for presentation to a user via the user interface module 312. For example, the reporting module 306 may collect the trend data generated by the metrics module 210 and prepare this data for presentation in a graph.
In some implementations in which candidate test differences that are determined to likely not be meaningful are tagged but not omitted by the components of the testing service 110, the dashboard service 118 may provide for a variety of user interface controls to allow a dashboard service user to adjust the inclusion or omission of candidate test differences in reports or presentations generated by the reporting module 306. In some implementations, the presentation or formatting of the candidate test differences presented to the user may provide a visual distinction between the likely meaningful differences and likely not meaningful differences. Further, the presentation may have a combination of these features. More particularly, an adjustable threshold or other factor may be set for inclusion of likely not meaningful differences and a formatting or other visual distinction may be provided for those differences included based on the likelihood of the particular differences being meaningful. In a more concrete example, in an output report showing differences on a line by line basis, candidate test differences that are likely meaningful may be presented with black text highlighted in yellow and candidate test differences that are likely not meaningful may be presented as grey text without highlighting. Of course, these are merely examples of the utilization of the likelihood of candidate test differences being meaningful and many variations are possible.
The replay module 308 may operate in the manner discussed above to cause one or more of the logged intercepted requests 124 to be replayed. In some implementations, this is performed by requesting that the testing service 110 replay the intercepted requests 124, possibly with any desired changes in the setup. Though not illustrated in the figures, in some implementations, the replay module 308 may include a copy of the candidate stack 114, the authority stack(s) 116, and/or a new/altered/different candidate stack or the replay module 308 may interact directly with the software system of one or more of these stacks or the production stack 108. In such an implementation, the replay module 308 may replay the intercepted requests 124 directly to the appropriate software system and/or make the appropriate analysis of the results. As discussed above, one example reason for replaying the intercepted requests 124 may be to determine if a changed candidate software system has reduced, eliminated, or exacerbated any unacceptable meaningful differences between the candidate response 134 and authority response(s) 136. The results of the replay of the intercepted requests 124 would be passed, for example, to the reporting module 306 for preparation for presentation to the user via user interface module 312 (possibly after being analyzed by the comparator module 208, the metrics module 210, the logger module 212, and/or other similar modules). In the case of such a replay, a new control test may be performed or, if present, the logged information regarding the initial control test may be utilized for the replay results.
As mentioned above, the testing control module 310 may operate to allow for configuration and/or control of the testing service 110 by, for example, a user of the dashboard service 118 interacting with the dashboard service 118 through the user interface module 312. An example control that may be performed by the control module 310 would be to configure comparator module 208 to tag differences in specific fields for audit and display purposes rather than all fields. Another example control that may be performed by the control module 310 would be to configure the intercept parameters of the interceptor 112 (e.g., the percentage of client requests to intercept, the maximum number of client requests to be intercepted in a given time period, types of client requests to intercept, etc.) Another example control that the control module 310 may provide to a user of the dashboard service 118 would be to provide an interface for configuring the candidate testing and control testing and the behavior of the various modules of the testing service 110 that result from different scenarios of such testing. For example, as discussed above, the testing service 110 may be configured to omit, filter, suppress or otherwise distinguish candidate test differences that, based at least in part on comparison with the control test results, do not appear to be caused by differences between the candidate and authority software systems. In some implementations, the control module 310 may be utilized to set thresholds, categorical treatments and/or other factors for determining what type of treatment a determined difference is to be given (e.g. omitted, included, partially included, visually set off, etc.) As indicated above, the user interface module 312 of the dashboard service 118 may present a user interface to dashboard service users to allow for interaction by the dashboard user with the testing service system.
The dashboard service 118 discussed above may be used to control the testing service 110 in various ways such as those discussed below.
As alluded to previously, through interaction with the dashboard service 118, a dashboard user is able to configure the duration of the testing, such as by configuring conditions upon which the interceptor 112 stops intercepting requests to the production system 106. Some types of conditions are described below.
One example condition for controlling the duration of the testing is a specified mix of use cases represented by the intercepted requests 124, such as a number m of first use case requests, a number n of second use case requests, and so on. Use cases of particular intercepted requests 124 could be determined by the tagging and/or classifying function of the comparator module 208 discussed above. In addition to using the mix of use cases to drive the duration of the testing, the dashboard service 118 could use the determined use cases to provide information on the distribution of use cases to the dashboard users via the reporting module 306 and user interface module 312. In some implementations, the use case reporting may be updated on a real-time basis as intercepted requests 124 are received by the testing service 110 and processed. Such use case information could be presented in a textual manner or in a visualization (such as a chart) for ease of comprehension. The determination of use cases and subsequent presentation of the distribution of the use cases represented by the intercepted requests 124 that have been processed may also be performed without the use of this information to control the duration of the testing.
Another example condition for controlling the duration of the testing is a measure of code coverage. For example, the testing service system could be configured to continue the testing until a defined percentage or other measurement of the code of the candidate stack 114 has been tested to a satisfactory degree. One example implementation to determine code coverage of an intercepted request would be to instrument code of the candidate stack 114 to be tested such that when a portion of the code is executed, it outputs an indication of its execution. Such instrumenting could be coded into the source code of the candidate software system but selectively compiled based on a flag during the compilation process. Thus, when a candidate software system is to be generated by the compiler for testing, the flag would be set and the code coverage instrumentation code would be compiled into the candidate software system. When the candidate software system is to be used as a production software system, the flag would not be set and the compiler would ignore the code coverage instrumentation code.
Further, the testing service system described herein may also be integrated with a source code control system of the software system being tested to allow for identification of code changes that resulted in deviance from expected results and/or to identify the code paths which map to the differences in responses between the candidate stack 114 and the authority stacks 116. For example, for a meaningful difference that occurs between a candidate software system and an authority software system that are versions of the same software system, a developer may be provided with information related to changes in the source code of the software system between the candidate software system and the authority software system and that are also associated with the generation of the logical location of the difference, if applicable.
Integration with the source code control system may also allow the testing service system to include an automatic source code rollback function for the candidate software system of the candidate stack 114. For example, based on threshold of meaningful unacceptable differences, latency increases or the like, the dashboard service 118, either through program logic or explicit user instruction, could instruct the source code control system to rollback changes to the source code of the candidate software system being tested. In addition to using the code coverage to drive the duration of the testing, the dashboard service 118 could use the determined code coverage to provide information on the code coverage to dashboard users via the reporting module 306 and the user interface module 312. As with the use case reporting, in some implementations, the code coverage reporting may be updated on a real-time basis as intercepted requests 124 are received by the testing service 110 and processed. Such code coverage information could be presented in a textual manner or in a visualization (such as a chart or graph) for ease of comprehension. Of course, the determination of code coverage and subsequent presentation thereof may be performed without the use of this information to control the duration of the testing.
In addition, the dashboard service 118 may provide a dashboard user with a user interface (e.g. via the user interface module 312) to cause the testing control module 310 to configure the testing service 110, the candidate stack 114 and the authority stacks 116 for a given test. For example, prior to executing a given test, the user may be able to configure the software systems, software system versions, end points, fleets, and the like to be used for the candidate stack 114 and/or authority stack(s) 116.
In a first particular example, the dashboard user may utilize the dashboard service 118 to select system resources to operate one or more of the candidate stack 114, the authority stack(s) 116, the interceptor 112 or other aspects of the system (e.g., one or more machines of a fleet of machines, one or more distributed computing resources available for provisioning, etc.). The dashboard user may then utilize the dashboard service 118 to select the software systems, software versions, end points, fleets, and the like to be used for the candidate stack 114 and/or authority stack(s) 116. Once system resources are selected and system parameters are input, the dashboard user may cause the dashboard service 118 to control the startup of the candidate stack 114, the authority stack(s) 116 and/or other aspects of the testing service 110 based on the parameters selected by the dashboard user. In an example startup of the candidate stack 114, the user may select one or more machines included in available system resources, choose a particular candidate software system and cause the selected machines to be provisioned with the candidate software system (i.e., install the candidate software system on the machines and perform any other setup process(es) needed to provision the selected machines).
In a second particular example, the dashboard user may utilize the dashboard service 118 in the same manner to select the parameters for the testing service 110 except that the user may select system resources already provisioned with the software systems and the like to be utilized. In such a case, the user may be provided with user interface controls to select any endpoint that matches the parameters of the software systems indicated.
While the above discussion includes particular examples of controls that may be provided to the dashboard user by the dashboard service 118, implementations are not so limited and such details may vary from implementation to implementation. For example, in some implementations, the user may be provided with a combination of the particular examples of selecting parameters for the testing service 110. In a particular example, some implementations of the dashboard service 118 may provide functionality to select either or both pre-provisioned and unprovisioned system resources for utilization by the testing service 110. These and other variations would be apparent to one of ordinary skill in the art in view of this disclosure.
At 402, the interceptor 112 intercepts a client request 120 from the user 102 to the production system 106. At 404, the interceptor 112 forwards a production request 122 to the production stack 108 and forwards a duplicate of the request to the testing service 110 as an intercepted request 124. At 406, the production stack 108 processes the production request 122 normally such that a production response 126 is sent back to the user device 104 as a client response 128. In the implementation illustrated in
At 408, the testing service 110 receives an instruction to initiate testing and, based on the instruction, sends at least some of the intercepted requests 124 to the candidate stack 114 and authority stacks 116A and 116B for processing as the candidate requests 130 and authority requests 132A and 132B.
At 410, the candidate stack 114 and authority stacks 116A and 116B receive the candidate requests 130 and authority requests 132A and 132B, respectively. Then, the candidate stack 114 and authority stacks 116A and 116B process the requests based on their respective software systems and return the candidate responses 134 and authority responses 136A and 136B to the testing service 110, respectively. As stated above regarding
Other implementations may provide support for stateless testing for transaction-based (i.e., stateful) services. For example, such implementations may provide hooks in the software system of the candidate stack 114 to avoid the side effect of storing data in a persistent data store. This may allow requests to be sent to the candidate stack without resulting in storage of transactional data. Additionally or alternatively, some implementations may provide for testing of stateful services using stubbing to avoid side effects and to test communications by candidate software systems with services the candidate software systems depend upon. An example of using stubbing in this manner is discussed more fully with regard to
At 412, the testing service 110 performs a candidate test and a control test using the candidate response 134 and authority responses 136A and/or 132B. Based on the results of the candidate test and the control test, the testing service 110 may determine or evaluate the candidate test difference for “meaningfulness.” Such a meaningfulness evaluation may provide the evaluation as a value on a scale (0-100), a true or false value scale or another manner of representing the result. The testing service 110 also analyzes the responses and, based on one or more candidate/authority and authority/authority response pairs, may derive metrics for the stacks on both a request by request basis and an aggregate basis.
At 414, the testing service 110 may log the results of the comparison and derivation analysis with the requests and responses (as well as any other data regarding the processing to this point, depending on the implementation). The testing service 110 may store the logged information in a variety of ways.
In some implementations, the logged intercepted requests and associated information may be stored in a searchable catalog organized in a hierarchical manner. For example, the following might be paths in the hierarchy:
NA→US→Company the retailer→digital items→address is in New York
NA→US→Company the retailer→movies→address is in California
NA→US→third party sellers→books→address is in Michigan
NA→CA→third party sellers→books→address is in Ontario
EU→UK→Company the retailer→music items→address is in London
EU→DE→Company the retailer→music items→address is in Berlin
For each node in the hierarchy, the testing service 110 may provide support to replay all or a subset of the intercepted requests under that node.
In some implementations, the stored logs provide support for an additional type of testing not explicitly mentioned above. In particular, using the stored logs including stored requests and responses, the testing service 110 may also provide support for regression testing. In other words, the testing service 110 may be capable of running a full regression suite from a node in the request/response catalog against a candidate software system by replaying the stored requests and comparing the candidate responses against the stored responses (e.g. production or authority responses). This way, a new candidate software system may be thoroughly regression tested using a large number of “realistic” production requests (as much as hundreds of thousands, millions or more). Such testing is based on the principle that the behavior in production (or the behavior of an authority version) may be presumed to be correct and therefore the stored responses can be used to qualify new candidate software systems, for example, prior to the testing described above with respect to
Another storage option is to create an index where each intercepted request is labeled with a unique ID. Such an index may resemble the following:
Company SOR ID: request_01, request_02, . . .
E-Book Item: request_04, request_02, . . .
US Order International ship address: request_04
This second option allows for a single request to be mapped to multiple scenarios. To express the hierarchical paths in such an index, the testing service 110 could use set intersection. The generation of the request repository and generation of the meta-data index may be automated and regenerated from production requests. In some implementations, the repository generation process may continue until a specified index is “complete,” meaning each entry in the index maps to at least one request or even that specific combinations of indexes exist, e.g. Non-Company SOR AND E-book. Such an index may provide for very specific use cases to be regression tested with limited numbers of other use cases being exercised. By utilizing this or another indexing scheme, some implementations may provide indexing based on the code coverage or use cases represented by the indexed requests. Thus, in some implementations, rather than testing one hundred thousand to ten million requests and relying on the assumption that the large number of previously tested requests provide the coverage needed, a smaller number of requests may be tested with a higher degree of certainty that the coverage is provided. Further, when a regression test fails, a user may immediately know what use case or code path failed.
In such a system, the use case information or code coverage information may be used to create a test case repository of test cases that map to sets of logged requests. Such test cases may be generated to be small sets of requests that exercise desired levels of code coverage (e.g., the smallest set of requests that give the desired code coverage). For example, in building a test case for a code coverage instrumented candidate stack, as each new request that may be added to the test case is processed, the testing service may determine if code not previously exercised by the test case request set is exercised by the new request. If so, the new request may be added to the test case request set. If not, the new request may not be added to the test case request set. In this way, the overall code coverage of the test case may be increased without substantial increase in the number of requests in the test case set. Depending on the implementation and the purpose of the test case, many variations are possible. For example, the determination as to whether a new request should be added to the test case may be based on how many requests in the test case set already exercise the code exercised by the new request. For example, for some code, the test case developer may desire multiple requests be processed. At the same time, for other code, the developer may desire two requests be added for the purpose of exercising the code.
In another variation, the system may determine the particular code exercised by the requests. This information may be stored with the request as a request signature. When building a test case, the system may add requests based on the number of requests with the same test signature already present in the test case set. For example, a developer may desire two request be included for each test signature. Alternatively or additionally, the developer may desire that two requests be included for each test signature but for some set of indicated test signatures, a different number be included. Further, in such a system, the request may be indexed in a repository by the test signatures.
In some implementations, if the user knows the behavior of the software is going to change between the authority or production software system and the candidate software system, the user may be able to exempt use cases based on the meta-data affected by the behavior change. In addition or alternatively, some implementations may index the requests based on other criteria such as candidate test differences, control test differences, latency differences, processing differences, amount or other measure of any difference between candidate test differences and the control test differences (e.g. an absolute value, a ratio, a percentage, etc.). As such, the additional or alternative indexes may be utilized to provide requests that reflect such criteria.
At 502, the dashboard service 118 configures the testing service 110 according to input from a dashboard user. Once the testing service 110 is configured, the dashboard service 118 instructs the testing service 110 to begin testing. Although, direct communication with the interceptor 112 by the dashboard service 118 is implied in this discussion, such is not always the case as the testing service 110 may handle the configuration and instruction of the interceptor 112 based on its own instructions from the dashboard service 118. Moreover, it should be noted that with regard to the control of the testing service 110 by the dashboard service 118, this is merely an example implementation. The dashboard service 118 is not required for the operation of the testing service 110 in all implementations. In other words, the testing service 110 may operate independently or exclusive of the dashboard service 118. For example, the testing service 110 may include logic or instructions to determine the configuration without input from the dashboard service 118. Alternatively, the testing service 110 may have an internal means by which users or other applications may configure its settings. In still further implementations, the testing service 110 and the dashboard service 118 of the testing service system may be merged into a single device or application; or the various parts, modules, or the operations performed by the testing service 110 and the dashboard service 118 may be reorganized amongst them. For example, the metrics module 210 may be a component of the dashboard service 118 rather than the testing service 110.
At 504, the dashboard service 118 presents the results of and/or a summary of the results of a comparison of a pair including a candidate response 134 and a corresponding authority response 136, aggregate information over a plurality of comparisons of candidate responses 134 and corresponding authority responses 136 and/or other metrics for at least one intercepted request 124. The dashboard service 118 may further provide built-in alarming for notifying dashboard users or other appropriate parties, such as the owners of the software system being tested, of deviation from expected results. Depending on the implementation, the presented information may omit information regarding differences that were determined to be unlikely to be meaningful, present such information separately, present the information at the same time but with visual distinction, and so on. Further, the user may be provided with a user interface option to adjust the treatment of such information (e.g., a “meaningfulness score” for inclusion, visual distinctions, etc.).
At 506, the dashboard service controller or user selects at least one logged intercepted request for replay. Depending on the users' intent, the dashboard service 118 may provide the user with options to select the fields of the response structure to make the comparison on as well as which fields to include in the request log report. For example, in some cases, the dashboard user knows that some fields will be changed due to a change in function or the fields may be randomly generated. In such a case, the user may wish to have one or more such fields excluded from the analysis (e.g., by not being analyzed or by continuing to analyze and store information about the field but excluding the field from reporting). Moreover, in some implementations, the dashboard service 118 may provide the user with an interface to select or exclude fields of the requests and/or responses to be tested as the requests are being replayed. For example, if, after initiating an extensive testing process, the user finds that a field or portion of the requests and/or responses to be tested is the subject of multiple differences in the reports of the ongoing testing and that the differences are due to the field or portion being randomly generated, the user may be provided with a control to ignore the field or portion in further reports. Such functionality may be useful where restarting the testing process based on additional exclusions is disadvantageous. Similar, possibly automated functionality, may be included in some implementations that operates to exclude differences determined to not be meaningful based on the comparison of the candidate test differences with the control test differences. Further, similar functionality may be provided to allow the user to select a field whose differences were previously hidden and indicate that in ongoing reports the differences for the field should be shown or reported (e.g., the user determines that the exclusion of the field from the report was accidental or in error).
At 508, the dashboard service 118 requests the testing service 110 replay the selected at least one logged intercepted request in the manner specified. At 510, the dashboard service 118 receives the results of the requested replay from the testing service 110. At 512, the dashboard service 118 compares the results for the corresponding intercepted response or prior candidate response from the candidate stack 114 with the results of the replay and presents a report to a dashboard user based thereon. For example, in a situation in which the intercepted requests that were selected for replay were intercepted requests corresponding to candidate responses 134 that differed unacceptably from the corresponding authority/production responses 136/124 and a “fix” has since been applied to the candidate software system of the candidate stack 114, the report regarding the replay presented to the user by the dashboard service 118 may indicate to what extent, if any, the unacceptable differences have been reduced.
Initially, the learning test system 602 receives intercepted requests 124 and submits the intercepted requests 124 to the learning system 604. The machine learning comparator 608 of the learning system 604 submits the intercepted requests 124 to the learning candidate system 610 and to the learning authority systems 612A and 612B. The learning candidate system 610 and the learning authority systems 612A and 612B process the intercepted requests 124 and return responses to the machine learning comparator 608 based on their respective software systems.
The machine learning comparator 608 performs candidate tests and control tests using responses from the learning candidate system 610 and learning authority systems 612A and 612B. The machine learning comparator 608 may cause the evaluation logic 614 to process the candidate test differences based on its current state to evaluate the candidate test differences (e.g., whether each difference is meaningful).
The results of the evaluation by the evaluation logic 614, the candidate test, the control test, and other information may be provided to a user of the learning system dashboard service 606 to obtain feedback regarding the evaluation of the differences of the candidate test (e.g., whether the evaluation(s) of the candidate test differences as meaningful or not meaningful were correct). The feedback may be returned to the learning system 604.
The machine learning comparator 608 may utilize the information obtained from the user and the results of the candidate test and the control test as training data to adapt the evaluation logic 614 (with the goal of improving the accuracy of the evaluation of the candidate test differences).
As illustrated in
In some implementations, upon receiving the evaluation logic 614, the learning testing service 602 may operate in a similar manner to that discussed above with regard to
Having determined the meaningfulness of the candidate test differences, the learning testing service 602 of
At 702, the learning system 604 receives and stores the intercepted requests 124 in a memory for processing. At 704, the machine learning comparator 608 of the learning system 604 issues candidate and authority requests to the learning candidate system 610 and the learning authority systems 612A and 612B. At 706, the machine learning comparator 608 receives the learning candidate responses and learning authority responses from the learning candidate system 610 and the learning authority systems 612A and 612B.
At 708, the machine learning comparator 608 may perform candidate tests and control tests for the received responses. At 710, the machine learning comparator 608 may cause the evaluation logic 614 to assign a preliminary evaluation to the candidate test differences based on the current iteration of the evaluation logic 614. At 712, the learning system 604 may present a difference report to a user of the learning system dashboard service 606 based on the candidate test and the control test along with the preliminary evaluations by the current iteration of the evaluation logic 614.
At 714, the learning system 604 may receive user feedback regarding the accuracy of the preliminary evaluations of the differences by the evaluation logic 614. At 716, the candidate test results, control test results, the preliminary evaluations and the user feedback may be input as training data to adapt the evaluation logic 614 using machine learning.
At 718, the learning system 604 may determine if the evaluation logic 614 has reached a threshold confidence level in the evaluation of candidate test differences or if the learning system dashboard user has issued an instruction to provide the learning testing service 602 with the evaluation logic 614. If not, the process may return to 702 and repeat. Otherwise, the process may continue to 720 and the learning system 604 may output the current iteration of the evaluation logic 614 to the learning testing service 602. As previously mentioned, if the evaluation logic 614 is output to the learning testing service 602, the learning system 604 may enter an inactive state as illustrated or the process may return to 702 and continue iterations of the process of
At 802, the learning testing service 602 may receive the evaluation logic from the learning system 604. At 804, the learning testing service 602 may send a candidate request 130 to the candidate stack 114 and an authority request 132 to the authority stack 116 (i.e., possibly one authority request 132 per candidate request 130 rather than a plurality of authority requests 132 discussed with regard to
At 808, the learning testing service 602 may perform a candidate test using the candidate response 134 and authority response 136 to identify any candidate test differences. As previously mentioned, in an implementation according to
At 810, the learning testing service 602 derives metrics on a per-request and/or aggregate basis based at least in part on the evaluation of the candidate test differences. As discussed above, in some implementations, different treatment may be applied to candidate test differences evaluated to be unlikely to be meaningful or such differences may be omitted from reports altogether. At 812, the learning testing service 602 logs the result of the comparison and derivation along with the request/response set. Thereafter, the process of
While
In
In operation, the testing module 914 of the testing service 902 operates to issue a control request 922 to the control system 904. During the processing of the control request 922 by the control system 904, the control system 904 issues a first intermediate control request 924 to the service A 908. The service A 908 responds with a first intermediate control response 926. Upon receiving the first intermediate control response 926, the control system 904 continues processing the control request 922 and subsequently issues a second intermediate control request 928 to the service B 910. The service B 910 processes the second intermediate request 928 and responds to the control system 904 with a second intermediate control response 930. Upon receiving the second intermediate control response 930 from the service B 910, the control system 904 completes the processing of the control request 922 to generate a control response. As the foregoing interactions occur, the capture module 912 captures the first intermediate control request 924, the first intermediate control response 926, the second intermediate control request 928 and the second intermediate control response 930. The communications 924-930 and the control response are sent to the testing service 902 as the control data 932.
In some implementations, a plurality of control requests 922 are issued for each request being tested. The testing module 914 of the testing service 902 may utilize the control data 932 for a first control request and a second control request to perform a control test on, and determine control differences for, the communications 924-930 and the control responses.
The control differences and control data 932 may be provided to the handling module 916 to assist the testing service 902 in processing the candidate request. For example, based on the control data 932, the testing module 914 may operate to provide the handling module 916 with information about the expected communications for the candidate request corresponding to the control request 922 (e.g., sequence and form of the intermediate candidate communications). For example, the handling module 916 may maintain a list of expected intermediate communications and, as the communications are received, mark the corresponding list item as received. Further, the handling module 916 may use the control differences for the intermediate control communications to eliminate fields of the intermediate candidate communications from consideration or otherwise assist the handling module 916 in determining the expected communication to which each received intermediate candidate communication corresponds.
Having received and processed the control data 932, the testing module 912 may send a candidate request 934 to the candidate system 906. During the processing of the candidate request 934 by the candidate system 906, the candidate system 906 issues a first intermediate candidate request 936 to the testing service 902. The handling module 916 for the testing service 902 may utilize, for example, destination information as well as information derived in the control testing to recognize that the first intermediate candidate request 936 corresponds to the first intermediate control request 924 to provide the first intermediate candidate request 936 to the service A stub 918. Upon receiving the first intermediate candidate request 934, the service A stub 918 may respond with a first intermediate candidate response 938 which is forwarded to the candidate system 906 by the handling module 916. Upon receiving the first intermediate candidate response 938, the candidate system 906 continues processing the candidate request 934 and subsequently issues a second intermediate candidate request 940 to the testing service 902. The handling module 916 and the service B stub 920 may operate in a similar manner to that discussed above with regard to the first intermediate candidate request 934 to respond to with the second intermediate candidate response 942. Upon receiving the second intermediate candidate response 942, the candidate system 906 completes the processing of the candidate request 934 to generate a candidate response 944. As the interactions with the candidate system 906 occur, the handling module 916 may operate as discussed above to mark items of a list of expected intermediate communications as received. This may assist the handling module 916 in identifying the received intermediate communications and in determining that the expected interactions are complete.
Once the processing of the candidate request 934 is complete, the intermediate candidate communications 936-944 and the candidate response 944 may subjected to candidate testing using control data 932 for at least one control request 922 to generate determine candidate differences. Then, the candidate test differences may be evaluated for meaningfulness based on control differences. As such, meaningful differences may be ascertained for both the candidate response 944 as well as for the intermediate communications 936-942. Thus, implementations such as that illustrated in
In some implementations, the testing service 902 may perform additional or special operations when testing the intermediate communications. For example, when the stubs do not actually perform the functions of the impersonated services and instead reply with preprogramed “correct” responses based on, for example, order of reception, it is possible for the testing service 902 to overlook or otherwise ignore variations that are meaningful or erroneous in the intermediate candidate requests from the candidate system 906. For example, if the first intermediate candidate request 936 generated by the candidate system 906 has errors and the service A stub 918 responds with the correct first intermediate candidate response 938 corresponding to a correct first intermediate candidate request 936, the testing of the candidate system 906 becomes unreliable and inaccurate because any processing performed by the candidate system 906 based on such a correct first intermediate candidate response 938 may suppress the error. For example, without the use of stubbing, when the service A 908 processes the erroneous first intermediate candidate request 936, the error may propagate through the intermediate communications and into the candidate response 944. As such, the error would be detectable by candidate testing. For this reason, in some implementations, it may be desirable to perform candidate testing and control testing on the intermediate candidate requests as the intermediate candidate requests are received from the candidate system 906 by the testing service 902. In this way, errors may be determined as the errors occur and, depending on the intent of the user of the testing service 902, the errors may be noted and suppressed for ongoing operations or the erroneous intermediate candidate request may be provided to the actual service, for example service A 908, such that the error maybe propagated to test the effect of the error on the generating of the candidate response 944.
While this disclosure provides various example implementations, as described and as illustrated in the drawings. However, this disclosure is not limited to the implementations described and illustrated herein, but can extend to other implementations, as would be known or as would become known to those skilled in the art. For example, in some implementations, the system may obtain a plurality of candidate responses for the intercepted requests in addition to or as an alternative to the plurality of control responses and may perform a variation of control testing using the plurality of candidate responses in addition to or as an alternative to the previously described control testing of the plurality of control responses. Moreover, in some implementations, both control response may not be obtained for every candidate request. Rather, in some operations, the second control request may be issued after differences are detected in the candidate testing.
Further, while the implementations illustrated and discussed herein are provided in the context of a testing service utilizing intercepted requests. The techniques and systems according to this disclosure are not so limited. In other words, the techniques and systems described herein may be applied to a variety of contexts. For example, rather than being part of a system that intercepts client requests, some implementations may be provided with test case sets that are artificial (e.g. developer generated) or otherwise not collected or intercepted by a system of which the testing service is a part. These and many other variations would be apparent to one of ordinary skill in the art in view of this disclosure.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as illustrative forms of implementing the claims.
Number | Name | Date | Kind |
---|---|---|---|
6427000 | Mumford et al. | Jul 2002 | B1 |
6701514 | Haswell et al. | Mar 2004 | B1 |
6981180 | Bailey et al. | Dec 2005 | B1 |
7818666 | Dorsett, Jr. | Oct 2010 | B2 |
8001422 | Sun et al. | Aug 2011 | B1 |
8087001 | Hoyek | Dec 2011 | B2 |
8112262 | Michelsen | Feb 2012 | B1 |
8117598 | Johnson | Feb 2012 | B2 |
8161458 | Johnson | Apr 2012 | B2 |
8201159 | Gschwind | Jun 2012 | B2 |
8261239 | McGrath | Sep 2012 | B2 |
8826240 | Lachwani et al. | Sep 2014 | B1 |
8990778 | Allocca et al. | Mar 2015 | B1 |
9009669 | Pletter | Apr 2015 | B2 |
9292822 | Hankins | Mar 2016 | B2 |
20020066077 | Leung | May 2002 | A1 |
20020116153 | Wybouw-Cognard | Aug 2002 | A1 |
20030065975 | Tuttle | Apr 2003 | A1 |
20040068713 | Yannakoyorgos et al. | Apr 2004 | A1 |
20050216471 | Yee et al. | Sep 2005 | A1 |
20050257086 | Triou et al. | Nov 2005 | A1 |
20060026465 | Kwong et al. | Feb 2006 | A1 |
20060101476 | Robert | May 2006 | A1 |
20060123389 | Kolawa et al. | Jun 2006 | A1 |
20080082968 | Chang et al. | Apr 2008 | A1 |
20080282112 | Bailey et al. | Nov 2008 | A1 |
20080313616 | Malcolm | Dec 2008 | A1 |
20090132999 | Reyes | May 2009 | A1 |
20090158266 | Celli et al. | Jun 2009 | A1 |
20100325616 | Singonahalli et al. | Dec 2010 | A1 |
20110222407 | Matsuo et al. | Sep 2011 | A1 |
20110246971 | Chua et al. | Oct 2011 | A1 |
20110307860 | Park | Dec 2011 | A1 |
20120047492 | Huang et al. | Feb 2012 | A1 |
20120291014 | Shrinivasan | Nov 2012 | A1 |
20130117609 | Dande et al. | May 2013 | A1 |
20140026122 | Markande et al. | Jan 2014 | A1 |
20140068567 | Smith et al. | Mar 2014 | A1 |
20150339217 | Avgerinos | Nov 2015 | A1 |
20150378871 | Asthana | Dec 2015 | A1 |
Entry |
---|
Garriga et al., Testing-based Process for Service-oriented Applications, 2011, 10 pages. |
Jiang et al., Adaptive Random Test Case Prioritization, Nov. 2009, 12 pages. |
Office Action for U.S. Appl. No. 14/038,583, mailed on Oct. 10, 2014, Samuel Leonard Moniz, “Duplicating Proxy Service”, 43 pages. |
Office Action for U.S. Appl. No. 14/038,619, mailed on Oct. 14, 2014, Samuel Leonard Moniz, “Duplicating Proxy Service”, 43 pages. |
Office action for U.S. Appl. No. 14/038,619 mailed on Feb. 10, 2016, Moniz et al., “Duplicating Proxy Service”, 63 pages. |
Office action for U.S. Appl. No. 14/038,583, mailed on Feb. 11, 2016, Moniz et al., “Duplicating Proxy Service ”, 53 pages. |
Final Office Action for U.S. Appl. No. 14/038,619, mailed on Mar. 13, 2015, Samuel Leonard Moniz, “Duplicating Proxy Service”, 48 pages. |
Office Action for U.S. Appl. No. 14/038,583, mailed on Mar. 19, 2015, Samuel Leonard Moniz, “Duplicating Proxy Service”, 43 pages. |
Office action for U.S. Appl. No. 14/038,583, mailed on Jul. 14, 2016, Moniz et al., “Duplicating Proxy Service”, 54 pages. |
Office action for U.S. Appl. No. 14/038,619, mailed on Aug. 26, 2015, Moniz et al., “Duplicating Proxy Service”, 59 pages. |
Office action for U.S. Appl. No. 14/038,583, mailed on Aug. 27, 2015, Moniz et al., “Duplicating Proxy Service”, 61 pages. |