CN117555800A - Online program testing method, device and equipment - Google Patents

Online program testing method, device and equipment Download PDF

Info

Publication number
CN117555800A
CN117555800A CN202311596314.8A CN202311596314A CN117555800A CN 117555800 A CN117555800 A CN 117555800A CN 202311596314 A CN202311596314 A CN 202311596314A CN 117555800 A CN117555800 A CN 117555800A
Authority
CN
China
Prior art keywords
program
online
tested
target test
batch
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
CN202311596314.8A
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 CN202311596314.8A priority Critical patent/CN117555800A/en
Publication of CN117555800A publication Critical patent/CN117555800A/en
Pending legal-status Critical Current

Links

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the specification provides an online program testing method, device and equipment, which can be applied to the technical field of computers. The method comprises the following steps: constructing an associated online program according to the online program to be tested; the related program and the online program to be tested have the same communication area; compiling the associated online program to obtain a target test program; the target test program is used for responding to a call request aiming at the online program to be tested; constructing an online service module aiming at a communication area of the online program to be tested; the online service module is used for simulating a service online processing process of the target test program; performing temporary batch operation by utilizing the online service module based on the target test program to obtain an operation execution result; obtaining a comparison result of the operation execution result; the comparison result is used for representing a test result aiming at the online program to be tested. The method ensures the comprehensiveness of the test, improves the test efficiency of the online program, and reduces the occupation of resources.

Description

