Fixture plugin for product automation

US2018060220A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2018060220-A1
Application numberUS-201615244364-A
CountryUS
Kind codeA1
Filing dateAug 23, 2016
Priority dateAug 23, 2016
Publication dateMar 1, 2018
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

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.

First claim

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.

Assignees

Inventors

Classifications

  • G06F11/36Primary

    Prevention of errors by analysis, debugging or testing of software · CPC title

  • for test design, e.g. generating new test cases · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2018060220A1 cover?
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.…
Who is the assignee on this patent?
Linkedin Corp
What technology area does this patent fall under?
Primary CPC classification G06F11/36. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Mar 01 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).