Movatterモバイル変換


[0]ホーム

URL:


CN118210666A - Automatic service testing system, method, equipment and medium - Google Patents

Automatic service testing system, method, equipment and medium
Download PDF

Info

Publication number
CN118210666A
CN118210666ACN202410425463.6ACN202410425463ACN118210666ACN 118210666 ACN118210666 ACN 118210666ACN 202410425463 ACN202410425463 ACN 202410425463ACN 118210666 ACN118210666 ACN 118210666A
Authority
CN
China
Prior art keywords
management module
service
interface
module
script
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.)
Pending
Application number
CN202410425463.6A
Other languages
Chinese (zh)
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.)
Suzhou Moduo Information Technology Co ltd
Original Assignee
Suzhou Moduo Information Technology 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 Suzhou Moduo Information Technology Co ltdfiledCriticalSuzhou Moduo Information Technology Co ltd
Priority to CN202410425463.6ApriorityCriticalpatent/CN118210666A/en
Publication of CN118210666ApublicationCriticalpatent/CN118210666A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention discloses an automatic service testing system, a method, equipment and a medium, wherein the system comprises the following components: the system comprises an interface management module, a script management module, a configuration management module, a data driving management module and an automatic case management module; the interface management module is used for managing the API interface; the script management module is used for managing the general processing script; the configuration management module is used for configuration management of the system framework; the data driving management module is used for carrying out data management according to the service dimension; the automatic case management module is used for storing cases and assisting in service inspection; the invention can automatically carry out high-efficiency and intelligent inspection on the service, avoid the hidden trouble of service abnormality and omission caused by the condition that the user does not feed back the service, ensure the service stability and reliability, avoid the occurrence of service abnormality and has higher application value.

Description