Online program testing method, device and equipment
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an online program testing method, device, and equipment.
Background
A host online program refers to a program on a host that provides corresponding service functions for other applications in a host system or corresponding applications of other hosts, and in some application scenarios is an important component of the program in the host. Accordingly, testing for the host online program is also required in the process of constructing the system and generating the host online program.
Since the host online program generally needs to be used in an online environment, and there is a call relationship with an online service or other contact program, a test process related to the host online program is complicated. Under the condition that the host online program corresponds to a multi-layer calling relationship, the interface test scene of the host online program is difficult to completely cover the actual application condition, so that a large risk of incomplete test results exists. Therefore, there is a need for a method for testing a host online process comprehensively and effectively.
Disclosure of Invention
An objective of the embodiments of the present disclosure is to provide an online program testing method, device and apparatus, so as to solve the problem of how to test online programs of hosts comprehensively and effectively.
In order to solve the above technical problems, an embodiment of the present disclosure provides an online program testing method, including: constructing an associated online program according to the online program to be tested; the related program and the online program to be tested have the same communication area; compiling the associated online program to obtain a target test program; the target test program is used for responding to a call request aiming at the online program to be tested; constructing an online service module aiming at a communication area of the online program to be tested; the online service module is used for simulating a service online processing process of the target test program; performing temporary batch operation by utilizing the online service module based on the target test program to obtain an operation execution result; obtaining a comparison result of the operation execution result; the comparison result is used for representing a test result aiming at the online program to be tested.
In some embodiments, compiling the associated online program to obtain the target test program includes: and modifying the definition of the calling job to correspond to the target test program.
Based on the above embodiment, the modifying the definition of the call job to correspond to the target test program includes: determining call job definition data of the online program to be tested based on a preset call keyword; and replacing the pointing path of the calling job definition data so that the replaced pointing path corresponds to the target test program.
In some embodiments, before the performing the temporary batch job based on the online service module calling the target test program to obtain a job execution result, the method further includes: acquiring batch service programs corresponding to the temporary service; the batch service program and the online program to be tested have the same communication area; compiling the batch business program to obtain a batch operation processing program; the batch operation processing program is used for simulating a main body which performs online interaction with the online program to be tested.
Based on the above embodiment, the calling, based on the online service module, the target test program to execute the temporary batch job to obtain a job execution result includes: reading temporary batch jobs by using the batch job processing program; calling an interface corresponding to the online program to be tested to send the temporary batch operation to a target test program; and the target test program executes the temporary batch operation to obtain an operation execution result.
In some embodiments, the communication zone comprises a multi-layer communication zone data structure; the communication area data structure comprises at least one attribute parameter of layer number, data type and storage length; the communication area data structure is used for realizing multi-layer communication.
In some embodiments, the target test program is configured to reserve the operation result of the communication area as a job execution result.
In some embodiments, after the comparing result of the job execution result is obtained, the method further includes: and deleting the associated online program, the target test program, the temporary service and the temporary batch operation.
In some embodiments, the obtaining the comparison result of the job execution result includes: and correspondingly storing the operation execution result and the comparison result based on the association relation.
The embodiment of the specification also provides an online program testing device, which comprises: the associated online program construction module is used for constructing an associated online program based on the online program to be tested; the related program and the online program to be tested have the same communication area; the target test program compiling module is used for compiling the associated online program to obtain a target test program; the target test program is used for responding to a call request aiming at the online program to be tested; the online service module construction module is used for constructing an online service module aiming at the communication area of the online program to be tested; the online service module is used for simulating a service online processing process of the target test program; the temporary batch job execution module is used for executing temporary batch jobs by utilizing the online service module based on the target test program to obtain a job execution result; the comparison result acquisition module is used for acquiring a comparison result of the operation execution result; the comparison result is used for representing a test result aiming at the online program to be tested.
The embodiment of the specification also provides electronic equipment, which comprises a memory and a processor; the memory is used for storing computer programs/instructions; the processor is configured to execute the computer program/instructions to implement the steps of the online program testing method described above.
The present description also proposes a computer storage medium having stored thereon a computer program/instructions for implementing the steps of the above-described online program test method when executed.
The present description also proposes a computer program product comprising a computer program/instructions for implementing the steps of the above-mentioned online program test method when executed.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, in the online program testing method of the embodiments of the present disclosure, an associated online program corresponding to the online program to be tested is first constructed based on the same manner of the communication area, and then the associated online program is compiled to obtain the target test program. And constructing an online service module aiming at the communication area of the online program to be tested, so that the target test program utilizes the online service module to execute temporary batch operation to obtain an operation execution result, and finally, completing the test of the online program to be tested by obtaining the comparison result of the operation execution result. The method not only ensures that the online program is tested by simulating the actual online program execution flow, ensures the comprehensiveness of the test, but also improves the testing efficiency of the online program, reduces the occupation of resources, avoids invalid transactions, and has good practical application value.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present description, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an online program testing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating an online program testing system according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of data transfer according to an embodiment of the present disclosure;
FIG. 4 is a block diagram of an on-line testing apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions of the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
In order to solve the above technical problems, an online program testing method according to an embodiment of the present disclosure is described. The execution main body of the online program testing method is corresponding electronic equipment, and the electronic equipment comprises, but is not limited to, a server, an industrial personal computer, a PC (personal computer) and the like. As shown in FIG. 1, the online program test method may include the following specific implementation steps.
S110: constructing an associated online program based on the online program to be tested; the related program and the online program to be tested have the same communication area.
The online program to be tested is the online program to be tested. The online program has interaction procedures with other programs or other devices in the execution process, and a multi-layer calling procedure can exist. The specific type of the online program to be tested and the specific function to be realized can be set according to the actual application situation, and the method is not limited.
Accordingly, when testing the online program to be tested, if the online program to be tested is tested based on a normal state, the testing process may occupy more resources, and meanwhile, the testing process cannot be guaranteed to completely cover the actual application scene.
Therefore, in order to solve this problem, first, a corresponding associated online program is constructed for the online program to be tested. The associated connection program may have the same communication area as the connection program to be tested. Under the condition that the communication areas are the same, the associated online program can complete the test operation originally aiming at the online program to be tested.
The main body part of the online program to be tested is a communication area, and the communication area is used for receiving data transmitted by other programs and generating corresponding operation results based on preset logic operation.
The communication area of the online program to be tested is composed of a plurality of layers of data mechanisms. Each layer data structure may include at least one attribute parameter of layer number, data type, and storage length. The different data types may also contain corresponding values or characters. The online program to be tested interacts with other programs through the communication area to complete corresponding business or operation.
Correspondingly, the relevant online program is built aiming at the online program to be tested, the copying operation can be carried out based on the communication area of the online program to be tested, and then the corresponding relevant online program is generated based on the corresponding construction processing. For example, the communication area copy of the online program to be tested can be used as the communication area of the associated online program.
The associated online program can store the data of the communication area under the condition that the associated online program contains the same communication area, for example, can store the data of the communication area as operation data. The associated online program can also call the online program to be tested to complete corresponding operation. For example, the calling of the program can be realized by combining the communication area name of the online program to be tested through the corresponding LINK command.
S120: compiling the associated online program to obtain a target test program; the target test program is used for responding to the call request aiming at the online program to be tested.
Since the associated online program is only the associated program code after being directly generated, the effect of direct execution is not achieved. Thus, there is also a need to compile for the associated online program to get a target test program that can be used to actually execute the corresponding process.
The process of compiling the associated online program into the target test program is similar to the process of compiling the source code into the target program. The specific compiling process may be set according to the actual application situation, and will not be described herein.
In the subsequent process, the target test program is needed to replace the online program to be tested to complete the corresponding test flow, so that the definition of the calling operation can be modified to correspond to the target test program. The purpose of modifying the definition is to enable the target test program to respond to the job and execute based on the adjusted definition after receiving the job, thereby completing the response to the call request of the online program to be tested.
The definition of the call job is specifically modified, call job definition data of the online program to be tested can be determined based on a preset call keyword, and then the pointing path of the call job definition data is replaced, so that the replaced pointing path corresponds to the target test program.
By using a specific example for explanation, when modifying the definition of the calling job, the system definition CSD may be read first, and the calling transaction definition for calling the online program to be tested may be obtained according to the keyword. And modifying the preset calling key word pointing to the online program to be tested into a target test program, and storing the target test program into a system definition file CSD.
By modifying the definition of the mobilization operation, the effective execution of the corresponding call test operation by the target test program is ensured to be completed.
S130: constructing an online service module aiming at a communication area of the online program to be tested; the online service module is used for simulating the service online processing process of the target test program.
The online service module may be a module for implementing a specific service online process. When the target test program receives the corresponding service, the online service module can be called to complete the execution of the corresponding service based on the related execution program of the online service module, and finally an execution result is obtained.
When testing an online program, if other hosts or online programs are called according to actual conditions, more resources are consumed in the testing process, which is unfavorable for the testing process, so that an online service module needs to be constructed.
The online service module may also have a communication area identical to the online program to be tested, so as to ensure the effective implementation of the test procedure. Specifically, a temporary service module T1 may originally exist in the system, and the original definition of the temporary service module T1 is stored in the system definition file. The online service module may be constructed corresponding to the temporary service module to ensure the same communication area.
Because the online service module and the online program to be tested have the same communication area, the online service module and the online program to be tested have an association relation, and when the operation aiming at the online program to be tested is sent out, the online service module can be used for completing the execution of the corresponding operation. In addition, the specific simulation test procedure is realized by the target test program, so the target test program has a calling relation for the online service module.
S140: and executing temporary batch operation by utilizing the online service module based on the target test program to obtain an operation execution result.
After the construction of the target test program and the online service module is completed, the temporary batch operation can be executed by utilizing the online service module based on the target test program to obtain an operation execution result so as to complete a specific test process.
The temporary batch jobs may be batch processing jobs generated based on test requirements for simulating different test requirements. For example, a batch job generating module may be constructed in advance according to test requirements, and then batch jobs may be generated by using the batch job processing module. The method for generating batch processing jobs can be determined according to the requirements in practical application, and is not limited thereto.
The target test program can respond to the batch processing operation, and further call the online business module to execute temporary batch operation, so that the actual online program processing business process is simulated.
In some embodiments, a batch business program corresponding to the temporary batch job may also be obtained. The batch service program and the online program to be tested also have the same communication area. Because online programs exist in online interaction during execution, the batch business program can be used to simulate the subject of interaction with the target online program. Under the condition that the two have the same communication area, the effective communication between the two is ensured, so that the test effect of multi-layer interface communication can be realized.
Correspondingly, before application, the batch business program can be compiled to obtain a batch job processing program, and then the actual job execution process is completed by using the batch job processing program.
After the batch job processing program is constructed, the job execution process may be to read the temporary batch job by using the batch job processing program, and then call the interface corresponding to the online program to be tested to send the temporary batch job to the target test program, so that the target test program executes the temporary batch job to obtain the job execution result. The above process completes the simulation process of the online program processing service through the interaction and specific execution operation between the batch operation processing program and the target test program, and realizes the corresponding test requirement.
Specifically, the temporary batch job may first invoke a batch job handler. After the batch operation processing program reads the temporary batch operation data, the interface of the online program to be tested is called to send the data through the temporary transaction and communication area. The data is simultaneously transmitted to the target online program so as to operate the data and obtain a corresponding operation result. Preferably, the running result can be returned to the batch job processing program for subsequent comparison operation.
S150: obtaining a comparison result of the operation execution result; the comparison result is used for representing a test result aiming at the online program to be tested.
When the job execution result is obtained, comparison can be performed with respect to the job execution result. The comparison may be to compare different job execution results, or may be to compare a job execution result with a preset judgment standard or result template, which is not limited.
After the comparison is completed, the comparison result can be used as a test result aiming at the online program to be tested so as to reflect the effectiveness of the online program to be tested.
In some embodiments, the job execution result and the comparison result can be correspondingly stored based on the corresponding association relationship, so that subsequent viewing is facilitated.
Preferably, after the comparison result is obtained and the test is completed, the associated online program, the target test program, the temporary service and the temporary batch operation can be deleted. And the resource occupation is reduced, and the interference to the normal operation of other subsequent tests is prevented. Under the condition that only the operation result and the related log are reserved, the corresponding test effect can be intuitively determined.
Described with a specific example of a scenario, as shown in fig. 2, is a graph of the relationship between different modules built into a host system. The program constructing sub-module 401 of the 004 online program recording module constructs the online program PROG1 of the same communication area as the tested host online program PROG0 according to the communication area format and size of the tested host online program PROG 0. The compile targets program sub-module 402 compiles the online program PROG1 into an online target program PROG2.
The communication area of the tested host online program PROG0 is composed of a plurality of data structures, wherein each data structure comprises a layer number, a data type and a storage length, and the data type comprises a numerical value or a character. The online program PROG1 is mainly used for a communication area, saving data of the communication area, calling the online program PROG0 of the tested host, and saving an operation result.
The 004 online program recording module copies the complete communication area of the online program PROG0 of the tested host as the communication area of the online program PROG1. The 004 online program recording module stores the communication area COMM-1 data into the call data. 004 on-line program recording module, calling program PROG0 by the following LINK command, wherein COMM-1 is the communication area name.
The 004 online program recording module stores the communication area COMM-1 data after operation into operation result data, and persists the calling data and the operation result data into a disk space.
In the system definition (CSD) of the CICS system, the call transaction T1 definition of calling PROG0 is acquired according to the keyword PROGRAM (PROG 0), such as CEDA DEFINE TRANACTION (T1) PROGRAM (PROG 0) GROUP (GROUP 1). The PROGRAM (PROGRAM 0) is replaced with PROGRAM (PROGRAM 2), i.e., CEDA DEFINE trace (T1) PROGRAM (PROGRAM 1) GROUP (GROUP 1), and stored in the system definition file CSD. The definition temporary transaction T1 definition is stored in a system definition (CSD) file of the CICS system. And installing the temporary transaction T1 through INSTALL, and loading the transaction T into the memory of the current CICS system. The tested program PROG0 is called for testing, and after the tested program PROG0 is called, the online object program PROG2 records calling data and running result data.
Construction of 001 on-line program processing module the temporary connection sub-module 101 constructs a temporary transaction T2 of the same communication area and defines and installs the temporary transaction T2 on the host. The temporary transaction T2 is associated with the program under test PROG 0. The 001 on-line PROGRAM processing module stores the definition of the temporary transaction T2 into a system definition (CSD) file of the CICS system through CEDA DEFINE transaction (T2) PROGRAM (PROG 0) GROUP (GROUP 1). The 001 online program processing module INSTALLs the temporary transaction T2 through INSTALL, and loads the transaction T2 into the memory of the current running CICS system.
The 002 batch program processing module constructs a batch program sub-module 201 to generate a call batch program PROG3 source code, wherein the source code comprises a communication area with the same structure as the tested program, reads data, calls the tested program, sends the data to a transfer transaction and communication area, and obtains and compares the results. The compile targets program sub-module 202 compiles the bulk program PROG3 source code to generate a bulk targets program PROG4. 003 the construction batch job processing module the batch job submodule 301 generates a temporary batch job JCL1, JCL1 calls PROG4 by the name and directory of the batch object program PROG4.
As shown in fig. 3, a schematic diagram of the data transfer relationship between different modules is shown. The temporary batch job JCL1 is called to run, and the batch job JCL1 calls the batch target program PROG4. The batch object program PROG4 receives the read test data, calls the tested interface PROG0 through the temporary transaction T2 and the communication area, and sends the test data. And the tested interface PROG0 operates, and after the operation is finished, the operation result is stored in the communication area and returned to the temporary transaction T2. The temporary transaction T2 returns the result of the run to the batch object program PROG4. And (4) obtaining and comparing the results by the batch target program PROG4, and storing the comparison results to the hard disk.
After the tool circularly reads the test data and generates and initiates the temporary batch job JCL1 to finish, the temporary transaction T2 is invalidated, temporary resources such as the temporary batch job JCL1, the online program PROG1, the online target program PROG2, the batch program PROG3, the batch target program PROG4 and the like are deleted, only the running result is reserved, and the log is reserved in case of abnormality.
Based on the description of the above embodiment and the scenario example, it can be seen that the above method first constructs the associated online program corresponding to the online program to be tested based on the same manner of the communication area, and then compiles the associated online program to obtain the target test program. And constructing an online service module aiming at the communication area of the online program to be tested, so that the target test program utilizes the online service module to execute temporary batch operation to obtain an operation execution result, and finally, completing the test of the online program to be tested by obtaining the comparison result of the operation execution result. The method not only ensures that the online program is tested by simulating the actual online program execution flow, ensures the comprehensiveness of the test, but also improves the testing efficiency of the online program, reduces the occupation of resources, avoids invalid transactions, and has good practical application value.
Based on the online program testing method corresponding to fig. 1, an online program testing apparatus according to an embodiment of the present disclosure is described. The online program testing device can be arranged on the corresponding electronic equipment. As shown in fig. 4, the online program testing apparatus includes the following modules.
An associated online program construction module 410 for constructing an associated online program based on the online program to be tested; the related program and the online program to be tested have the same communication area.
A target test program compiling module 420, configured to compile the associated online program to obtain a target test program; the target test program is used for responding to the call request aiming at the online program to be tested.
An online service module construction module 430, configured to construct an online service module for the communication area of the online program to be tested; the online service module is used for simulating the service online processing process of the target test program.
And the temporary batch job execution module 440 is configured to execute the temporary batch job by using the online service module based on the target test program to obtain a job execution result.
A comparison result obtaining module 450, configured to obtain a comparison result of the job execution result; the comparison result is used for representing a test result aiming at the online program to be tested.
Based on the online program testing method corresponding to fig. 1, an embodiment of the present disclosure provides an electronic device. The electronic device may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state hard disk, or a usb disk. The memory may be used to store computer program instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor, and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic controller, and an embedded microcontroller, among others. The processor may execute the computer program instructions to implement the online program test method in the embodiment corresponding to fig. 1.
The present description provides a computer-readable storage medium having stored thereon computer programs/instructions. The computer readable storage medium may be read by a processor based on an internal bus of a device, and program instructions in the computer readable storage medium are implemented by the processor.
In this embodiment, the computer-readable storage medium may be implemented in any suitable manner. The computer readable storage medium includes, but is not limited to, random access Memory (Random Access Memory, RAM), read-Only Memory (ROM), cache (Cache), hard Disk (HDD), memory Card (Memory Card), and the like. The computer storage medium stores computer program instructions. Program instructions or modules that, when executed, implement the online program test method of the embodiment of fig. 1 of the present specification.
The present description also provides a computer program product comprising a computer program/instructions. The computer program product may be a program written in a corresponding computer program language, stored in a corresponding storage device in a program manner, and transmitted over a computer network. The computer program product may be executable by a processor. In the present embodiment, the computer program product when executed implements the program instructions or modules of the online program test method according to the corresponding embodiment of fig. 1.
It should be noted that the method, apparatus and device for testing an online program described above may be applied to the field of computer technology, or may be applied to other technical fields besides the field of computer technology, which is not limited thereto.
In addition, the implementation process of the embodiment relates to operations of acquiring, processing, using, storing and the like of the data, which all meet the requirements of relevant national laws and regulations.
While the process flows described above include a plurality of operations occurring in a particular order, it should be apparent that the processes may include more or fewer operations, which may be performed sequentially or in parallel (e.g., using a parallel processor or a multi-threaded environment).
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only optical disk read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic tape storage, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description embodiments may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present embodiments may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the present specification. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (13)

