Techniques for identifying issues related to digital interactions on websites
US-2024080355-A1 · Mar 7, 2024 · US
US2018060220A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2018060220-A1 |
| Application number | US-201615244364-A |
| Country | US |
| Kind code | A1 |
| Filing date | Aug 23, 2016 |
| Priority date | Aug 23, 2016 |
| Publication date | Mar 1, 2018 |
| Grant date | — |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Techniques are provided for creating mock responses based on default data and mapping actual requests to those mock responses so that a service under test (SUT) may be executed within a simulated integration. In one technique, multiple example requests (ERs) that exemplify actual requests that the SUT may send during a test case are created. Each ER is configured to invoke a downstream service. For each ER, a mock downstream response that is based on default values is created. In a mapping, an association between each ER and its mock downstream response is stored. During the test, the SUT is invoked. Responsively, the SUT generates downstream requests to downstream services, regardless of actual availability. The computer intercepts each invocation of a downstream request. Based on the downstream request, the computer selects a mock downstream response from the mapping and provides the mock downstream response to the SUT.
Opening claim text (preview).
What is claimed is: 1 . A method comprising: creating a plurality of example requests, wherein each example request of the plurality of example requests invokes, when processed, a downstream service of a plurality of downstream services; for each example request of the plurality of example requests: automatically creating a mock downstream response, storing, in a mapping, an association between said each example request and the mock downstream response; invoking a service under test; generating, by the service under test and responsive to the invoking, a plurality of downstream requests to one or more downstream services; for each downstream request of the plurality of downstream requests: intercepting an invocation of said each downstream request, selecting, from the mapping, based on said each downstream request, a particular mock downstream response, and providing the particular mock downstream response to the service under test; wherein the method is performed by one or more computing devices. 2 . The method of claim 1 , wherein automatically creating the mock downstream response further comprises at least one of: creating the mock downstream response based on one or more default values, or customizing the mock downstream response based on one or more custom values. 3 . The method of claim 2 wherein creating the mock downstream response comprises creating a clone of a prototype downstream response. 4 . The method of claim 2 wherein at least one of the one or more custom values is dynamically generated. 5 . The method of claim 2 wherein at least one of the one or more custom values is based on a value within in at least one downstream request of the plurality of downstream requests. 6 . The method of claim 1 wherein creating the mock downstream response is responsive to intercepting at least one of said plurality of downstream requests. 7 . The method of claim 1 wherein creating the plurality of example requests is responsive to intercepting at least one of said plurality of downstream requests. 8 . The method of claim 1 wherein the service under test comprises a web application. 9 . The method of claim 1 wherein: each example request of the plurality of example requests contains one or more values; selecting, based on said each downstream request, the particular mock downstream response comprises matching a subset of the one or more values of said each downstream request to one or more values of an example request of the plurality of example requests. 10 . The method of claim 9 wherein a value of an example request of the plurality of example requests contains a wildcard that matches many values. 11 . The method of claim 1 , further comprising: generating, by the service under test and responsive to the invoking, one or more additional downstream requests to one or more downstream services; for each additional downstream request of the one or more additional downstream requests: intercepting an invocation of said each additional downstream request, detecting, based on said each additional downstream request, that said each additional downstream request should invoke an actual service; in response to detecting that said each additional downstream request should invoke an actual service, using said each additional downstream request to invoke the actual service. 12 . The method of claim 11 wherein detecting that said each additional downstream request should invoke an actual service comprises detecting that the service under test is operating in a particular deployment environment. 13 . The method of claim 1 wherein providing the mock downstream response to the service under test comprises, based on the mapping, delaying providing the mock downstream response for a duration. 14 . The method of claim 1 wherein: the method further comprises repeating the method of claim 1 at least once for a same test case; an ordering in which mock downstream responses are provided to the service under test differs between repetitions of the method of claim 1 for the same test. 15 . The method of claim 1 wherein creating a mock downstream response that is based on default values comprises reading a data dictionary or a schema. 16 . The method of claim 15 wherein reading a schema comprises reading at least one of: an Avro schema, an interface description language (IDL) declaration [eg, Thrift or WSDL], an extensible markup language (XML) schema, a relational schema, or a document type definition (DTD) declaration. 17 . The method of claim 1 wherein selecting the particular mock downstream response from the mapping is further based on a role or a privilege of a user. 18 . The method of claim 1 wherein invoking the service under test is performed by a continuous integration system. 19 . One or more non-transitory machine-readable media storing: first instructions that, when executed by one or more processors, cause creating a plurality of example requests, wherein each example request of the plurality of example requests is configured to invoke a downstream service of a plurality of downstream services; second instructions that, when executed by one or more processors, cause for each example request of the plurality of example requests: creating a mock downstream response that is based on default values, storing, in a mapping, an association between said each example request and the mock downstream response; third instructions that, when executed by one or more processors, cause invoking a service under test; fourth instructions that, when executed by one or more processors, cause generating, by the service under test and responsive to the invoking, a plurality of downstream requests to one or more downstream services; fifth instructions that, when executed by one or more processors, cause for each downstream request of the plurality of downstream requests: intercepting an invocation of said each downstream request, selecting, from the mapping, based on said each downstream request, a particular mock downstream response, and providing the particular mock downstream response to the service under test. 20 . A computer comprising: a memory configured to store example requests, mock downstream responses, and a mapping from example requests to mock downstream responses; a processor connected to the memory and configured to: create a plurality of example requests, wherein each example request of the plurality of example requests is configured to invoke a downstream service of a plurality of downstream services; for each example request of the plurality of example requests, performing: creating a mock downstream response that is based on default values, storing, in a mapping, an association between said each example request and the mock downstream response; invoking a service under test; generating, by the service under test and responsive to the invoking, a plurality of downstream requests to one or more downstream services; for each downstream request of the plurality of downstream requests: intercepting an invocation of said each downstream request, selecting, from the mapping, based on said each downstream request, a particular mock downstream response, and providing the particular mock downstream response to the service under test.
Prevention of errors by analysis, debugging or testing of software · CPC title
for test design, e.g. generating new test cases · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.