CN115686984A - Board card function testing method and device, computer and readable storage medium - Google Patents

Board card function testing method and device, computer and readable storage medium Download PDF

Info

Publication number
CN115686984A
CN115686984A CN202211704969.8A CN202211704969A CN115686984A CN 115686984 A CN115686984 A CN 115686984A CN 202211704969 A CN202211704969 A CN 202211704969A CN 115686984 A CN115686984 A CN 115686984A
Authority
CN
China
Prior art keywords
test
downloading
time
file
api
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
Application number
CN202211704969.8A
Other languages
Chinese (zh)
Other versions
CN115686984B (en
Inventor
田丰
黄伟
祝华锋
徐晓明
丁建中
万姜涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Firefly Microelectronics Technology Co ltd
Original Assignee
Jiangxi Firefly Microelectronics Technology 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 Jiangxi Firefly Microelectronics Technology Co ltd filed Critical Jiangxi Firefly Microelectronics Technology Co ltd
Priority to CN202211704969.8A priority Critical patent/CN115686984B/en
Publication of CN115686984A publication Critical patent/CN115686984A/en
Application granted granted Critical
Publication of CN115686984B publication Critical patent/CN115686984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a device, a computer and a readable storage medium for testing the functions of a board, wherein the method comprises the following steps: calling all API test files corresponding to the board card to be tested; forming a primary download list in ascending order according to the file size; downloading the API test files one by one according to the primary download list, and sending a test instruction; inquiring whether the difference value between the number of the fed-back test results and the number of the API test file downloading completion pieces is within a preset range; if not, the undelivered test files are subjected to incremental sequencing according to the corresponding historical completion test time values to form a secondary download list; and adjusting the downloading sequence according to the secondary downloading list, so that the API test files which are downloaded currently are downloaded one by one according to the secondary downloading list after the downloading is finished. The invention optimally adjusts the downloading and testing of the API test file, optimizes the functional test procedure of the board card, reduces the station time of the board card functional test and balances the short-term load of the downloading of the station file.

Description

Board card function testing method and device, computer and readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for testing a function of a board, a computer, and a readable storage medium.
Background
The board card is one of printed circuit boards (PCB for short), has a plug core when being manufactured, can be inserted into a slot of a main circuit board (mainboard) of a computer to control the operation of hardware, such as a display, a collection card and other devices, and can realize corresponding hardware functions after a driving program is installed.
In order to ensure the quality of the board card product, before the board card is delivered from a factory, the board card needs to be subjected to performance testing, and in the prior art, the board card usually needs to be subjected to performance testing manually. Generally, a board card is connected to a test machine, and a programmer continuously sets a test script program on the test machine to test the board card.
Along with the complexity and diversification of functions realized on the board card, the testing time required by the board card in the testing process is increasingly long, so that the testing process of the board card before leaving a factory needs more testing machines to expand a production line, and the influence of the stacking of the testing stations of the board card on the productivity is avoided.
Disclosure of Invention
Based on this, the present invention provides a method, an apparatus, a computer and a readable storage medium for testing functions of a board, so as to solve the deficiencies in the prior art.
In a first aspect, the present application provides a method for testing a function of a board, the method including the steps of:
calling all API test files corresponding to the board card to be tested according to the model information of the board card to be tested;
performing primary sorting in an increasing sorting mode according to the file size of the API test file to form a primary download list;
downloading the API test files one by one according to a primary download list, and sending corresponding test instructions in the API test files to the board card to be tested;
inquiring whether the difference value between the number of the feedback test results of the board card to be tested and the number of the API test file downloading completion pieces is within a preset range;
if not, performing secondary sorting on the un-downloaded test files in an increasing mode according to the corresponding historical completion test time values to form a secondary download list;
and adjusting the downloading sequence of all the un-downloaded API test files according to the secondary downloading list, so that the currently downloaded API test files are downloaded one by one according to the secondary downloading list after the downloading is finished.
According to the board card function testing method, the downloading sequence of the API test files is optimized and adjusted according to the numerical difference of the test items of the API test files, so that when the API test files are downloaded and corresponding test instructions are tested, the sequence of testing the function modules of the board card to be tested is optimized and adjusted, the problem that the total time duration of the final test is influenced due to the fact that the instructions to be tested are stacked excessively caused by the imbalance of the difference between the downloading completion quantity and the testing completion quantity of the API test files is avoided. The invention has the beneficial effects that: by the technical scheme, the downloading and testing of the API test file are optimally adjusted to further optimize the function test process of the board card, so that the station time of the function test of the batched board cards is effectively shortened, and the short-term load of the downloading of the station file is balanced.
The board card function test method further has the following additional technical characteristics:
preferably, in the method for testing a board function according to the present application, after the step of downloading the API test file item by item according to the primary download list and sending the test instruction corresponding to the API test file to the board to be tested, the method further includes:
acquiring a file identifier of each API test file and corresponding downloading duration;
recording the testing time of the corresponding API test file, wherein the testing time is the time from the test instruction receiving of the board to be tested to the test result feedback;
and generating a time use recording table according to the downloading time length and the testing time of the corresponding API test file according to the file identification.
Preferably, in the board card function testing method according to the present application, the step of performing secondary sorting on the undelivered test files in an increasing manner according to the corresponding historical completion test time values includes:
screening out test files which do not start to be downloaded according to the download list;
inquiring the test time of the test files which are not downloaded in the time record table, and averaging a plurality of test time of the latest record corresponding to any file identification record;
and taking the test time of the averaging processing as the historical test completion time value.
Preferably, in the board card function testing method according to the present application, after the step of recording the test time of the corresponding API test file, the method further includes:
inquiring whether the test time of any API test file exceeds a preset time threshold value;
and if so, deleting the test time information corresponding to the API test file in the time record table.
Preferably, in the board card function testing method according to the present application, the method further includes:
and establishing a wired communication connection with the display equipment, and displaying a real-time API test file downloading list, a downloading process and a test process on the display equipment.
In a second aspect, the present application provides a board function testing device, which includes:
a test file query module: the system comprises a test module, a test module and a test module, wherein the test module is used for calling all API test files corresponding to a board card to be tested according to the model information of the board card to be tested;
a primary sorting module: the device comprises a primary downloading list, a primary sorting list and a plurality of API test files, wherein the primary sorting list is used for performing primary sorting in an increasing sorting mode according to the file sizes of the API test files to form the primary downloading list;
a primary downloading module: the system comprises a primary downloading list, a test instruction list and a test instruction list, wherein the primary downloading list is used for downloading the API test files one by one according to the primary downloading list and sending the corresponding test instruction in the API test files to the board card to be tested;
a difference value query module: the test system is used for inquiring whether the difference value between the number of the feedback test results of the board card to be tested and the number of the API test file downloading completion pieces is within a preset range;
a secondary sorting module: if not, performing secondary sorting on the un-downloaded test files in an increasing mode according to the corresponding historical completion test time values to form a secondary download list;
a secondary downloading module: and the system is used for adjusting the downloading sequence of all the un-downloaded API test files according to the secondary downloading list, so that the currently downloaded API test files are downloaded one by one according to the secondary downloading list after the downloading is finished.
Preferably, the apparatus further comprises:
a data acquisition module: the system comprises a file identification acquisition module, a download time length acquisition module and a download time length acquisition module, wherein the file identification acquisition module is used for acquiring a file identification and a corresponding download time length of each API test file;
the test time recording module: the test time is used for recording the test time of the corresponding API test file, wherein the test time is the time from the test instruction receiving of the board to be tested to the test result feedback;
a table generation module: and the time-use recording table is used for generating the downloading time length and the testing time-use of the corresponding API test file according to the file identification.
Preferably, the secondary downloading module specifically includes:
screening unit: the device is used for screening out test files which do not start to be downloaded according to the download list;
an average processing unit: the test time is used for inquiring the test files which are not started to be downloaded in the time record table, and the average value processing is carried out on a plurality of test time which are recorded most recently and are corresponding to any file identification;
a replacement unit: and the time for testing the averaging processing is used as the historical completion testing time value.
In a third aspect, the present application provides a computer, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the board function testing method described above is implemented
In a fourth aspect, the present application provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the board function testing method as described above.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
Fig. 1 is a flowchart of a board card function testing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for generating a time-use record table in a board function test method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for generating a secondary ordered list in a board function test method according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for deleting abnormal board test result data in the board function test method according to the first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a board card function testing apparatus according to a second embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In order to ensure the quality of the board card product, before the board card is delivered from a factory, the board card needs to be subjected to performance testing, and in the prior art, the board card usually needs to be subjected to performance testing manually. Generally, a board card is connected to a test machine, and a programmer continuously sets a test script program on the test machine to test the board card.
Along with the complexity and diversification of functions realized on the board card, the testing time required by the board card in the testing process is longer, so that the testing process of the board card before leaving a factory needs more testing machine tables to expand a production line, and the influence of the stacking of the testing stations of the board card on the productivity is avoided.
Therefore, the invention provides a board function testing method to overcome the problems in the prior art.
Referring to fig. 1, a method for testing a board function according to a first embodiment of the present invention is provided. Specifically, the board card function test method comprises the following steps:
and S11, calling all API test files corresponding to the board card to be tested according to the model information of the board card to be tested.
In the embodiment of the invention, the board to be tested is connected with the terminal equipment through the API interface, so that the purpose of identifying the type of the board to be tested is realized, and the API test file is called to be downloaded and tested according to the type of the board. In other embodiments of the present invention, other ways of calling the API test file of the board card may also be adopted, for example, the connection is implemented through a connection channel of an ADB (Android Debug Bridge). This is not a particular limitation of the present application.
And S12, performing primary sorting in an increasing sorting mode according to the file size of the API test file to form a primary download list.
And S13, downloading the API test files one by one according to the primary download list, and sending the corresponding test instruction in the API test files to the board card to be tested.
It can be understood that the board card performs the function test only by receiving the corresponding test instruction and feeding back the test result, and a general board card performs the test on all functions of the board card when leaving the factory, wherein a plurality of API test files exist correspondingly, the API test files are generally stored in a storage space of a background server or a terminal device in the form of data packets, and the data packets are parsed and the API test files are downloaded one by one when being called. In order to enable the board card to receive the test instruction as soon as possible, the API test file with the smaller file size is preferentially downloaded, so that the board card to be tested can receive the corresponding test instruction as soon as possible to perform the function test.
And S14, inquiring whether the difference value between the number of the feedback test results of the board card to be tested and the number of the API test file downloading completion numbers is within a preset range.
After a test instruction is completed by the board card to be tested, the test result is fed back to the terminal equipment, and the downloading number progress of the API test file is also fed back to the terminal equipment in real time. And triggering the judgment instruction by calculating and comparing the difference value of the comparison result and the preset value.
And S15, if not, performing secondary sorting on the un-downloaded test files in an increasing mode according to the corresponding historical test completion time values to form a secondary download list.
It can be understood that, with the improvement of the board card performance, most board cards can realize multi-thread program operation, and further realize the synchronous test of the multi-null-energy module test, but in most cases, the downloading speed of the API test file is faster than the test period of the functional module, that is, in general cases, the downloading speed of the API test file is still much greater than the functional test speed of the board card. Only when the number of the boards to be tested is large and the network speed is correspondingly limited, the downloading rate of the API test file may be equal to the function test rate. When the difference value is larger than the preset range, the downloading speed of the API test file is far larger than the function test speed of the current board card, and the API test file with short test time is preferentially downloaded through optimization and adjustment, so that the downloading speed of the API test file and the test quantity of the board card are correspondingly optimized and balanced.
And S16, adjusting the downloading sequence of all the un-downloaded API test files according to the secondary downloading list, and downloading the currently downloaded API test files one by one according to the secondary downloading list after finishing downloading.
To sum up, in the board card function testing method provided in the embodiment of the present invention, the downloading order of the API test files is optimally adjusted according to the numerical difference between the API test file downloading completion test items, so that when the API test files are downloaded and the corresponding test instructions are tested, the order of testing the function modules of the board card to be tested is optimally adjusted, thereby avoiding that the difference between the API test file downloading completion amount and the test completion amount causes excessive stacking of the instructions to be tested, which affects the total time duration for finally completing the test. The beneficial effects of the invention are: by the technical scheme, the downloading and testing of the API test file are optimally adjusted to further optimize the function test process of the board card, so that the station time of the function test of the batched board cards is effectively shortened, and the short-term load of the downloading of the station file is balanced.
Referring to fig. 2, a flowchart of a method for generating a time-use record table in a board function testing method according to an embodiment of the present invention is shown, and specifically, the method includes:
and S21, acquiring the file identification of each API test file and the corresponding downloading time length.
The file identifier is the file name of the corresponding API test file.
And S22, recording the test time of the corresponding API test file.
The test time is the time from the test instruction receiving of the board card to be tested to the detection result feedback.
And S23, generating a time-use recording table according to the downloading time length and the testing time of the corresponding API test file according to the file identification.
In the embodiment of the invention, the generated time record table is an EXCEL table, time information can be written into each item of data in the table at the corresponding interval position according to the basic function of the EXCEL table, and the time information is filtered, screened, summarized, averaged and the like.
Referring to fig. 3, a flowchart of a method for generating a secondary ordered list in a board function testing method according to an embodiment of the present invention is shown, specifically, the method includes:
and S31, screening out test files which do not start to be downloaded according to the download list.
In the embodiment of the invention, the download list is used for screening and acquiring the test files which are not downloaded according to the downloaded, downloading and non-downloaded state indications of the API test file corresponding to the marks in the primary download list.
Step S32, inquiring the test time of the test files which are not started to be downloaded in the time record table, and carrying out average value processing on a plurality of test time of the latest record corresponding to any file identification.
And step S33, taking the test time of the averaging processing as the historical test completion time value.
By the method, the sequencing and sorting of the download list can be realized, so that the download speed of the current API test file and the balance adjustment during testing are optimized.
Referring to fig. 4, a flowchart of a method for deleting abnormal test result data of a board card in a board card function test method according to an embodiment of the present invention is shown, and specifically, the method includes:
s41, inquiring whether the test time of any API test file exceeds a preset time threshold value;
and S42, if so, deleting the test time information corresponding to the API test file in the time record table.
By the method, the problem of abnormal test timing caused by abnormal function test of the board card in the function test process can be avoided. Unreasonable conditions for obtaining the test of the corresponding API test file are avoided.
Preferably, in the method for testing a function of a board card provided in the first embodiment of the present invention, the method further includes:
and establishing a wired communication connection with the display equipment, and displaying a real-time API test file downloading list, a downloading process and a test process on the display equipment.
It can be understood that the display device can display the test state of the board card to be tested at the specified connection position in a split screen manner by establishing the wired connection of the display device, so that an operator can visually know the test state of the current board card to be tested. Therefore, the operating personnel can timely handle the test completion or abnormal test of the board card.
Referring to fig. 5, a board function testing apparatus provided in a second embodiment of the present invention includes:
the test file query module 51: and the API test file management module is used for calling all API test files corresponding to the board cards to be tested according to the model information of the board cards to be tested.
The preliminary ranking module 52: and the method is used for carrying out primary sorting in an increasing sorting mode according to the file size of the API test file to form a primary download list.
The primary download module 53: and the test system is used for downloading the API test files one by one according to the primary download list and sending the corresponding test instruction in the API test files to the board card to be tested.
The difference query module 54: and the test result acquisition module is used for inquiring whether the difference value between the number of the feedback test results of the board card to be tested and the number of the API test file downloading completion pieces is within a preset range.
The secondary sorting module 55: if not, performing secondary sorting on the un-downloaded test files in an increasing mode according to the corresponding historical completion test time values to form a secondary download list.
The secondary download module 56: and the system is used for adjusting the downloading sequence of all the un-downloaded API test files according to the secondary downloading list, so that the currently downloaded API test files are downloaded one by one according to the secondary downloading list after the downloading is finished.
Preferably, the apparatus further comprises:
a data acquisition module: the system comprises a file identification acquisition module, a download time length acquisition module and a download time length acquisition module, wherein the file identification acquisition module is used for acquiring a file identification and a corresponding download time length of each API test file;
the test time recording module: the test time is used for recording the test time of the corresponding API test file, wherein the test time is the time from the receiving of the test instruction to the feedback of the test result of the board card to be tested;
a table generation module: and the time recording table is used for generating the time recording table according to the file identification and the downloading time and the testing time of the corresponding API test file.
Preferably, the secondary downloading module specifically includes:
screening unit: the system is used for screening out test files which do not start to be downloaded according to the download list;
an average processing unit: the test time is used for inquiring the test files which are not started to be downloaded in the time record table, and the average value processing is carried out on a plurality of test time which are recorded most recently and are corresponding to any file identification;
a replacement unit: and the time for testing the averaging processing is used as the historical completion testing time value.
Preferably, the apparatus further comprises:
a timeout inquiring module: the device is used for inquiring whether the test time of any API test file exceeds a preset time threshold value;
a deletion module: and deleting the test time information of the corresponding API test file in the time record table when the test time of the API test file exceeds a preset time threshold.
To sum up, the board card function testing device provided in the embodiment of the present invention is used for implementing the board card function testing method, and the downloading sequence of the API test files is optimally adjusted according to the numerical difference between the test items completed by downloading the API test files, so that when the API test files are downloaded and the corresponding test instructions are tested, the sequence of testing the function modules of the board card to be tested is optimally adjusted, thereby avoiding the problem that the total time duration for finally completing the test is influenced due to the excessive stacking of the instructions to be tested caused by the imbalance of the difference between the downloading completion amount and the testing completion amount of the API test files. The invention has the beneficial effects that: by the technical scheme, the downloading and testing of the API test file are optimally adjusted to further optimize the function test process of the board card, so that the station time of the function test of the batched board cards is effectively shortened, and the short-term load of the downloading of the station file is balanced.
In addition, the board card function testing method described in the embodiments of the present application with reference to the drawings may be implemented by a computer device. The computer device may include a processor and a memory storing computer program instructions.
In particular, the processor may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
The memory may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is a Non-Volatile (Non-Volatile) memory. In particular embodiments, the Memory includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended Data Out Dynamic Random Access Memory (EDODRAM), a Synchronous Dynamic Random Access Memory (SDRAM), and the like.
The memory may be used to store or cache various data files for processing and/or communication use, as well as possibly computer program instructions for execution by the processor.
The processor reads and executes the computer program instructions stored in the memory to implement any one of the board function testing methods in the above embodiments.
The computer device may also include a communication interface and a bus. The processor, the memory and the communication interface are connected through a bus and complete mutual communication.
The communication interface is used for realizing communication among modules, devices, units and/or equipment in the embodiment of the application. The communication interface may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
A bus comprises hardware, software, or both that couple components of a computer device to one another. Buses include, but are not limited to, at least one of the following: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example and not limitation, a Bus may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industrial Standard Architecture (EISA) Bus, a Front Side Bus (FSB), a Hypertransport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (LPC) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI-Express (PCI-interface) Bus, a PCI-Express (PCI-Express) Bus, a Serial Advanced Technology Attachment (vladvanced Technology, SATA) Bus, a Video Association (Video Association) Bus, or a combination of two or more of these or other suitable electronic buses. A bus may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the present application, any suitable buses or interconnects are contemplated by the present application.
The computer device may execute the board function test method in the embodiment of the present application based on the acquired data information, thereby implementing the board function test method described in conjunction with fig. 1.
In addition, by combining the board function testing method in the foregoing embodiments, embodiments of the present application may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any one of the board function testing methods in the above embodiments.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A board function testing method is characterized by comprising the following steps:
calling all API test files corresponding to the board card to be tested according to the model information of the board card to be tested;
performing primary sorting in an increasing sorting mode according to the file size of the API test file to form a primary download list;
downloading the API test files one by one according to a primary download list, and sending corresponding test instructions in the API test files to the board card to be tested;
inquiring whether the difference value between the number of the feedback test results of the board card to be tested and the number of the API test file downloading completion pieces is within a preset range;
if not, performing secondary sorting on the un-downloaded test files in an increasing mode according to the corresponding historical completion test time values to form a secondary download list;
and adjusting the downloading sequence of all the un-downloaded API test files according to the secondary downloading list, so that the currently downloaded API test files are downloaded one by one according to the secondary downloading list after the downloading is finished.
2. The board card function testing method according to claim 1, wherein after the step of downloading the API test file piece by piece according to the primary download list and sending the test instruction corresponding to the API test file to the board card to be tested, the method further comprises:
acquiring a file identifier of each API test file and corresponding downloading duration;
recording the testing time of the corresponding API test file, wherein the testing time is the time from the test instruction receiving of the board to be tested to the detection result feedback;
and generating a time use recording table according to the downloading time length and the testing time of the corresponding API test file according to the file identification.
3. The board card function testing method of claim 2, wherein the step of sub-sorting the undelivered test files incrementally according to the corresponding historical completion test time values comprises:
screening out test files which do not start to be downloaded according to the download list;
when the test use of the test files which are not started to be downloaded in the use time record table is inquired, the average value processing is carried out on a plurality of test use times which are recorded recently and correspond to any file identification;
and taking the test time of the averaging processing as the historical test completion time value.
4. The board card function testing method according to claim 2, wherein after the step of recording the test time of the corresponding API test file, the method further comprises:
inquiring whether the test time of any API test file exceeds a preset time threshold value;
and if so, deleting the test time information corresponding to the API test file in the time record table.
5. The board card function testing method of claim 1, wherein the method further comprises:
and establishing a wired communication connection with the display equipment, and displaying a real-time API test file downloading list, a downloading process and a test process on the display equipment.
6. A board function testing device, the device comprising:
a test file query module: the system comprises a test board, a test module and a test module, wherein the test module is used for calling all API test files corresponding to the test board according to the model information of the test board;
a preliminary ranking module: the system comprises a data processing module, a data processing module and a data processing module, wherein the data processing module is used for performing primary sorting according to the file size of an API test file in an increasing sorting mode to form a primary download list;
a primary downloading module: the system comprises a primary downloading list, a test board card and a test instruction server, wherein the primary downloading list is used for downloading the API test files one by one and sending the corresponding test instructions in the API test files to the test board card to be tested;
a difference value query module: the test system is used for inquiring whether the difference value between the number of the feedback test results of the board card to be tested and the number of the API test file downloading completion pieces is within a preset range;
a secondary sorting module: if not, performing secondary sorting on the un-downloaded test files in an increasing mode according to the corresponding historical completion test time values to form a secondary download list;
and a secondary downloading module: and the system is used for adjusting the downloading sequence of all the un-downloaded API test files according to the secondary downloading list, so that the currently downloaded API test files are downloaded one by one according to the secondary downloading list after the downloading is finished.
7. A card function testing arrangement according to claim 6, characterized in that the arrangement further comprises:
a data acquisition module: the system comprises a data processing module, a data processing module and a data processing module, wherein the data processing module is used for acquiring a file identifier of each API test file and corresponding downloading duration;
the test time recording module: the test time is used for recording the test time of the corresponding API test file, wherein the test time is the time from the test instruction receiving of the board to be tested to the test result feedback;
a table generation module: and the time recording table is used for generating the time recording table according to the file identification and the downloading time and the testing time of the corresponding API test file.
8. The board card function test device according to claim 7, wherein the secondary download module specifically comprises:
screening unit: the system is used for screening out test files which do not start to be downloaded according to the download list;
an average processing unit: the test time is used for inquiring the test time of the test files which are not downloaded in the time record table, and the average value of a plurality of test time of the latest record corresponding to any file identification is calculated;
a replacement unit: and the time for testing the averaging processing is used as the historical completion testing time value.
9. Computer comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the board function test method according to any of claims 1 to 5 when executing the computer program.
10. A readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a board function testing method according to any one of claims 1 to 5.
CN202211704969.8A 2022-12-29 2022-12-29 Board card function testing method and device, computer and readable storage medium Active CN115686984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211704969.8A CN115686984B (en) 2022-12-29 2022-12-29 Board card function testing method and device, computer and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211704969.8A CN115686984B (en) 2022-12-29 2022-12-29 Board card function testing method and device, computer and readable storage medium

Publications (2)

Publication Number Publication Date
CN115686984A true CN115686984A (en) 2023-02-03
CN115686984B CN115686984B (en) 2023-04-07

Family

ID=85055876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211704969.8A Active CN115686984B (en) 2022-12-29 2022-12-29 Board card function testing method and device, computer and readable storage medium

Country Status (1)

Country Link
CN (1) CN115686984B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991786A (en) * 2023-06-26 2023-11-03 深圳市晶存科技有限公司 Test board data transmission method, device, equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654911B1 (en) * 2000-06-15 2003-11-25 International Business Machines Corporation Interactive test sequence generation
US20080040732A1 (en) * 2006-03-09 2008-02-14 International Business Machines Corporation Testing scenarios that sequentially execute a plurality of application program interfaces
CN108490337A (en) * 2018-03-14 2018-09-04 广州视源电子科技股份有限公司 Board test method, system, readable storage medium storing program for executing and computer equipment
CN108519934A (en) * 2018-03-15 2018-09-11 广州视源电子科技股份有限公司 Board test method, device, readable storage medium storing program for executing and computer equipment
CN108519933A (en) * 2018-02-08 2018-09-11 广州视源电子科技股份有限公司 Board test method, device, readable storage medium storing program for executing and computer equipment
CN108563538A (en) * 2018-03-14 2018-09-21 广州视源电子科技股份有限公司 Board test method, system, readable storage medium storing program for executing and computer equipment
US20190095318A1 (en) * 2017-09-26 2019-03-28 Fujitsu Limited Test-assisted application programming interface (api) learning
CN110377566A (en) * 2019-06-29 2019-10-25 苏州浪潮智能科技有限公司 Arrange the method and system of the S parameter test file of PCB
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
US20210064515A1 (en) * 2019-08-27 2021-03-04 Nec Laboratories America, Inc. Deep q-network reinforcement learning for testing case selection and prioritization
WO2021147282A1 (en) * 2020-01-20 2021-07-29 华为技术有限公司 Method, apparatus and device for detecting malicious file, and storage medium
CN114297014A (en) * 2021-12-13 2022-04-08 北京安博通科技股份有限公司 Performance test method and system of APP dynamic cache equipment
CN115408298A (en) * 2022-09-29 2022-11-29 中电信数智科技有限公司 Test method, device and system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654911B1 (en) * 2000-06-15 2003-11-25 International Business Machines Corporation Interactive test sequence generation
US20080040732A1 (en) * 2006-03-09 2008-02-14 International Business Machines Corporation Testing scenarios that sequentially execute a plurality of application program interfaces
US20190095318A1 (en) * 2017-09-26 2019-03-28 Fujitsu Limited Test-assisted application programming interface (api) learning
CN108519933A (en) * 2018-02-08 2018-09-11 广州视源电子科技股份有限公司 Board test method, device, readable storage medium storing program for executing and computer equipment
CN108490337A (en) * 2018-03-14 2018-09-04 广州视源电子科技股份有限公司 Board test method, system, readable storage medium storing program for executing and computer equipment
CN108563538A (en) * 2018-03-14 2018-09-21 广州视源电子科技股份有限公司 Board test method, system, readable storage medium storing program for executing and computer equipment
CN108519934A (en) * 2018-03-15 2018-09-11 广州视源电子科技股份有限公司 Board test method, device, readable storage medium storing program for executing and computer equipment
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
CN110377566A (en) * 2019-06-29 2019-10-25 苏州浪潮智能科技有限公司 Arrange the method and system of the S parameter test file of PCB
US20210064515A1 (en) * 2019-08-27 2021-03-04 Nec Laboratories America, Inc. Deep q-network reinforcement learning for testing case selection and prioritization
WO2021147282A1 (en) * 2020-01-20 2021-07-29 华为技术有限公司 Method, apparatus and device for detecting malicious file, and storage medium
CN114297014A (en) * 2021-12-13 2022-04-08 北京安博通科技股份有限公司 Performance test method and system of APP dynamic cache equipment
CN115408298A (en) * 2022-09-29 2022-11-29 中电信数智科技有限公司 Test method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑炜等: ""安卓移动应用兼容性测试综述"" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991786A (en) * 2023-06-26 2023-11-03 深圳市晶存科技有限公司 Test board data transmission method, device, equipment and storage medium
CN116991786B (en) * 2023-06-26 2024-05-07 深圳市晶存科技有限公司 Test board data transmission method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115686984B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN115686984B (en) Board card function testing method and device, computer and readable storage medium
CN111372209B (en) Signaling data processing method, device, equipment and medium
CN111240983A (en) Method and device for realizing automatic test of telecommunication charging service
CN108681504A (en) Automated testing method, test server and computer readable storage medium
CN106130972A (en) Resource access control method and device
CN107844515B (en) Data compliance checking method and device
CN111737065B (en) Interface test method and system of demand model based on server interface test
CN109444570B (en) Electronic product fault diagnosis module and method based on memory
CN106168960A (en) The adjusting apparatus of a kind of data resource and method of adjustment thereof
CN109359093A (en) A kind of rule file update method and system
CN107977578B (en) Distributed storage system and data restoration method and device thereof
CN112420019B (en) Equipment testing method and device
CN114066331A (en) Shareholder investment information acquisition method and device, electronic equipment and storage medium
CN114022844A (en) Antenna weight value configuration method and device, electronic equipment and storage medium
CN111737119A (en) System for automatically distributing test and collecting test result
DE112016006839T5 (en) Length measurement control device, manufacturing system, length measurement control method and length measurement control program
CN105740114A (en) Fault tolerance test method and apparatus for mobile terminal
CN109242348A (en) Quality problems acquisition method, device and processing equipment
CN115062924B (en) Authentication sample feeding piece management and control method, system and storage medium
CN113190881B (en) Method and device for determining machine number of charging module and terminal equipment
CN114071450B (en) Recognition method and device for card changing behavior of machine changing
CN112347095B (en) Data table processing method, device and server
CN116433197B (en) Information reporting method, device, reporting end and storage medium
CN112613822B (en) Method and device for determining fabric production demand information and computer equipment
CN112181692A (en) Method and device for judging fault, computer equipment and computer readable 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
GR01 Patent grant
GR01 Patent grant