CN109697160B - Automatic testing system and method for Ethernet interface software - Google Patents

Automatic testing system and method for Ethernet interface software Download PDF

Info

Publication number
CN109697160B
CN109697160B CN201710995968.6A CN201710995968A CN109697160B CN 109697160 B CN109697160 B CN 109697160B CN 201710995968 A CN201710995968 A CN 201710995968A CN 109697160 B CN109697160 B CN 109697160B
Authority
CN
China
Prior art keywords
test
software
interface
tested
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710995968.6A
Other languages
Chinese (zh)
Other versions
CN109697160A (en
Inventor
曾俊
黄坤
吕遐东
冯浩
杨子晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Ship Development and Design Centre
Original Assignee
China Ship Development and Design Centre
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 China Ship Development and Design Centre filed Critical China Ship Development and Design Centre
Priority to CN201710995968.6A priority Critical patent/CN109697160B/en
Publication of CN109697160A publication Critical patent/CN109697160A/en
Application granted granted Critical
Publication of CN109697160B publication Critical patent/CN109697160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic testing system and method for Ethernet interface software, wherein the system comprises: the system comprises a test computer host, an automatic test software module, a test computer network card, a test computer display, a network switch, a tested computer host, a tested computer network card, tested software, a video encoder and a tested computer display. The invention automatically generates a test case containing test data by analyzing an Ethernet interface protocol XML model, sends the test data to the software to be tested through Ethernet, acquires the interface display video of the software to be tested through a video encoder, automatically identifies the response result of the software to be tested, superimposes the test data on the display video, and stores the video. The method has better flexibility and universality and is suitable for the field of testing software interfaces of naval vessel electronic information systems.

Description

Automatic testing system and method for Ethernet interface software
Technical Field
The invention relates to a software interface testing technology, in particular to an automatic testing system and method for Ethernet interface software.
Background
With the development of information technology accelerating, the software scale is also getting bigger and bigger. A large amount of data information between the naval vessel electronic information system software is transmitted through Ethernet messages, and the test of an Ethernet software interface is one of important contents of the test of the electronic information system software. At present, foreign business companies develop a large number of software automation Test tools, such as HP Quick Test Professional, WinRunner, Selenium, Loadrunner, IBM RobotJ, Borland Segue Silk Test, but most of these Test tools are based on unit function instrumentation Test and Web page Test, and for software interface Test, special function parameters need to be set during software coding to return response results, and it is difficult to collect software interface responses to be tested. The automatic test system for the Ethernet software interface developed by domestic manufacturers needs to add test codes in tested software to obtain the response result of the tested software, the automatic test software sends test data Ethernet interface information messages to the tested software by executing test cases, the test codes in the tested software acquire the response result of the tested software and transmit the response result to the automatic test software in the form of network messages, and the automatic test software determines whether the test is passed or not by comparing and analyzing the conformity between the response result and the expected result of the tested software.
In order to overcome the defects of the prior art, the invention provides an automatic testing system and method for Ethernet interface software.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an ethernet interface software automated testing system and method aiming at the defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: an automatic test system for Ethernet interface software,
the method comprises the following steps: the system comprises a test computer host, an automatic test software module, a test computer network card, a test computer display, a network switch, a tested computer host, a tested computer network card, tested software, a video encoder and a tested computer display;
the test computer host is used for installing an automatic test software module and a test computer network card and providing a software and hardware environment for the operation of automatic test software;
the automatic test software module is used for reading an XML file of an analysis interface data model, generating a software interface test case XML file, reading the XML file of the analysis software interface test case, driving to generate a test data Ethernet interface information message, sending the test data Ethernet interface information message to the tested software through a test computer network card, receiving a tested software interface display video which is collected and transmitted through a video encoder and a network switch, identifying a response result in the tested software interface display video, comparing and analyzing whether the response result and an expected result of the tested software accord with each other to determine whether the test is passed or not, overlapping the test data on the tested software interface display video, and storing the video;
and the test computer network card is used for sending and receiving Ethernet interface information messages and receiving compressed videos transmitted by the network switch.
And the test computer display is used for displaying the video output by the test computer host.
The network switch is used for transmitting test data between the tested computer host and the testing computer host, and comprises an Ethernet interface information message and a tested software interface display video;
the tested computer host is used for installing tested software and testing a computer network card and providing a software and hardware environment for the operation of the tested software;
the computer network card to be tested is used for sending and receiving Ethernet interface information messages;
the tested software is used for receiving the test data Ethernet interface information message transmitted by the network switch and responding to the Ethernet interface information message;
the video encoder distributes the video (VGA format or DVI format) output by the host computer to the display of the computer to be tested, compresses and encodes the video and transmits the video through the network switch.
And the tested computer display is used for displaying the tested software interface.
According to the scheme, the automatic testing software module comprises the following modules,
and the test case generation module is used for reading and analyzing the XML file of the interface data model, generating a test case according to methods such as an equivalence class division method, a boundary value analysis method and the like, and storing the test case by using the XML file. The interface information is described by a structured XML language, and the interface data model XML comprises information such as a sender IP address, a receiver IP address, a message identifier, a message length, the type, alias, unit, value range, most significant bit, least significant bit, precision, full scale value, length and the like of each field. The interface test case XML file mainly describes the contents such as a case number, a case name, transmission control information (source IP, destination IP (including multicast), port number and transmission frequency), the total number of test data, a transmission data sequence number, a test data sequence number, test data, expected results and the like by test case information, transmission control information and a test data set.
The test driving module is used for reading and analyzing the XML file of the test case, assembling the test data into an Ethernet interface information message according to the XML file of the interface data model, and then sending the Ethernet interface information message to the software to be tested through a network;
and the video identification configuration module is used for setting an identification area in the tested software interface through the identifier. Setting an identification area according to each field of an interface information model, selecting the coordinate position of each field of an interface information message through a mouse after a tested software interface is collected to display a video, setting field identification types (such as Chinese characters, numbers, letters, symbols and the like), wherein the identifier mainly comprises an identification classifier of Chinese characters, numbers, letters, symbols and the like, is obtained by training sample pictures of the Chinese characters, the numbers, the letters and the symbols by using a neural network, Adaboost and other machine learning algorithms, and is loaded according to the identification types set by each field during identification.
And the tested software interface display video identification module is used for receiving the tested software interface display video sent by the network switch, intercepting corresponding image blocks according to the set field identification areas, preprocessing the image blocks, loading corresponding identification classifiers, digital identification classifiers, letter identification classifiers and symbol identification classifiers, identifying and storing identification results.
The software test result analysis module synthesizes the identification results of all the fields, compares and analyzes the identification results with expected results in the XML file of the test case, gives a judgment result, simultaneously superposes the test data on the display video of the tested software interface, and stores the display video of the tested software interface and the XML file of the test result of the software interface;
and the file management module is used for managing the interface data model XML file, the test case XML file, the software interface test result XML file and the software interface display video.
According to the scheme, in the test case generation module, the interface data model XML file is described by adopting a structured XML language and comprises information such as a sender IP address, a receiver IP address, a message identifier, a message length, types, aliases, units, a value range, a most significant bit, a least significant bit, precision, a full scale value, length and the like.
According to the scheme, in the test case generation module, the interface test case XML file comprises test case information, sending control information and a test data set, and mainly describes case numbers, case names, sending control information (source IP, destination IP (including multicast), port numbers and sending frequency), total test data, sending data sequence numbers, test data and expected results.
According to the scheme, the video identification configuration module is provided with an identification area according to each field of the interface information model, after the video is displayed on the interface of the software to be detected, the coordinate position of each field of the interface information message is selected through a mouse to be determined, and the field identification type in the identification area is set.
According to the scheme, the field identification type in the video identification configuration module comprises Chinese character, number, letter and symbol types.
According to the scheme, in the tested software interface display video identification module, the identifier classification comprises identification classifiers of Chinese character types, digital types, letter types and symbol types, the identification classifiers are obtained by training sample pictures of the Chinese characters, the digital types, the letter types and the symbol types by utilizing a neural machine learning algorithm, and are loaded according to the identification types set by each field during identification.
An ethernet interface software automation test method based on an ethernet interface software automation test system, the ethernet interface software automation test system comprising: the system comprises a test computer host, an automatic test software module, a test computer network card, a test computer display, a network switch, a tested computer host, a tested computer network card, tested software, a video encoder and a tested computer display;
the method comprises the following steps:
1) initializing an automatic test system of an Ethernet software interface;
2) reading an interface data model XML file through an automatic test software module, wherein the content of the interface data model XML file comprises information such as an interface information name, a sender host name, a receiver host name, a sender IP address, a receiver IP address (including a multicast address), a sender port number, a receiver port number, a data sending period, a data total length, a field name, a field length, a field type, a field value range, a most significant bit, a least significant bit, precision, a full scale value, a unit and the like.
3) The automatic test software module analyzes the interface data model XML file and generates an interface test case XML file;
the automatic test software module generates an interface test data set by using an equivalence class division method, a boundary value analysis method and other methods according to an interface data model XML file analysis result, and finally describes an interface test case by using an XML language. An interface use case contains the entire test data set. The XML file content of the interface test case comprises two parts of sending control and interface test data. The sending control part mainly describes an interface information name, a sender host name, a receiver host name, a sender IP address, a receiver IP address (including a multicast address), a sender port number, a receiver port number and a data sending period. The interface test data section describes the total length of data, the total number of interface test data, and the test data set.
4) On a video displayed on a tested software interface of automatic test software, selecting a video area to be identified through a mouse according to each field of a message interface, setting a type to be identified according to each field type, and loading a corresponding identification classifier;
5) reading an interface test case XML file, and analyzing a test data set;
6) sequentially reading 1 test data from the analyzed test data set, assembling the test data into an Ethernet interface information message according to an interface data model XML file, and then sending the Ethernet interface information message to the tested software through a network;
7) the method comprises the steps that a video encoder and a network switch are used for collecting a display video of a tested software interface, and automatic testing software receives the video through a network card and decompresses the video;
8) the automatic test software identifies the software response result on the display video of the tested software interface according to the set video identification area in the step 4);
9) the automatic test software compares and analyzes the identified response result of the tested software with the expected result in the test case, and the test result judgment is given;
10) recording the test result in a software interface test result XML file;
11) superposing the test data on a display video of a tested software interface, and storing the video;
12) and the automatic test software judges whether to stop sending the test data according to the sending sequence number of the current test data. If test data need to be sent in the test case, jumping to step 6), and sending the next frame of test data Ethernet interface information message; if no test data in the test case needs to be sent, stopping sending the test data Ethernet interface information message;
13) and stopping testing, storing the XML file of the software interface test result, and displaying the video on the tested software interface.
According to the scheme, the field identification types in the step 4) comprise Chinese character types, numeric types, letter types and symbol types.
The invention has the following beneficial effects:
1. the invention can collect and store the display video of the tested software interface and provide help for the defect positioning of the software interface;
2. the method can automatically identify the response result on the display video of the tested software interface, does not need to add a test code in the tested software to obtain the response result of the tested software, and greatly improves the universality and flexibility of the automatic testing method of the Ethernet interface software.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a schematic diagram of a system architecture of an embodiment of the present invention;
FIG. 2 is a schematic diagram of the automated test software module configuration of the present invention;
FIG. 3 is a schematic diagram of the structure of an interface test case XML file according to the present invention;
FIG. 4 is a schematic flow chart of an automated testing method of the present invention;
in the figure: 1-testing a computer host; 2-automatic testing software module; 3-testing the computer network card; 4-testing the computer display; 5-a network switch; 6-tested host computer; 7-computer network card to be tested; 8-software under test; 9-a video encoder; 10-computer display under test.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the method for automatically testing the ethernet software interface comprises a testing computer host 1, an automatic testing software module 2, a testing computer network card 3, a testing computer display 4, a network switch 5, a tested computer host 6, a tested computer network card 7, tested software 8, a video encoder 9 and a tested computer display 10.
The test computer host 1 is used for installing an automatic test software module 2 and a test computer network card 3 and providing a software and hardware environment for the operation of automatic test software
The automatic test software module 2 is used for reading and analyzing an interface data model XML file, generating a software interface test case XML file, reading and analyzing the software interface test case XML file, driving and generating a test data Ethernet interface information message, sending the test data Ethernet interface information message to the tested software through the test computer network card 3, collecting the transmitted tested software interface display video through the video encoder 9 and the network switch 5, identifying a response result in the tested software interface display video, comparing and analyzing whether the response result and the expected result of the tested software are in accordance to determine whether the test is passed, overlapping the test data on the tested software interface display video, and storing the video.
The test computer network card 3 is used for sending and receiving Ethernet interface information messages and receiving compressed videos transmitted by the network switch.
The test computer display 4 is used for displaying the video output by the computer host 1.
The network switch 5 is used for transmitting test data Ethernet interface information messages and tested software interface display videos.
The tested computer host 6 is used for installing tested software 8 and testing computer network cards 7 and providing software and hardware environment for the operation of the tested software.
The tested computer network card 7 is used for sending and receiving Ethernet interface information messages.
The tested software 8 receives the test data Ethernet interface information message transmitted by the network switch 5 and responds to the Ethernet interface information message.
The video encoder 9 distributes the video (in VGA format or DVI format) output by the tested computer host 6 to the tested computer display 10, compresses and encodes the video, and transmits the video through the network switch 5.
The tested computer display 10 is used for displaying a tested software interface.
As shown in fig. 2, the automated testing software module of the present invention is composed of a test case generation module, a test driver module, a video identification configuration module, a tested software interface display video identification module, a software test result analysis module, and a file management module.
The specific functions of the modules are described as follows:
the test case generation module reads and analyzes an XML file of the interface data model, generates a test case according to methods such as an equivalence class division method and a boundary value analysis method, and stores the test case in the XML file. The interface information is described by a structured XML language, and the interface data model XML comprises information such as a sender IP address, a receiver IP address, a message identifier, a message length, the type, alias, unit, value range, most significant bit, least significant bit, precision, full scale value, length and the like of each field. The interface test case XML file mainly describes the contents such as a case number, a case name, transmission control information (source IP, destination IP (including multicast), port number and transmission frequency), the total number of test data, a transmission data sequence number, a test data sequence number, test data, expected results and the like by test case information, transmission control information and a test data set. The structure of the interface test case XML file is shown in FIG. 3.
The test driving module is used for reading and analyzing the XML file of the test case, assembling the test data into an Ethernet interface information message according to the XML file of the interface data model, and then sending the Ethernet interface information message to the software to be tested through the network.
The video identification configuration module mainly comprises functions of setting an identification area, an identifier and the like. Setting an identification area according to each field of an interface information model, selecting the coordinate position of each field of an interface information message through a mouse after a tested software interface is collected to display a video, setting field identification types (such as Chinese characters, numbers, letters, symbols and the like), wherein the identifier mainly comprises an identification classifier of Chinese characters, numbers, letters, symbols and the like, is obtained by training sample pictures of the Chinese characters, the numbers, the letters and the symbols by using a neural network, Adaboost and other machine learning algorithms, and is loaded according to the identification types set by each field during identification.
The tested software interface display video identification module mainly receives a tested software interface display video sent by the network switch. Intercepting corresponding image blocks according to the set field identification areas, preprocessing the image blocks, loading corresponding Chinese character identification classifiers, digital identification classifiers, letter identification classifiers and symbol identification classifiers, identifying and storing identification results.
The software test result analysis module synthesizes the identification results of all the fields, compares and analyzes the identification results with expected results in the XML file of the test case, gives a judgment result, simultaneously superposes the test data on the display video of the tested software interface, and stores the display video of the tested software interface and the XML file of the test result of the software interface.
The file management module is mainly used for managing an interface data model XML file, a test case XML file, a software interface test result XML file and a software interface display video.
As shown in the schematic diagram of the automated testing process in fig. 4, the automated testing of the ethernet software interface is implemented by the following steps:
(1) and initializing the automatic test system of the Ethernet software interface.
(2) And the automatic test software reads the XML file of the interface data model.
The contents of the interface data model XML file comprise information such as an interface information name, a sender host name, a receiver host name, a sender IP address, a receiver IP address (including a multicast address), a sender port number, a receiver port number, a data sending period, a data total length, a field name, a field length, a field type, a field dereferencing range, a most significant bit, a least significant bit, precision, a full scale value, a unit and the like.
(3) And the automatic test software analyzes the interface data model XML file to generate an interface test case XML file.
And the automatic test software generates an interface test data set by using methods such as an equivalence class division method, a boundary value analysis method and the like according to an XML file analysis result of the interface data model, and finally describes an interface test case by using an XML language. An interface use case contains the entire test data set. The XML file content of the interface test case comprises two parts of sending control and interface test data. The sending control part mainly describes an interface information name, a sender host name, a receiver host name, a sender IP address, a receiver IP address (including a multicast address), a sender port number, a receiver port number and a data sending period. The interface test data section describes the total length of data, the total number of interface test data, and the test data set.
(4) On a video displayed on a tested software interface of automatic test software, selecting a video area to be identified through a mouse according to each field of a message interface, setting a type to be identified according to each field type, and loading a corresponding identification classifier.
(5) And reading the XML file of the interface test case, and analyzing the test data set.
(6) And sequentially reading 1 piece of test data from the analyzed test data set, assembling the test data into an Ethernet interface information message according to an interface data model XML file, and then sending the Ethernet interface information message to the tested software through a network.
(7) The video encoder and the network switch are used for collecting the display video of the interface of the software to be tested, and the automatic testing software receives the video by using the network card and decompresses the video.
(8) And (4) the automatic test software sets a video identification area according to the step (4) to identify a software response result on the display video of the tested software interface.
(9) And the automatic test software compares and analyzes the identified response result of the tested software with the expected result in the test case, and gives out test result judgment.
(10) And recording the test result in the XML file of the test result of the software interface.
(11) And superposing the test data on the display video of the tested software interface, and storing the video.
(12) And the automatic test software judges whether to stop sending the test data according to the sending sequence number of the current test data. And (4) if test data are required to be sent in the test case, jumping to the step (6) and sending the next frame of test data Ethernet interface information message. And if no test data in the test case needs to be sent, stopping sending the test data Ethernet interface information message.
(13) And stopping testing, storing the XML file of the software interface test result, and displaying the video on the tested software interface.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (8)

1. An automatic testing system for Ethernet interface software is characterized in that,
the method comprises the following steps: the system comprises a test computer host, an automatic test software module, a test computer network card, a test computer display, a network switch, a tested computer host, a tested computer network card, tested software, a video encoder and a tested computer display;
the test computer host is used for installing an automatic test software module and a test computer network card and providing a software and hardware environment for the operation of automatic test software;
the automatic test software module is used for reading an XML file of an analysis interface data model, generating a software interface test case XML file, reading the XML file of the analysis software interface test case, driving to generate a test data Ethernet interface information message, sending the test data Ethernet interface information message to the tested software through a test computer network card, receiving a tested software interface display video which is collected and transmitted through a video encoder and a network switch, identifying a response result in the tested software interface display video, comparing and analyzing whether the response result and an expected result of the tested software accord with each other to determine whether the test is passed or not, overlapping the test data on the tested software interface display video, and storing the video;
the automated test software module includes the following modules,
the test case generation module is used for reading and analyzing an XML file of the interface data model, generating a test case according to an equivalence class division method and a boundary value analysis method, and storing the test case in the XML file;
the test driving module is used for reading and analyzing the XML file of the test case, assembling the test data into an Ethernet interface information message according to the XML file of the interface data model, and then sending the Ethernet interface information message to the software to be tested through a network;
the video identification configuration module is used for setting an identification area in a tested software interface through an identifier;
the system comprises a tested software interface display video identification module, a network switch and a corresponding identification classifier, wherein the tested software interface display video identification module is used for receiving a tested software interface display video sent by the network switch, intercepting corresponding image blocks according to the set field identification areas, preprocessing the image blocks, loading the corresponding identification classifier for identification and storing identification results;
the software test result analysis module synthesizes the identification results of all the fields, compares and analyzes the identification results with expected results in the XML file of the test case, gives a judgment result, simultaneously superposes the test data on the display video of the tested software interface, and stores the display video of the tested software interface and the XML file of the test result of the software interface;
the file management module is used for managing an interface data model XML file, a test case XML file, a software interface test result XML file and a software interface display video;
the test computer network card is used for sending and receiving Ethernet interface information messages and receiving compressed videos transmitted by the network switch;
the test computer display is used for displaying the video output by the test computer host;
the network switch is used for transmitting test data between the tested computer host and the testing computer host, and comprises an Ethernet interface information message and a tested software interface display video;
the tested computer host is used for installing tested software and testing a computer network card and providing a software and hardware environment for the operation of the tested software;
the computer network card to be tested is used for sending and receiving Ethernet interface information messages;
the tested software is used for receiving the test data Ethernet interface information message transmitted by the network switch and responding to the Ethernet interface information message;
the video encoder distributes the video output by the tested computer host to the tested computer display, compresses and encodes the video and transmits the video through the network switch;
and the tested computer display is used for displaying the tested software interface.
2. The automated testing system for ethernet interface software according to claim 1, wherein in the test case generation module, the interface data model XML file is described in a structured XML language, which includes the IP address of the sender, the IP address of the receiver, the message identifier, the message length, the type, alias, unit, value range, the most significant bit, the least significant bit, the precision, the full scale value, and the length information of each field.
3. The automated testing system for ethernet interface software according to claim 1, wherein in the test case generation module, the interface test case XML file includes test case information, transmission control information, a test data set, and mainly describes a case number, a case name, transmission control information, a total number of test data, a transmission data sequence number, a test data sequence number, test data, and an expected result.
4. The automated testing system for the Ethernet interface software according to claim 1, wherein the video identification configuration module is configured to set identification areas according to fields of the interface information model, determine the coordinate positions of the fields of the interface information message by selecting the coordinate positions of the fields through a mouse after the video displayed on the tested software interface is collected, and set the field identification types in the identification areas.
5. The automated testing system for ethernet interface software of claim 1, wherein the field identification type in the video identification configuration module comprises chinese character, number, letter, symbol type.
6. The automated testing system for the Ethernet interface software according to claim 1, wherein in the tested software interface display video recognition module, the recognizer classification comprises a recognition classifier of Chinese character, number, letter and symbol types, the recognition classifier is obtained by training sample pictures of the Chinese character, the number, the letter and the symbol by using a machine learning algorithm, and is loaded according to the recognition type set by each field during recognition.
7. An ethernet interface software automation test method based on the ethernet interface software automation test system of claim 1, the ethernet interface software automation test system comprising: the system comprises a test computer host, an automatic test software module, a test computer network card, a test computer display, a network switch, a tested computer host, a tested computer network card, tested software, a video encoder and a tested computer display;
the method comprises the following steps:
1) initializing an automatic test system of an Ethernet software interface;
2) reading an interface data model XML file through an automatic test software module, wherein the content of the interface data model XML file comprises an interface information name, a sender host name, a receiver host name, a sender IP address, a receiver IP address, a sender port number, a receiver port number, a data sending period, a data total length, a field name, a field length, a field type, a field value range, a most significant bit, a least significant bit, precision, a full scale value and unit information;
3) the automatic test software module analyzes the interface data model XML file and generates an interface test case XML file;
the automatic test software module generates an interface test data set by using an equivalence class division method or a boundary value analysis method according to an interface data model XML file analysis result, and finally describes an interface test case by using an XML language; an interface case contains all test data sets, the XML file content of the interface test case comprises a sending control part and an interface test data part, wherein the sending control part describes an interface information name, a sender host name, a receiver host name, a sender IP address, a receiver IP address, a sender port number, a receiver port number and a data sending period; the interface test data part describes the total length of data, the total number of interface test data and a test data set;
4) on a video displayed on a tested software interface of automatic test software, selecting a video area to be identified through a mouse according to each field of a message interface, setting a type to be identified according to each field type, and loading a corresponding identification classifier;
5) reading an interface test case XML file, and analyzing a test data set;
6) sequentially reading 1 test data from the analyzed test data set, assembling the test data into an Ethernet interface information message according to an interface data model XML file, and then sending the Ethernet interface information message to the tested software through a network;
7) the method comprises the steps that a video encoder and a network switch are used for collecting a display video of a tested software interface, and automatic testing software receives the video through a network card and decompresses the video;
8) the automatic test software identifies the software response result on the display video of the tested software interface according to the set video identification area in the step 4);
9) the automatic test software compares and analyzes the identified response result of the tested software with the expected result in the test case, and the test result judgment is given;
10) recording the test result in a software interface test result XML file;
11) superposing the test data on a display video of a tested software interface, and storing the video;
12) the automatic test software judges whether to stop sending the test data according to the sending sequence number of the current test data; if test data need to be sent in the test case, jumping to step 6), and sending the next frame of test data Ethernet interface information message; if no test data in the test case needs to be sent, stopping sending the test data Ethernet interface information message;
13) and stopping testing, storing the XML file of the software interface test result, and displaying the video on the tested software interface.
8. The method for automatically testing Ethernet interface software of claim 7, wherein the field identification type in step 4) comprises Chinese characters, numbers, letters and symbol types.
CN201710995968.6A 2017-10-23 2017-10-23 Automatic testing system and method for Ethernet interface software Active CN109697160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710995968.6A CN109697160B (en) 2017-10-23 2017-10-23 Automatic testing system and method for Ethernet interface software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710995968.6A CN109697160B (en) 2017-10-23 2017-10-23 Automatic testing system and method for Ethernet interface software

Publications (2)

Publication Number Publication Date
CN109697160A CN109697160A (en) 2019-04-30
CN109697160B true CN109697160B (en) 2022-03-18

Family

ID=66226071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710995968.6A Active CN109697160B (en) 2017-10-23 2017-10-23 Automatic testing system and method for Ethernet interface software

Country Status (1)

Country Link
CN (1) CN109697160B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554956B (en) * 2019-07-31 2023-05-23 交控科技股份有限公司 BDMS automatic test method
CN111367258B (en) * 2020-03-09 2021-05-14 上海柏楚数控科技有限公司 Test mainboard and test system for automatic test of motion control card
CN111862869A (en) * 2020-05-25 2020-10-30 青岛山景虚拟现实研究院 Automatic testing method and system for flight simulator cabin display equipment
CN112231222B (en) * 2020-10-27 2024-04-09 南京林洋电力科技有限公司 Automatic test method and system for object-oriented communication protocol
CN112418230A (en) * 2020-11-14 2021-02-26 武汉光庭信息技术股份有限公司 Automatic testing method and system based on vehicle-mounted display
CN114720896B (en) * 2022-02-28 2023-10-24 福建星云检测技术有限公司 Battery test step identification method and system
CN114721957B (en) * 2022-04-14 2022-09-30 合肥卓讯云网科技有限公司 Software and hardware automatic testing method and device
CN115051730B (en) * 2022-06-06 2024-07-12 重庆金美通信有限责任公司 Automatic testing device and method for wired network transmission equipment
CN115426300B (en) * 2022-08-15 2023-12-01 成都北中网芯科技有限公司 Method for automatically testing API (application program interface) of NP (network Programming) chip based on data packet
CN117056929B (en) * 2023-10-11 2023-12-26 中国兵器装备集团兵器装备研究所 Method, device and medium for optimizing test automation and safety detection on Hongmon system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5157782A (en) * 1990-01-31 1992-10-20 Hewlett-Packard Company System and method for testing computer hardware and software
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN106452942A (en) * 2016-08-29 2017-02-22 中车株洲电力机车研究所有限公司 Track traffic industry vehicle Ethernet exchange software performance test system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5157782A (en) * 1990-01-31 1992-10-20 Hewlett-Packard Company System and method for testing computer hardware and software
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN106452942A (en) * 2016-08-29 2017-02-22 中车株洲电力机车研究所有限公司 Track traffic industry vehicle Ethernet exchange software performance test system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于模型的软件接口故障注入测试平台技术》;陈强等;《计算机测量与控制》;20161215;第52-55,59页 *

