CN108009088A - A kind of automatization test system of underlying protocol - Google Patents

A kind of automatization test system of underlying protocol Download PDF

Info

Publication number
CN108009088A
CN108009088A CN201711233053.8A CN201711233053A CN108009088A CN 108009088 A CN108009088 A CN 108009088A CN 201711233053 A CN201711233053 A CN 201711233053A CN 108009088 A CN108009088 A CN 108009088A
Authority
CN
China
Prior art keywords
gps module
testing tool
processor
map
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711233053.8A
Other languages
Chinese (zh)
Inventor
陈秋媚
程时宋
黄伟明
李小兰
李东梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201711233053.8A priority Critical patent/CN108009088A/en
Publication of CN108009088A publication Critical patent/CN108009088A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/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

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)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The present invention relates to function test system technical field, more particularly to a kind of automatization test system of underlying protocol, including it is built-in with the auto navigation of processor and GPS module and is preinstalled with the PC ends of testing tool;The processor or the GPS module are connected by serial port communication line with the PC ends, build map protocol automation testboard bay.The goal of the invention of the present invention is to provide a kind of automatization test system of underlying protocol, solved using technical solution provided by the invention and Black-box Testing is used in existing Software function test industry, cause two underlying protocols between product or function module can not test complete technical problem.

Description

