CN113111002B - Method, system and medium for automatically managing interface case - Google Patents

Method, system and medium for automatically managing interface case Download PDF

Info

Publication number
CN113111002B
CN113111002B CN202110479211.8A CN202110479211A CN113111002B CN 113111002 B CN113111002 B CN 113111002B CN 202110479211 A CN202110479211 A CN 202110479211A CN 113111002 B CN113111002 B CN 113111002B
Authority
CN
China
Prior art keywords
management
interface
configuration
scene
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110479211.8A
Other languages
Chinese (zh)
Other versions
CN113111002A (en
Inventor
樊亚锋
孙歌
李瑞冬
寇彪
孙文
闫俊洋
于兴政
臧俊微
范晓雪
王雪锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongyuan Bank Co ltd
Original Assignee
Zhongyuan Bank Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongyuan Bank Co ltd filed Critical Zhongyuan Bank Co ltd
Priority to CN202110479211.8A priority Critical patent/CN113111002B/en
Publication of CN113111002A publication Critical patent/CN113111002A/en
Application granted granted Critical
Publication of CN113111002B publication Critical patent/CN113111002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure relates to a method, system, and medium for automated management of interface cases. The method comprises the following steps: performing configuration management and data management, wherein the configuration management comprises the configuration of a server, a database and a baffle, and the data management comprises the number management; case management is carried out on the interface case to obtain an interface script, and the case management comprises script management, baffle management, swagger management and keyword management; carrying out scene management on the interface case by using the interface script so as to configure a scene corresponding to the interface case, wherein the scene management comprises automatic scene management, scene execution management and scene configuration management; carrying out pipeline management on the interface case according to the scene to generate a pipeline of the interface case, wherein the pipeline management comprises automatic pipeline management, message configuration management and JACOCO configuration management; and acquiring an execution result of the pipeline, and performing report management, automatic problem management and automatic view management on the execution result of the pipeline.

Description

Method, system and medium for automatically managing interface case
Technical Field
The present disclosure relates to the field of interface management, and more particularly, to a method, system, and medium for automated management of interface cases.
Background
The automatic interface test case management highlights an automatic management interface case, the interface case is compiled efficiently by reducing a technical test threshold, the step multiplexing is realized by encapsulating case steps according to a service background, the cases are classified in batches according to the test purpose so as to achieve the daily construction purpose, the cases can be automatically analyzed when an error occurs in automatic execution, if the case is a code problem, the defect can be automatically extracted, the execution result and the defect can be notified to a corresponding responsible person, and finally, the test execution condition and the problem distribution condition are displayed according to a test plan/test iteration dimension. The interface automation test case management emphasizes that the high-efficiency auxiliary technical test personnel and the functional test personnel efficiently test through the automation tools to finish high-quality delivery products.
The key in the interface automation case management landing process is that the assembly line automatically triggers and executes. The main functions relate to case fast compiling, case packaging and multiplexing, automatic pipeline triggering, case executing and automatic problem submitting, problem pushing, problem classifying and chart displaying. In practicing the interface automated case management, a team or business may have the following problems:
(1) The pure function tester has no code background and needs an enabling party to carry out interface test work.
(2) The bottom layer frameworks and languages of different projects are different, and the baffle module in the current interface automation case management only supports a common http protocol.
(3) When the interface automation case executes error reporting, the system can automatically analyze and compare with the question bank at the same time, and further carry out defect submission on code problems, environmental problems and the like.
Disclosure of Invention
The present disclosure is provided to solve the above-mentioned problems occurring in the prior art.
The scheme can automatically recombine the interface cases and freely configure an automatic trigger scene. After the automatic triggering interface case is executed, the defects can be accurately submitted and the defect tracking can be automatically assisted according to the question bank, and the test condition, the product quality condition and the personnel workload condition are displayed according to the online plan, so that one-stop automatic test management and online tracking full-flow information are provided.
According to a first aspect of the present disclosure, a method for automated management of interface cases is provided. The method comprises the following steps: step S1, executing configuration management and data management, wherein the configuration management comprises the configuration of a server, a database and a baffle, and the data management comprises the manufacture number management; s2, carrying out case management on the interface case based on the execution result of the step S1 to obtain an interface script, wherein the case management comprises script management, baffle management, swagger management and keyword management; s3, performing scene management on the interface case by using the interface script to configure a scene corresponding to the interface case, wherein the scene management comprises automatic scene management, scene execution management and scene configuration management; s4, carrying out pipeline management on the interface case according to the scene to generate a pipeline of the interface case, wherein the pipeline management comprises automatic pipeline management, message configuration management and JACOCO configuration management; and S5, acquiring the execution result of the assembly line, and performing report management, automatic problem management and automatic view management on the execution result of the assembly line.
Specifically, in the step S1: the server configuration comprises the configuration of the IP, the port and the environment information of the server; the database configuration comprises the configuration of IP, port, name, user name, password and type of the database; the data management comprises setting the use mode and the use scene of the data based on the data type, the environment type and the data state; the manufacturing management interfaces with the data management to assist a user in creating the data.
Specifically, in the step S2: the script management comprises the steps of separating the interface case from the interface script and supporting the editing of the interface script; the baffle management includes assigning available IPs and ports in the interface script; the Swagger managing comprises generating the interface script based on the Swagger's path; the keyword management includes utilizing keyword recognition to encapsulate an interface script containing the keyword.
Specifically, in the step S3: the automatic scene management comprises selecting an interface automatic case set for batch execution to perform batch management, and performing information maintenance, case maintenance and problem tracing under the scene; the scene execution management comprises debugging execution, timing execution, daily execution and associated online planning execution of the interface case under the scene; the scene configuration management comprises configuring a pushing party of an execution result under the scene.
Specifically, in the step S4: the automated pipeline management includes simplifying configuration of a Jenkins pipeline of the interface case; the message configuration management comprises setting up a recipient of the message; the JACOCO configuration management comprises the steps of setting a deployment service IP and deploying a service port in JACOCO.
Specifically, in the step S5: the report management comprises extracting and presenting execution reports based on execution results of the pipeline; the automated problem management includes analyzing cases that failed to execute to determine their error types and submitting a problem report; the automated view management includes visualizing graphical and textual information related to the issue based on the issue report.
Specifically, the method is implemented based on an architecture composed of a platform layer, a scheduling layer, and an execution layer, wherein: the platform layer comprises a database, a background service program and a front-end page; the scheduling layer comprises a platform interface and an MQ; the execution layer includes REDIS and Jmeter.
According to a second aspect of the present disclosure, a system for automated management of interface cases is provided. The system comprises: a configuration and data management module configured to perform configuration management including configuring a server, a database, and a barrier, and data management including configuration management; the case management module is configured to perform case management on the interface case based on the execution result of the configuration and data management module so as to obtain an interface script, wherein the case management comprises script management, baffle management, swagger management and keyword management; the scene management module is configured to perform scene management on the interface case by using the interface script so as to configure a scene corresponding to the interface case, wherein the scene management comprises automatic scene management, scene execution management and scene configuration management; the pipeline management module is configured to perform pipeline management on the interface case according to the scene so as to generate a pipeline of the interface case, and the pipeline management comprises automatic pipeline management, message configuration management and JACOCO configuration management; and the result management module is configured to acquire the execution result of the pipeline and perform report management, automated problem management and automated view management on the execution result of the pipeline.
In particular, the configuration and data management module is specifically configured to: the server configuration comprises the configuration of the IP, the port and the environment information of the server; the database configuration comprises the configuration of IP, port, name, user name, password and type of the database; the data management comprises setting a use mode and a use scene of the data based on a data type, an environment type and a data state; the data management interfaces with the data management to assist a user in creating the data.
In particular, the case management module is specifically configured to: the script management comprises separating the interface case from the interface script and supporting editing of the interface script; the baffle management includes assigning available IPs and ports in the interface script; the Swagger management comprises generating the interface script based on the Swagger's path; the keyword management includes utilizing keyword recognition to encapsulate an interface script containing the keyword.
In particular, the scenario management module is specifically configured to: the automatic scene management comprises selecting an interface automatic case set for batch execution to perform batch management, and performing information maintenance, case maintenance and problem tracing under the scene; the scene execution management comprises debugging execution, timing execution, daily execution and associated online planning execution of the interface case under the scene; the scene configuration management comprises configuring a pushing party of an execution result under the scene.
In particular, the pipeline management module is specifically configured to: the automated pipeline management includes simplifying configuration of Jenkins pipelines of the interface case; the message configuration management comprises setting up a recipient of the message; the JACOCO configuration management comprises the steps of setting a deployment service IP and deploying a service port in JACOCO.
In particular, the result management module is specifically configured to: the report management comprises extracting and presenting execution reports based on execution results of the pipeline; the automated problem management includes analyzing cases that failed to execute to determine their error types and submitting a problem report; the automated view management includes visualizing graphical and textual information related to the issue based on the issue report.
Specifically, the system is based on an architecture composed of a platform layer, a scheduling layer and an execution layer: the platform layer comprises a database, a background service program and a front-end page; the scheduling layer comprises a platform interface and an MQ; the execution layer includes REDIS and Jmeter.
According to a third aspect of the present disclosure, a non-transitory computer readable medium storing instructions which, when executed by a processor, perform steps in a method of automated management of interface cases according to any one of the first aspects of the present disclosure.
In conclusion, the technical scheme disclosed by the invention can automatically recombine the interface cases and freely configure the automatic trigger scene. After the automatic triggering interface case is executed, the defects can be accurately submitted and the defect tracking can be automatically assisted according to the question bank, and the test condition, the product quality condition and the personnel workload condition can be displayed according to the online plan, so that one-stop automatic test management and online tracking full-flow information can be provided.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having alphabetic suffixes or different alphabetic suffixes may represent different instances of similar components. The drawings illustrate various embodiments generally by way of example, and not by way of limitation, and together with the description and claims serve to explain the disclosed embodiments. The same reference numbers will be used throughout the drawings to refer to the same or like parts, where appropriate. Such embodiments are illustrative, and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.
FIG. 1 illustrates a flow chart of a method of automated management of interface cases according to an embodiment of the disclosure;
FIG. 2 illustrates a schematic diagram of automated management of interface cases according to an embodiment of the disclosure;
FIG. 3 shows a schematic diagram of an architecture composed of a platform layer, a scheduling layer, and an execution layer, according to an embodiment of the present disclosure; and
fig. 4 illustrates a block diagram of a system for automated management of interface cases, in accordance with an embodiment of the present disclosure.
Detailed Description
For a better understanding of the technical aspects of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings. Embodiments of the disclosure are described in further detail below with reference to the figures and the detailed description, but the disclosure is not limited thereto. The order in which the various steps described herein are described as examples should not be construed as a limitation if there is no requirement for a contextual relationship between each other, and one skilled in the art would know that sequential adjustments may be made without destroying the logical relationship between each other, rendering the overall process impractical.
A scheme for automatically managing interface cases according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
FIG. 1 illustrates a flow chart of a method of automated management of interface cases according to an embodiment of the present disclosure; as shown in fig. 1, the method includes: s1, executing configuration management and data management, wherein the configuration management comprises the configuration of a server, a database and a baffle, and the data management comprises the manufacture number management; s2, performing case management on the interface case based on the execution result of the step S1 to obtain an interface script, wherein the case management comprises script management, baffle management, swagger management and keyword management; s3, performing scene management on the interface case by using the interface script to configure a scene corresponding to the interface case, wherein the scene management comprises automatic scene management, scene execution management and scene configuration management; s4, performing pipeline management on the interface case according to the scene to generate a pipeline of the interface case, wherein the pipeline management comprises automatic pipeline management, message configuration management and JACOCO configuration management; and S5, acquiring the execution result of the assembly line, and performing report management, automatic problem management and automatic view management on the execution result of the assembly line.
In step S1, configuration management including configuring a server, a database, and a barrier, and data management including manufacture management are performed. Specifically, the server configuration includes configuring an IP, a port, and environment information of the server; the database configuration comprises the configuration of IP, port, name, user name, password and type of the database; the data management comprises setting the use mode and the use scene of the data based on the data type, the environment type and the data state; the manufacturing management interfaces with the data management to assist a user in creating the data.
In some embodiments, the server configuration means that a user needs to configure server information including information such as a server IP, a port, and an environment required by an interface under a corresponding team and a system before writing a case, so as to achieve the purpose of one-time configuration and permanent use. The database configuration means that a user needs to configure database information under a corresponding team and a corresponding system before writing a case, and the database information comprises a database IP, a database port, a database name, a user name, a password and a database type which are needed by an interface.
In some embodiments, the data management means that a user creates or imports data in the data management module, and sets a data use mode and a use scenario according to a data type, an environment type and a data state, for example, some data are used in a polling manner, or some data are used as consumable data and are used by the user only once. The number making management means that the number making function assists a user to quickly create data, and the data can be automatically connected with a data management module, for example, the user quickly creates card numbers, organization numbers, public accounts, large-volume deposit lists and the like in batches.
In step S2, case management is performed on the interface case based on the execution result of step S1 to obtain an interface script, and the case management includes script management, baffle management, swagger management, and keyword management. Specifically, the script management comprises separating the interface case from the interface script and supporting editing of the interface script; the baffle management includes assigning available IPs and ports in the interface script; the Swagger managing comprises generating the interface script based on the Swagger's path; the keyword management includes utilizing keyword recognition to encapsulate an interface script containing the keyword.
In some embodiments, the script management means that an automatic interface module realizes separation of a function case from an interface script step, supports fast compiling of the interface script, supports HTTP and TCP types at present, supports an adding and deleting modification operation by a user, uploads an accessory, and records user operation so as to facilitate problem tracing in a later period. The baffle management means that a user inputs an API (application program interface) to be tested in a baffle module, and sets request data and response data, such as a request header, a request body, a response code, a return header, return data and the like, at the same time, and finally, an interface automation system randomly allocates an IP (Internet protocol) and a port, and the IP and the port can be used in an interface script at the moment. The Swagger management means that a user selects a squad and a system, swagger paths are input into the Swagger management module, and a generation button is clicked, so that corresponding interface scripts can be successfully generated. The keyword management means that a user packages commonly used script steps with the purpose of service to realize later-stage reuse.
In step S3, performing scene management on the interface case by using the interface script to configure a scene corresponding to the interface case, where the scene management includes automatic scene management, scene execution management, and scene configuration management. Specifically, the automatic scene management comprises selecting an interface automatic case set for batch execution to perform batch management, and performing information maintenance, case maintenance and problem tracing under the scene; the scene execution management comprises debugging execution, timing execution, daily execution and associated online plan execution of the interface case under the scene; the scene configuration management comprises configuring a pushing party of an execution result under the scene.
In some embodiments, the automated scenario management refers to that a user selects an interface automation case set for batch execution to perform batch management and execution by establishing an automation scenario. The user can perform operations such as scene information maintenance, scene interface case maintenance, problem tracing by revising records and the like on the automatic scene management module. The scene execution management means that a user can perform debugging execution, timing execution, daily execution and associated online plan execution on an interface case set in a scene. The scene configuration management means that a user can configure an execution result presenter in a scene and configure a swagger address so as to show the conditions of the coverage rate, the passing rate, the total number of interfaces and the like of the interfaces.
And S4, performing pipeline management on the interface case according to the scene to generate a pipeline of the interface case, wherein the pipeline management comprises automatic pipeline management, message configuration management and JACOCO configuration management. Specifically, the automated pipeline management includes simplifying the configuration of the Jenkins pipeline of the interface case; the message configuration management comprises setting up a recipient of the message; the JACOCO configuration management comprises the steps of setting a deployment service IP and a deployment service port in JACOCO.
In some embodiments, automated pipeline management refers to managing execution configuration information in an interface automation platform in order to simplify configuration of an interface case jenkins pipeline. Therefore, only the assembly line number needs to be configured in jenkins, and a user only needs to maintain the interface case on the interface automation platform, so that the method is convenient for the user to use. The message configuration management means that a user sets information such as Jenkins notification, origin notification persons, flight message RTX notification persons and the like in a pipeline message configuration module, and the execution result of the pipeline is notified to a responsible person in real time. JACOCO configuration management means that a user sets information such as a deployment service IP, a deployment service port, a JACOCO _ include and the like in a JACOCO configuration module.
In step S5, the execution result of the pipeline is obtained, and report management, automated problem management, and automated view management are performed on the execution result of the pipeline. Specifically, the report management includes extracting and presenting execution reports based on execution results of the pipeline; the automated problem management comprises analyzing cases with failed execution to determine the error type of the cases and submitting a problem report; the automated view management includes visualizing graphical and textual information related to the issue based on the issue report.
In some embodiments, report management refers to a report management module exposing scenario execution reports and pipeline execution reports. The content comprises the following steps: the execution type, the execution state, the total number of the use cases, the number of pass of the use cases, the number of fail of the use cases, the pass rate, the total number of interfaces, the number of coverage of the interfaces, the coverage rate of the interfaces, the system, the execution duration, the execution time and the like. The user can search the execution result through the content such as the squad, the execution number, the execution state and the like. The automatic problem management means that after the assembly line is automatically triggered, cases which fail to be executed are analyzed, the system is compared with the error type module, if the cases are system defects, the interface automation system automatically submits the defects, informs corresponding responsible persons, classifies the problems and displays corresponding results through views. The automated view management means that the automated view management module comprises: a defect false alarm rate trend graph, a test environment error analysis trend report, a test environment false alarm rate trend analysis report and the like. For example: and the automatic quality analysis report analyzes the analysis result and the false alarm rate trend of the automatic execution result in the time by selecting the squad and the time period.
FIG. 2 illustrates a schematic diagram of automated management of interface cases according to an embodiment of the disclosure; as shown in fig. 2, the left side is function distribution, and the right side is a specific related business module, which is divided into configuration management, data management, case management, scenario management, pipeline management, and result management.
In some embodiments, the method of the first aspect of the present disclosure is implemented using an architecture composed of a platform layer, a scheduling layer, and an execution layer. FIG. 3 shows a schematic diagram of an architecture composed of a platform layer, a scheduling layer, and an execution layer, in accordance with an embodiment of the present disclosure; as shown in fig. 3, the platform layer includes a database, a background service program, and a front-end page; the scheduling layer comprises a platform interface and an MQ; the execution layer includes REDIS and Jmeter.
In some embodiments, the front end page is responsible for providing an interactive interface that may operate as follows: the interface automates case configuration and management; interface automation case operation (case writing, case execution, swagger interface management, baffle management and keyword management); automatic management of interface scenes (case classification multiplexing, case batch execution and associated online plan); interface automation result management (interface case report management, automatic defect submission and tracking management, problem management, false alarm rate analysis report, and automatic problem analysis report); the interface automates the viewing of global information (e.g., logs, execution artifacts).
In some embodiments, the database represents a relational database, such as oracle, storing the following information: interface automation configuration information (server configuration table, database configuration table, baffle configuration table); interface automation case information (case table, keyword table, scene table); interface automation report information (case execution result table, automation problem analysis table and case defect association table) interface automation pipeline configuration information.
In some embodiments, the scheduling layer includes an interface platform, MQ, REDIS, the interface platform to receive xml or json files, set the distribution and execution mechanism, pass messages to the MQ, and receive the execution results of the execution layer. The MQ stores the message queue, mainly solves the problems of application decoupling, asynchronous messages, traffic cutting and the like, and realizes high performance, high availability and scalability. REDIS implements data caching.
In some embodiments, the jmeter of the execution layer is used to execute the interface case and store the result in REDIS.
In some embodiments, the background service program is used for connecting various links and is responsible for interactive communication with the front-end, the interface platform and the database service, and the main tasks of the background service program include receiving a front-end request, processing a response result, calling other services and the like.
Specific examples
A certain tester A in the enterprise uses the invention to perform an example of an interface automatic testing working process:
(1) The tester A analyzes the corresponding function case, arranges the relevant interface document, and carries out the operations of compiling, classifying and the like of the interface case on the interface automation case module;
(2) And the tester A compiles the script steps in the interface script module, automatically generates an interface case in the swagger module and manually arranges the interface case.
(3) And (3) building a flow line in the flow line module, putting the interface cases into the flow line according to the module, setting an automatic triggering scene, setting whether to automatically extract the defects, automatically notifying corresponding responsible persons, and the like. Or the tester A can classify the interface case in the scene module, set the execution scene and the configuration related to the execution result notification, and can also associate the execution with the online test plan, and track the result and the progress in the progress module.
(4) Checking the execution result in the test report module, analyzing the report, analyzing the automatically submitted defect in the defect module, tracking the defect, checking the conditions of the false alarm rate, the execution rate and the like automatically analyzed by the system in the automatic view module.
According to a second aspect of the present disclosure, a system for automated management of interface cases is provided. FIG. 4 illustrates a block diagram of a system for automated management of interface cases, in accordance with an embodiment of the present disclosure; as shown in fig. 4, the system 400 includes: a configuration and data management module 401 configured to perform configuration management including configuration of servers, databases, and barriers, and data management including number management; a case management module 402, configured to perform case management on the interface case based on the execution result of the configuration and data management module to obtain an interface script, where the case management includes script management, baffle management, swagger management, and keyword management; a scene management module 403, configured to perform scene management on the interface case by using the interface script to configure a scene corresponding to the interface case, where the scene management includes automated scene management, scene execution management, and scene configuration management; a pipeline management module 404 configured to perform pipeline management on the interface case according to the scenario to generate a pipeline of the interface case, where the pipeline management includes automatic pipeline management, message configuration management, and JACOCO configuration management; and a result management module 405 configured to obtain an execution result of the pipeline, and perform report management, automated problem management, and automated view management on the execution result of the pipeline.
Specifically, the configuration and data management module 401 is specifically configured to: the server configuration comprises the configuration of the IP, the port and the environmental information of the server; the database configuration comprises the configuration of IP, port, name, user name, password and type of the database; the data management comprises setting the use mode and the use scene of the data based on the data type, the environment type and the data state; the manufacturing management interfaces with the data management to assist a user in creating the data.
In particular, the case management module 402 is specifically configured to: the script management comprises the steps of separating the interface case from the interface script and supporting the editing of the interface script; the baffle management includes assigning available IPs and ports in the interface script; the Swagger management comprises generating the interface script based on the Swagger's path; the keyword management includes utilizing keyword recognition to encapsulate an interface script containing the keyword.
Specifically, the scene management module 403 is specifically configured to: the automatic scene management comprises selecting an interface automatic case set for batch execution to perform batch management, and performing information maintenance, case maintenance and problem tracing under the scene; the scene execution management comprises debugging execution, timing execution, daily execution and associated online plan execution of the interface case under the scene; the scene configuration management comprises configuring a pushing party of an execution result under the scene.
In particular, the pipeline management module 404 is specifically configured to: the automated pipeline management includes simplifying configuration of a Jenkins pipeline of the interface case; the message configuration management comprises setting up a recipient of the message; the JACOCO configuration management comprises the steps of setting a deployment service IP and deploying a service port in JACOCO.
In particular, the result management module 405 is specifically configured to: the report management comprises extracting and presenting execution reports based on execution results of the pipeline; the automated problem management comprises analyzing cases with failed execution to determine the error type of the cases and submitting a problem report; the automated view management includes visualizing graphical and textual information related to the issue based on the issue report.
Specifically, the system is based on an architecture composed of a platform layer, a scheduling layer and an execution layer: the platform layer comprises a database, a background service program and a front-end page; the scheduling layer comprises a platform interface and an MQ; the execution layer includes REDIS and Jmeter.
According to a third aspect of the present disclosure, a non-transitory computer readable medium storing instructions which, when executed by a processor, perform steps in a method of automated management of interface cases according to any one of the first aspects of the present disclosure.
In conclusion, the invention provides an interface automatic test case management method and system, which enable case compiling to be more efficient, case execution to be more intelligent and testing access control to be more convenient and faster; the graphical script writing reduces the automatic testing threshold of the interface, and improves the flexibility and reusability of the testing case and the script; the system automatically analyzes problems and submits defects through a rich error type library, so that the intellectualization of the whole test process is promoted; the execution rate, the problem finding condition and the false alarm condition are displayed through the visual view, so that testers and responsible persons can visually track the test progress and problems; by collecting the scattered tool platforms into a one-stop platform, the case can be more intuitively and traceably fed back to the whole process information from compiling, executing and problem tracking. Generally speaking, the technical test threshold of testers is lowered, execution intellectualization and problem automation are increased, and user experience and team test efficiency of the interface automation test case management platform are improved.
Note that, according to various modules in various embodiments of the present disclosure, they may be implemented as computer-executable instructions stored on a memory, which when executed by a processor may implement corresponding steps; or as hardware with corresponding logical computing capabilities; or as a combination of software and hardware (firmware). In some embodiments, the processor may be implemented as any of an FPGA, an ASIC, a DSP chip, an SOC (system on a chip), an MPU (e.g., without limitation, cortex), and the like. The processor may be communicatively coupled to the memory and configured to execute computer-executable instructions stored therein. The memory may include Read Only Memory (ROM), flash memory, random Access Memory (RAM), dynamic Random Access Memory (DRAM) such as Synchronous DRAM (SDRAM) or Rambus DRAM, static memory (e.g., flash memory, static random access memory), etc., on which computer-executable instructions are stored in any format. Computer-executable instructions may be accessed by a processor, read from ROM or any other suitable storage location, and loaded into RAM for execution by the processor to implement wireless communication methods according to various embodiments of the present disclosure.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the disclosure with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be utilized by those of ordinary skill in the art upon reading the foregoing description. In addition, in the foregoing detailed description, various features may be grouped together to streamline the disclosure. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, inventive subject matter may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.

Claims (7)

1. A system for automated management of interface cases, the system comprising:
the configuration and data management module is configured to execute configuration management and data management, the configuration management comprises the configuration of a server, a database and a baffle, the data management comprises the number making management, the data management refers to the fact that a user creates or imports data in the data management module, a data use mode and a use scene are set through a data type, an environment type and a data state, the number making management refers to the fact that the number making function assists the user in quickly creating data, and the data can be automatically docked with the data management module;
the case management module is configured to perform case management on the interface case based on an execution result of the configuration and data management module to obtain an interface script, the case management comprises script management, baffle management, swagger management and keyword management, the baffle management means that a user inputs an API (application program interface) to be tested in the baffle module, request data and response data are set, the Swagger management means that the user selects a team and a system, a Swagger path is input in the Swagger management module to generate a corresponding interface script, and the keyword management means that the user packages a commonly used script step with the purpose of service to realize later-stage multiplexing;
the scene management module is configured to perform scene management on the interface case by using the interface script to configure a scene corresponding to the interface case, wherein the scene management includes automatic scene management, scene execution management and scene configuration management, the automatic scene management refers to that a user selects an interface automatic case set to be executed in batch for batch management and execution by establishing an automatic scene, the scene execution management refers to that the user can perform debugging execution, timing execution, daily execution and associated online plan execution on the interface case set in the scene, and the scene configuration management refers to that the user configures an execution result presenter and a swagger address in the scene so as to show the coverage rate, the throughput rate and the total number of the interfaces;
the pipeline management module is configured to perform pipeline management on the interface case according to the scene so as to generate a pipeline of the interface case, the pipeline management comprises automatic pipeline management, message configuration management and JACOCO configuration management, the automatic pipeline management refers to the configuration of a jenkins pipeline of the simplified interface case, the message configuration management refers to the setting of information by a user in a pipeline message configuration module so as to inform a pipeline execution result in real time, and the JACOCO configuration management refers to the setting of deployment information by the user in the JACOCO configuration module; and
the result management module is configured to obtain an execution result of the pipeline, and perform report management, automated problem management and automated view management on the execution result of the pipeline, where the automated problem management refers to a case where the pipeline fails to execute after being automatically triggered, and a system performs analysis and comparison with the error type module, and the automated view management includes: a defect false alarm rate trend graph, a test environment error analysis trend report and a test environment false alarm rate trend analysis report.
2. The system for automated interface case management according to claim 1, wherein:
the configuration and data management module is specifically configured to:
the configuration of the server comprises the configuration of the IP, the port and the environment information of the server;
configuring the database comprises configuring IP, port, name, user name, password and type of the database;
the case management module is specifically configured to:
the script management comprises the steps of separating the interface case from the interface script and supporting the editing of the interface script;
the result management module is specifically configured to:
the report management comprises extracting and presenting execution reports based on execution results of the pipeline;
the system is based on a framework composed of a platform layer, a scheduling layer and an execution layer:
the platform layer comprises a database, a background service program and a front-end page;
the scheduling layer comprises a platform interface and an MQ;
the execution layer includes REDIS and Jmeter.
3. A method for the automated management of interface cases, characterized by being applied to a system for the automated management of interface cases as claimed in claim 1;
the method comprises the following steps:
step S1, executing the configuration management and the data management;
s2, managing the cases;
s3, managing the scene;
s4, performing pipeline management; and
and S5, performing report management, automatic problem management and automatic view management.
4. A method for automated management of interface cases according to claim 3, characterized in that in step S1:
the configuration of the server comprises the configuration of the IP, the port and the environmental information of the server;
the configuration of the database includes configuring the IP, port, name, username, password, type of the database.
5. A method for automated management of interface cases according to claim 3, characterized in that in step S2:
the script management comprises separating the interface case from the interface script and supporting editing of the interface script.
6. A method for automated management of interface cases according to claim 3, characterized in that in said step S5:
the report management includes extracting and presenting execution reports based on execution results of the pipeline.
7. A non-transitory computer readable medium having instructions stored thereon, wherein the instructions, when executed by a processor, perform the steps of a method for automated management of interface cases according to any of claims 3-6.
CN202110479211.8A 2021-04-30 2021-04-30 Method, system and medium for automatically managing interface case Active CN113111002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110479211.8A CN113111002B (en) 2021-04-30 2021-04-30 Method, system and medium for automatically managing interface case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110479211.8A CN113111002B (en) 2021-04-30 2021-04-30 Method, system and medium for automatically managing interface case

Publications (2)

Publication Number Publication Date
CN113111002A CN113111002A (en) 2021-07-13
CN113111002B true CN113111002B (en) 2022-11-01

Family

ID=76720590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110479211.8A Active CN113111002B (en) 2021-04-30 2021-04-30 Method, system and medium for automatically managing interface case

Country Status (1)

Country Link
CN (1) CN113111002B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611009A (en) * 2020-05-26 2020-09-01 深圳壹账通智能科技有限公司 Database script management method and device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3139505A1 (en) * 2019-05-06 2020-11-12 Strong Force Iot Portfolio 2016, Llc Platform for facilitating development of intelligence in an industrial internet of things system
US10983904B1 (en) * 2019-11-06 2021-04-20 Accenture Global Solutions Limited Test automation for data processing
CN111488136A (en) * 2020-04-07 2020-08-04 携程旅游网络技术(上海)有限公司 Continuous integration and continuous delivery method, system, device and storage medium
CN111625460A (en) * 2020-05-27 2020-09-04 携程旅游网络技术(上海)有限公司 Method, system, electronic device and storage medium for automatically testing interface
CN111708706A (en) * 2020-06-19 2020-09-25 重庆赛宝工业技术研究院 Industrial internet APP automatic test system and test method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611009A (en) * 2020-05-26 2020-09-01 深圳壹账通智能科技有限公司 Database script management method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113111002A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN105389256B (en) A kind of unit test method and system
CN105681126B (en) A kind of automated testing method and system based on protocol interface
US20160217062A1 (en) Test case generation system
US20130014084A1 (en) International Testing Platform
CN108108297A (en) The method and apparatus of automatic test
US20170161167A1 (en) End-to-end tracing and logging
CN111061696B (en) Method and device for analyzing transaction message log
CN107015908A (en) A kind of computer application software test system and method
CN103631713A (en) ERP software automated testing system and method
CN109885478A (en) A kind of localization method and system of error code
US8046638B2 (en) Testing of distributed systems
US20170222899A1 (en) Monitoring of availability data for system management environments
US9329979B2 (en) Derivation of generalized test cases
CN114546738A (en) Server general test method, system, terminal and storage medium
CN111309505A (en) Page exception handling method and device and electronic equipment
CN112817853A (en) Automatic test method, system and electronic equipment
US11829278B2 (en) Secure debugging in multitenant cloud environment
CN113553260B (en) Test method, test apparatus, device, and medium
CN113704077B (en) Test case generation method and device
CN113111002B (en) Method, system and medium for automatically managing interface case
CN117370203A (en) Automatic test method, system, electronic equipment and storage medium
CN102184137A (en) Unattended intelligent automatic regression testing method
CN110618943B (en) Security service test method and device, electronic equipment and readable storage medium
CN112306873B (en) Method and device for managing online flow and electronic equipment
US8484624B1 (en) Test integration tool

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant