CN110704251B - Dynamically configurable testing device and testing method - Google Patents

Dynamically configurable testing device and testing method Download PDF

Info

Publication number
CN110704251B
CN110704251B CN201810745131.0A CN201810745131A CN110704251B CN 110704251 B CN110704251 B CN 110704251B CN 201810745131 A CN201810745131 A CN 201810745131A CN 110704251 B CN110704251 B CN 110704251B
Authority
CN
China
Prior art keywords
test
product
serial number
test procedure
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810745131.0A
Other languages
Chinese (zh)
Other versions
CN110704251A (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.)
Yinghan Tongjiaxing Communication Technology Co ltd
Original Assignee
Yinghan Tongjiaxing Communication 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 Yinghan Tongjiaxing Communication Technology Co ltd filed Critical Yinghan Tongjiaxing Communication Technology Co ltd
Priority to CN201810745131.0A priority Critical patent/CN110704251B/en
Publication of CN110704251A publication Critical patent/CN110704251A/en
Application granted granted Critical
Publication of CN110704251B publication Critical patent/CN110704251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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)
  • Tests Of Electronic Circuits (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a dynamically configurable product testing method, which is characterized by comprising the following steps: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; and outputting the test result and generating a report.

Description

Dynamically configurable testing device and testing method
Technical Field
The present invention relates to the field of electronic product manufacturing, and in particular, to an electronic device detection apparatus and a detection method.
Background
When the electronic equipment tests products on line during production, each product needs to be subjected to strict performance test in order to ensure the product quality. In the prior art, a test engineer generally selects a specific test tool for each type of product to test, so that different test programs and test tools need to be configured for different types of products, and when the production process of a certain type of product is adjusted, the corresponding test programs and test tools need to be updated synchronously. This complicates the management of the test work and is detrimental to the use and learning of the test tools by the engineers. Furthermore, when the production process of a certain type of product is adjusted, the synchronous upgrading of the test program and the test tools needs to be performed on all the test tools corresponding to the type of product, thereby influencing the production process.
In view of the foregoing problems in the prior art, there is a strong need in the art for a universal test tool capable of satisfying multiple product types to satisfy test tasks for different product types, and which can facilitate the upgrade of test programs.
Disclosure of Invention
One of the technical problems to be solved by the invention is to provide a universal testing tool for testing various types of products, which is convenient for users to perform corresponding testing work on different product types and upgrade testing programs.
In order to solve the technical problems, the present invention provides a method for testing a dynamically configurable product, which includes: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; and outputting the test result and generating a report.
In one embodiment, the test procedure file, sequence number generation rules can be modified in real time.
In one embodiment, the test worksheet is generated according to the type of the product and the number of the products to be tested, and a serial number queue corresponding to the test worksheet is generated at the same time.
According to another aspect of the present invention, there is also provided a storage device having stored therein a plurality of instructions adapted to be loaded and executed by a processor, the instructions comprising: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; and outputting the test result and generating a report.
In one embodiment, the test procedure file, sequence number generation rules can be modified in real time.
In one embodiment, the test worksheet is generated according to the type of the product and the number of the products to be tested, and a serial number queue corresponding to the test worksheet is generated at the same time.
According to another aspect of the present invention, there is also provided a test apparatus including:
a processor adapted to implement instructions;
and a storage device adapted to store a plurality of instructions, the instructions being adapted to be loaded and executed by the processor, the instructions comprising: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; and outputting the test result and generating a report.
In one embodiment, the test procedure file, sequence number generation rules can be modified in real time.
In one embodiment, the test worksheet is generated according to the type of the product and the number of the products to be tested, and a serial number queue corresponding to the test worksheet is generated at the same time.
One or more embodiments of the present invention may have the following advantages over the prior art:
1. the testing method can realize testing of various product types, and improves the universal type of the testing device.
2. The testing device can realize dynamic reconstruction of the testing process through real-time modification of the testing process file.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention, without limitation to the invention. In the drawings:
FIG. 1 is a flow chart of a construction of a test procedure file according to the present invention;
FIG. 2 is a flow chart of a sequence number generation rule according to the present invention;
FIG. 3 is a flow chart of test worksheet number generation in accordance with the present invention;
fig. 4 is a schematic diagram of a test flow according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent.
FIG. 1 is a schematic diagram of a test procedure file generation flow according to the present invention.
Step 101, writing test procedure files of different types of products, wherein the test procedure files are written in JSON (JavaScript Object Notation) format, and the files contain a plurality of test items corresponding to production procedures, and the test procedure file codes are as follows:
Figure BDA0001724152670000031
Figure BDA0001724152670000041
Figure BDA0001724152670000051
step 102, checking the written test procedure file, firstly checking whether the test procedure file is written in the JSON format, and secondly checking whether an undefined command exists in the test file. If the test is not passed, the file is rewritten.
And step 103, saving the test procedure file.
And 104, indexing the test procedure file to finish the mapping relation between the test procedure file and the product type.
The test procedure file in the invention is stored in the built-in storage part of the test device and can be called by the test device.
Fig. 2 is a schematic diagram of a sequence number generation rule flow of the present invention.
Wherein, in step 201, a product serial number generation rule is formulated, for example: (product type code) + (production year+week) + (production flow number), e.g.
RT611+1750+ xxxxx2, rule codes are:
Figure BDA0001724152670000052
Figure BDA0001724152670000061
step 202, checking whether the serial number generated by the serial number generation rule is correct. If the verification is not passed, the generation rule is rewritten.
Step 203, save the sequence number generation rule.
And 204, indexing the serial number generation rule to finish the mapping relation between the serial number generation rule and the product type.
FIG. 3 is a schematic diagram of a test worksheet generation flow chart of the present invention.
In step 301, a test worksheet is generated according to the product type and the quantity of the product to be tested, where the test worksheet format is: examples of whole work orders are: woxxxxx, wherein WO stands for complete machine and xxxxx stands for work order number; examples of PCBA worksheets are: POxxxxxx, wherein PO stands for PCBA and xxxxxx stands for worksheet number
Step 302, generating a serial number queue of the product to be tested corresponding to the work order number according to the type of the product to be tested, the generation date and the number of the product to be tested.
Step 303, the corresponding relation between the work order number and the product serial number queue to be tested is completed.
FIG. 4 is a schematic diagram of a product testing process according to the present invention.
In step 401, when a product starts to be tested, a work order number is first input on a testing device.
Step 402, by extracting the product type information in the worksheet number, loading the corresponding test procedure file according to the product type information.
Step 403, verifying whether the loaded test procedure file is correct, where the verification content includes: and verifying whether the test procedure file is a JSON format file or not, and verifying whether the test procedure file contains an undefined command or not. If the verification is not passed, return to step 401 requires the user to reenter the work order number.
And step 404, after the verification of the test procedure file is completed, analyzing the test procedure file to obtain all items to be tested.
And step 405, generating a test interface GUI according to all items to be tested.
Step 406, sequentially parsing each item to be tested.
Step 407, obtaining the identification code information of the current product to be tested. The identification code of the product to be tested can be obtained by scanning the bar code on the product shell, and can be obtained by reading the electronic tag of the product to be tested.
Step 408, obtaining the serial number in the serial number queue corresponding to the current work order number.
Step 409, comparing whether the product identification code to be tested and the serial number obtained in step 408 are consistent, if yes, starting to execute the test item, if not, skipping the execution of each test item, and directly outputting the test result.
Step 410, each test item is executed sequentially.
Step 411, it is determined whether the current test item requires the invocation of an external device. The external equipment comprises a production jig, a printer, a relay protector, a label printing machine, a laser engraving machine, an air tightness tester, an LCR instrument, a PLC or an electric bridge and the like
In step 412, when the test item needs to call the external device, the driver of the external device that needs to be called is loaded first.
In step 413, testing is performed using an external device.
Step 414, obtaining a test result of the external device.
In step 415, the test results of each test item are displayed.
And step 416, summarizing the test results of the test items to generate a test report.
In this embodiment, all the test devices are connected to the industrial ethernet, and the user can dynamically configure the test procedure file in each test device through the industrial ethernet, so that the reconfiguration of the test procedure can be performed in real time.
In summary, the testing device of the present embodiment has versatility, and can be used for testing multiple types of products. Meanwhile, the test procedure file can be dynamically configured through the network, so that the real-time update of the test procedure can be realized.
The above description is only a specific embodiment of the present invention, and the scope of the present invention is not limited thereto, and any person skilled in the art should modify or replace the present invention within the technical specification described in the present invention.

Claims (9)

1. A method for dynamically configurable product testing, the method comprising: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; outputting a test result and generating a report;
the construction test procedure file comprises the following steps: writing test procedure files of different types of products, wherein the test procedure files are written in a JSON format, and the files contain a plurality of test items corresponding to production procedures; indexing the test procedure file to finish the mapping relation between the test procedure file and the product type;
the construction sequence number generation rule comprises the following steps: making a product serial number generation rule, wherein the format of the product serial number is as follows: (product type code) + (year of production+week) + (production run number); indexing the serial number generation rule to finish the mapping relation between the serial number generation rule and the product type;
the construction test worksheet comprises: generating a test work order according to the types and the quantity of the products to be tested; generating a serial number queue of the product to be tested corresponding to the work order number of the test work order according to the type of the product to be tested, the generation date and the number of the product to be tested; and finishing the corresponding relation between the work order number and the serial number queue of the product to be tested.
2. The method according to claim 1, wherein the test procedure file and the serial number generation rule can be modified in real time.
3. The method of claim 2, wherein the test worksheet is generated according to a product type and the number of products to be tested, and a serial number queue corresponding to the test worksheet is generated at the same time.
4. A storage device having stored therein a plurality of instructions, said instructions being adapted to be loaded and executed by a processor, said instructions comprising: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; outputting a test result and generating a report;
the construction test procedure file comprises the following steps: writing test procedure files of different types of products, wherein the test procedure files are written in a JSON format, and the files contain a plurality of test items corresponding to production procedures; indexing the test procedure file to finish the mapping relation between the test procedure file and the product type;
the construction sequence number generation rule comprises the following steps: making a product serial number generation rule, wherein the format of the product serial number is as follows: (product type code) + (year of production+week) + (production run number); indexing the serial number generation rule to finish the mapping relation between the serial number generation rule and the product type;
the construction test worksheet comprises: generating a test work order according to the types and the quantity of the products to be tested; generating a serial number queue of the product to be tested corresponding to the work order number of the test work order according to the type of the product to be tested, the generation date and the number of the product to be tested; and finishing the corresponding relation between the work order number and the serial number queue of the product to be tested.
5. The storage device of claim 4, wherein the test procedure file, sequence number generation rules can be modified in real time.
6. The storage device of claim 5, wherein the test worksheet is generated according to a product type and a number of products to be tested, and a serial number queue corresponding to the test worksheet is generated at the same time.
7. A test apparatus comprising:
a processor adapted to implement instructions;
and a storage device adapted to store a plurality of instructions, the instructions being adapted to be loaded and executed by the processor, the instructions comprising: constructing a test procedure file, a serial number generation rule and a test work order; obtaining the type of a product to be tested by reading a test work order; selecting and loading corresponding test procedure files according to the product types; analyzing the test procedure file and generating a test display interface GUI; acquiring the identification code of the current product to be detected, comparing the identification code with the serial numbers in the serial number queue, and judging whether the identification code and the serial numbers are consistent; when the judging result is consistent, sequentially executing the test items in the test procedure file; outputting a test result and generating a report;
the construction test procedure file comprises the following steps: writing test procedure files of different types of products, wherein the test procedure files are written in a JSON format, and the files contain a plurality of test items corresponding to production procedures; indexing the test procedure file to finish the mapping relation between the test procedure file and the product type;
the construction sequence number generation rule comprises the following steps: making a product serial number generation rule, wherein the format of the product serial number is as follows: (product type code) + (year of production+week) + (production run number); indexing the serial number generation rule to finish the mapping relation between the serial number generation rule and the product type;
the construction test worksheet comprises: generating a test work order according to the types and the quantity of the products to be tested; generating a serial number queue of the product to be tested corresponding to the work order number of the test work order according to the type of the product to be tested, the generation date and the number of the product to be tested; and finishing the corresponding relation between the work order number and the serial number queue of the product to be tested.
8. The test apparatus of claim 7, wherein the test procedure file, the sequence number generation rule, can be modified in real time.
9. The test device of claim 8, wherein the test worksheet is generated according to a product type and a number of products to be tested, and a serial number queue corresponding to the test worksheet is generated at the same time.
CN201810745131.0A 2018-07-09 2018-07-09 Dynamically configurable testing device and testing method Active CN110704251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810745131.0A CN110704251B (en) 2018-07-09 2018-07-09 Dynamically configurable testing device and testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810745131.0A CN110704251B (en) 2018-07-09 2018-07-09 Dynamically configurable testing device and testing method

Publications (2)

Publication Number Publication Date
CN110704251A CN110704251A (en) 2020-01-17
CN110704251B true CN110704251B (en) 2023-07-11

Family

ID=69192937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810745131.0A Active CN110704251B (en) 2018-07-09 2018-07-09 Dynamically configurable testing device and testing method

Country Status (1)

Country Link
CN (1) CN110704251B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065528A (en) * 2013-03-15 2014-09-24 美国网件公司 Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN107241220A (en) * 2017-05-26 2017-10-10 京信通信系统(中国)有限公司 The aging of product monitors automatic analysis method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297895C (en) * 2003-07-25 2007-01-31 英业达股份有限公司 Integral control and management system and method for computer production line
CN104363324B (en) * 2014-11-20 2017-09-29 惠州Tcl移动通信有限公司 A kind of method of testing and test system tested automatically cell phone mainboard
CN106940648A (en) * 2016-01-04 2017-07-11 苏州普源精电科技有限公司 A kind of method, equipment and the test system of automatic loading test item
CN105677410A (en) * 2016-01-05 2016-06-15 太仓市同维电子有限公司 Method for downloading test program through server
CN107133117B (en) * 2016-02-26 2021-03-23 神讯电脑(昆山)有限公司 Automatic serial number testing system and method
CN107820284A (en) * 2016-09-13 2018-03-20 中兴通讯股份有限公司 Signal lattice number partitioning method and device
CN106656358A (en) * 2016-11-21 2017-05-10 芯海科技(深圳)股份有限公司 Low-power-consumption Bluetooth testing method
CN108255653B (en) * 2018-01-02 2021-05-04 深圳壹账通智能科技有限公司 Product testing method and terminal thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065528A (en) * 2013-03-15 2014-09-24 美国网件公司 Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN107241220A (en) * 2017-05-26 2017-10-10 京信通信系统(中国)有限公司 The aging of product monitors automatic analysis method and system

Also Published As

Publication number Publication date
CN110704251A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN108446190B (en) Interface test method and device
CN110244936B (en) Method and device for supporting VISIO flow chart to automatically import DCS algorithm configuration software
CN104657274B (en) software interface test method and device
CN110704252B (en) Automatic testing device and testing method based on cloud dynamic management
CN108710571B (en) Method and device for generating automatic test code
US20090319317A1 (en) Or Relating To A Method and System for Testing
CN111680463A (en) File checking method and device
CN113342692A (en) Test case automatic generation method and device, electronic equipment and storage medium
CN110704251B (en) Dynamically configurable testing device and testing method
CN104809053A (en) Control style testing method and device
JP4791990B2 (en) Plant model development system
CN103034917A (en) Device and method for designing material tracking system
CN114444432A (en) Wafer script setting method, device, equipment and storage medium
JP2016062136A (en) Testing apparatus and testing program
CN107885493B (en) Program creation support method and program creation support device
CN111158827A (en) Method and device for graphic configuration tool correlation calculation value information
Srivastava et al. Cause effect graph to decision table generation
CN113238969A (en) Interface automation test method, device, equipment and storage medium
JP2011204069A (en) Testing method, and automatic test specification and test data generation apparatus
JP3357567B2 (en) Program evaluation system
CN113343659B (en) Analysis report generation method, device, equipment and storage medium
KR100886657B1 (en) System and Method for making Basic Document of Dimensional Accuracy Check Sheet for Block in Ship Production
KR20100035900A (en) Method for modeling closed space
CN114972576A (en) Method, apparatus and storage medium for generating LTT schematic diagram
CN117075851A (en) Software demand workload assessment method, device, computer 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
GR01 Patent grant
GR01 Patent grant