A kind of automatization test system of underlying protocol
Technical field
The present invention relates to function test system technical field, more particularly to a kind of automatization test system of underlying protocol.
Background technology
Black-box Testing be otherwise known as functional test, data-driven test or specification-based testing, be by using Whole software or certain software function are strictly tested, and not by checking the source code of program or being clear from Solve what how the source code program of the software specifically designed.In testing, program is regarded as a flight data recorder that cannot be opened, In the case where giving no thought to program internal structure and bulk properties, tested in routine interface, only check program function Whether as desired whether the regulation normal use of description, program suitably can receive input data and produce correctly Output information.Black-box Testing is conceived to program external structure, without considering internal logic structure, mainly for software interface and software Function is tested.Black-box Testing is the angle with user, is surveyed from the correspondence of input data and output data Examination.It is hair with Black-box Testing method it is obvious that if to design problematic or specification regulation in itself wrong for external behavior Now not.
In Software function test industry, with it is most be Black-box Testing, underlying protocol, which can't see, can not touch, it is unclear that bottom What kind of interaction layer has carried out, if it is normal, can only be showed and be tested according to function, thus be frequently encountered two products or Underlying protocol between function module can not test completely.
Such as the map function of auto navigation, the communication of processor and map in auto navigation is carried out by serial ports, its In agreement be to be completed messaging by serial communication by the processor in auto navigation and map, reach function logic To realize, upper-layer user's interface operation can not test communication port, and tester only rests on the functional test of user interface, Processor in auto navigation has the agreement mutually restricted with map function, but the underlying protocol of auto navigation has part not Show in feature operation, and tester does not have the test that corresponding instrument carries out underlying protocol, can only manually carry out user The functional test at interface, once processor or map are not designed according to agreement, simple functional test can not test out.
The content of the invention
The present invention goal of the invention be to provide a kind of automatization test system of underlying protocol, use is provided by the invention Technical solution, which solves, uses Black-box Testing in existing Software function test industry, cause two bottoms between product or function module Layer protocol can not test complete technical problem.
In order to solve the above technical problem, the present invention provides a kind of automatization test system of underlying protocol, including it is built-in There are processor and the auto navigation of GPS module and be preinstalled with the PC ends of testing tool;The processor or the GPS module pass through Serial port communication line is connected with the PC ends, builds map protocol automation testboard bay;
The processor is sent to the message in map agreement the GPS module, and the GPS module is fed back to The information come is handled;The message that the GPS module is docked in received map agreement is responded, and the current institute of feedback The state for stating GPS module sends and is given to the processor;The testing tool realizes the message of the processor or GPS module Transmitting-receiving, imports test cases, and the transmission of message is performed according to test cases, and the message to feeding back carries out contrast judgement, Automatically generate corresponding test report.
Preferably, the PC ends connect the serial port communication line of the GPS module, and the testing tool simulates the processor Carry out information receiving and transmitting;The testing tool disappears to exporting to what the map agreement of the GPS module and the GPS module were fed back After breath is defined, wait for the arrival of news sending and receiving.
Further, the auto navigation is resetted and restarted;The testing tool simulates the processor and carries out information receiving and transmitting; After the testing tool sends every map protocol information, start timer;After timer, the testing tool obtains institute GPS module feedack is stated, and received message and the map protocol information sent are contrasted, completes map agreement Test;Constantly until completing the test of map agreement, output test report, stops the operation of testing tool for circulation.
Alternatively, the PC ends connect the serial port communication line of the processor;The testing tool simulate the GPS module into Row information receiving and transmitting;The processor is to exporting the message fed back to the map agreement of the testing tool and the testing tool After being defined, wait for the arrival of news sending and receiving.
Preferably, the auto navigation is resetted and restarted;The testing tool simulates the GPS module and carries out information receiving and transmitting; After the processor sends every map protocol information, start timer;After timer, the testing tool receives institute After stating map protocol information, feedack is exported to the processor, the processor is by received message and the institute that sends The contrast of map protocol information is stated, completes the test of map agreement;Constantly circulation is until the test of completion map agreement, output test Report, stops the operation of testing tool.
Therefore following beneficial effect can be reached using technical solution provided by the invention:The present invention leads automobile The serial port communication line between processor and GPS module in boat blocks, by be mounted with testing tool PC ends connection GPS module or Processor, testing tool build map protocol automation testboard bay, realize underlying protocol automatic test, can be to two Underlying protocol between product or function carries out automatic test, automatically forms test report, lifts testing efficiency, reduces test The input of personnel, lifts the integrity degree of test and reduces testing cost.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the present invention will be implemented below Attached drawing is briefly described needed in the description of example or the prior art.It should be evident that drawings in the following description Only part of the embodiment of the invention, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 connects block diagram for circuit of the embodiment of the present invention;
Fig. 2 is work flow diagram of the embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.Obviously, described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment, belongs to the scope of protection of the invention.
, can not be two underlying protocols product or function module using Black-box Testing in Software function test industry Complete test.
In order to solve the above-mentioned technical problem, the present embodiment provides a kind of automatization test system of underlying protocol, below with Exemplified by auto navigation, the system principle of this patent is elaborated.
Fig. 1 is referred to, which includes being built-in with 10 He of auto navigation of processor 11 and GPS module 12 The PC ends 20 of testing tool 21 are preinstalled with, which can be ARM.Due to the processor 11 and GPS in auto navigation 10 Module 12 is connected by serial port communication line, and in the present embodiment, serial port communication line is blocked, as shown in phantom in Figure 1, Then the GPS module 12 after being truncated in auto navigation 10 or processor 11 are connected by serial port communication line with PC ends 20, taken Build map protocol automation testboard bay.
Wherein processor 11 is sent to the message in map agreement GPS module 12, and GPS module 12 is fed back Information handled;
The message that GPS module 12 is docked in received map agreement is responded, and the shape of the current GPS module 12 of feedback State is emitted to processor 11;
The testing tool 21 at PC ends 20 then simulated automotive navigation 10 in processor 11 or GPS module 12, to processor 11 Or the message of GPS module 12 realizes transmitting-receiving, test cases is imported, the transmission of message is performed according to test cases, and to feeding back to The message come carries out contrast judgement, automatically generates corresponding test report.
When the testing tool 21 at PC ends 20 tests the map agreement of GPS module 12, the string of disconnection process device 11 Mouth connection, PC ends 20 connect the serial port communication line of GPS module 12, and 21 analog processor 11 of testing tool carries out information receiving and transmitting. After the message that testing tool 21 feeds back the map agreement and GPS module 12 that export to GPS module 12 at this time is defined, etc. Treat information receiving.
Fig. 2 is referred to, is restarted specifically, auto navigation 10 resets;21 analog processor 11 of testing tool carries out message receipts Hair;After testing tool 21 sends every map protocol information, start timer, in timer during, every information institute The corresponding time is different;After timer, testing tool 21 obtains 12 feedack of GPS module, and disappears received The map protocol information for ceasing and sending contrasts, and completes the test of map agreement;Constantly test of the circulation up to completing map agreement, Test report is exported, stops the operation of testing tool 21.
Alternatively, when the testing tool 21 at PC ends 20 tests the map agreement of processor 11, GPS module 12 is disconnected Serial port communication line, the serial port communication line of 20 connection processing device 11 of PC ends, testing tool 21 simulate GPS module 12 carry out message receipts Hair.The message that processor 11 feeds back the map agreement and testing tool 21 that export to testing tool 21 at this time is defined Afterwards, wait for the arrival of news sending and receiving.
Restart specifically, auto navigation 10 resets;Testing tool 21 simulates GPS module 12 and carries out information receiving and transmitting;Processor After 11 send every map protocol information, start timer, in timer during, the time corresponding to every information is not Equally;After timer, after testing tool 21 receives map protocol information, feedack, place are exported to processor 11 Reason device 11 contrasts received message and the map protocol information sent, completes the test of map agreement;Constantly circulation is until complete Into the test of map agreement, test report is exported, stops the operation of testing tool 21.
Technical solution provided in this embodiment cuts the serial port communication line between the processor in auto navigation and GPS module It is disconnected, the PC ends for being mounted with testing tool are connected into GPS module or processor, testing tool build map protocol automation testboard Frame, realizes underlying protocol automatic test, can carry out automatic test to two underlying protocols between product or function, Automatically form test report, lift testing efficiency, reduce the input of tester, lift the integrity degree of test and reduce test into This.
Embodiments described above, does not form the restriction to the technical solution protection domain.It is any in above-mentioned implementation Modifications, equivalent substitutions and improvements made within the spirit and principle of mode etc., should be included in the protection model of the technical solution Within enclosing.