1. An online program testing method, comprising:
constructing an associated online program according to the online program to be tested; the related program and the online program to be tested have the same communication area;
compiling the associated online program to obtain a target test program; the target test program is used for responding to a call request aiming at the online program to be tested;
constructing an online service module aiming at a communication area of the online program to be tested; the online service module is used for simulating a service online processing process of the target test program;
performing temporary batch operation by utilizing the online service module based on the target test program to obtain an operation execution result;
obtaining a comparison result of the operation execution result; the comparison result is used for representing a test result aiming at the online program to be tested.
2. The method of claim 1, wherein compiling the associated online program to obtain the target test program comprises:
and modifying the definition of the calling job to correspond to the target test program.
3. The method of claim 2, wherein modifying the definition of the call job to correspond to the target test program comprises:
determining call job definition data of the online program to be tested based on a preset call keyword;
and replacing the pointing path of the calling job definition data so that the replaced pointing path corresponds to the target test program.
4. The method of claim 1, wherein before the performing the temporary batch job based on the online service module invoking the target test program to obtain a job execution result, further comprising:
acquiring a batch service program corresponding to the temporary batch operation; the batch service program and the online program to be tested have the same communication area;
compiling the batch business program to obtain a batch operation processing program; the batch operation processing program is used for simulating a main body which performs online interaction with the online program to be tested.
5. The method of claim 4, wherein the invoking the target test program to execute the temporary batch job based on the online service module to obtain a job execution result comprises:
reading temporary batch jobs by using the batch job processing program;
calling an interface corresponding to the online program to be tested to send the temporary batch operation to a target test program;
and the target test program executes the temporary batch operation to obtain an operation execution result.
6. The method of claim 1, wherein the communication zone comprises a multi-layer communication zone data structure; the communication area data structure comprises at least one attribute parameter of layer number, data type and storage length; the communication area data structure is used for realizing multi-layer communication.
7. The method of claim 1, wherein the target test program is configured to reserve the operation result of the communication area as a result of the execution of the operation.
8. The method of claim 1, wherein after the comparing the job execution result is obtained, further comprising:
and deleting the associated online program, the target test program, the temporary service and the temporary batch operation.
9. The method of claim 1, wherein the obtaining the comparison result of the job execution result comprises:
and correspondingly storing the operation execution result and the comparison result based on the association relation.
10. An on-line program testing apparatus, comprising:
the associated online program construction module is used for constructing an associated online program based on the online program to be tested; the related program and the online program to be tested have the same communication area;
the target test program compiling module is used for compiling the associated online program to obtain a target test program; the target test program is used for responding to a call request aiming at the online program to be tested;
the online service module construction module is used for constructing an online service module aiming at the communication area of the online program to be tested; the online service module is used for simulating a service online processing process of the target test program;
the temporary batch job execution module is used for executing temporary batch jobs by utilizing the online service module based on the target test program to obtain a job execution result;
the comparison result acquisition module is used for acquiring a comparison result of the operation execution result; the comparison result is used for representing a test result aiming at the online program to be tested.
11. An electronic device includes a memory and a processor; wherein the memory is for storing computer programs/instructions; the processor for executing the computer program/instructions to implement the steps of the method of any of claims 1-9.
12. A computer storage medium having stored thereon a computer program/instruction which, when executed, is adapted to carry out the steps of the method according to any of claims 1-9.
13. A computer program product comprising computer programs/instructions which, when executed, are adapted to carry out the steps of the method according to any one of claims 1-9.
CN202311596314.8A 2023-11-27 2023-11-27 Online program testing method, device and equipment Pending CN117555800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311596314.8A CN117555800A (en) 2023-11-27 2023-11-27 Online program testing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311596314.8A CN117555800A (en) 2023-11-27 2023-11-27 Online program testing method, device and equipment