Also Published As

Publication number Publication date
CN109697160A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
CN109697160B (en) Automatic testing system and method for Ethernet interface software
CN104956339B (en) Software test script is generated from video
CN103067736B (en) Automatic test system based on character recognition
CN111738041A (en) Video segmentation method, device, equipment and medium
CN110069413B (en) Test data communication, test method, device, equipment and storage medium
CN110149265B (en) Message display method and device and computer equipment
CN110647523B (en) Data quality analysis method and device, storage medium and electronic equipment
CN110852204A (en) Intelligent remote calligraphy digital learning evaluation information processing system and method
CN112161984B (en) Wine positioning method, wine information management method, device, equipment and storage medium
WO2023241102A1 (en) Label recognition method and apparatus, and electronic device and storage medium
CN110308346A (en) Cockpit display system automatic test approach and system based on image recognition
CN111900694A (en) Relay protection equipment information acquisition method and system based on automatic identification
CN112232354A (en) Character recognition method, device, equipment and storage medium
CN112306495A (en) Picture verification method and device, computer equipment and computer-readable storage medium
CN115484560B (en) Intelligent short message processing method and device, electronic equipment and storage medium
CN114264904B (en) Full liquid crystal instrument testing method and system based on simulation and machine vision
CN115828856A (en) Test paper generation method, device, equipment and storage medium
CN115438645A (en) Text data enhancement method and system for sequence labeling task
CN110069416B (en) Test data processing method and device and related equipment
CN116204670B (en) Management method and system of vehicle target detection data and electronic equipment
CN111294350B (en) Data processing system capable of quickly adapting to protocol change
CN112650867B (en) Picture matching method and device, electronic equipment and storage medium
US20240121234A1 (en) Ascertaining an Evaluation of a Data Set
CN118334402A (en) Identification card recognition method and system based on DBNet multi-classification network
CN115543783A (en) Data service automatic test management method and system thereof

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