Claims (5)

  1. A kind of 1. automatization test system of underlying protocol, it is characterised in that:Automobile including being built-in with processor and GPS module Navigate and be preinstalled with the PC ends of testing tool;The processor or the GPS module are connected by serial port communication line and the PC ends Connect, build map protocol automation testboard bay;
    The processor is sent to the message in map agreement the GPS module, and the GPS module is fed back Information is handled;The message that the GPS module is docked in received map agreement is responded, and feedback is described at present The state of GPS module, which is sent, is given to the processor;The testing tool is realized the message of the processor or GPS module and is received Hair, imports test cases, and the transmission of message is performed according to test cases, and the message to feeding back carries out contrast judgement, from It is dynamic to generate corresponding test report.
  2. A kind of 2. automatization test system of underlying protocol according to claim 1, it is characterised in that:The PC ends connection The serial port communication line of the GPS module, the testing tool simulate the processor and carry out information receiving and transmitting;The testing tool pair Export to the message of the map agreement of the GPS module and GPS module feedback after being defined, wait for the arrival of news sending and receiving.
  3. A kind of 3. automatization test system of underlying protocol according to claim 2, it is characterised in that:The auto navigation Reset is restarted;The testing tool simulates the processor and carries out information receiving and transmitting;The testing tool sends every map agreement After information, start timer;After timer, the testing tool obtains the GPS module feedack, and will receive Message and the map protocol information that sends contrast, complete the test of map agreement;Constantly circulation is until complete map association The test of view, exports test report, stops the operation of testing tool.
  4. A kind of 4. automatization test system of underlying protocol according to claim 1, it is characterised in that:The PC ends connection The serial port communication line of the processor;The testing tool simulates the GPS module and carries out information receiving and transmitting;The processor is to defeated Go out to the message of the map agreement of the testing tool and testing tool feedback after being defined, wait for the arrival of news sending and receiving.
  5. A kind of 5. automatization test system of underlying protocol according to claim 4, it is characterised in that:The auto navigation Reset is restarted;The testing tool simulates the GPS module and carries out information receiving and transmitting;The processor sends every map agreement letter After breath, start timer;After timer, after the testing tool receives the map protocol information, to the processing Device exports feedack, and the processor contrasts received message and the map protocol information sent, completes map The test of agreement;Constantly until completing the test of map agreement, output test report, stops the operation of testing tool for circulation.
CN201711233053.8A 2017-11-30 2017-11-30 A kind of automatization test system of underlying protocol Pending CN108009088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711233053.8A CN108009088A (en) 2017-11-30 2017-11-30 A kind of automatization test system of underlying protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711233053.8A CN108009088A (en) 2017-11-30 2017-11-30 A kind of automatization test system of underlying protocol

Publications (1)

Publication Number Publication Date
CN108009088A true CN108009088A (en) 2018-05-08

Family

ID=62055071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711233053.8A Pending CN108009088A (en) 2017-11-30 2017-11-30 A kind of automatization test system of underlying protocol

Country Status (1)

Country Link
CN (1) CN108009088A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109029501A (en) * 2018-07-27 2018-12-18 惠州市德赛西威汽车电子股份有限公司 A kind of full-automation engineering test system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010052089A1 (en) * 2000-04-27 2001-12-13 Microsoft Corporation Automated testing
CN1777127A (en) * 2005-12-08 2006-05-24 中国移动通信集团公司 Protocol conformance measuring device and method
CN101808356A (en) * 2010-04-20 2010-08-18 工业和信息化部电信传输研究所 Protocol simulation system for TD-SCDMA terminal protocol conformance tests
CN102789409A (en) * 2012-06-29 2012-11-21 惠州市德赛西威汽车电子有限公司 Embedded system automation module test method on basis of data communication monitoring
CN104125113A (en) * 2014-07-30 2014-10-29 国家电网公司 Method for testing consistency on a protocol for electric automobile charger and battery management system
CN106330593A (en) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 Protocol detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010052089A1 (en) * 2000-04-27 2001-12-13 Microsoft Corporation Automated testing
CN1777127A (en) * 2005-12-08 2006-05-24 中国移动通信集团公司 Protocol conformance measuring device and method
CN101808356A (en) * 2010-04-20 2010-08-18 工业和信息化部电信传输研究所 Protocol simulation system for TD-SCDMA terminal protocol conformance tests
CN102789409A (en) * 2012-06-29 2012-11-21 惠州市德赛西威汽车电子有限公司 Embedded system automation module test method on basis of data communication monitoring
CN104125113A (en) * 2014-07-30 2014-10-29 国家电网公司 Method for testing consistency on a protocol for electric automobile charger and battery management system
CN106330593A (en) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 Protocol detection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
凌传繁: "《高速网络技术》", 31 December 2001, 中国商业出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109029501A (en) * 2018-07-27 2018-12-18 惠州市德赛西威汽车电子股份有限公司 A kind of full-automation engineering test system and method

Similar Documents

Publication Publication Date Title
US10621797B2 (en) System and method for transferring diagnostic commands to a vehicle
CN108732443A (en) A kind of Auto-Test System and method based on Linux
US20150074302A1 (en) Automated Cabling Process for a Complex Environment
CN104483959A (en) Fault simulation and test system
CN104516798B (en) Wireless one-to-many test system
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN113285735A (en) Transponder transmission module capability test device
CN102707710A (en) Diagnosis function verification method and system for automobile electronic control unit
CN108009088A (en) A kind of automatization test system of underlying protocol
CN110968004B (en) Cable test system based on FPGA prototype verification development board
CN106709120A (en) PCIE (peripheral component interface express) verification method
CN113377701B (en) Serial port control system based on complex programmable logic device CPLD and communication method thereof
CN104375916A (en) Method and device for directly achieving computer hardware diagnosis through USB interface
CN106789449A (en) A kind of CAN exploitation and method of testing and system
EP3642718B1 (en) Graphical user interface tool for configuring a vehicle's intrusion detection system
CN204347152U (en) A kind of Multi-bus circuit board test diagnosis system
CN105975368A (en) DB9 serial port automatic testing loop jig and testing method thereof
CN103440218A (en) CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol
CN108614901A (en) A kind of PCIE verification method
CN110413547A (en) The communication system of interface control unit and the application interface control unit
CN101645804A (en) Veneer, communication system and method for detecting connection state of communication interface
CN110120904A (en) Entire car controller local area network message demarcates monitoring device
CN105045711B (en) A kind of concurrent analog detection method and device
CN108648298A (en) Message treatment method and device, storage medium, electronic equipment
CN110244638A (en) Data monitoring device and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180508