CN115422064A - Modularized testing method and device - Google Patents

Modularized testing method and device Download PDF

Info

Publication number
CN115422064A
CN115422064A CN202211087725.XA CN202211087725A CN115422064A CN 115422064 A CN115422064 A CN 115422064A CN 202211087725 A CN202211087725 A CN 202211087725A CN 115422064 A CN115422064 A CN 115422064A
Authority
CN
China
Prior art keywords
test
task
selection instruction
test pipeline
pipeline
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
CN202211087725.XA
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211087725.XA priority Critical patent/CN115422064A/en
Publication of CN115422064A publication Critical patent/CN115422064A/en
Pending legal-status Critical Current

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/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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the application provides a modular testing method and a device, wherein the method comprises the following steps: receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing a test result of the test task; the development testing efficiency can be effectively improved.

Description

Modularized testing method and device
Technical Field
The application relates to the field of data processing, in particular to a componentization testing method and device.
Background
The application usually involves service invocation of a plurality of platforms and applications in the process of business development, if development and testing personnel develop or test a new business, learning cost and threshold are high, and development and test progress is slow and the whole project progress is not ideal due to the fact that data state circulation states and tools are not well used for other applications in the upstream and downstream. The situation of data transfer among a plurality of applications often needs development and testing personnel of other applications to assist in cooperation, communication cost is high, and a large amount of time of cooperation support personnel needs to be occupied for technical support, so that certain trouble is brought to the development and testing personnel.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a componentization testing method and device, which can effectively improve the development testing efficiency.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a componentized testing method, including:
receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction;
determining corresponding test nodes and node trigger circulation information according to the test pipeline task;
and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task.
Further, the receiving a user-selected test pipeline template selection instruction and a logic component selection instruction includes:
performing visual page display of the test pipeline module and the logic component to a user according to a preset test pipeline template library and a logic component library;
and receiving the test pipeline module and the logic component selected by the user on the visual page and generating a corresponding test pipeline template selection instruction and a corresponding logic component selection instruction.
Further, the receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user further includes:
updating the corresponding test pipeline module according to the test pipeline template selection instruction and the logic component selection instruction selected by the user;
and storing the test pipeline template subjected to the updating operation into a corresponding test pipeline module library.
Further, the generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction includes:
determining the selection of each test pipeline template and the calling sequence and the butt joint information between each logic assembly according to the test pipeline template selection instruction and the logic assembly selection instruction;
and generating a corresponding test pipeline task according to the calling sequence and the docking information.
Further, the executing the corresponding test task according to the test pipeline task, the test node, and the node trigger flow information includes:
performing subtask analysis on the test pipeline task;
and performing task execution operation on each sub-task after analysis according to a preset task scheduling script, a preset task batch processing script, the test node and the node trigger circulation information.
Further, the performing verification analysis on the test result of the test task includes:
if the test result of the test task is successful, a task success signal is fed back and displayed to the user;
and if the test result of the test task is failure, positioning a failure node and feeding back to the user.
In a second aspect, the present application provides a modular testing apparatus, comprising:
the task generation module is used for receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction;
the node determining module is used for determining corresponding testing nodes and node trigger circulation information according to the testing pipeline task;
and the task execution module is used for executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing a test result of the test task.
In a third aspect, the present application provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the componentized test method when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the modular testing method described.
In a fifth aspect, the present application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the componentized testing method described.
According to the technical scheme, the componentization test method and the device are provided, wherein a test pipeline template selection instruction and a logic component selection instruction selected by a user are received, and a corresponding test pipeline task is generated according to the test pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a componentization testing method according to an embodiment of the present application;
FIG. 2 is a second flowchart illustrating a componentized testing method according to an embodiment of the present application;
FIG. 3 is a third flowchart illustrating a componentized testing method according to an embodiment of the present application;
FIG. 4 is a fourth flowchart illustrating a componentized testing method according to an embodiment of the present application;
FIG. 5 is a fifth flowchart illustrating a componentized testing method according to an embodiment of the present application;
FIG. 6 is a sixth flowchart illustrating a componentized testing method according to an embodiment of the present application;
FIG. 7 is a block diagram of a modular test apparatus in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
In consideration of the problems in the prior art, the application provides a componentization testing method and a componentization testing device, wherein a testing pipeline template selection instruction and a logic component selection instruction selected by a user are received, and a corresponding testing pipeline task is generated according to the testing pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
In order to effectively improve the development and test efficiency, the present application provides an embodiment of a componentization test method, and with reference to fig. 1, the componentization test method specifically includes the following contents:
step S101: and receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction.
Step S102: and determining corresponding test nodes and node trigger circulation information according to the test pipeline task.
Step S103: and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task.
Therefore, the method for improving the current development and test efficiency can be improved through the componentized test pipeline platform system and the test pipeline auxiliary development and test method. The problems that in the current platform service development process, test data is difficult to automatically generate in a standard flow, a large number of repeated manual operations are relied on, the test data generation flow is not clear and standard, the joint test flow among a plurality of application services is long and difficult to test, and a platform does not share test tools and data are solved.
As can be seen from the above description, the componentization test method provided in the embodiment of the present application can generate a corresponding test pipeline task by receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and according to the test pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
In an embodiment of the componentized testing method of the present application, referring to fig. 2, the following may be specifically included:
step S201: and carrying out visual page display on the test pipeline module and the logic component to a user according to the preset test pipeline template library and the logic component library.
Step S202: and receiving the test pipeline module and the logic component selected by the user on the visual page and generating a corresponding test pipeline template selection instruction and a corresponding logic component selection instruction.
Optionally, the method can be implemented by using a reach front-end framework through a front-end page module, and is used for displaying template information of the test assembly line, drawing details of the test assembly line, and detailed information of all assembly line execution conditions, namely other modules, on a test assembly line platform system, and displaying the detailed information to a user in a visual Web graphical interface mode, so that the user can conveniently operate on the test platform, the method is different from traditional text information description, the graphical interface can more intuitively display the link relation of the test assembly line, the overall execution logic of tasks of the test assembly line and the execution conditions of tasks of the test assembly line, and the user can conveniently know the execution logic and the execution conditions of all test assembly line tasks.
In an embodiment of the componentization testing method of the present application, referring to fig. 3, the following may be further included:
step S301: and updating the corresponding test pipeline module according to the test pipeline template selection instruction and the logic component selection instruction selected by the user.
Step S302: and storing the test pipeline template subjected to the updating operation into a corresponding test pipeline module library.
Optionally, the test pipeline template database module of the application is used for storing a test pipeline, related test problems and test process ledger information into a template after a platform user completes development and test of the test pipeline, the user newly builds a test scene next time and can reuse the template information stored in stock and know the stock history test problems, and key tests are performed on the history test problems.
If the multiplexing test pipeline template is selected, the stored template information is transmitted to the test pipeline combination layer module, and a pipeline diagram can be quickly generated after the test pipeline combination layer obtains the stock template information, so that a user can conveniently modify the stock template according to the self requirement to meet the current use requirement.
Different from the traditional test tool which needs to manufacture according to different test requirements, the module provides a mode of more quickly and more systematically testing legacy data aggregation, a test pipeline template can be continuously modified along with the iteration of the requirements, the template which meets the current requirements can be quickly customized through the module, and the test problem and test bench account information are uploaded according to the platform and various application requirements, so that the follow-up review is facilitated.
In an embodiment of the componentization testing method of the present application, referring to fig. 4, the following may be further included:
step S401: and determining the selection of each test pipeline template and the calling sequence and the butt joint information between each logic component according to the test pipeline template selection instruction and the logic component selection instruction.
Step S402: and generating a corresponding test pipeline task according to the calling sequence and the docking information.
Optionally, the application may be implemented by a test pipeline combination layer module, and a user may complete the test pipeline drawing work on the module. If the stock transaction development and the test are iterative updating, the user can select the template stored in the test pipeline template database module or other templates uploaded by other users for multiplexing.
Optionally, the user may select the basic component module or the application customization component module according to the self development and test requirements to freely modify the manufacturing logic, the verification, the specification and the security scanning logic in the pipeline.
Optionally, the user may reuse the pipeline template to set up a test scenario according to actual requirements, and perform personalized adjustment on component selection or component execution sequence in the stock template according to the iteration test requirement. After the pipeline drawing is finished, the new template can be stored as a new template and stored in a test pipeline template database, then the execution pipeline transmits the pipeline information to a pipeline task generating module, and the module generates a test pipeline task.
In an embodiment of the componentized testing method of the present application, referring to fig. 5, the following may be further specifically included:
step S501: and performing subtask analysis on the test pipeline task.
Step S502: and performing task execution operation on each sub-task after analysis according to a preset task scheduling script, a preset task batch processing script, the test node and the node trigger circulation information.
Optionally, the present application may further include a test pipeline task generation module, which receives test pipeline information transmitted by the upstream test pipeline combination layer module, generates a plurality of subtask information according to information such as a running node circulation sequence in the user drawn pipeline, a node running trigger condition, and the like, and provides the subtask information to the test pipeline task generation module in an xml format for subsequent task scheduling and execution.
Optionally, a test pipeline task execution module may be provided in the present application, a Jenkins persistent integration tool, a task scheduling related Shell script, or a Window batch processing command is encapsulated in the module, and each platform basic component or application customization component is stored in the basic component module and the application customization component module in a Docker basic mirror manner. And calling Jenkins task modules by analyzing xml generated by the task generation layer during the execution of the pipeline task to start relevant scripts to execute corresponding functions or start Docker basic images of all components to run corresponding tasks. And scheduling and executing tasks are completed according to the task information provided by the test pipeline task generating module, and the running condition of each task is transmitted to the test pipeline result verification analysis module after the execution is completed.
In an embodiment of the componentization testing method of the present application, referring to fig. 6, the following may be further included:
step S601: and if the test result of the test task is successful, feeding back and displaying a task success signal to the user.
Step S602: and if the test result of the test task is failure, positioning a failure node and feeding back to the user.
Optionally, the method and the device for testing the task execution status of the test pipeline task execution module can summarize the task execution status of the test pipeline task execution module by setting the test pipeline task analysis module, and if all the tasks are successfully executed, the information such as the operation result, the consumed time and the task execution status is returned to the front-end page to be displayed to the user. If the task fails, the error reporting information of the task operation failure is returned to the front-end page and displayed to the user, and the user can know the operation condition of each operation node through the information returned to the front-end page by the module, so that the error reason is positioned and the test pipeline is modified.
In some other embodiments of the present application, the present application may set a basic component library provided by the platform for the basic component module and an application customization component module for the application customization development, and upload the basic component library and the application customization development to a component library shared by the platform, and the test pipeline combination layer module calls a component provided by the module.
The basic component library of the platform provides basic functional components from the platform side, meets the basic test requirements of development and testers, provides a standard scanning component to scan a test assembly line according to corresponding standards, and gives an alarm and intercepts places which do not conform to the standards.
The basic function element component is a component which meets the basic test requirements of development and testers, and the platform provides the basic test element component by investigating the requirements of the development and testers and combining the actual basic test scene. For example, a data source is tested, a Docker basic mirror image is operated by customizing a data source, after the service is provided by starting the mirror image, the operation of adding, deleting, checking and changing the data source appointed by a user is realized by customizing a developed data source operation script or program in the mirror image, and the operation result information is returned to the platform in the form of an xml message. The user can use the service provided by the component to designate the upstream and downstream application data flow conversion logic, and the requirements of development and testing personnel on adding, deleting, checking and changing basic operations of each database table are met. The test result verification component is also realized by using a Docker basic mirror image packaged by a platform, and the basic mirror image provides each data source query and data verification component through scripts and programs. The result data of the data flow logic which is implemented to each table of the database can be verified according to the verification logic set by the user, the automatic verification requirement of a complex scene is met, and the workload of repeated manual confirmation of testers can be reduced.
The specification scan component may set the scan component as required for the test pipeline according to the specification in combination with the test pipeline management requirements. For example, field length scanning is carried out on a relevant data table of a test production line to judge whether the length meets the specified length of a data standard, and a newly added table which does not meet the specification is intercepted for the first time, so that the production hidden danger is reduced. With the popularization of new technology and new concepts, the relevant development and test specifications are gradually updated, and the specification scanning component can enable specification formulation to be really implemented in a specific test process.
And applying a customized component module, wherein the component implementation can be a Shell script implementation or a product after a platform supports a language component, such as a jar package after Java construction, a platform side provides development guidance, a user develops according to the guidance, and the component supported by the platform side can be released and used on the platform after meeting the requirements. The customized development component is uploaded by a user and used by each user of the platform, the platform audits the component according to the standard, the application customized component module is added after the audit is passed and is opened for all platform users to use, the application customized component is a component customized and packaged for each application according to the application test requirement or the general test requirement, the user can directly use the ready-made component to realize the test requirement, and the waste of manpower in repeated development is avoided.
For platform base component and application customization component partitioning, for general purpose test components, i.e., components that meet most application requirements and are common non-customized, are attributed to the platform base component. The application customization components are components which are required by each application or are shared and used by related applications, and are attributed to the application customization components, if the application customization components gradually become common basic components along with the development of the applications, the application customization components can be brought into the platform basic components after communicating with the applications, and the subsequent research and development and maintenance work of the application customization components can be supported according to corresponding specifications.
And each application and the platform upload components on the basic component module or the application customization component module, and the test pipeline template database module and the test pipeline combination layer module use the components provided by the module to carry out free combination, and finally a piece of test pipeline information is exported by the test pipeline combination layer module and transmitted to the test pipeline task generation module for test task generation.
In order to effectively improve the development and test efficiency, the present application provides an embodiment of a componentization test apparatus for implementing all or part of the content of the componentization test method, and referring to fig. 7, the componentization test apparatus specifically includes the following contents:
the task generating module 10 is configured to receive a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generate a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction.
And the node determining module 20 is configured to determine corresponding test nodes and node trigger flow information according to the test pipeline task.
And the task execution module 30 is configured to execute a corresponding test task according to the test pipeline task, the test node, and the node trigger flow information, and perform verification analysis on a test result of the test task.
As can be seen from the above description, the componentized test apparatus provided in the embodiment of the present application can generate a corresponding test pipeline task according to a test pipeline template selection instruction and a logic component selection instruction selected by a user; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
In terms of hardware, in order to effectively improve the development and test efficiency, the present application provides an embodiment of an electronic device for implementing all or part of the contents in the componentized test method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the componentized testing device and relevant equipment such as a core service system, a user terminal, a relevant database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may be implemented with reference to the embodiments of the componentization test method and the componentization test apparatus in the embodiments, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the componentized testing method may be performed on the electronic device side as described above, or all operations may be performed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 8 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 8, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is noted that this fig. 8 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the componentized test methodology functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
step S101: and receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction.
Step S102: and determining corresponding test nodes and node trigger circulation information according to the test pipeline task.
Step S103: and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, a test pipeline template selection instruction and a logic component selection instruction selected by a user are received, and a corresponding test pipeline task is generated according to the test pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
In another embodiment, the modular testing apparatus may be configured separately from the central processor 9100, for example, the modular testing apparatus may be configured as a chip connected to the central processor 9100, and the functions of the modular testing method may be implemented by the control of the central processor.
As shown in fig. 8, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 8; further, the electronic device 9600 may further include components not shown in fig. 8, which may be referred to in the art.
As shown in fig. 8, the central processor 9100, which is sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, the central processor 9100 receives input and controls the operation of various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., read Only Memory (ROM), random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
A plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, can be provided in the same electronic device based on different communication technologies. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all the steps in the componentized testing method in which the execution subject is the server or the client in the above embodiments, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the componentized testing method in which the execution subject is the server or the client in the above embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
step S101: and receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction.
Step S102: and determining corresponding test nodes and node trigger circulation information according to the test pipeline task.
Step S103: and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task.
As can be seen from the above description, in the computer-readable storage medium provided in this embodiment of the present application, a test pipeline template selection instruction and a logic component selection instruction selected by a user are received, and a corresponding test pipeline task is generated according to the test pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
Embodiments of the present application further provide a computer program product capable of implementing all steps in the componentized testing method in which the execution subject is the server or the client in the above embodiments, and when being executed by a processor, the computer program/instruction implements the steps of the componentized testing method, for example, the computer program/instruction implements the following steps:
step S101: and receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction.
Step S102: and determining corresponding test nodes and node trigger circulation information according to the test pipeline task.
Step S103: and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task.
As can be seen from the above description, in the computer program product provided in the embodiment of the present application, a test pipeline template selection instruction and a logic component selection instruction selected by a user are received, and a corresponding test pipeline task is generated according to the test pipeline template selection instruction and the logic component selection instruction; determining corresponding test nodes and node trigger circulation information according to the test pipeline task; and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task, thereby effectively improving the development and test efficiency.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A componentized testing method, the method comprising:
receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user, and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction;
determining corresponding test nodes and node trigger circulation information according to the test pipeline task;
and executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing the test result of the test task.
2. The componentized testing method of claim 1, wherein receiving user-selected test pipeline template selection instructions and logic component selection instructions comprises:
carrying out visual page display on the test pipeline module and the logic component to a user according to a preset test pipeline template library and a logic component library;
and receiving the test pipeline module and the logic component selected by the user on the visual page and generating a corresponding test pipeline template selection instruction and a corresponding logic component selection instruction.
3. The componentized testing method of claim 1, wherein the receiving of the user-selected test pipeline template selection instruction and the logic component selection instruction further comprises:
updating the corresponding test pipeline module according to the test pipeline template selection instruction and the logic component selection instruction selected by the user;
and storing the test pipeline template subjected to the updating operation into a corresponding test pipeline module library.
4. The componentized testing method of claim 1, wherein the generating of the corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction comprises:
determining the selection of each test pipeline template and the calling sequence and the butt joint information between each logic assembly according to the test pipeline template selection instruction and the logic assembly selection instruction;
and generating a corresponding test pipeline task according to the calling sequence and the docking information.
5. The componentized testing method of claim 1, wherein the executing the corresponding testing task according to the testing pipeline task, the testing node, and the node trigger flow information comprises:
performing subtask analysis on the test pipeline task;
and performing task execution operation on each sub-task after analysis according to a preset task scheduling script, a preset task batch processing script, the test node and the node trigger circulation information.
6. The componentized testing method of claim 1, wherein the performing validation analysis on the test results of the test task comprises:
if the test result of the test task is successful, a task success signal is fed back and displayed to the user;
and if the test result of the test task is failure, positioning a failure node and feeding back to the user.
7. A modular testing apparatus, comprising:
the task generation module is used for receiving a test pipeline template selection instruction and a logic component selection instruction selected by a user and generating a corresponding test pipeline task according to the test pipeline template selection instruction and the logic component selection instruction;
the node determining module is used for determining corresponding testing nodes and node trigger circulation information according to the testing pipeline task;
and the task execution module is used for executing a corresponding test task according to the test pipeline task, the test node and the node trigger circulation information, and verifying and analyzing a test result of the test task.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the modular test method according to any of claims 1 to 6 are implemented when the processor executes the program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the modular testing method according to any one of claims 1 to 6.
10. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the componentized testing method of any one of claims 1 to 6.
CN202211087725.XA 2022-09-07 2022-09-07 Modularized testing method and device Pending CN115422064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211087725.XA CN115422064A (en) 2022-09-07 2022-09-07 Modularized testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211087725.XA CN115422064A (en) 2022-09-07 2022-09-07 Modularized testing method and device