Automatic service testing system, method, equipment and medium
Technical Field
The present invention relates to the field of testing technologies, and in particular, to an automated service testing system, method, device, and medium.
Background
The service quality construction and automation means that the service is inspected at fixed time and is triggered to be CI when the service is released and is on line, so that the function stability and the function iteration influence on the existing functions are ensured, and the service is ensured to be operated in a stable production environment and high availability.
Therefore, in order to ensure normal and stable operation of the service, to discover and solve the problem as early as possible to the maximum extent, shorten the processing time from the occurrence of the problem to the solution, improve the problem processing efficiency, reduce the maintenance cost, and further, need to develop an automatic service test scheme, so that the service is inspected while the operation of a service processing user is not influenced, and high-quality non-sensitive inspection is realized.
Disclosure of Invention
The present invention is directed to an automated service testing system, method, apparatus, and medium, which further solve one or more of the above-mentioned problems in the prior art.
In order to solve the technical problems, the specific technical scheme of the invention is as follows:
in one aspect, the present invention provides an automated service testing system comprising:
The system comprises an interface management module, a script management module, a configuration management module, a data driving management module and an automatic case management module;
the interface management module is used for managing an API interface;
the script management module is used for managing the universal processing script;
The configuration management module is used for configuration management of the system framework;
The data driving management module is used for carrying out data management according to the service dimension;
the automatic case management module is used for storing cases and assisting in service inspection.
As an improvement, the interface management module includes: an interface registration unit and an interface definition unit;
the interface registration unit is used for registering the target interface according to the service dimension;
the interface definition unit is used for defining the interface under each service.
As an improvement, the general processing script includes:
The automation framework initializes scripts, enqueues scripts, dequeues scripts, request context specification scripts, service discovery scripts, jsonPath parse scripts, and result processing scripts.
As an improved solution, the configuration management module is further configured to manage configuration data required by the system framework in running and configuration data required by the service.
As an improved solution, the data-driven management module is further configured to manage usage data of the uid, deviceId and version running according to the service dimension.
As an improvement, the automated case management module includes: the device comprises a case storage unit, a first processing unit and a second processing unit;
The case storage unit is used for storing cases;
the first processing unit is used for writing an automatic case of a service, and executing forward test or abnormal test;
the second processing unit is used for referring to the interface of the interface management module to request;
the second processing unit is further configured to verify the request result.
As an improvement, the automated service testing system further comprises: the system comprises a task execution module, a dependence processing module and a notification module;
the task execution module is used for responding to service inspection operation and pressing cases in the automatic case management module into an execution queue; the task execution module acquires a task to be executed in the execution queue and executes the task to be executed;
the dependence processing module is used for responding to the execution of the task to be executed and carrying out dependence conflict processing on the dependence association scene between cases;
and the notification module is used for transmitting the system operation result to the target contact person.
On the other hand, the invention also provides an automatic service testing method, which comprises the following steps:
calling an interface management module to manage an API interface;
invoking a script management module to manage a general processing script;
calling a configuration management module to perform configuration management of a system frame;
calling a data driving management module to manage data according to the service dimension;
and calling an automatic case management module to store the case and assisting in service inspection.
In another aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the automated service testing method.
In another aspect, the present invention further provides a computer device, where the computer device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein:
the memory is used for storing a computer program;
the processor is configured to execute the steps of the automated service testing method by running a program stored on the memory.
The technical scheme of the invention has the beneficial effects that:
The automatic service test system can realize high-efficiency and intelligent inspection of the service by mutually matching the interface management module, the script management module, the configuration management module, the data driving management module and the automatic case management module, avoid the service abnormality and omission hidden danger caused by the condition that a user does not feed back the service, ensure the service stability and reliability, avoid the occurrence of service abnormality and have higher application value.
The automatic service testing method can orderly call the interface management module, the script management module, the configuration management module, the data driving management module and the automatic case management module, further realize the efficient and intelligent inspection of the service, avoid the hidden trouble of service abnormality and omission caused by the condition that a user does not feed back the service, ensure the service stability and reliability, avoid the occurrence of service abnormality, and have higher application value.
The computer readable storage medium can realize the coordination of the guide interface management module, the script management module, the configuration management module, the data driving management module and the automation case management module, thereby realizing the automatic service testing method, and effectively improving the operability of the automatic service testing method.
The computer equipment can store and execute the computer readable storage medium, thereby realizing the automatic service testing method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an automated service testing system according to embodiment 1 of the present invention;
FIG. 2 is a detailed architecture diagram of an automated service testing system according to embodiment 1 of the present invention;
FIG. 3 is a flow chart of an automated service testing method according to embodiment 2 of the present invention;
FIG. 4 is a schematic diagram of a computer device according to embodiment 4 of the present invention;
the labels in the drawings are illustrated as follows:
1501. a processor; 1502. a communication interface; 1503. a memory; 1504. a communication bus.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making clear and defining the scope of the present invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are some, but not all embodiments of the present invention; all other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or device.
Example 1
The present embodiment provides an automated service testing system, as shown in fig. 1 and 2, including:
The automatic service test system is developed and realized based on technologies such as queues, multiprocesss, triggers and the like, and specifically comprises the following steps: the system comprises an interface management module, a script management module, a configuration management module, a data driving management module and an automatic case management module;
In one implementation, the interface management module is configured to perform API interface management, and mainly includes: an interface registration unit and an interface definition unit;
the interface registration unit is used for registering the target interface according to the service dimension;
The interface definition unit is used for defining the interfaces under each service; defining content including, but not limited to, request mode and parameter carrying location;
in one implementation, the script management module is used for managing the universal processing script, so that code redundancy is reduced, and code serviceability is improved;
Among them, general processing scripts, including but not limited to: an automation framework initialization script, a enqueue script, a dequeue script, a request environment specification script, a service discovery script, jsonPath analysis script, a result processing script and the like;
In one implementation, a configuration management module is used for configuration management of a system framework;
Wherein, the content managed by the configuration management module includes but is not limited to: configuration data and service-specific configuration data required by the system framework in operation;
In one implementation, the data-driven management module is used for managing data according to the service dimension;
Wherein, the data managed by the data driving management module includes but is not limited to: data used in case operations such as uid, deviceId, version, etc.;
In one implementation, an automated case management module includes: the device comprises a case storage unit, a first processing unit and a second processing unit;
the case storage unit is used for case storage;
The first processing unit is used for writing an automatic case of the service and carrying out forward and abnormal tests;
the second processing unit is used for requesting the interface of the interface management module and checking the result;
in one implementation, the system further comprises: the system comprises a task execution module, a dependence processing module and a notification module;
The task execution module is used for pressing the case in the automatic case management module into an execution queue when the system operates to carry out service inspection; the Task execution module acquires a Task to be executed in an execution queue in a multi-process mode, and executes the Task to be executed;
The dependency processing module is used for carrying out special processing on the scenes of dependency association among cases when the Task execution module executes Task, and mainly aims to ensure the stability of the system frame and solve the problem of dependency conflict;
And the notification module is used for supporting a message sending function and notifying an operation result of the system to a designated/preset contact person, a developer or a management background (namely a target contact person) in a communication mode of WeChat, flyer, mail and the like.
Example 2
The present embodiment provides an automated service testing method based on the same inventive concept as that of the automated service testing system described in embodiment 1, as shown in fig. 3, including the steps of:
S100, calling an interface management module to manage an API interface;
In the step, registering a target interface according to a service dimension;
in this step, an interface under each service is defined.
S200, calling a script management module to manage a general processing script;
in this step, the general processing script includes: the automation framework initializes scripts, enqueues scripts, dequeues scripts, request context specification scripts, service discovery scripts, jsonPath parse scripts, and result processing scripts.
S300, calling a configuration management module to perform configuration management of a system framework;
in this step, configuration data required for the system framework to run and configuration data required for the service are managed.
S400, calling a data driving management module to manage data according to service dimension;
In this step, the user data at the time of ui, deviceId, and version are managed in accordance with the service dimension.
S500, calling an automatic case management module to store case and assisting in service inspection.
In this step, case is stored; writing an automatic case of the service, and executing a forward test or an anomaly test;
in this step, the interface of the interface management module is referenced to make a request; and verifying the request result.
In the step, responding to service inspection operation, pressing the stored case into an execution queue; acquiring a task to be executed in the execution queue and executing the task to be executed; responding to the execution of the task to be executed, and carrying out dependency conflict processing on inter-case dependency association scenes;
In this step, the system operation result is transmitted to the target contact.
Example 3
The present embodiment provides a computer-readable storage medium including:
The storage medium is used for storing computer software instructions for implementing the automated service testing method described in the above embodiment 2, and the computer software instructions include a program for executing the above program set for the automated service testing method; specifically, the executable program may be built in the automated service test system described in embodiment 1, so that the automated service test system may implement the automated service test method described in embodiment 2 by executing the built-in executable program.
Further, the computer readable storage medium provided in the present embodiment may be any combination of one or more readable storage media, where the readable storage media includes an electric, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
Example 4
The present embodiment provides an electronic device, as shown in fig. 4, which may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
The processor 1501 is configured to execute the computer program stored in the memory 1503 to implement the steps of the automated service testing method described in the above embodiment 1.
As an embodiment of the present invention, the communication bus mentioned by the above-mentioned terminal may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
As an embodiment of the present invention, a communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, simply RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory, as an embodiment of the present invention. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an embodiment of the present invention, the above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), and the like; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Compared with the prior art, the automatic service testing system, method, equipment and medium can automatically carry out high-efficiency and intelligent inspection on the service, avoid the hidden danger of service abnormality and omission caused by the condition that a user does not feed back the service, ensure the service stability and reliability, avoid the occurrence of service abnormality, and have higher application value.
It should be understood that, in the various embodiments herein, the sequence number of each process described above does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments herein.
It should also be understood that in embodiments herein, the term "and/or" is merely one relationship that describes an associated object, meaning that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the elements may be selected according to actual needs to achieve the objectives of the embodiments herein.
In addition, each functional unit in the embodiments herein may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions herein are essentially or portions contributing to the prior art, or all or portions of the technical solutions may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments herein. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (10)

CN202410425463.6A2024-04-102024-04-10Automatic service testing system, method, equipment and mediumPendingCN118210666A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410425463.6ACN118210666A (en)2024-04-102024-04-10Automatic service testing system, method, equipment and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410425463.6ACN118210666A (en)2024-04-102024-04-10Automatic service testing system, method, equipment and medium

Publications (1)

Publication NumberPublication Date
CN118210666Atrue CN118210666A (en)2024-06-18

Family

ID=91446007

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410425463.6APendingCN118210666A (en)2024-04-102024-04-10Automatic service testing system, method, equipment and medium

Country Status (1)

CountryLink
CN (1)CN118210666A (en)

Similar Documents

PublicationPublication DateTitle
CN112148887A (en)Equipment fault diagnosis method and device, storage medium and electronic equipment
US11106187B2 (en)Flexible assembly system for variable reconfiguration, and method of reconfiguring production line
CN112799953A (en)Interface testing method and device, computer equipment and storage medium
CN111061448A (en)Log information display method and device, electronic equipment and storage medium
CN114356346A (en)Application program deployment method, device, storage medium and electronic equipment
CN114579194A (en)Spring remote call-based exception handling method and system
CN113360369A (en)Automatic testing method and system based on MQ message
US20210124591A1 (en)Data processing method and system for intercepting signals between a peripheral device and a software application
CN109558315B (en)Method, device and equipment for determining test range
CN114153668B (en)Automatic test method, device, electronic equipment and storage medium
CN113760315B (en)Method and device for testing system
CN109656791A (en)A kind of gRPC performance test methods and device based on Jmeter
CN118210666A (en)Automatic service testing system, method, equipment and medium
CN113132522A (en)Test method, device, server and medium
CN117955862A (en) Automatic testing method, device, equipment and medium for Ethernet service interface
CN118132376A (en)Data monitoring method and device, electronic equipment and storage medium
CN113778800B (en)Error information processing method, device, system, equipment and storage medium
CN117687697A (en)Batch adaptation method and system for heterogeneous computing power cards of server
CN117560271A (en)Node fault processing method and device
CN114564326B (en) A method and system for performing abnormal scanning on applications of a kubernetes cluster
CN116755949A (en)Method and device for positioning abnormal equipment in multi-equipment testing system and related products
CN114647574A (en)Problem positioning method, device and storage medium
CN112181802A (en)Test method and device
CN111198721A (en)Application program running method and device
CN111026650B (en)Method and device for testing software, storage medium and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp