CN108519933A - Board test method, device, readable storage medium storing program for executing and computer equipment - Google Patents

Board test method, device, readable storage medium storing program for executing and computer equipment Download PDF

Info

Publication number
CN108519933A
CN108519933A CN201810130140.9A CN201810130140A CN108519933A CN 108519933 A CN108519933 A CN 108519933A CN 201810130140 A CN201810130140 A CN 201810130140A CN 108519933 A CN108519933 A CN 108519933A
Authority
CN
China
Prior art keywords
test
board
files
api
data
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
CN201810130140.9A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810130140.9A priority Critical patent/CN108519933A/en
Publication of CN108519933A publication Critical patent/CN108519933A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A kind of board test method, device, readable storage medium storing program for executing and computer equipment, this method include:When getting the instruction of testing results program file, each API test files are sequentially transferred, and the test instruction in the current API test files transferred is sent in board to be tested, so that the board executes the test instruction, and feedback test data;The corresponding normal data of current API test files described in configuration file is obtained, and the board returns the test data of feedback and the normal data, to obtain the test result of the current API test files;When multiple API test files have been transferred, judge whether the test result of multiple API test files meets preset condition;If so, determining the board test passes.The present invention realizes " the one-touch test " of board by testing results program file, and is automatically analyzed to the automatic test data of each function of board, to determine the performance of board, improves the testing efficiency of board.

Description

