CN110633214B - Configuration method and device for internal test message - Google Patents
Configuration method and device for internal test message Download PDFInfo
- Publication number
- CN110633214B CN110633214B CN201910889067.8A CN201910889067A CN110633214B CN 110633214 B CN110633214 B CN 110633214B CN 201910889067 A CN201910889067 A CN 201910889067A CN 110633214 B CN110633214 B CN 110633214B
- Authority
- CN
- China
- Prior art keywords
- message
- test message
- test
- configuration file
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 292
- 238000000034 method Methods 0.000 title claims description 33
- 238000010998 test method Methods 0.000 claims abstract description 11
- 238000001514 detection method Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 14
- 230000005540 biological transmission Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a packet sending test method and device, which are applied to a packet sending tool, read message data in a code to be tested, call a configuration file of a test message, configure the test message according to the message data and the configuration file of the test message, and finally generate the test message. The application integrates the function of automatically configuring the message in the packet sending tool, realizes the reading and configuration of the message data, avoids the problems of large workload and easy error caused by manual configuration, and improves the internal test efficiency.
Description
Technical Field
The application relates to the technical field of software testing, in particular to a configuration method and device of an internal test message.
Background
In the software development process, a developer needs to test the code, namely, internal test.
Because the internal test does not have the communication test between the front end and the background product, a developer needs to configure a message by himself and test through a package issuing tool.
With increasing software functions, for example, internal testing is performed on programs of channel products of banks, because of more interfaces of channel products, there are many internal test messages to be configured, and manual configuration brings great workload, so that internal test efficiency is affected.
Disclosure of Invention
In view of the above, the application discloses a method and a device for testing the sending of packets, which integrate the function of automatically configuring the messages in a sending tool and improve the internal testing efficiency.
In order to achieve the above purpose, the specific technical scheme provided by the application is as follows:
a method of testing a hair pack, applied to a hair pack tool, the method comprising:
reading message data in a code to be tested;
calling a configuration file of a test message, and configuring the test message according to the message data and the configuration file of the test message;
and generating the test message.
Optionally, the test message includes a send test message and a receive test message.
Optionally, the method further comprises:
generating a configuration file of the sending test message and a configuration file of the receiving test message according to internal test requirements.
Optionally, the reading the message data in the code to be tested includes:
and calling the configuration file of the sent test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the sent test message.
Optionally, the reading the message data in the code to be tested includes:
and calling a configuration file of the received test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the received test message, wherein the code to be tested is a feedback result code obtained after the sending test message is sent.
Optionally, the calling the configuration file of the test message configures the test message according to the message data and the configuration file of the test message, including:
and filling each field data in the message data into the appointed position of the package sending tool according to the field name and the field sequence in the configuration file of the test message.
Optionally, after the configuring the test message according to the message data and the configuration file of the test message, the method further includes:
and calling the configuration file of the test message, and detecting whether the configuration of the test message is accurate or not according to the field names, the field sequences, the field quantity and the field lengths in the configuration file of the test message.
A hair pack testing device comprising:
the message data reading unit is used for reading the message data in the code to be tested;
the test message configuration unit is used for calling the configuration file of the test message and configuring the test message according to the message data and the configuration file of the test message;
and the test message generating unit is used for generating the test message.
Optionally, the test message includes a send test message and a receive test message.
Optionally, the apparatus further includes:
and the configuration file generating unit is used for generating the configuration file of the sending test message and the configuration file of the receiving test message according to the internal test requirement.
Optionally, the message data reading unit is specifically configured to call a configuration file of the sent test message, analyze the code to be tested, and obtain the message data corresponding to a field name in the configuration file of the sent test message.
Optionally, the message data reading unit is specifically configured to invoke a configuration file of the received test message, analyze the code to be tested, and obtain the message data corresponding to a field name in the configuration file of the received test message, where the code to be tested is a feedback result code obtained after the sending of the sent test message.
Optionally, the test message configuration unit is specifically configured to fill each field data in the message data into the designated position of the packet sending tool according to the field name and the field sequence in the configuration file of the test message.
Optionally, the apparatus further includes:
the configuration correctness detection unit is used for calling the configuration file of the test message and detecting whether the configuration of the test message is accurate or not according to the field names, the field sequences, the field quantity and the field lengths in the configuration file of the test message.
Compared with the prior art, the application has the following beneficial effects:
according to the packet sending test method disclosed by the application, the function of automatically configuring the packet is integrated in the packet sending tool, so that the reading and configuration of the packet data are realized, the problems of large workload and easiness in error caused by manual configuration are avoided, and the internal test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used 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 embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a packet sending test method disclosed in the embodiment of the application;
FIG. 2 is a flow chart of another method for testing a hair pack according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for testing a hair pack according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a hair pack testing device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment discloses a packet sending test method, which is applied to a packet sending tool, wherein the packet sending tool is used for reading an interface to be tested, sending a message from the interface to be tested, and realizing internal test. Referring to fig. 1, the packet testing method disclosed in the present embodiment specifically includes the following steps:
s101: reading message data in a code to be tested;
the code to be tested can be the code to be tested in the internal test, and also can be the feedback result code obtained after the test message is sent.
The corresponding test message comprises a sending test message and a receiving test message.
The message data may be message data of a test message, or may be message data of a test message.
S102: calling a configuration file of a test message, and configuring the test message according to the message data and the configuration file of the test message;
the configuration file of the test message is generated in advance according to the internal test requirement, and the configuration file of the test message can be the configuration file for transmitting the test message or the configuration file for receiving the test message.
The configuration file of the test message includes a field name, a field order, a field number, and a length of each field.
S103: and generating the test message.
After the configuration of the test message is completed, the test message is generated as the existing function of the package issuing tool, and will not be described herein.
Therefore, the packet sending test method disclosed by the embodiment integrates the function of automatically configuring the packet in the packet sending tool, realizes the reading and configuration of the packet data, avoids the problems of large workload and easy error caused by manual configuration, and improves the internal test efficiency.
The test message includes a send test message and a receive test message, so the configuration of the test message includes the configuration of the send test message and the configuration of the receive test message, and on this basis, referring to fig. 2, the embodiment discloses a packet sending test method, which specifically includes the following steps:
s201: reading the data of a sending message in a code to be tested;
specifically, the configuration file of the sending test message is called, the code to be tested is analyzed, and the message data corresponding to the field name in the configuration file of the sending test message, namely the sending message data, is obtained.
S202: calling a configuration file of a sending test message, and configuring the sending test message according to the sending message data and the configuration file of the sending test message;
specifically, according to the field names and the field sequences in the configuration file of the transmission test message, filling each field data in the transmission message data into the designated position of the packet transmitting tool according to the field sequences, and completing the configuration of the transmission test message.
S203: generating the sending test message;
after the configuration of the sending test message is completed, the existing function of generating the sending test message as a package sending tool is not described herein.
S204: transmitting the transmission test message;
the existing function of transmitting the transmission test message as a packet transmitting tool is not described herein.
S205: receiving a feedback result code;
if the generated sending test message is sent to the appointed test interface, a result fed back by the program is received, and a feedback result code is obtained.
S206: reading received message data in a feedback result code;
specifically, the configuration file of the received test message is called, and the feedback result code is analyzed to obtain the received message data corresponding to the field name in the configuration file of the received test message.
It should be noted that, the configuration file of the sending test message is different from the configuration file of the receiving test message.
S207: calling a configuration file of a received test message, and configuring the received test message according to the received message data and the configuration file of the received test message;
specifically, according to the field names and the field sequences in the configuration file of the received test message, filling each field data in the received message data into the designated position of the packet sending tool according to the field sequences, and completing the configuration of the received test message.
S208: and generating the receiving test message.
After the configuration of the received test message is completed, the received test message is generated as the existing function of the packet sending tool, which is not described herein.
The packet sending test method disclosed by the embodiment realizes automatic configuration of sending test messages and receiving test messages, and improves internal test efficiency.
As a preferred implementation manner, the method for testing the package disclosed in the present embodiment may further implement configuration accuracy detection, and specifically referring to fig. 3, the method for testing the package disclosed in the present embodiment includes the following steps:
s301: reading the data of a sending message in a code to be tested;
specifically, the configuration file of the sending test message is called, the code to be tested is analyzed, and the message data corresponding to the field name in the configuration file of the sending test message, namely the sending message data, is obtained.
S302: calling a configuration file of a sending test message, and configuring the sending test message according to the sending message data and the configuration file of the sending test message;
specifically, according to the field names and the field sequences in the configuration file of the transmission test message, filling each field data in the transmission message data into the designated position of the packet transmitting tool according to the field sequences, and completing the configuration of the transmission test message.
S303: invoking a configuration file of the sent test message, and detecting whether the configuration of the sent test message is accurate or not according to field names, field sequences, field quantity and field lengths in the configuration file of the sent test message;
if the configuration is inaccurate, S304 is executed, and if the configuration is accurate, S305 is executed.
S304: prompting to send a test message configuration error;
s305: generating the sending test message;
s306: transmitting the transmission test message;
s307: receiving a feedback result code;
if the generated sending test message is sent to the appointed test interface, a result fed back by the program is received, and a feedback result code is obtained.
S308: reading received message data in a feedback result code;
specifically, the configuration file of the received test message is called, and the feedback result code is analyzed to obtain the received message data corresponding to the field name in the configuration file of the received test message.
S309: calling a configuration file of a received test message, and configuring the received test message according to the received message data and the configuration file of the received test message;
specifically, according to the field names and the field sequences in the configuration file of the received test message, filling each field data in the received message data into the designated position of the packet sending tool according to the field sequences, and completing the configuration of the received test message.
S310: invoking a configuration file of the received test message, and detecting whether the configuration of the received test message is accurate or not according to field names, field sequences, field quantity and field lengths in the configuration file of the received test message;
if the configuration is inaccurate, S311 is executed, and if the configuration is accurate, S312 is executed.
S311: prompting to receive a test message configuration error;
s312: and generating the receiving test message.
According to the packet sending test method disclosed by the embodiment, the detection of the configuration accuracy of the test message is increased, if the test message is wrong, the configuration of the test message is wrong, a developer can debug the test message in time, the generation and the sending of wrong messages are avoided, and the test efficiency is improved.
Based on the method for sending out packets disclosed in the foregoing embodiment, the present embodiment correspondingly discloses a device for testing sending out packets, where the device for testing sending out packets is integrated in a sending out packet tool, please refer to fig. 4, and the device specifically includes:
a message data reading unit 401, configured to read message data in a code to be tested;
a test message configuration unit 402, configured to invoke a configuration file of a test message, and configure the test message according to the message data and the configuration file of the test message;
a test message generating unit 403, configured to generate the test message.
Optionally, the test message includes a send test message and a receive test message.
Optionally, the apparatus further includes:
and the configuration file generating unit is used for generating the configuration file of the sending test message and the configuration file of the receiving test message according to the internal test requirement.
Optionally, the message data reading unit 401 is specifically configured to call a configuration file of the sending test message, analyze the code to be tested, and obtain the message data corresponding to a field name in the configuration file of the sending test message.
Optionally, the message data reading unit 402 is specifically configured to invoke a configuration file of the received test message, analyze the code to be tested, and obtain the message data corresponding to a field name in the configuration file of the received test message, where the code to be tested is a feedback result code obtained after the sending test message is sent.
Optionally, the test message configuration unit 402 is specifically configured to fill each field data in the message data into the designated position of the packet sending tool according to the field name and the field sequence in the configuration file of the test message.
Optionally, the apparatus further includes:
the configuration correctness detection unit is used for calling the configuration file of the test message and detecting whether the configuration of the test message is accurate or not according to the field names, the field sequences, the field quantity and the field lengths in the configuration file of the test message.
According to the packet sending testing device disclosed by the embodiment, the function of automatically configuring the packet is integrated in the packet sending tool, so that the reading and configuration of the packet data are realized, the problems of large workload and easiness in error caused by manual configuration are avoided, and the internal testing efficiency is improved.
The packet sending testing device comprises a processor and a memory, wherein the message data reading unit, the test message configuration unit, the test message generating unit, the configuration file generating unit, the configuration accuracy detecting unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the configuration efficiency of the test message is improved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application provides a storage medium, on which a program is stored, which when executed by a processor, implements the package testing method.
The embodiment of the application provides a processor which is used for running a program, wherein the program runs to execute the package sending test method.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program:
reading message data in a code to be tested;
calling a configuration file of a test message, and configuring the test message according to the message data and the configuration file of the test message;
and generating the test message.
Further, the test message includes a send test message and a receive test message.
Further, the method further comprises:
generating a configuration file of the sending test message and a configuration file of the receiving test message according to internal test requirements.
Further, the reading the message data in the code to be tested includes:
and calling the configuration file of the sent test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the sent test message.
Further, the reading the message data in the code to be tested includes:
and calling a configuration file of the received test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the received test message, wherein the code to be tested is a feedback result code obtained after the sending test message is sent.
Further, the calling the configuration file of the test message, and configuring the test message according to the message data and the configuration file of the test message includes:
and filling each field data in the message data into the appointed position of the package sending tool according to the field name and the field sequence in the configuration file of the test message.
Further, after the configuring the test message according to the message data and the configuration file of the test message, the method further includes:
and calling the configuration file of the test message, and detecting whether the configuration of the test message is accurate or not according to the field names, the field sequences, the field quantity and the field lengths in the configuration file of the test message.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of:
reading message data in a code to be tested;
calling a configuration file of a test message, and configuring the test message according to the message data and the configuration file of the test message;
and generating the test message.
Further, the test message includes a send test message and a receive test message.
Further, the method further comprises:
generating a configuration file of the sending test message and a configuration file of the receiving test message according to internal test requirements.
Further, the reading the message data in the code to be tested includes:
and calling the configuration file of the sent test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the sent test message.
Further, the reading the message data in the code to be tested includes:
and calling a configuration file of the received test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the received test message, wherein the code to be tested is a feedback result code obtained after the sending test message is sent.
Further, the calling the configuration file of the test message, and configuring the test message according to the message data and the configuration file of the test message includes:
and filling each field data in the message data into the appointed position of the package sending tool according to the field name and the field sequence in the configuration file of the test message.
Further, after the configuring the test message according to the message data and the configuration file of the test message, the method further includes:
and calling the configuration file of the test message, and detecting whether the configuration of the test message is accurate or not according to the field names, the field sequences, the field quantity and the field lengths in the configuration file of the test message.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 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 application. 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, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
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, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which 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 should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (2)
1. The utility model provides a packet test method, which is characterized in that the method is applied to a packet tool, and the function of automatically configuring a message is integrated in the packet tool so as to realize the reading and the configuration of message data, and the method comprises the following steps:
reading message data in a code to be tested;
calling a configuration file of a test message, and configuring the test message according to the message data and the configuration file of the test message;
generating the test message;
the test message comprises a sending test message and a receiving test message;
wherein the method further comprises:
generating a configuration file of the sent test message and a configuration file of the received test message according to internal test requirements;
the reading the message data in the code to be tested includes:
calling a configuration file of the sent test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the sent test message;
calling a configuration file of the received test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the received test message, wherein the code to be tested is a feedback result code obtained after the sending test message is sent;
the calling the configuration file of the test message, and configuring the test message according to the message data and the configuration file of the test message comprises the following steps:
filling each field data in the message data into the appointed position of a package sending tool according to the field name and the field sequence in the configuration file of the test message;
after the configuration of the test message according to the message data and the configuration file of the test message, the method further includes:
invoking a configuration file of the test message, and detecting whether the configuration of the test message is accurate or not according to field names, field sequences, field quantity and field lengths in the configuration file of the test message;
if the configuration is inaccurate, prompting to send the test message configuration error or prompting to receive the test message configuration error, so that a developer can debug in time, generating and sending the error message is avoided, and the test efficiency is improved.
2. The utility model provides a packet testing arrangement, its characterized in that is applied to the packet instrument of sending, the function of automatic configuration message is integrated in the packet instrument of sending to realize reading and configuration of message data, include:
the message data reading unit is used for reading the message data in the code to be tested;
the test message configuration unit is used for calling the configuration file of the test message and configuring the test message according to the message data and the configuration file of the test message;
the test message generating unit is used for generating the test message, wherein the test message comprises a sending test message and a receiving test message;
wherein, the device is further used for:
generating a configuration file of the sent test message and a configuration file of the received test message according to internal test requirements;
the message data reading unit is provided with a message data reading unit for:
calling a configuration file of the sent test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the sent test message;
calling a configuration file of the received test message, and analyzing the code to be tested to obtain the message data corresponding to the field name in the configuration file of the received test message, wherein the code to be tested is a feedback result code obtained after the sending test message is sent;
the test message configuration unit is specifically configured to fill each field data in the message data into a designated position of a packet sending tool according to a field name and a field sequence in a configuration file of the test message;
wherein the apparatus further comprises:
the configuration correctness detection unit is used for calling the configuration file of the test message, detecting whether the configuration of the test message is accurate according to the field name, the field sequence, the field number and the field length in the configuration file of the test message, and prompting to send the configuration error of the test message or prompting to receive the configuration error of the test message if the configuration is inaccurate, so that a developer can debug in time, generation and sending of the error message are avoided, and the test efficiency is improved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910889067.8A CN110633214B (en) | 2019-09-19 | 2019-09-19 | Configuration method and device for internal test message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910889067.8A CN110633214B (en) | 2019-09-19 | 2019-09-19 | Configuration method and device for internal test message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110633214A CN110633214A (en) | 2019-12-31 |
CN110633214B true CN110633214B (en) | 2023-12-08 |
Family
ID=68971766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910889067.8A Active CN110633214B (en) | 2019-09-19 | 2019-09-19 | Configuration method and device for internal test message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110633214B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112052171B (en) * | 2020-09-03 | 2021-05-28 | 上海复深蓝软件股份有限公司 | Test message processing method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105279090A (en) * | 2015-11-17 | 2016-01-27 | 中国建设银行股份有限公司 | Test script generating method and test script generating device applied in financial field |
CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
CN105915529A (en) * | 2016-05-19 | 2016-08-31 | 微梦创科网络科技(中国)有限公司 | Message generation method and device |
CN106528823A (en) * | 2016-11-18 | 2017-03-22 | 中国银行股份有限公司 | Message configuration and output method and device |
CN109474488A (en) * | 2018-10-31 | 2019-03-15 | 中国银行股份有限公司 | Interface test method, device and computer equipment |
CN110188036A (en) * | 2019-05-10 | 2019-08-30 | 深圳前海微众银行股份有限公司 | A kind of method for testing software and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10055330B2 (en) * | 2016-11-29 | 2018-08-21 | Bank Of America Corporation | Feature file validation tool |
-
2019
- 2019-09-19 CN CN201910889067.8A patent/CN110633214B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
CN105279090A (en) * | 2015-11-17 | 2016-01-27 | 中国建设银行股份有限公司 | Test script generating method and test script generating device applied in financial field |
CN105915529A (en) * | 2016-05-19 | 2016-08-31 | 微梦创科网络科技(中国)有限公司 | Message generation method and device |
CN106528823A (en) * | 2016-11-18 | 2017-03-22 | 中国银行股份有限公司 | Message configuration and output method and device |
CN109474488A (en) * | 2018-10-31 | 2019-03-15 | 中国银行股份有限公司 | Interface test method, device and computer equipment |
CN110188036A (en) * | 2019-05-10 | 2019-08-30 | 深圳前海微众银行股份有限公司 | A kind of method for testing software and device |
Also Published As
Publication number | Publication date |
---|---|
CN110633214A (en) | 2019-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108964968B (en) | Service access management method and system in container cloud environment | |
CN106897206B (en) | Service testing method and device | |
CN105335310B (en) | Interface definition method and data transmission method and device | |
CN106487603B (en) | Response testing method and device | |
CN104821954A (en) | Cross-platform remote procedure call method | |
JP2019512126A (en) | Method and system for training a machine learning system | |
CN111625443B (en) | Pressure testing method, device, equipment and storage medium | |
CN105094878B (en) | A kind of method and apparatus of integrated system library file | |
CN105404574B (en) | Smart card and mobile terminal consistency test method and device | |
CN111506579A (en) | Method, program and equipment for generating intelligent contract code | |
CN110633214B (en) | Configuration method and device for internal test message | |
CN112422361A (en) | Switch testing method, device and medium | |
CN107092474B (en) | Program development method, ETL processing method and device | |
CN106610845B (en) | Information management method, device, server and system | |
CN110837467B (en) | Software testing method, device and system | |
CN110008086B (en) | Log generation method and device and client | |
CN112564996A (en) | Pressure test flow scheduling method, pressure test flow control device and computer readable medium | |
CN112395098A (en) | Application program interface calling method and device, storage medium and electronic equipment | |
CN105446867A (en) | Method and apparatus for generating test data | |
CN112769627B (en) | Network environment simulation method, system and computer program product | |
CN106548331B (en) | Method and device for determining release sequence | |
CN108228145A (en) | Data processing method, system and the mobile equipment of mixed type application program | |
CN112527656A (en) | Websocket interface test method, device and equipment | |
CN109614566A (en) | Traffic source analysis method, system and device | |
CN107454124B (en) | Equipment automation 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |