CN113923442A - Universal software testing method and system for camera module - Google Patents

Universal software testing method and system for camera module Download PDF

Info

Publication number
CN113923442A
CN113923442A CN202111120950.4A CN202111120950A CN113923442A CN 113923442 A CN113923442 A CN 113923442A CN 202111120950 A CN202111120950 A CN 202111120950A CN 113923442 A CN113923442 A CN 113923442A
Authority
CN
China
Prior art keywords
test
instruction
software
test machine
testing
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
CN202111120950.4A
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.)
Sunwin Hubei Optoelectronic Technology Co Ltd
Original Assignee
Sunwin Hubei Optoelectronic 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 Sunwin Hubei Optoelectronic Technology Co Ltd filed Critical Sunwin Hubei Optoelectronic Technology Co Ltd
Priority to CN202111120950.4A priority Critical patent/CN113923442A/en
Publication of CN113923442A publication Critical patent/CN113923442A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Engineering (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Stored Programmes (AREA)

Abstract

A universal software testing method for a camera module comprises the following steps: step 1, starting a software system, starting a socket protocol, establishing socket protocol instruction interaction with a test machine, and monitoring an instruction sent by the test machine; step 2, if monitoring that a test machine sends an instruction, analyzing the instruction, if the instruction is a pre-test instruction, entering a test state, and feeding back an instruction receiving result to the test machine; and step 3, continuing to monitor the instruction sent by the test machine, and if receiving the execution instruction of the test machine, entering the corresponding flow item test based on the execution instruction. The invention supports communication with various machines, various equipment manufacturers in the industry uniformly adopt a socket protocol, a software system can realize communication with various machines by utilizing the characteristic, and the software system can automatically and intelligently realize judgment of various tests only by editing various test instructions by related technicians.

Description

Universal software testing method and system for camera module
Technical Field
The invention relates to the field of camera module testing, in particular to a method and a system for testing general software of a camera module.
Background
In the field of camera module testing, various testing machines are required to participate, various algorithms and testing items are required to participate in calculation and evaluation, multiple workers are required to cooperate in a division manner, respective software systems are provided, and the software systems are not unified and compatible. Therefore, it is urgently needed to develop a software testing system with powerful functions and general purpose aiming at the above testing defects.
Disclosure of Invention
In view of the technical defects and technical drawbacks in the prior art, embodiments of the present invention provide a method for testing general software of a camera module, which overcomes or at least partially solves the above problems, and the specific scheme is as follows:
as a first aspect of the present invention, a method for testing general software of a camera module is provided, the method including the steps of:
step 1, starting a software system, starting a socket protocol, establishing socket protocol instruction interaction with a test machine, and monitoring an instruction sent by the test machine;
step 2, if monitoring that a test machine sends an instruction, analyzing the instruction, if the instruction is a pre-test instruction, entering a test state, and feeding back an instruction receiving result to the test machine;
and step 3, continuing to monitor the instruction sent by the test machine, and if receiving the execution instruction of the test machine, entering the corresponding flow item test based on the execution instruction.
Further, step 1 further comprises: when the software system is started, detecting whether an authorization file of the software system is valid, if the authorization is not passed, directly ending the software, and if the authorization is passed, entering a software interface formally, wherein the authorization file is authorized through an MAC address.
Further, in step 3, the execution instruction includes a dll file, and the dll file includes a flow item to be tested.
Further, step 3 further includes, after receiving the execution instruction of the testing machine, executing the corresponding testing function on the corresponding flow item in the dll file based on the testing command sent by the software system.
Further, step 3 further comprises: and after the test of the test items in the dll file is finished, returning a corresponding test result to the test machine through the socket protocol, if the test result is NG, finishing the test and displaying the NG through the test machine, if the test result is OK, displaying the NG through the test machine and continuously monitoring the instruction sent by the test machine.
As a second aspect of the present invention, there is provided a system for testing general software of a camera module, the system including: the device comprises a monitoring unit, a feedback unit and an execution unit;
the monitoring unit is used for starting the software system and starting a socket protocol, establishing socket protocol instruction interaction with the test machine, and monitoring an instruction sent by the test machine;
the feedback unit is used for analyzing the instruction after monitoring the instruction sent by the test machine, entering a test state if the instruction is a pre-test instruction, feeding back an instruction receiving result to the test machine, and continuously monitoring the instruction sent by the test machine;
and the execution unit is used for entering the corresponding flow item test based on the execution instruction after receiving the execution instruction of the test machine.
Further, the system further comprises an authentication unit, the authentication unit is configured to: when the software system is started, detecting whether an authorization file of the software system is valid, if the authorization is not passed, directly ending the software, and if the authorization is passed, entering a software interface formally, wherein the authorization file is authorized through an MAC address.
Furthermore, the execution instruction includes a dll file, and the dll file includes the flow item to be tested.
Further, the execution unit is specifically configured to: and after receiving the execution instruction of the test machine, executing a corresponding test function on the corresponding flow item in the dll file based on the test command sent by the software system.
Further, the execution unit is further configured to: and after the test of the test items in the dll file is finished, returning a corresponding test result to the test machine through the socket protocol, if the test result is NG, finishing the test and displaying the NG through the test machine, if the test result is OK, displaying the NG through the test machine and continuously monitoring the instruction sent by the test machine.
The invention has the following beneficial effects:
1. in a strong encryption mode, the computer takes the unique MAC address and the dongle as an authorization basis, and unauthorized software cannot start operation;
2. the software system supports communication with various machines, a socket protocol is uniformly adopted by various large equipment manufacturers in the current industry, and the software system can realize communication with various machines by utilizing the characteristic;
3. the method supports the simultaneous development of multiple persons, and any software developer only needs to open the corresponding function dll according to the development rule of the system dll and realize the calling of the corresponding function dll by the system;
4. intelligent testing; only relevant technicians need to edit various test instructions, and the software system can automatically and intelligently realize judgment of various tests;
5. the software can run a plurality of software simultaneously, each software is realized according to unified logic, but in order to avoid conflict and combine socket characteristics, the IP or ports of each software are different.
Drawings
Fig. 1 is a schematic flowchart of a method for testing general software of a camera module according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for testing general software of a camera module according to a first embodiment of the present invention includes:
step 1, starting a software system and starting a socket protocol, establishing socket protocol command interaction with a test machine, monitoring a command sent by the test machine,
and 2, if monitoring that the test machine sends an instruction, analyzing the instruction, if the instruction is a pre-test instruction, entering a test state, feeding back an instruction receiving result to the test machine, and waiting for a specific execution instruction.
And 3, after entering the test state, continuing to monitor the state and analyzing the instruction sent by the test machine, if an execution instruction of the machine is received, entering the corresponding flow item test, if an ending instruction is received, returning to the corresponding state according to the current test result, and returning to the step 2 to continue monitoring.
The invention supports communication with various machines, and the software system can realize communication with various machines by utilizing the characteristic that socket protocols are uniformly adopted by various large equipment manufacturers in the industry at present.
Preferably, step 1 further comprises: when a software system is started, whether an authorization file of the software system is valid is detected, if the authorization file is not passed, the software is directly ended, if the authorization file is passed, the software formally enters a software interface, wherein the authorization file is authorized through an MAC address, and through a powerful encryption mode, a computer takes the unique MAC address and a dongle as authorization bases, and the unauthorized software cannot start operation.
Preferably, the software system starts corresponding flow items according to socket instructions, the flow items are test dll files, the dll files are written by any developer according to rules or algorithms or some test specific functions, the test system sends corresponding test commands to the test flow items, the corresponding flow items start to execute the corresponding functions, corresponding results are returned after the corresponding flow items are finished, and the system finally performs corresponding actions according to the results.
The invention supports the simultaneous development of a plurality of persons, any software developer only needs to open the corresponding function dll according to the development rule of the system dll to realize the calling of the corresponding function dll by the system, and supports a plurality of software developers, the software can run a plurality of software simultaneously, each software can be realized according to the unified logic, but in order to avoid conflict and combine the socket characteristics, the IP or the port of each software is different.
Specifically, if the test result is NG, the software system sends an NG instruction to the test machine through the socket protocol, ends the test and displays the NG through the test machine, and if the test result is OK, the software system sends an OK instruction to the test machine through the socket protocol and waits for the next instruction.
As a second embodiment of the present invention, there is also provided a system for testing general software of a camera module, the system including: the device comprises a monitoring unit, a feedback unit and an execution unit;
the monitoring unit is used for starting the software system and starting a socket protocol, establishing socket protocol instruction interaction with the test machine, and monitoring an instruction sent by the test machine;
the feedback unit is used for analyzing the instruction after monitoring the instruction sent by the test machine, entering a test state if the instruction is a pre-test instruction, feeding back an instruction receiving result to the test machine, and continuously monitoring the instruction sent by the test machine;
and the execution unit is used for entering the corresponding flow item test based on the execution instruction after receiving the execution instruction of the test machine.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A universal software testing method for a camera module is characterized by comprising the following steps:
step 1, starting a software system, starting a socket protocol, establishing socket protocol instruction interaction with a test machine, and monitoring an instruction sent by the test machine;
step 2, if monitoring that a test machine sends an instruction, analyzing the instruction, if the instruction is a pre-test instruction, entering a test state, and feeding back an instruction receiving result to the test machine;
and step 3, continuing to monitor the instruction sent by the test machine, and if receiving the execution instruction of the test machine, entering the corresponding flow item test based on the execution instruction.
2. The method for testing the general software of the camera module according to claim 1, wherein the step 1 further comprises: when the software system is started, detecting whether an authorization file of the software system is valid, if the authorization is not passed, directly ending the software, and if the authorization is passed, entering a software interface formally, wherein the authorization file is authorized through an MAC address.
3. The method for testing the general software of the camera module according to claim 1, wherein in the step 3, the execution instruction includes a dll file, and the dll file includes a flow item to be tested.
4. The method for testing the general software of the camera module according to claim 3, wherein the step 3 further comprises executing the corresponding test function on the corresponding flow item in the dll file based on the test command sent by the software system after receiving the execution instruction of the test machine.
5. The method for testing the general software of the camera module according to claim 4, wherein the step 3 further comprises: and after the test of the test items in the dll file is finished, returning a corresponding test result to the test machine through the socket protocol, if the test result is NG, finishing the test and displaying the NG through the test machine, if the test result is OK, displaying the NG through the test machine and continuously monitoring the instruction sent by the test machine.
6. The utility model provides a general software test system of module of making a video recording which characterized in that, the system includes: the device comprises a monitoring unit, a feedback unit and an execution unit;
the monitoring unit is used for starting the software system and starting a socket protocol, establishing socket protocol instruction interaction with the test machine, and monitoring an instruction sent by the test machine;
the feedback unit is used for analyzing the instruction after monitoring the instruction sent by the test machine, entering a test state if the instruction is a pre-test instruction, feeding back an instruction receiving result to the test machine, and continuously monitoring the instruction sent by the test machine;
and the execution unit is used for entering the corresponding flow item test based on the execution instruction after receiving the execution instruction of the test machine.
7. The system for testing software of a camera module of claim 6, further comprising an authentication unit, the authentication unit configured to: when the software system is started, detecting whether an authorization file of the software system is valid, if the authorization is not passed, directly ending the software, and if the authorization is passed, entering a software interface formally, wherein the authorization file is authorized through an MAC address.
8. The system for testing general-purpose software of a camera module according to claim 6, wherein the execution instruction includes a dll file, and the dll file includes a flow item to be tested.
9. The system for testing general software of a camera module according to claim 8, wherein the execution unit is specifically configured to: and after receiving the execution instruction of the test machine, executing a corresponding test function on the corresponding flow item in the dll file based on the test command sent by the software system.
10. The system for testing software universal for camera modules according to claim 8, wherein the execution unit is further configured to: and after the test of the test items in the dll file is finished, returning a corresponding test result to the test machine through the socket protocol, if the test result is NG, finishing the test and displaying the NG through the test machine, if the test result is OK, displaying the NG through the test machine and continuously monitoring the instruction sent by the test machine.
CN202111120950.4A 2021-09-24 2021-09-24 Universal software testing method and system for camera module Pending CN113923442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111120950.4A CN113923442A (en) 2021-09-24 2021-09-24 Universal software testing method and system for camera module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111120950.4A CN113923442A (en) 2021-09-24 2021-09-24 Universal software testing method and system for camera module

Publications (1)

Publication Number Publication Date
CN113923442A true CN113923442A (en) 2022-01-11

Family

ID=79236006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111120950.4A Pending CN113923442A (en) 2021-09-24 2021-09-24 Universal software testing method and system for camera module

Country Status (1)

Country Link
CN (1) CN113923442A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851666A (en) * 2005-11-01 2006-10-25 华为技术有限公司 Method and system for realizing software automatic test
CN101098200A (en) * 2006-06-27 2008-01-02 中兴通讯股份有限公司 Method for implementing customizable test procedure
CN102917095A (en) * 2012-10-10 2013-02-06 青岛海信移动通信技术股份有限公司 Method and device for testing terminal based on Android
CN103455416A (en) * 2013-07-18 2013-12-18 北京航空航天大学 Pressure test method based on Android system intelligent device memory usage and CPU
CN103902458A (en) * 2014-04-18 2014-07-02 浪潮电子信息产业股份有限公司 Universal storage software test design method
CN109388530A (en) * 2018-08-22 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Blade server-oriented automatic test platform and test method
CN109408393A (en) * 2018-11-07 2019-03-01 深圳市腾讯网络信息技术有限公司 Application testing method, device and equipment and computer readable storage medium
CN109491724A (en) * 2018-11-11 2019-03-19 上海精密计量测试研究所 Call method of the software generic test platform of test equipment to special test program
CN110086745A (en) * 2018-01-25 2019-08-02 上海北玻自动化技术有限公司 A kind of automation line data acquisition control system
CN111782513A (en) * 2020-06-23 2020-10-16 西北工业大学 Satellite ground universal automatic test method based on DLL
CN112463618A (en) * 2020-12-04 2021-03-09 斑马网络技术有限公司 Automated testing method, device, medium and equipment
CN112738230A (en) * 2020-12-29 2021-04-30 成都三零瑞通移动通信有限公司 Automatic network gate testing system and working method thereof

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851666A (en) * 2005-11-01 2006-10-25 华为技术有限公司 Method and system for realizing software automatic test
CN101098200A (en) * 2006-06-27 2008-01-02 中兴通讯股份有限公司 Method for implementing customizable test procedure
CN102917095A (en) * 2012-10-10 2013-02-06 青岛海信移动通信技术股份有限公司 Method and device for testing terminal based on Android
CN103455416A (en) * 2013-07-18 2013-12-18 北京航空航天大学 Pressure test method based on Android system intelligent device memory usage and CPU
CN103902458A (en) * 2014-04-18 2014-07-02 浪潮电子信息产业股份有限公司 Universal storage software test design method
CN110086745A (en) * 2018-01-25 2019-08-02 上海北玻自动化技术有限公司 A kind of automation line data acquisition control system
CN109388530A (en) * 2018-08-22 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Blade server-oriented automatic test platform and test method
CN109408393A (en) * 2018-11-07 2019-03-01 深圳市腾讯网络信息技术有限公司 Application testing method, device and equipment and computer readable storage medium
CN109491724A (en) * 2018-11-11 2019-03-19 上海精密计量测试研究所 Call method of the software generic test platform of test equipment to special test program
CN111782513A (en) * 2020-06-23 2020-10-16 西北工业大学 Satellite ground universal automatic test method based on DLL
CN112463618A (en) * 2020-12-04 2021-03-09 斑马网络技术有限公司 Automated testing method, device, medium and equipment
CN112738230A (en) * 2020-12-29 2021-04-30 成都三零瑞通移动通信有限公司 Automatic network gate testing system and working method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
叶旻: "银行业用户验收测试实战汇编", 31 January 2020, 北京:中国金融出版社, pages: 155 - 157 *
娄岩: "Python程序设计基础", 31 January 2021, 北京:机械工业出版社, pages: 122 - 123 *
徐品: "应用软件设计教程", 30 June 2009, 北京:中国广播电视出版社, pages: 97 - 103 *

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
US8443381B2 (en) API evaluation system in embedded device
CN112596972A (en) Vehicle-mounted equipment testing method, device and system and computer equipment
CN106452975B (en) A kind of method and system of test router
US20090234942A1 (en) Apparatus, system, and method for testing embedded device
TW201306507A (en) Method of configuring Bluetooth SIM access profile of communication device
TWI592798B (en) Inspection system adjusting the sequence of testing items in diagnostic program through log file and method thereof
CN103731663B (en) The testing method of a kind of intelligent television and device
WO2019165818A1 (en) Air conditioning unit networking method, device and system, storage medium, and processor
CN110888767A (en) Interface multiplexing module verification platform architecture and quick expansion implementation method
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
CN106776346A (en) The method of testing and device of CCMTS equipment
CN101594627A (en) A kind of apparatus and method of simulating mobile terminal fault
CN114578790A (en) Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
CN111338951A (en) Wireless intelligent household appliance detection method and system
CN104468279A (en) Routing protocol interaction testing method and tool
CN106294097B (en) Application program testing method and device
CN105704484A (en) Testing device and method for simulating user operation on TV set
CN113923442A (en) Universal software testing method and system for camera module
CN106612213B (en) Equipment testing method and device
CN113347060A (en) Power network fault detection method, device and system based on process automation
CN108984216A (en) A kind of method and apparatus automatically into configuration BIOS
CN112667512A (en) Data drive test method, device, equipment and computer readable storage medium
CN108595297B (en) UPI speed detection method and device
CN115774649A (en) Automatic memory parameter adjusting system, method and device

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