Automated test input generation for integration testing of microservice-based web applications

US2020026641A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2020026641-A1
Application numberUS-201916587625-A
CountryUS
Kind codeA1
Filing dateSep 30, 2019
Priority dateAug 5, 2016
Publication dateJan 23, 2020
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 for automated generation of inputs for testing microservice-based applications are provided. In one example, a computer-implemented method comprises: traversing, by a system operatively coupled to a processor, a user interface of a microservices-based application by performing actions on user interface elements of the user interface; and generating, by the system, an aggregated log of user interface event sequences and application program interface call sets based on the traversing. The computer-implemented method also comprises: determining, by the system, respective user interface event sequences that invoke application program interface call sets; and generating, by the system, respective test inputs based on the user interface event sequences that invoke the application program interface call sets.

First claim

Opening claim text (preview).

What is claimed is: 1 . A system, comprising: a memory that stores computer executable components; and a processor that executes the computer executable components stored in the memory, wherein the computer executable components comprise: an event sequence component that determines respective user interface event sequences that invoke application program interface call sets of an application program interface call graph associated with a microservices-based application; a coverage component that: determines a coverage metric that indicates a coverage of the application program interface call graph by the user interface event sequences, and in response to a determination that the coverage metric indicates that a threshold amount of the application program interface call graph is not covered by the user interface event sequences, initiates a traversal of a user interface of the microservices-based application with one or more mutated user interface event sequences based on one or more mutations of the user interface event sequences. 2 . The system of claim 1 , wherein the coverage component further determines an event sequence for mutation, where the event sequence is determined by the coverage component to invoke an externally visible application program interface that is at least one of directly or indirectly connected with an uncovered edge of the annotated application program interface call graph. 3 . The system of claim 2 , wherein the user interface crawling component mutates the event sequence to invoke the externally visible application program interface with at least one of a different parameter. 4 . The system of claim 2 , wherein the user interface crawling component mutates the event sequence to invoke the externally visible application program interface with at least one a different parameter value. 5 . The system of claim 2 , wherein the user interface crawling component mutates the event sequence by deletion of an event of the event sequence that contributes at least one parameter to invocation of the externally visible application program interface. 6 . The system of claim 2 , wherein the user interface crawling component mutates the event sequence by addition of an additional event to the event sequence that contributes at least one additional parameter to invocation of the externally visible application program interface. 7 . The system of claim 2 , wherein the user interface crawling component mutates the event sequence by modification of at least one data value of at least one event of the event sequence. 8 . A computer-implemented method, comprising: determining, by a system operatively coupled to a processor, respective user interface event sequences that invoke application program interface call sets of an application program interface call graph associated with a microservices-based application; determining, by the system, a coverage metric that indicates a coverage of the application program interface call graph by the user interface event sequences, and in response to a determination that the coverage metric indicates that a threshold amount of the application program interface call graph is not covered by the user interface event sequences, initiating, by the system, a traversal of a user interface of the microservices-based application with one or more mutated user interface event sequences based on one or more mutations of the user interface event sequences. 9 . The computer-implemented method of claim 8 , further comprising determining, by the system, an event sequence for mutation, where the event sequence is determined by the coverage component to invoke an externally visible application program interface that is at least one of directly or indirectly connected with an uncovered edge of the annotated application program interface call graph. 10 . The computer-implemented method of claim 9 , further comprising mutating, by the system, the event sequence to invoke the externally visible application program interface with at least one of a different parameter. 11 . The computer-implemented method of claim 9 , mutating, by the system, the event sequence to invoke the externally visible application program interface with at least one a different parameter value. 12 . The computer-implemented method of claim 9 , mutating, by the system, the event sequence by deletion of an event of the event sequence that contributes at least one parameter to invocation of the externally visible application program interface. 13 . The computer-implemented method of claim 9 , mutating, by the system, the event sequence by addition of an additional event to the event sequence that contributes at least one additional parameter to invocation of the externally visible application program interface. 14 . The computer-implemented method of claim 9 , mutating, by the system, the event sequence by modification of at least one data value of at least one event of the event sequence. 15 . A computer program product for automatically generating test inputs for testing of a microservices-based application, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processing component to cause the processing component to: determine respective user interface event sequences that invoke application program interface call sets of an application program interface call graph associated with a microservices-based application; determine a coverage metric that indicates a coverage of the application program interface call graph by the user interface event sequences, and in response to a determination that the coverage metric indicates that a threshold amount of the application program interface call graph is not covered by the user interface event sequences, initiate a traversal of a user interface of the microservices-based application with one or more mutated user interface event sequences based on one or more mutations of the user interface event sequences. 16 . The computer program product of claim 15 , wherein the program instructions are further executable by the processing component to cause the processing component to: determine an event sequence for mutation, where the event sequence is determined by the coverage component to invoke an externally visible application program interface that is at least one of directly or indirectly connected with an uncovered edge of the annotated application program interface call graph. 17 . The computer program product of claim 16 , wherein the program instructions are further executable by the processing component to cause the processing component to: mutate the event sequence to invoke the externally visible application program interface with at least one of a different parameter. 18 . The computer program product of claim 16 , wherein the program instructions are further executable by the processing component to cause the processing component to: mutate the event sequence to invoke the externally visible application program interface with at least one a different parameter value. 19 . The computer program product of claim 16 , wherein the program instructions are further executable by the processing component to cause the processing component to: mutate the event sequence by deletion of an event of the event sequence that contributes at least one parameter to invocation of the externally visible application program interface 20 . Th

Assignees

Inventors

Classifications

  • Interaction with lists of selectable items, e.g. menus · CPC title

  • monitoring of user actions (tracking the activity of the user H04L67/535) · CPC title

  • Data logging (G06F11/14, G06F11/2205 take precedence) · CPC title

  • G06F9/451Primary

    Execution arrangements for user interfaces · CPC title

  • Graphs; Linked lists (G06F16/9027 takes precedence) · 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 US2020026641A1 cover?
Techniques for automated generation of inputs for testing microservice-based applications are provided. In one example, a computer-implemented method comprises: traversing, by a system operatively coupled to a processor, a user interface of a microservices-based application by performing actions on user interface elements of the user interface; and generating, by the system, an aggregated log o…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F9/451. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Jan 23 2020 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).