Publications (1)

Publication Number Publication Date
CN115422064A true CN115422064A (en) 2022-12-02

Family

ID=84201580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211087725.XA Pending CN115422064A (en) 2022-09-07 2022-09-07 Modularized testing method and device

Country Status (1)

Country Link
CN (1) CN115422064A (en)

Similar Documents

Publication Publication Date Title
CN111159049A (en) Automatic interface testing method and system
CN110543301B (en) Method and device for generating jenkins code file
CN114138372B (en) Front-end component loading method and device
CN111984239B (en) Page configuration method, page configuration device, server and storage medium
CN113838231B (en) Intelligent lock fault processing method and device based on intelligent sound box and readable medium
CN112463634A (en) Software testing method and device under micro-service architecture
KR101086620B1 (en) Smart office system and server for managing the sames and method for managing the sames
CN111897738B (en) Automatic testing method and device based on atomic service
CN112015654A (en) Method and apparatus for testing
CN112988600A (en) Service scene testing method and device, electronic equipment and storage medium
CN113342330A (en) Front-end engineering generation method and device
CN113760611B (en) System site switching method and device, electronic equipment and storage medium
CN111427790A (en) Test method, test device, terminal equipment and storage medium
CN113608997B (en) Remote debugging method and device for embedded webpage of application program and electronic equipment
CN113050985A (en) Front-end engineering dependence automatic registration method and device
CN116150029A (en) Automatic overdue batch testing method and device for loan system
CN113434423B (en) Interface testing method and device
CN115422064A (en) Modularized testing method and device
CN110334014A (en) For user interface automated testing method, system, server and storage medium
CN117348848A (en) Operator development and processing method and device, electronic equipment, system and storage medium
CN113515447A (en) System automation test method and device
CN113609017A (en) Interface test case generation method and device
CN112102058A (en) Management system parameter configuration method and device
CN111414232A (en) Method and device for processing template data of virtual machine
CN110827133A (en) Bank business system change commissioning and account-supplementing method and device

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