Publications (1)

Publication Number Publication Date
CN117555800A true CN117555800A (en) 2024-02-13

Family

ID=89812441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311596314.8A Pending CN117555800A (en) 2023-11-27 2023-11-27 Online program testing method, device and equipment

Country Status (1)

Country Link
CN (1) CN117555800A (en)

Similar Documents

Publication Publication Date Title
US8387066B1 (en) Dependency-based task management using set of preconditions to generate scheduling data structure in storage area network
US8645919B2 (en) Generic validation test framework for graphical user interfaces
US8856742B2 (en) Distributed debugging
US7908521B2 (en) Process reflection
TW201820131A (en) Process management method and apparatus
US6901583B1 (en) Method for testing of a software emulator while executing the software emulator on a target machine architecture
US20180239802A1 (en) Programming language independent software testing environment
CN111695827A (en) Business process management method and device, electronic equipment and storage medium
CN111400256B (en) Method and device for calling resource file by application program
US8397217B2 (en) Integrating templates into tests
CN117112060A (en) Component library construction method and device, electronic equipment and storage medium
CN111897711A (en) Method and device for positioning bug in code, electronic equipment and readable storage medium
US10185647B2 (en) Debugging remote vertex code on test machine
CN114490103A (en) Operating system interface calling method and device and electronic equipment
US12093686B2 (en) Code maintenance system
CN117555800A (en) Online program testing method, device and equipment
CN116049000A (en) Environment parameter configuration method, device, equipment, storage medium and product
CN115729724A (en) Fault injection method, fault test system, electronic device and readable storage medium
CN115687129A (en) Coverage rate report generation method and device, storage medium and computer equipment
CN111949301B (en) Application program hot update method, device and computer readable storage medium
CN114756293A (en) Service processing method, device, computer equipment and storage medium
CN110275710B (en) Java local interface consistency checking method and system, storage medium and terminal
US10698802B1 (en) Method and system for generating a validation test
CN113031964A (en) Management method, device, equipment and storage medium for big data application
Winzinger Towards coverage criteria for serverless applications

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