CN109697160A - A kind of Ethernet interface software automated testing system and method - Google Patents
A kind of Ethernet interface software automated testing system and method Download PDFInfo
- Publication number
- CN109697160A CN109697160A CN201710995968.6A CN201710995968A CN109697160A CN 109697160 A CN109697160 A CN 109697160A CN 201710995968 A CN201710995968 A CN 201710995968A CN 109697160 A CN109697160 A CN 109697160A
- Authority
- CN
- China
- Prior art keywords
- interface
- software
- test
- 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.)
- Granted
Links
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/3664—Environments for testing or debugging software
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing 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)
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of Ethernet interface software automated testing system and method, which includes: measuring and calculation machine host, automatic test software module, measuring and calculation machine network interface card, measuring and calculation machine display, the network switch, tested main frame, tested computer network interface card, tested software, video encoder, tested computer display.The present invention passes through parsing Ethernet interface agreement XML model, automatically generate the test case comprising test data, and test data is sent to by tested software by Ethernet, tested software interface display video is acquired by video encoder, the response results of automatic identification tested software, it is superimposed test data on display video, and saves video.The flexibility of the method for the present invention, versatility are preferable, are suitably applied naval vessels electronic information software interface testing field.
Description
Technical field
The present invention relates to software interface measuring technology more particularly to a kind of Ethernet interface software automated testing system and
Method.
Background technique
Accelerate as informationization technology develops, software size is also increasing.It is big between naval vessels electronic information software
Data information is measured by Ethernet message transmissions, the test of Ethernet software interface is the important interior of electronic information software test
One of hold.Currently, external commercial company develops a large amount of software automated testing tools, such as HP Quick Test
Professional、WinRunner、Selenium、Loadrunner、IBM RobotJ、Borland Segue Silk
Test, but these testing tools are tested based on the test of unit function pitching pile, based on Web page mostly, for software interface
Test, which needs that special function parameter is arranged in Software Coding, carrys out return response result, and it is very difficult to collect tested software interfaces to ring
It answers.The Ethernet software interface automatization test system of domestic manufacturers' exploitation needs to increase test code in tested software to obtain
The response results of tested software are taken, automatic test software sends test data Ethernet interface information by implementation of test cases
To tested software, the response results of the test code acquisition tested software in tested software are simultaneously passed in the form of network message message
It is defeated by automatic test software, automatic test software is by comparing the response results of analysis tested software and the symbol of expected result
Close property come determine whether by test, the versatility of this automated testing method and flexibility are poor, when test object change, need
To increase test code in new tested software.
In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a kind of Ethernet interface software automated testing systems
System and method identify the response results of tested software, to carry out software test by acquiring tested software interface display video
Interpretation of result provides software test as a result, being superimposed test data on tested software interface display video, is that Ethernet interface is soft
Part test provides a kind of flexible, general automated testing method.
Summary of the invention
The technical problem to be solved in the present invention is that for the defects in the prior art, providing a kind of Ethernet interface software
Automatization test system and method.
The technical solution adopted by the present invention to solve the technical problems is: a kind of Ethernet interface software automated testing system
System,
It include: that measuring and calculation machine host, automatic test software module, measuring and calculation machine network interface card, measuring and calculation machine are shown
Device, the network switch, tested main frame, tested computer network interface card, tested software, video encoder, tested computer are aobvious
Show device;
The measuring and calculation machine host is automatic for installing automatic test software module and measuring and calculation machine network interface card
Change test software operation and hardware environment is provided;
Automatic test software module generates software interface test and uses for reading parsing interface data model XML file
Example XML file reads analysis software interface testing use-case XML file, and driving generates test data Ethernet interface infomational message,
Test data Ethernet interface infomational message is sent to tested software by measuring and calculation machine network interface card, then receives and passes through video
Encoder, the network switch acquire the tested software interface display video transmitted, in tested software interface display video
Response results are identified whether the response results and expected result of comparative analysis tested software meet to determine whether to pass through survey
Examination, is superimposed test data on tested software interface display video, and store video;
Measuring and calculation machine network interface card receives network switch transmission for sending and receiving Ethernet interface infomational message
Compress video.
Measuring and calculation machine display, for showing the video of measuring and calculation machine host output.
The network switch, for being tested transmitting test data between main frame and measuring and calculation machine host, including with
Too network interface infomational message, tested software interface display video;
Tested main frame is provided for installing tested software, measuring and calculation machine network interface card for tested software operation
Hardware environment;
Tested computer network interface card, for sending and receiving Ethernet interface infomational message;
Tested software, the test data Ethernet interface infomational message transmitted for receiving the network switch, and it is right
The response of Ethernet interface infomational message;
The video (VGA format or DVI format) that tested main frame exports is distributed to tested calculating by video encoder
Machine display carries out compressed encoding to video, and is transmitted by the network switch.
Tested computer display, for showing tested software interface.
According to the above scheme, the automatic test software module includes following module,
Test cases technology module, for reading parsing interface data model XML file, according to equivalence class classifying method, side
The methods of dividing value analytic approach generates test case, and is stored with XML file.Interface message is described using the XML language of structuring,
Interface data model XML include sender's IP address, recipient's IP address, message identification, message length, each field type,
The information such as alias, unit, value range, most significant bit, least significant bit, precision, ull-scale value, length.Interface testing is used
Example XML file is main to describe use-case number, use-case title, hair by test case information, transmission control information, test data set
Control information (source IP, port numbers, sends frequency at destination IP (containing multicast)) is sent, test data sum, data sequence number is sent, surveys
Try the contents such as data sequence number, test data, expected result.
Test driver module, for reading parsing test case XML file, by test data according to interface data model
XML file is assembled into Ethernet interface infomational message, is then sent to tested software by network;
Video identification configuration module, including for being set by identifier to the identification region in tested software interface
It sets.Each field of the identification region according to interface information model is set, passes through mouse after acquiring tested software interface display video
The place coordinate position of each field of interface message message is chosen, field identification types (such as Chinese character, number, letter, symbol are set
Type), identifier mainly includes the recognition classifier of the types such as Chinese character, number, letter, symbol, mainly to Chinese character, number, word
Female, symbol samples pictures are obtained using the training of the machine learning algorithms such as neural network, Adaboost, in identification according to each
The identification types of field setting load.
Tested software interface display video identification module, the tested software interface sended over for receiving the network switch
It shows video, and intercepts corresponding image block according to each field identification region of setting, image block is pre-processed, load
Corresponding recognition classifier, digital recognition classifier, Letter identification classifier, Symbol recognition classifier, are identified, and save
Recognition result.
The recognition result of each field of software test interpretation of result module synthesis is tied with expectation in test case XML file
Fruit is compared analysis, provides judgement as a result, test data is superimposed upon on tested software interface display video simultaneously, saves quilt
It surveys software interface and shows video and software interface test result XML file;
File management management module, for being surveyed to interface data model XML file, test case XML file, software interface
Test result XML file, software interface show that video is managed.
According to the above scheme, in the Test cases technology module, interface data model XML file uses the XML of structuring
Language description, including sender's IP address, recipient's IP address, message identification, message length, the type of each field, alias, list
The information such as position, value range, most significant bit, least significant bit, precision, ull-scale value, length.
According to the above scheme, in the Test cases technology module, interface testing use-case XML file includes test case letter
Breath sends control information, test data set, main to describe use-case number, use-case title, send control information (source IP, destination IP
(contain multicast), port numbers send frequency), test data sum, send data sequence number, test data serial number, test data, phase
Hope result.
According to the above scheme, in the video identification configuration module, each word of the setting identification region according to interface information model
Section, the place coordinate position for choosing each field of interface message message by mouse after acquiring tested software interface display video are true
It is fixed, and set field identification types in identification region.
According to the above scheme, field identification types include Chinese character, number, letter, symbol in the video identification configuration module
Type.
According to the above scheme, in the tested software interface display video identification module, identifier classification includes Chinese character, number
Word, letter, sign pattern recognition classifier, the recognition classifier by Chinese character, number, letter, symbol sample graph
Piece is obtained using the training of refreshing machine learning algorithm, is loaded in identification according to the identification types of each field setting.
A kind of Ethernet interface automatic software test method based on Ethernet interface software automated testing system, institute
State Ethernet interface software automated testing system, comprising: measuring and calculation machine host, automatic test software module, tester
Calculation machine network interface card, measuring and calculation machine display, the network switch, tested main frame, tested computer network interface card, tested software,
Video encoder, tested computer display;
The following steps are included:
1) Ethernet software interface automatization test system initializes;
2) interface data model XML file, the interface data model XML text are read by automatic test software module
The content of part includes interface message title, originating party Hostname, recipient's Hostname, originating party IP address, debit's IP address (packet
Include multicast address), originating party port numbers, recipient's port numbers, data transmitting period, total length of data, field name, field it is long
The information such as degree, field type, field value range, most significant bit, least significant bit, precision, ull-scale value, unit.
3) automatic test software module parses interface data model XML file, generates interface testing use-case XML file;
Automatic test software module utilizes equivalence class classifying method, side according to interface data model XML file parsing result
The methods of dividing value analytic approach generates interface testing data set, finally describes interface testing use-case with XML language.One interface use-case
Include whole test data sets.Interface testing use-case XML file content includes sending control, interface testing data two parts.Hair
Control section is sent mainly to describe interface message title, originating party Hostname, recipient's Hostname, originating party IP address, debit IP
Address (including multicast address), originating party port numbers, recipient's port numbers, data transmitting period.The description of interface testing data portion
Total length of data, interface testing data count, test data set.
4) on the tested software interface display video of automatic test software, according to each field of message interface, pass through mouse
Mark selectes video area to be identified, and type to be identified is arranged according to each field type, loads corresponding recognition classifier;
5) interface testing use-case XML file is read, test data set is parsed;
6) the test data concentration analytically come out is successively read 1 test data, according to interface data model XML file
It is assembled into Ethernet interface infomational message, tested software is then sent to by network;
7) tested software interface display video, automatic test software benefit are acquired by video encoder, the network switch
Video is received with network interface card and is decompressed;
8) automatic test software is set on video identification region recognition tested software interface display video according to step 4)
Software responses result;
9) the tested software response results of identification are compared by automatic test software with expected result in test case
Analysis provides test result judgement;
10) test result is recorded in software interface test result XML file;
11) test data is superimposed upon on tested software interface display video, and saves video;
12) automatic test software judges whether to terminate transmission test data according to sending sequence number for current test data.
If needing to send there are also test data in test case, go to step 6), sends next frame test data Ethernet and connect
Mouth infomational message;If there is no test data to need to send in test case, stop sending test data Ethernet interface letter
Cease message;
13) stop test, save software interface test result XML file, tested software interface display video.
According to the above scheme, field identification types include Chinese character, number, letter, sign pattern in the step 4).
The beneficial effect comprise that:
1. the present invention, which can acquire, saves tested software interface display video, help is provided for software interface defect location;
2. the present invention can response results on automatic identification tested software interface display video, do not need in tested software
It is middle to increase test code to obtain the response results of tested software, substantially increase Ethernet interface automatic software test method
Versatility and flexibility.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the system structure diagram of the embodiment of the present invention;
Fig. 2 is automatic test software module composed structure schematic diagram of the invention;
Fig. 3 is interface testing use-case XML file composed structure schematic diagram of the invention;
Fig. 4 is automated testing method flow diagram of the invention;
In figure: 1- measuring and calculation machine host;2- automatic test software module;3- measuring and calculation machine network interface card;4- tester
Calculation machine display;The 5- network switch;6- is tested main frame;7- is tested computer network interface card;8- tested software;9- video is compiled
Code device;10- is tested computer display.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention
It is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit
The fixed present invention.
As shown in Figure 1, Ethernet software interface automated testing method is soft by measuring and calculation machine host 1, automatic test
Part module 2, measuring and calculation machine network interface card 3, measuring and calculation machine display 4, the network switch 5, tested main frame 6, tested meter
Calculation machine network interface card 7, tested software 8, video encoder 9, tested computer display 10 form.
Measuring and calculation machine host 1 is surveyed for installing automatic test software module 2, measuring and calculation machine network interface card 3 for automation
It tries software operation and hardware environment is provided
Automatic test software module 2 generates software interface test and uses for reading parsing interface data model XML file
Example XML file reads analysis software interface testing use-case XML file, and driving generates test data Ethernet interface infomational message,
It is sent to tested software by measuring and calculation machine network interface card 3, the quilt transmitted is acquired by video encoder 9, the network switch 5
It surveys software interface and shows video, response results in tested software interface display video are identified, comparative analysis tested software
Response results and expected result whether meet determine whether by test, on tested software interface display video be superimposed survey
Data are tried, and store video.
Measuring and calculation machine network interface card 3 receives network switch transmission for sending and receiving Ethernet interface infomational message
Compress video.
Measuring and calculation machine display 4 is used to show the video that main frame 1 exports.
The network switch 5 is used for transmission test data Ethernet interface infomational message, tested software interface display video.
Tested main frame 6 is mentioned for installing tested software 8, measuring and calculation machine network interface card 7 for tested software operation
For hardware environment.
Tested computer network interface card 7 is for sending and receiving Ethernet interface infomational message.
Tested software 8 receives the test data Ethernet interface infomational message that the network switch 5 transmits, and to ether
The response of network interface infomational message.
The video (VGA format or DVI format) that tested main frame 6 exports is distributed to tested meter by video encoder 9
Calculation machine display 10 carries out compressed encoding to video, and is transmitted by the network switch 5.
Tested computer display 10 is for showing tested software interface.
As shown in Fig. 2, in the present invention automatic test software module by Test cases technology module, Test driver module,
Video identification configuration module, tested software interface display video identification module, software test interpretation of result module, file management pipe
Manage module composition.
Each module concrete function is described as follows:
Test cases technology module reads parsing interface data model XML file, according to equivalence class classifying method, boundary value point
The methods of analysis method generates test case, and is stored with XML file.Interface message is described using the XML language of structuring, number of ports
It include sender's IP address, recipient's IP address, message identification, message length, the type of each field, alias, list according to model XML
The information such as position, value range, most significant bit, least significant bit, precision, ull-scale value, length.Interface testing use-case XML text
Part controls letter by test case information, transmission control information, test data set, main description use-case number, use-case title, transmission
Breath (source IP, port numbers, sends frequency at destination IP (containing multicast)), sends data sequence number, test data sequence at test data sum
Number, the contents such as test data, expected result.The structure of interface testing use-case XML file is as shown in Figure 3.
Test driver module is for reading parsing test case XML file, by test data according to interface data model XML
File is assembled into Ethernet interface infomational message, is then sent to tested software by network.
Video identification configuration module mainly includes the functions such as setting identification region, identifier.Setting identification region foundation connects
Each field of mouth information model passes through mouse after acquiring tested software interface display video and chooses each field of interface message message
Place coordinate position, set field identification types (such as Chinese character, number, letter, symbol type), identifier mainly includes the Chinese
The recognition classifier of the types such as word, number, letter, symbol mainly utilizes mind to the samples pictures of Chinese character, number, letter, symbol
It obtains through the training of the machine learning algorithms such as network, Adaboost, is added in identification according to the identification types of each field setting
It carries.
The tested software interface that the tested software interface display video identification module primary recipient network switch sends over
Show video.Corresponding image block is intercepted according to each field identification region of setting, image block is pre-processed, loads phase
The Chinese Character Recognition classifier answered, digital recognition classifier, Letter identification classifier, Symbol recognition classifier, are identified, and protect
Deposit recognition result.
The recognition result of each field of software test interpretation of result module synthesis is tied with expectation in test case XML file
Fruit is compared analysis, provides judgement as a result, test data is superimposed upon on tested software interface display video simultaneously, saves quilt
It surveys software interface and shows video and software interface test result XML file.
File management management module mainly surveys interface data model XML file, test case XML file, software interface
Test result XML file, software interface show that video is managed.
Automatic testing process schematic diagram as shown in Figure 4, Ethernet software interface automatic test pass through following steps reality
It is existing:
(1) Ethernet software interface automatization test system initializes.
(2) automatic test software reads interface data model XML file.
The content of interface data model XML file includes interface message title, originating party Hostname, recipient's host name
Title, originating party IP address, debit's IP address (including multicast address), originating party port numbers, recipient's port numbers, data transmitting period,
Total length of data, field name, field length, field type, field value range, most significant bit, least significant bit, essence
The information such as degree, ull-scale value, unit.
(3) automatic test software parses interface data model XML file, generates interface testing use-case XML file.
Automatic test software utilizes equivalence class classifying method, boundary value according to interface data model XML file parsing result
The methods of analytic approach generates interface testing data set, finally describes interface testing use-case with XML language.One interface use-case includes
Whole test data sets.Interface testing use-case XML file content includes sending control, interface testing data two parts.Send control
The main description interface message title, originating party Hostname, recipient's Hostname, originating party IP address, debit's IP address in system part
(including multicast address), originating party port numbers, recipient's port numbers, data transmitting period.Interface testing data portion describes data
Total length, interface testing data count, test data set.
(4) on the tested software interface display video of automatic test software, according to each field of message interface, pass through mouse
Mark selectes video area to be identified, and type to be identified is arranged according to each field type, loads corresponding recognition classifier.
(5) interface testing use-case XML file is read, test data set is parsed.
(6) the test data concentration analytically come out is successively read 1 test data, according to interface data model XML text
Part is assembled into Ethernet interface infomational message, is then sent to tested software by network.
(7) tested software interface display video, automatic test software benefit are acquired by video encoder, the network switch
Video is received with network interface card and is decompressed.
(8) automatic test software sets video identification region recognition tested software interface display video according to step (4)
On software responses result.
(9) the tested software response results of identification are compared by automatic test software with expected result in test case
Analysis provides test result judgement.
(10) test result is recorded in software interface test result XML file.
(11) test data is superimposed upon on tested software interface display video, and saves video.
(12) automatic test software judges whether to terminate transmission test data according to sending sequence number for current test data.
If needing to send there are also test data in test case, go to step (6), sends next frame test data Ethernet and connects
Mouth infomational message.If there is no test data to need to send in test case, stop sending test data Ethernet interface letter
Cease message.
(13) stop test, save software interface test result XML file, tested software interface display video.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description,
And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.
Claims (9)
1. a kind of Ethernet interface software automated testing system, which is characterized in that
It include: measuring and calculation machine host, automatic test software module, measuring and calculation machine network interface card, measuring and calculation machine display, net
Network interchanger, tested main frame, tested computer network interface card, tested software, video encoder, tested computer display;
The measuring and calculation machine host is surveyed for installing automatic test software module and measuring and calculation machine network interface card for automation
It tries software operation and hardware environment is provided;
Automatic test software module generates software interface test case for reading parsing interface data model XML file
XML file reads analysis software interface testing use-case XML file, and driving generates test data Ethernet interface infomational message, leads to
It crosses measuring and calculation machine network interface card and test data Ethernet interface infomational message is sent to tested software, then receive and compiled by video
Code device, the network switch acquire the tested software interface display video transmitted, ring in tested software interface display video
Should result identified whether the response results and expected result of comparative analysis tested software meet to determine whether to pass through survey
Examination, is superimposed test data on tested software interface display video, and store video;
Measuring and calculation machine network interface card receives the compression of network switch transmission for sending and receiving Ethernet interface infomational message
Video.
Measuring and calculation machine display, for showing the video of measuring and calculation machine host output.
The network switch, for being tested transmitting test data between main frame and measuring and calculation machine host, including Ethernet
Interface message message, tested software interface display video;
Tested main frame provides soft or hard for installing tested software, measuring and calculation machine network interface card for tested software operation
Part environment;
Tested computer network interface card, for sending and receiving Ethernet interface infomational message;
Tested software, the test data Ethernet interface infomational message transmitted for receiving the network switch, and to ether
The response of network interface infomational message;
The video distribution that video encoder exports tested main frame gives tested computer display, compresses to video
Coding, and transmitted by the network switch;
Tested computer display, for showing tested software interface.
2. Ethernet interface software automated testing system according to claim 1, which is characterized in that the automation is surveyed
Trying software module includes following module,
Test cases technology module, for reading parsing interface data model XML file, according to equivalence class classifying method, boundary value
The methods of analytic approach generates test case, and is stored with XML file;
Test driver module, for reading parsing test case XML file, by test data according to interface data model XML text
Part is assembled into Ethernet interface infomational message, is then sent to tested software by network;
Video identification configuration module, including for being configured by identifier to the identification region in tested software interface;
Tested software interface display video identification module, the tested software interface display sended over for receiving the network switch
Video, and corresponding image block is intercepted according to each field identification region of setting, image block is pre-processed, load is corresponding
Recognition classifier identified, and save recognition result;
The recognition result of each field of software test interpretation of result module synthesis, with expected result in test case XML file into
Row comparative analysis provides judgement as a result, test data is superimposed upon on tested software interface display video simultaneously, and preservation is tested soft
Part interface display video and software interface test result XML file;
File management management module, for interface data model XML file, test case XML file, software interface test knot
Fruit XML file, software interface show that video is managed.
3. Ethernet interface software automated testing system according to claim 2, which is characterized in that the test case
In generation module, interface data model XML file is described using the XML language of structuring, including sender's IP address, recipient
IP address, message identification, message length, the type of each field, alias, unit, value range, most significant bit, it is minimum effectively
Position, precision, ull-scale value, length information.
4. Ethernet interface software automated testing system according to claim 2, which is characterized in that the test case
In generation module, interface testing use-case XML file includes test case information, sends control information, test data set, is mainly retouched
Use-case number, use-case title are stated, control information is sent, test data sum, sends data sequence number, test data serial number, test
Data, expected result.
5. Ethernet interface software automated testing system according to claim 2, which is characterized in that the video identification
In configuration module, each field of the setting identification region according to interface information model, after acquiring tested software interface display video
It is determined by the place coordinate position that mouse chooses each field of interface message message, and sets field in identification region and identify class
Type.
6. Ethernet interface software automated testing system according to claim 2, which is characterized in that the video identification
Field identification types include Chinese character, number, letter, sign pattern in configuration module.
7. Ethernet interface software automated testing system according to claim 2, which is characterized in that the tested software
In interface display video identification module, identifier classification include Chinese character, number, letter, sign pattern recognition classifier, it is described
Recognition classifier is obtained by the samples pictures to Chinese character, number, letter, symbol using the training of refreshing machine learning algorithm, is being known
It is loaded when other according to the identification types of each field setting.
8. a kind of Ethernet interface automatic software test method based on Ethernet interface software automated testing system, described
Ethernet interface software automated testing system, comprising: measuring and calculation machine host, automatic test software module, measuring and calculation
Machine network interface card, measuring and calculation machine display, the network switch, tested main frame, tested computer network interface card, tested software, view
Frequency encoder, tested computer display;
The following steps are included:
1) Ethernet software interface automatization test system initializes;
2) interface data model XML file is read by automatic test software module, the interface data model XML file
Content includes interface message title, originating party Hostname, recipient's Hostname, originating party IP address, debit's IP address (including group
Broadcast address), originating party port numbers, recipient's port numbers, data transmitting period, total length of data, field name, field length, word
The information such as segment type, field value range, most significant bit, least significant bit, precision, ull-scale value, unit.
3) automatic test software module parses interface data model XML file, generates interface testing use-case XML file;
Automatic test software module utilizes equivalence class classifying method or boundary according to interface data model XML file parsing result
It is worth analytic approach and generates interface testing data set, finally describes interface testing use-case with XML language;One interface use-case includes all
Test data set, interface testing use-case XML file content includes sending control, interface testing data two parts, wherein sending control
The description of system part interface message title, originating party Hostname, recipient's Hostname, originating party IP address, debit's IP address, originating party
Port numbers, recipient's port numbers, data transmitting period;Interface testing data portion describes total length of data, interface testing data
Sum, test data set;
4) it on the tested software interface display video of automatic test software, according to each field of message interface, is selected by mouse
Fixed video area to be identified is arranged type to be identified according to each field type, loads corresponding recognition classifier;
5) interface testing use-case XML file is read, test data set is parsed;
6) the test data concentration analytically come out is successively read 1 test data, assembles according to interface data model XML file
At Ethernet interface infomational message, tested software is then sent to by network;
7) tested software interface display video is acquired by video encoder, the network switch, automatic test software utilizes net
Clamping rating frequency simultaneously decompresses;
8) automatic test software is set soft on video identification region recognition tested software interface display video according to step 4)
Part response results;
9) the tested software response results of identification are compared analysis with expected result in test case by automatic test software,
Provide test result judgement;
10) test result is recorded in software interface test result XML file;
11) test data is superimposed upon on tested software interface display video, and saves video;
12) automatic test software judges whether to terminate transmission test data according to sending sequence number for current test data;If
It needs to send there are also test data in test case, then gos to step 6), send next frame test data Ethernet interface letter
Cease message;If there is no test data to need to send in test case, stop sending test data Ethernet interface information report
Text;
13) stop test, save software interface test result XML file, tested software interface display video.
9. Ethernet interface automatic software test method according to claim 8, which is characterized in that in the step 4)
Field identification types include Chinese character, number, letter, sign pattern.
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 true CN109697160A (en) | 2019-04-30 |
CN109697160B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110554956A (en) * | 2019-07-31 | 2019-12-10 | 交控科技股份有限公司 | BDMS automatic testing method |
CN111367258A (en) * | 2020-03-09 | 2020-07-03 | 上海柏楚数控科技有限公司 | Test mainboard and test system for automatic test of motion control card |
CN112231222A (en) * | 2020-10-27 | 2021-01-15 | 南京林洋电力科技有限公司 | Object-oriented communication protocol automated testing method and system |
CN112418230A (en) * | 2020-11-14 | 2021-02-26 | 武汉光庭信息技术股份有限公司 | Automatic testing method and system based on vehicle-mounted display |
CN114721957A (en) * | 2022-04-14 | 2022-07-08 | 合肥卓讯云网科技有限公司 | Software and hardware automatic testing method and device |
CN114720896A (en) * | 2022-02-28 | 2022-07-08 | 福建星云检测技术有限公司 | Battery testing process step identification method and system |
CN115051730A (en) * | 2022-06-06 | 2022-09-13 | 重庆金美通信有限责任公司 | Automatic testing device and method for wired network transmission equipment |
CN115426300A (en) * | 2022-08-15 | 2022-12-02 | 成都北中网芯科技有限公司 | Method for automatically testing NP chip API (application program interface) based on data packet |
CN117056929A (en) * | 2023-10-11 | 2023-11-14 | 中国兵器装备集团兵器装备研究所 | Method, device and medium for optimizing test automation and safety detection on Hongmon system |
Citations (4)
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 |
-
2017
- 2017-10-23 CN CN201710995968.6A patent/CN109697160B/en active Active
Patent Citations (4)
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)
Title |
---|
陈强等: "《基于模型的软件接口故障注入测试平台技术》", 《计算机测量与控制》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110554956B (en) * | 2019-07-31 | 2023-05-23 | 交控科技股份有限公司 | BDMS automatic test method |
CN110554956A (en) * | 2019-07-31 | 2019-12-10 | 交控科技股份有限公司 | BDMS automatic testing method |
CN111367258A (en) * | 2020-03-09 | 2020-07-03 | 上海柏楚数控科技有限公司 | Test mainboard and test system for automatic test of motion control card |
CN111367258B (en) * | 2020-03-09 | 2021-05-14 | 上海柏楚数控科技有限公司 | Test mainboard and test system for automatic test of motion control card |
CN112231222A (en) * | 2020-10-27 | 2021-01-15 | 南京林洋电力科技有限公司 | Object-oriented communication protocol automated testing method and system |
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 |
CN114720896A (en) * | 2022-02-28 | 2022-07-08 | 福建星云检测技术有限公司 | Battery testing process step identification method and system |
CN114720896B (en) * | 2022-02-28 | 2023-10-24 | 福建星云检测技术有限公司 | Battery test step identification method and system |
CN114721957A (en) * | 2022-04-14 | 2022-07-08 | 合肥卓讯云网科技有限公司 | Software and hardware automatic testing method and device |
CN115051730A (en) * | 2022-06-06 | 2022-09-13 | 重庆金美通信有限责任公司 | Automatic testing device and method for wired network transmission equipment |
CN115426300A (en) * | 2022-08-15 | 2022-12-02 | 成都北中网芯科技有限公司 | Method for automatically testing NP chip API (application program interface) based on data packet |
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 |
CN117056929A (en) * | 2023-10-11 | 2023-11-14 | 中国兵器装备集团兵器装备研究所 | Method, device and medium for optimizing test automation and safety detection on Hongmon system |
CN117056929B (en) * | 2023-10-11 | 2023-12-26 | 中国兵器装备集团兵器装备研究所 | Method, device and medium for optimizing test automation and safety detection on Hongmon system |
Also Published As
Publication number | Publication date |
---|---|
CN109697160B (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109697160A (en) | A kind of Ethernet interface software automated testing system and method | |
CN111459794B (en) | Communication network testing method, device, computer equipment and storage medium | |
CN107480053B (en) | Software test data generation method and device | |
CN108307021B (en) | Parallel following test equipment, cloud real machine and method for mobile terminal | |
CN104461903B (en) | The method and apparatus of test client based on browser | |
CN108933935A (en) | Detection method, device, storage medium and the computer equipment of video communication system | |
CN111401314A (en) | Dressing information detection method, device, equipment and storage medium | |
CN107247637A (en) | A kind of APP fault determination methods and device | |
CN105787364A (en) | Automated testing method, device and system for task | |
CN108243033A (en) | A kind of method given a mark to video quality, cloud server terminal and system | |
CN109324956A (en) | System detection method, equipment and computer readable storage medium | |
CN113102277A (en) | Sorting method and system for fresh products | |
CN106972983A (en) | The automatic test device and method of network interface | |
CN110348328A (en) | Appraisal procedure, device, storage medium and the electronic equipment of quality of instruction | |
CN115115968A (en) | Video quality evaluation method and device and computer readable storage medium | |
CN110334620A (en) | Appraisal procedure, device, storage medium and the electronic equipment of quality of instruction | |
CN108073854A (en) | A kind of detection method and device of scene inspection | |
CN116089277A (en) | Neural network operator test and live broadcast application method and device, equipment and medium thereof | |
CN105868832A (en) | Work order processing method and apparatus | |
CN112770080B (en) | Meter reading method, meter reading device and electronic equipment | |
CN114005054A (en) | AI intelligence system of grading | |
CN107885648A (en) | A kind of method and apparatus for generating test report | |
CN110618881A (en) | Method and system for simulating message queue | |
CN115484560B (en) | Intelligent short message processing method and device, electronic equipment and storage medium | |
CN114615172B (en) | Flow detection method and system, storage medium and electronic equipment |
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 |