Board test method, device, readable storage medium storing program for executing and computer equipment
Technical field
The present invention relates to electronic technology field, more particularly to a kind of board test method, device, readable storage medium storing program for executing and Computer equipment.
Background technology
Existing electronic equipment, such as computer, tablet computer, mobile phone, television set making be mounted on pcb board it is all The a large amount of electronic devices of such as processor, the pcb board for being pasted with electronic device are commonly known as PCBA (Printed Circuit Board Assembly), also referred to as board.
In order to ensure board, for example the product quality of TV (TV) board or mobile phone board etc. is required to before its manufacture It is tested for the property, to determine whether board is qualified.In the prior art, it will usually use and performance survey manually is carried out to it Examination, generally by the way that by board connecting test server, test script is constantly write manually in test server by program staff Program is realized with being tested board.
Existing test side is both needed to write a test script program when often testing a board, and test speed is slow, test Efficiency is low, when being tested especially for multiple boards, existing test method heavy workload, and poor practicability.
Invention content
In view of above-mentioned condition, it is necessary to for the low problem of board testing efficiency in the prior art, provide a kind of board survey Method for testing, device, readable storage medium storing program for executing and computer equipment.
A kind of board test method, applied to being equipped in the test machine of test procedure document, the test procedure document packet A configuration file and multiple API test files are included, the board test method includes:
When getting the instruction of testing results program file, each API test files are sequentially transferred, and will transfer Current API test files in test instruction be sent in board to be tested so that the board execute it is described test refer to It enables, and feedback test data, and;
The corresponding normal data of current API test files described in the configuration file is obtained, and the board returns The test data of feedback and the normal data, to obtain the test result of the current API test files;
When multiple API test files have been transferred, judge whether the test result of multiple API test files is full Sufficient preset condition;
If so, determining the board test passes.
In the embodiment of the present invention, when getting the instruction of testing results program file, each API tests text is transferred successively Part, and the test sent in the current API test files transferred is instructed to board.Board receives the test instruction of terminal transmission Afterwards, the test is executed to instruct and test data is fed back to test machine.Test machine to the test datas of each API test files into Row analysis, when the test result of multiple API test files meets preset condition, determines board test passes.The present invention is implemented Example realizes " the one-touch test " of board by testing results program file, and to the automatic test data of each function of board It automatically analyzes, to determine the performance of board, improves the testing efficiency of board.
Above-mentioned board test method, wherein the test data and the normal data, to obtain described work as The step of test result of preceding API test files includes:
When the test data is identical as the normal data, determine that the test result of the current test file is the One numerical value;
When the test data and the normal data differ, determine that the test result of the current test file is Second value, wherein first numerical value is more than the second value.
Above-mentioned board test method, wherein judge whether the test result of multiple API test files meets default item The step of part includes:
When getting the test result of the current API test files of the board feedback, the configuration text is obtained The weighted value of current API test files described in part, and according to the weighted value and test result meter of the current API test files Calculate the test weight score of each API test files;
When multiple API examinations files are tested, the total of the test weight score of multiple API test files is calculated With;
When the summation is more than threshold value, determine that the test result of multiple API test files meets preset condition;
When the summation is less than or equal to the threshold value, determine that the test result of multiple API test files is discontented The foot preset condition.
Above-mentioned board test method, wherein after the step of the determination board test passes, the method further includes Step:
The test data of each API test files and test result and the test result of the board are written In preset test data table, wherein be previously written the corresponding test work(of each API test files in the test data table It can title and the corresponding standard testing data of each API test files.
Above-mentioned board test method, wherein the test instruction by the current API test files transferred is sent to institute Further include before stating the step in board:
The IP address of the board is obtained, and the connection between the board is established according to the IP address.
Above-mentioned board test method, wherein it is described according to the IP address establish with the step of the connection of the board it Before further include:
Whether the IP address network connection that is whether complete and detecting the board for detecting the board is normal;
When the IP address of the board is complete and the network connection of the board is normal, determines and establish and the board Connection;
When the IP address of the board is imperfect or the network connection exception of the board, prompt message is sent out.
The present invention also provides a kind of board test devices should applied to being equipped in the test machine of test procedure document Test procedure document includes a configuration file and multiple API test files, the board test device include:
Module is transferred, for when getting the instruction of testing results program file, sequentially transferring each API tests File, and the test instruction in the current API test files transferred is sent in board to be tested, so that the board is held The row test instruction, and feedback test data;
Comparison module for obtaining the corresponding normal data of current API test files described in the configuration file, and compares The board returns the test data of feedback and the normal data, to obtain the test result of the current API test files;
Judgment module, for when multiple API test files have been transferred, judging multiple API test files Whether test result meets preset condition;
First determining module, for when the test result of multiple API test files meets preset condition, determining institute State board test passes.
Above-mentioned board test device, wherein the comparison module is used for:
When the test data is identical as the normal data, determine that the test result of the current test file is the One numerical value;
When the test data and the normal data differ, determine that the test result of the current test file is Second value, wherein first numerical value is more than the second value.
Above-mentioned board test device, wherein the judgment module is specifically used for:
When getting the test result of the current API test files of the board feedback, the configuration text is obtained The weighted value of current API test files described in part, and according to the weighted value and test result meter of the current API test files Calculate the test weight score of each API test files;
When multiple API examinations files are tested, the total of the test weight score of multiple API test files is calculated With;
When the summation is more than threshold value, determine that the test result of multiple API test files meets preset condition;
When the summation is less than or equal to the threshold value, determine that the test result of multiple API test files is discontented The foot preset condition.
Above-mentioned board test device further includes:
Writing module, for by the test data of each API test files and test result and the board Test result is written in preset test data table, wherein each API test files have been previously written in the test data mark Corresponding test function title and the corresponding standard testing data of each API test files.
Above-mentioned board test device further includes:
Connection establishment module, the IP address for obtaining the board, and established and the board according to the IP address Between connection.
Above-mentioned board test device further includes:
Detection module, whether the IP address network connection that is whether complete and detecting the board for detecting the board Normally;
Second determining module is used for when the IP address of the board is complete and the network connection of the board is normal, really The fixed connection established with the board;
Reminding module is used to, when the IP address of the board is imperfect or the network connection exception of the board, send out Prompt message.
The embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, described program quilt The step of above method is realized when processor executes.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in memory The step of computer program that is upper and can running on a processor, the processor realizes the above method when executing described program.
Description of the drawings
Fig. 1 is the flow chart of the board test method in first embodiment of the invention;
Fig. 2 is the flow chart of the board test method in second embodiment of the invention;
Fig. 3 is the structure diagram of the board test device in third embodiment of the invention;
Fig. 4 is the structure diagram of Computer equipment of the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement the implementation of the present invention Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Board test in the embodiment of the present invention is realized based on the test procedure document being installed on test machine, the test Machine such as computer equipment.What the data of the test procedure document were exposed to upper layer after data encapsulate is that unified file is read Interface is write, and its bottom layer realization can then handle the different access modes of file.The test procedure document includes configuration file And multiple API test files, configuration file that is to say the upper layer driving file of test procedure document, the letter for configuring board Breath, such as configure the normal data of the IP address of board, the corresponding test result of each API test files.Multiple API tests texts Part carries out calling each API test files when board test, to the items of board for testing each function of board Function is tested, for example, test board application compatibility, system function completeness, stable system performance, basic function Deng.When it is implemented, board and terminal are in same LAN, terminal and board are established and communicate to connect laggard row information friendship Mutually, achieve the purpose that functional test.
Referring to Fig. 1, for the board test method in first embodiment of the invention, applied to being equipped with test procedure document Test machine in, which includes a configuration file and multiple API test files, and the board test method includes Step S11~S14.
Step S11 sequentially transfers each API test files, and will transfer when getting the instruction of testing results file Current API test files in test instruction be sent in board to be tested so that the board execute it is described test refer to It enables, and feedback test data.
The API test files of the test of each function of board will be associated together in the present embodiment, forms a test journey Preface part.User is clicked by cursor run the test procedure document on a testing machine, and test machine receives testing results program After the instruction of file, it is indexed to associated each API test files and configuration file, is surveyed successively with multiple functions to board It tries, the normal data of the corresponding test result of each API test files is preset in configuration file.The calling of All Files is for example Pass through the entry address of java programs:Public static void main (string [] args) are carried out.
Test instruction is previously written in each API test files, when running API test files, by current API test files In test instruction be sent in board.When test board receives the test instruction of terminal transmission, corresponding operation is executed, and Feedback test data.Test instruction in each API test files may include a plurality of, and test machine can be sent to board one by one In implemented.After board has executed a test instruction, returns to execute and complete information to test machine, test machine retransmits another Item, board execute again, and so on execute API test files in all tests instruction.
Step S12 obtains the corresponding normal data of current API test files described in configuration file, and compares board and return The test data returned and the normal data, to obtain the test result of the current API test files.
When current API test files have been run, test data is sent to test machine by board.Such as it is steady to the application of board The test data of qualitatively test, board feedback is defect type and the quantity etc. per class defect.Test machine receives current API and surveys Try file test data after, obtain configuration file in normal data, and by the test data of current API test files with it is right The normal data answered is compared, and the test result of current API test files is determined according to comparison result.The test result can Can also be the text information for indicating test and passing through to be indicated in the form of numerical value.
Step S13 judges the test knot of multiple API test files when multiple API test files have been transferred Whether fruit meets preset condition, if executing step S14.
Step S14 determines the board test passes.
When multiple API test files of test program have been run, the test result of each sides API file is obtained, then, Determine whether the test result of the program test file meets preset condition again, if so, determining the board test passes.It is no Then, it is determined that the board test failure.
When it is implemented, determining that the step of whether test result of the program test file meets preset condition is:Judge Whether the test data of each API test files operation is equal to corresponding normal data, if so, determining that board test is closed Lattice.
It should be understood that the preset condition of test procedure document can be configured according to actual needs, such as in the present invention Other embodiment in, determine that the step of whether test result of the program test file meets preset condition can also be:It is more Whether there is 70% or more test data to be equal to corresponding normal data in the test data of a API test files operation, if Then determine the board test passes.
Further, in the present embodiment, the step of the determination board test passes after, the method further includes step Suddenly:
The test data of each API test files and test result and the test result of the board are written In preset test data table, wherein be previously written the corresponding test function of each API test files in the test data table Title and the corresponding standard testing data of each API test files.
The test data table can be set in advance in configuration file, be previously written the corresponding survey of each API test files Try function title and the corresponding standard testing data of each API test files.It, will be each after test procedure document end of run The test data and test result of API test files, and determine board test result write-in test data table correspondence Position.The test result of board is, for example, " qualification " or " unqualified." pass through the test data table, each functional test of board Situation is very clear, and user is facilitated to check.
It should be understood that the step of test data and test result write-in test data table of each API test files, is also It can be carried out when running each API end of test file.That is, when the survey for the current API test files for getting board return When trying data, test data is written in preset test data table;When obtaining the test result of current API test files, The test result is written in test data table.
In the present embodiment, when testing results program file, each API test files are transferred successively, and send working as of transferring Test in preceding API test files is instructed to board.After board receives the test instruction of terminal transmission, test instruction is executed And test data is fed back into test machine.Test machine analyzes the test data of each API test files, as multiple API When the test result of test file meets preset condition, board test passes are determined.The present embodiment passes through testing results program text Part realizes " the one-touch test " of board, and is automatically analyzed to the automatic test data of each function of board, to determine board Performance, improve the testing efficiency of board.
Referring to Fig. 2, for the board test method in second embodiment of the invention, including step S21~S27.
Step S21 obtains the IP address of board to be tested when getting the instruction of testing results program file.
Test procedure document includes a configuration file and multiple API test files.Configuration file can be used for configuring board IP address and the corresponding standard testing data of each API test files.Each API test files are used for each function to board It is tested.
Board is tested, needs to carry out information exchange between terminal and board, the interaction of board and test machine can lead to Same LAN is crossed to realize.Board to be tested is connected network by user, configures an IP address after board connection network, and according to The IP address establishes the connection with the board.The board IP address is written in the designated position of configuration file in user, operation When test procedure document, the IP address is obtained.
When getting the IP address of board to be tested, whether the IP address that terminal detects board first is sound, board Whether network connection is normal, is connected with being confirmed whether to establish with board.If detection is completed and after success, the company with board is established Road is connected, to carry out information exchange.If detecting, the IP address of board is unsound, board network connection is abnormal, sends out Prompting message, to remind user can not proper testing.Terminal is established there are many modes with the interface channel of board, such as can be with Data interaction is carried out by wired or wireless connection.Such as system of testing is to be realized based on Android operation system, and board is adopted Operating system is android system, and terminal can be based on ADB (Android Debug Bridge, Android tune with board Examination bridge) establish interface channel progress information exchange.
Step S22 sequentially transfers each API test files, and the test in the current API test files transferred is instructed It is sent in board to be tested, so that the board executes the test instruction, and feedback test data.
Step S23 obtains the currently corresponding normal data of API test files, and the plate described in configuration file Block the test data returned and the normal data.
Step S24 determines the test of the current test file when the test data is identical as the normal data As a result it is the first numerical value.
Step S25 determines the survey of the current test file when the test data is differed with the normal data Test result is second value.
Each API test results are indicated in the form of numerical value, and the test result of each API test files is divided into two numbers Value, wherein the first numerical value is more than second value, and the first numerical value and second value can be arranged, such as be respectively set to 10 and 0.When The test data of API test files then its test result identical as normal data is the first numerical value, its test result if different For second value.
Step S26 obtains the weighted value of current API test files described in the configuration file, and according to described current The weight score of current API test files described in the weighted value and test result calculations of API test files.
When carrying out board test, the significance level of each function differs, and evaluates the quality of the function of a board and needs to integrate The performance for considering each function gives the high functional test of significance level to higher weight, significance level is low or do not influence Lower weight is given in the functional test of board operation.Also immediately right, a weighted value is arranged in each API test files, each The weight of API test files is stored in advance in configuration file.
When it is implemented, when getting the test result of current API test files of board return, current API is obtained The weighted value of test file, and the test result of current API test files (the first numerical value or second value) is multiplied by current API The weight of test file obtains the test weight score of current API test files.
Step S27 calculates the weight score of multiple API test files when multiple API examinations files have been transferred Summation, also, when determine the summation more than threshold value when, determine the board test passes.
The test weight point of each API test files will can be calculated after the completion of all API test files tests Number, sums to the test weight score of each API test files, and judge the weight score of all API test files Whether summation is more than threshold value.When if more than threshold value, the board test passes are determined, if when less than or equal to threshold value, determine the plate Card test failure.
In the present embodiment, according to the significance level of each function of board, it is arranged for corresponding API test files corresponding Weight carries out weight calculation by the test result to each API test files, obtains the test power of each API test files Weight score, and the summation of all test weight scores is calculated, the whether qualified of board is determined according to the summation.
Referring to Fig. 3, for the board test device in third embodiment of the invention, applied to being equipped with test procedure document Test machine in, the test procedure document include a configuration file and multiple API test files, the board test device packet It includes:
Module 100 is transferred, for when getting the instruction of testing results program file, sequentially transferring each API Test file, and the test instruction in the current API test files transferred is sent in board to be tested, so that the plate Card executes the test instruction, and feedback test data;
Comparison module 200, for obtaining the corresponding normal data of current API test files described in the configuration file, And the board returns the test data of feedback and the normal data, to obtain the test of the current API test files As a result;
Judgment module 300, for when multiple API test files have been transferred, judging multiple API test files Test result whether meet preset condition;
First determining module 400, for when the test result of multiple API test files meets preset condition, really The fixed board test passes.
Further, the comparison module 200 is specifically used for:
When the test data is identical as the normal data, determine that the test result of the current test file is the One numerical value;
When the test data and the normal data differ, determine that the test result of the current test file is Second value, wherein first numerical value is more than the second value.
Further, the judgment module 300 is specifically used for:
When getting the test result of the current API test files of the board feedback, the configuration text is obtained The weighted value of current API test files described in part, and according to the weighted value and test result meter of the current API test files Calculate the test weight score of each API test files;
When multiple API examinations files are tested, the total of the test weight score of multiple API test files is calculated With;
When the summation is more than threshold value, determine that the test result of multiple API test files meets preset condition;
When the summation is less than or equal to the threshold value, determine that the test result of multiple API test files is discontented The foot preset condition.
Further, above-mentioned board test device further includes:
Writing module 500 is used for the test data of each API test files and test result and the plate The test result of card is written in preset test data table, wherein each API tests have been previously written in the test data table The corresponding test function title of file and the corresponding standard testing data of each API test files.
Further, above-mentioned board test device further includes:
Connection establishment module 600, the IP address for obtaining the board, and established and the plate according to the IP address Connection between card.
Further, above-mentioned board test device further includes:
Detection module 700, the IP address network connection that is whether complete and detecting the board for detecting the board It is whether normal;
Second determining module 800 is used for when the IP address of the board is complete and the network connection of the board is normal, Determine the connection established with the board;
Reminding module 900 is used for when the IP address of the board is imperfect or the network connection exception of the board, hair Go out prompt message.
Its implementing principle and technical effect of the board test device of the present embodiment and two class of above-described embodiment one or embodiment Seemingly, details are not described herein again.
The present invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, described program is by processor The step of any one method in above-described embodiment 1 to 2 is realized when execution.
As shown in figure 4, for the structural schematic diagram of the computer equipment in the embodiment of the present invention, including memory 11, processing Device 12 and it is stored in the computer program that can be run on memory 11 and on the processor 12, the processor 12 executes described The step of method of any one in above-described embodiment 1 to 2 is realized when program.The computer equipment 10 further includes a display device 13 and input unit 14.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.
The more specific example (non-exhaustive list) of computer-readable medium includes following:It is connected up with one or more Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiments or example in can be combined in any suitable manner.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of board test method, which is characterized in that applied to being equipped in the test machine of test procedure document, the test journey Preface part includes a configuration file and multiple API test files, and the board test method includes:
When getting the instruction of testing results program file, each API test files are sequentially transferred, and work as what is transferred Test instruction in preceding API test files is sent in board to be tested, so that the board executes the test instruction, and Feedback test data, and;
The corresponding normal data of current API test files described in the configuration file is obtained, and the board returns feedback Test data and the normal data, to obtain the test result of the current API test files;
When multiple API test files have been transferred, it is pre- to judge whether the test result of multiple API test files meets If condition;
If so, determining the board test passes.
2. board test method as described in claim 1, which is characterized in that the test data and the standard Data, to include the step of obtaining the test result of the current API test files:
When the test data is identical as the normal data, determine that the test result of the current test file is the first number Value;
When the test data and the normal data differ, determine that the test result of the current test file is second Numerical value, wherein first numerical value is more than the second value.
3. board test method as claimed in claim 2, which is characterized in that judge the test of multiple API test files As a result the step of whether meeting preset condition include:
When getting the test result of the current API test files of the board feedback, obtain in the configuration file The weighted value of the current API test files, and it is every according to the weighted value and test result calculations of the current API test files The test weight score of a API test files;
When multiple API examinations files are tested, the summation of the test weight score of multiple API test files is calculated;
When the summation is more than threshold value, determine that the test result of multiple API test files meets preset condition;
When the summation is less than or equal to the threshold value, determine that the test result of multiple API test files is unsatisfactory for institute State preset condition.
4. board test method as described in claim 1, which is characterized in that the step of the determination board test passes it Afterwards, the method further includes step:
The test data of each API test files and the write-in of test result and the test result of the board is default Test data table in, wherein the corresponding test function name of each API test files has been previously written in the test data table Claim standard testing data corresponding with each API test files.
5. board test method as described in claim 1, which is characterized in that it is described will be in the current API test files that transferred The step that is sent in the board of test instruction before further include:
The IP address of the board is obtained, and the connection between the board is established according to the IP address.
6. board test method as claimed in claim 5, which is characterized in that described to be established and the plate according to the IP address Further include before the step of connection of card:
Whether the IP address network connection that is whether complete and detecting the board for detecting the board is normal;
When the IP address of the board is complete and the network connection of the board is normal, the company established with the board is determined It connects;
When the IP address of the board is imperfect or the network connection exception of the board, prompt message is sent out.
7. a kind of board test device, which is characterized in that applied to being equipped in the test machine of test procedure document, the test journey Preface part includes a configuration file and multiple API test files, the board test device include:
Module is transferred, for when getting the instruction of testing results program file, sequentially transferring each API tests text Part, and the test instruction in the current API test files transferred is sent in board to be tested, so that the board executes The test instruction, and feedback test data;
Comparison module for obtaining the corresponding normal data of current API test files described in the configuration file, and compares institute It states board and returns the test data of feedback and the normal data, to obtain the test result of the current API test files;
Judgment module, for when multiple API test files have been transferred, judging the test of multiple API test files As a result whether meet preset condition;
First determining module, for when the test result of multiple API test files meets preset condition, determining the plate Card test passes.
8. board test device as claimed in claim 7, which is characterized in that the comparison module is used for:
When the test data is identical as the normal data, determine that the test result of the current test file is the first number Value;
When the test data and the normal data differ, determine that the test result of the current test file is second Numerical value, wherein first numerical value is more than the second value.
9. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that when described program is executed by processor The step of realizing the method as described in any one of claim 1-6.
10. a kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, which is characterized in that the processor is realized when executing described program such as any one of claim 1-6 institutes The step of method stated.
CN201810130140.9A 2018-02-08 2018-02-08 Board test method, device, readable storage medium storing program for executing and computer equipment Pending CN108519933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810130140.9A CN108519933A (en) 2018-02-08 2018-02-08 Board test method, device, readable storage medium storing program for executing and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810130140.9A CN108519933A (en) 2018-02-08 2018-02-08 Board test method, device, readable storage medium storing program for executing and computer equipment

Publications (1)

Publication Number Publication Date
CN108519933A true CN108519933A (en) 2018-09-11

Family

ID=63433071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810130140.9A Pending CN108519933A (en) 2018-02-08 2018-02-08 Board test method, device, readable storage medium storing program for executing and computer equipment

Country Status (1)

Country Link
CN (1) CN108519933A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109765577A (en) * 2019-01-16 2019-05-17 上海华测导航技术股份有限公司 Self checking method, device, equipment and the storage medium of GNSS receiver
CN109917270A (en) * 2019-01-31 2019-06-21 国核自仪系统工程有限公司 Analytical equipment, method and the I&C system of the test data of the board of I&C system
CN110677317A (en) * 2019-09-17 2020-01-10 京信通信系统(中国)有限公司 Test method, test device, test equipment and storage medium
CN111538662A (en) * 2020-04-24 2020-08-14 北京如影智能科技有限公司 System testing method and device
CN113225232A (en) * 2021-05-12 2021-08-06 中国第一汽车股份有限公司 Hardware testing method and device, computer equipment and storage medium
CN113886162A (en) * 2021-10-21 2022-01-04 统信软件技术有限公司 Computing equipment performance test method, computing equipment and storage medium
CN114442591A (en) * 2022-01-11 2022-05-06 中国华能集团清洁能源技术研究院有限公司 Method, system and medium for testing I/O card channel precision
CN115080328A (en) * 2022-08-23 2022-09-20 江西萤火虫微电子科技有限公司 Board card testing method and system
CN115686984A (en) * 2022-12-29 2023-02-03 江西萤火虫微电子科技有限公司 Board card function testing method and device, computer and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4713815A (en) * 1986-03-12 1987-12-15 International Business Machines Corp. Automatic fault location system for electronic devices
US6393591B1 (en) * 1999-02-12 2002-05-21 Xilinx, Inc. Method for remotely testing microelectronic device over the internet
CN101118513A (en) * 2006-08-03 2008-02-06 鸿富锦精密工业(深圳)有限公司 Board testing system and method
CN101957606A (en) * 2009-07-17 2011-01-26 鸿富锦精密工业(深圳)有限公司 High-temperature test monitoring system and method
CN102214133A (en) * 2011-07-22 2011-10-12 苏州工业园区七星电子有限公司 System for quickly diagnosing and testing computer hardware
CN102289399A (en) * 2011-09-01 2011-12-21 深圳芯智汇科技有限公司 System and method for testing main board of computer
CN102855166A (en) * 2011-06-29 2013-01-02 鸿富锦精密工业(深圳)有限公司 Mainboard testing system and method
CN105528288A (en) * 2015-12-01 2016-04-27 深圳市迪菲特科技股份有限公司 Software testing method and apparatus
CN107390110A (en) * 2017-06-20 2017-11-24 广东科学技术职业学院 A kind of method, apparatus and system tested automatically PCBA

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4713815A (en) * 1986-03-12 1987-12-15 International Business Machines Corp. Automatic fault location system for electronic devices
US6393591B1 (en) * 1999-02-12 2002-05-21 Xilinx, Inc. Method for remotely testing microelectronic device over the internet
CN101118513A (en) * 2006-08-03 2008-02-06 鸿富锦精密工业(深圳)有限公司 Board testing system and method
CN101957606A (en) * 2009-07-17 2011-01-26 鸿富锦精密工业(深圳)有限公司 High-temperature test monitoring system and method
CN102855166A (en) * 2011-06-29 2013-01-02 鸿富锦精密工业(深圳)有限公司 Mainboard testing system and method
CN102214133A (en) * 2011-07-22 2011-10-12 苏州工业园区七星电子有限公司 System for quickly diagnosing and testing computer hardware
CN102289399A (en) * 2011-09-01 2011-12-21 深圳芯智汇科技有限公司 System and method for testing main board of computer
CN105528288A (en) * 2015-12-01 2016-04-27 深圳市迪菲特科技股份有限公司 Software testing method and apparatus
CN107390110A (en) * 2017-06-20 2017-11-24 广东科学技术职业学院 A kind of method, apparatus and system tested automatically PCBA

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109765577B (en) * 2019-01-16 2023-08-22 上海华测导航技术股份有限公司 Self-checking method, device, equipment and storage medium of GNSS receiver
CN109765577A (en) * 2019-01-16 2019-05-17 上海华测导航技术股份有限公司 Self checking method, device, equipment and the storage medium of GNSS receiver
CN109917270A (en) * 2019-01-31 2019-06-21 国核自仪系统工程有限公司 Analytical equipment, method and the I&C system of the test data of the board of I&C system
CN110677317A (en) * 2019-09-17 2020-01-10 京信通信系统(中国)有限公司 Test method, test device, test equipment and storage medium
CN110677317B (en) * 2019-09-17 2022-11-01 京信网络系统股份有限公司 Test method, test device, test equipment and storage medium
CN111538662A (en) * 2020-04-24 2020-08-14 北京如影智能科技有限公司 System testing method and device
CN113225232A (en) * 2021-05-12 2021-08-06 中国第一汽车股份有限公司 Hardware testing method and device, computer equipment and storage medium
CN113886162A (en) * 2021-10-21 2022-01-04 统信软件技术有限公司 Computing equipment performance test method, computing equipment and storage medium
CN113886162B (en) * 2021-10-21 2024-05-31 统信软件技术有限公司 Computing device performance test method, computing device and storage medium
CN114442591A (en) * 2022-01-11 2022-05-06 中国华能集团清洁能源技术研究院有限公司 Method, system and medium for testing I/O card channel precision
CN114442591B (en) * 2022-01-11 2024-01-30 中国华能集团清洁能源技术研究院有限公司 Method, system and medium for testing channel precision of I/O card
CN115080328A (en) * 2022-08-23 2022-09-20 江西萤火虫微电子科技有限公司 Board card testing method and system
CN115686984B (en) * 2022-12-29 2023-04-07 江西萤火虫微电子科技有限公司 Board card function testing method and device, computer and readable storage medium
CN115686984A (en) * 2022-12-29 2023-02-03 江西萤火虫微电子科技有限公司 Board card function testing method and device, computer and readable storage medium

Similar Documents

Publication Publication Date Title
CN108519933A (en) Board test method, device, readable storage medium storing program for executing and computer equipment
CN106598868B (en) Method and system a little are buried to the application program of client dynamic
CN108519934A (en) Board test method, device, readable storage medium storing program for executing and computer equipment
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
US7639630B2 (en) Network performance management
US9424221B2 (en) Automated cabling process for a complex environment
CN108512695A (en) The method and device of interim card is applied in monitoring
CN105471620A (en) Broadband intelligent terminal embedded network analysis and diagnosis device and method thereof
CN106897216A (en) The method and apparatus of test software
CN107241229A (en) A kind of business monitoring method and device based on interface testing instrument
CN109800101A (en) Report method, device, terminal device and the storage medium of small routine abnormal conditions
CN108519935A (en) Board test method, device, readable storage medium storing program for executing and computer equipment
CN107608848A (en) Method of testing and system
CN108073506A (en) Test method and device
CN108616389A (en) Network estimation method, equipment, storage medium based on Cloud Server and device
CN108111367A (en) Performance test methods and device
CN108490336A (en) Board test method, system, readable storage medium storing program for executing and computer equipment
CN103309664B (en) Screenshot method, device and equipment
CN110309041A (en) Browser performance method for real-time monitoring, device, equipment and readable storage medium storing program for executing
CN108073499A (en) The test method and device of application program
US11184218B2 (en) Service issue prioritisation based on impact using software telemetry
CN106776301A (en) Daughter element method of testing and device
CN108490337A (en) Board test method, system, readable storage medium storing program for executing and computer equipment
CN109634838A (en) Position method, apparatus, storage medium and the electronic equipment of application failure
CN109587351A (en) A kind of call test method, device, equipment and storage medium

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

Application publication date: 20180911

RJ01 Rejection of invention patent application after publication