CN115474040A - Method and device for testing network video equipment, electronic equipment and storage medium - Google Patents

Method and device for testing network video equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN115474040A
CN115474040A CN202211206621.6A CN202211206621A CN115474040A CN 115474040 A CN115474040 A CN 115474040A CN 202211206621 A CN202211206621 A CN 202211206621A CN 115474040 A CN115474040 A CN 115474040A
Authority
CN
China
Prior art keywords
information
picture
equipment
test
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.)
Pending
Application number
CN202211206621.6A
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.)
SHENZHEN TIANSHITONG TECHNOLOGY CO LTD
Original Assignee
SHENZHEN TIANSHITONG 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 SHENZHEN TIANSHITONG TECHNOLOGY CO LTD filed Critical SHENZHEN TIANSHITONG TECHNOLOGY CO LTD
Priority to CN202211206621.6A priority Critical patent/CN115474040A/en
Publication of CN115474040A publication Critical patent/CN115474040A/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/06Diagnosis, testing or measuring for television systems or their details for recorders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a testing method and a testing device of network video equipment, electronic equipment and a storage medium, and relates to the field of artificial intelligence, wherein the method comprises the following steps: acquiring a current video picture of equipment to be tested; analyzing the picture content of the video picture to obtain picture information; carrying out command generation according to preset test case information and picture information to obtain an operation command; sending the operation command to the equipment to be tested so that the equipment to be tested executes corresponding operation according to the operation command and receives return data fed back by the equipment to be tested; wherein returning data comprises: operation log data and device configuration data; and comparing the operation log data, the equipment configuration data and preset reference data to obtain test result information. The method and the device can improve the accuracy of the network video equipment test.

Description

Method and device for testing network video equipment, electronic equipment and storage medium
Technical Field
The present invention relates to the field of device testing technologies, and in particular, to a method and an apparatus for testing a network video recording device, an electronic device, and a storage medium.
Background
In the related technology, the network video recorder performs simple automatic test through the shell script and a tool connected and interacted with the Linux operating system, but the automatic test accuracy of the network video recorder is low and the maintenance is difficult. Therefore, how to improve the accuracy of the automated testing and reduce the maintenance difficulty becomes a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the application mainly aims to provide a method and a device for testing a network video recorder, an electronic device and a storage medium, and aims to improve the accuracy of testing the network video recorder.
In order to achieve the above object, a first aspect of the embodiments of the present application provides a method for testing a network video recording device, where the method includes:
acquiring a current video picture of equipment to be tested;
analyzing the picture content of the video picture to obtain picture information;
performing command generation according to preset test case information and the picture information to obtain an operation command;
sending the operation command to the equipment to be tested so that the equipment to be tested executes corresponding operation according to the operation command and receives return data fed back by the equipment to be tested; wherein the return data comprises: operation log data and device configuration data;
and comparing the operation log data, the equipment configuration data and preset reference data to obtain test result information.
According to some embodiments of the invention, the picture information comprises: page text, text position information and color information; the analyzing the picture content of the video picture to obtain picture information comprises the following steps:
analyzing the content of the video picture to obtain the page text;
acquiring position information of a page text in a video picture to obtain text position information;
and acquiring the color of the corresponding position of the video picture according to the text position information to obtain color information.
According to some embodiments of the present invention, the generating a command according to preset test case information and the screen information to obtain an operation command includes:
extracting keywords from the picture information according to the test case information to obtain keyword information;
and generating the operation command according to the keyword information.
According to some embodiments of the invention, the reference data comprises: operating process reference data and configuration reference data; the data comparison of the operation log data, the equipment configuration data and preset reference data is performed to obtain test result information, and the method comprises the following steps:
comparing and analyzing the operation log data and the operation process reference data to obtain operation process test information;
comparing and analyzing the equipment configuration data and the configuration reference data to obtain configuration test information;
and collecting the operation flow test information and the configuration test information to obtain the test result information.
According to some embodiments of the present invention, after the comparing the operation log data, the device configuration data, and the preset reference data to obtain the test result information, the method further includes:
comparing the pictures before and after the test specifically comprises:
obtaining a picture before the device to be tested is tested to obtain an original picture;
obtaining a picture after the device to be tested is tested to obtain a target picture;
and comparing and analyzing the original picture and the target picture to obtain picture test information.
According to some embodiments of the present invention, before the obtaining the video recording picture of the device under test, the method further includes:
with the equipment communication connection that awaits measuring specifically includes:
screening out the equipment to be tested from the candidate equipment according to preset equipment identification information;
establishing communication connection with equipment to be tested according to preset login information; wherein, the equipment to be tested is a network video recorder.
According to some embodiments of the present invention, after the comparing the operation log data, the device configuration data, and the preset reference data to obtain the test result information, the method further includes:
generating a test report, specifically comprising:
acquiring a report generation request; wherein the report generation request includes test requirement information;
and summarizing the test result information according to the test demand information and the test case information to obtain the test report.
In order to achieve the above object, a second aspect of the embodiments of the present application provides a testing apparatus for network video recording equipment, where the testing apparatus includes:
the picture acquisition module is used for acquiring the current video picture of the equipment to be tested;
the picture analysis module is used for analyzing the picture content of the video picture to obtain picture information;
the command generation module is used for generating a command according to preset test case information and the picture information to obtain an operation command;
the command sending module is used for sending the operation command to the equipment to be tested so as to enable the equipment to be tested to execute corresponding operation according to the operation command and receive return data fed back by the equipment to be tested; wherein the return data comprises: operation log data and device configuration data;
and the digital comparison module is used for performing data comparison on the operation log data, the equipment configuration data and preset reference data to obtain test result information.
In order to achieve the above object, an electronic device according to a third aspect of the embodiments of the present application includes a memory and a processor, where the memory stores a computer program, and the processor implements the method for testing a network video recording device according to the first aspect when executing the computer program.
To achieve the above object, a computer-readable storage medium of a fourth aspect of the embodiments of the present application stores a computer program, and the computer program, when executed by a processor, implements the method for testing a network video recording device according to the first aspect.
According to the test method and device for the network video equipment, the electronic equipment and the storage medium, the video picture of the equipment to be tested is obtained, picture content analysis is carried out on the video picture to obtain picture information, an operation command is generated according to preset test case information and picture information, the operation command is sent to the equipment to be tested, so that the equipment to be tested executes corresponding operation according to the operation command, return data fed back by the equipment to be tested is received, and data comparison is carried out on operation log data, equipment configuration data and preset reference data to obtain test result information. Therefore, the operation command is generated according to the picture information and the test case information, the operation command is sent to the device to be tested to execute corresponding operation so as to realize remote debugging of the device to be tested, and meanwhile, the returned data returned by the device to be tested is received and is compared with the preset reference data so as to obtain the test result information, so that the automatic test of the device to be tested is simple and easy, and the test accuracy is improved.
Drawings
FIG. 1 is a flowchart of a device testing method provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method for testing a device according to another embodiment of the present application;
FIG. 3 is a flowchart of step S102 in FIG. 1;
FIG. 4 is a flowchart of step S104 in FIG. 1;
fig. 5 is a flowchart of step S105 in fig. 1;
FIG. 6 is a flow chart of a method for testing a device provided in another embodiment of the present application;
FIG. 7 is a flow chart of a method for testing a device provided in another embodiment of the present application;
FIG. 8 is a block diagram of an apparatus for testing devices according to an embodiment of the present disclosure;
FIG. 9 is a system architecture diagram of an apparatus testing device provided by an embodiment of the present application;
fig. 10 is a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
It should be noted that although functional blocks are partitioned in a schematic diagram of an apparatus and a logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the partitioning of blocks in the apparatus or the order in the flowchart. The terms first, second and the like in the description and in the claims, as well as in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
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 application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
At present, after the device is used for a period of time, in order to ensure that the network video recorder has a good working level, the network video recorder is generally required to be tested. In the related technology, the network video recorder test operation mainly comprises a manual test mode and an automatic test mode, but the manual test can lead testers to be easy to fatigue, the fatigue is easy to miss the test, and the product quality can not be guaranteed, so that the manual test mode has the problems of long time consuming and low efficiency. The existing network video recorder performs simple automatic testing through the shell script and a tool connected and interacted with the Linux operating system, and has the defect of over dependence on developers and tools. Once the network video recorder performs iterative update or updates and maintains a dependent tool, when a tester performs new automatic test case expansion, the tester often finds that the accuracy of the test case is difficult to guarantee at all. Therefore, the automatic test mode has low automatic test accuracy, more dependence and difficult maintenance.
Based on this, the embodiment of the application provides a device testing method and apparatus, an electronic device and a storage medium, and aims to improve the accuracy of network video equipment testing.
Specifically, the following embodiments are described to describe a method for testing a network video recording device in the embodiments of the present application, first describing the method for testing a network video recording device in the embodiments of the present application.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The embodiment of the application provides a testing method of network video equipment, and relates to the technical field of artificial intelligence. The method for testing the network video equipment, provided by the embodiment of the application, can be applied to a terminal, a server side and software running in the terminal or the server side. In some embodiments, the terminal may be a smartphone, tablet, laptop, desktop computer, or the like; the server side can be configured as an independent physical server, can also be configured as a server cluster or a distributed system formed by a plurality of physical servers, and can also be configured as a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (content distribution network) and big data and artificial intelligence platforms; the software may be an application or the like that implements the device testing method, but is not limited to the above form.
Referring to fig. 1, according to the method for testing a network video recording device provided in the first aspect of the embodiment of the present application, the method in fig. 1 may include, but is not limited to, step S101 to step S105.
Step S101, acquiring a video picture of equipment to be tested;
step S102, analyzing the picture content of the video picture to obtain picture information;
step S103, generating a command according to preset test case information and picture information to obtain an operation command;
step S104, sending the operation command to the device to be tested so that the device to be tested executes corresponding operation according to the operation command, and receiving return data fed back by the device to be tested, wherein the return data comprises: operation log data and device configuration data;
and step S105, comparing the operation log data, the equipment configuration data and preset reference data to obtain test result information.
In steps S101 to S105 illustrated in this embodiment, a current video picture of a device to be tested is obtained, picture content analysis is performed on the current video picture to obtain picture information, command generation is performed according to preset test case information and the picture information to obtain an operation command, the operation command is sent to the device to be tested, so that the device to be tested executes a corresponding operation according to the operation command, operation log data and device configuration data fed back by the device to be tested are received, and data comparison is performed on the operation log data, the device configuration data and preset reference data to obtain test result information. Therefore, the operation command is generated according to the picture information and the test case information, the operation command is sent to the device to be tested to execute corresponding operation so as to realize remote debugging of the device to be tested, and meanwhile, the returned data returned by the device to be tested is received and is compared with the preset reference data so as to obtain the test result information, so that the automatic test of the device to be tested is simple and easy, and the test accuracy is improved.
In step S101 of some embodiments, a current video picture of the device to be tested is obtained, that is, the video picture of the device to be tested is collected in real time, so as to obtain the video picture at the current time. Wherein, in this embodiment, a preset time period for collecting the image is preset, and the preset time period is 2 to 5 seconds, the device to be tested is obtained to collect the video data according to the preset time period, and performing frame processing on the video data to obtain a video frame image so as to obtain the video frame image with the highest definition as a current video picture.
In some embodiments, before step S101, the method for testing the network video recording device further includes: and the device is in communication connection with the equipment to be tested. The testing method of the network video equipment is applied to the testing device, so that the video picture of the equipment to be tested can be remotely obtained after the testing device is in communication connection with the equipment to be tested, and the remote control is carried out on the equipment to be tested.
Referring to fig. 2, the communication connection with the device under test may include, but is not limited to, steps S201 to S202:
step S201, screening out equipment to be tested from candidate equipment according to preset equipment identification information;
step S202, communication connection is established with the equipment to be tested according to preset login information.
In step S201 of some embodiments, the preset device identification information includes: and screening equipment with the matched model from the candidate equipment according to the equipment model and screening the equipment to be tested from the candidate equipment with the matched model according to the equipment ID information, so that the screening operation of the equipment to be tested is simple.
In step S202 of some embodiments, the preset login information includes: and searching the IP address and the network communication port number of the equipment to be tested in the local area network, and establishing remote login connection with the NVR according to the IP address and the network communication port number.
In steps S201 to S202 illustrated in this embodiment, the device to be tested is screened out from the candidate device according to the preset device identification information, and then the communication connection is established with the device to be tested according to the login information, so as to perform video image acquisition and remote test operation on the device to be tested.
In some embodiments, referring to fig. 3, the screen information includes: page text, text position information, and color information. Step S102 specifically includes, but is not limited to, step S301 to step S303.
Step S301, analyzing the content of the video picture to obtain a page text;
step S302, acquiring position information of a page text in a video picture to obtain text position information;
and step S303, acquiring the color of the position corresponding to the video picture according to the text position information to obtain color information.
In step S301 of some embodiments, the page text is obtained by performing content analysis on the video recording picture, that is, by recognizing the text in the video recording picture through an OCR content recognition technology, so that the page text is easy to obtain.
In step S302 of some embodiments, because the remote control device to be tested mainly simulates an operation of manually clicking a mouse, after the page text of the video image is identified, coordinates of the text need to be determined to obtain text position information, so that the simulated mouse is moved to the corresponding page text according to the text position information, and the remote control device to be tested performs a test operation more accurately.
For example, if the current video picture is a system device page, and the page text of the system device page is recognized as the system device text, the coordinates of the system device text are obtained, so that the simulated mouse is moved according to the coordinates of the system device text, and the corresponding system device key is clicked through the simulated mouse.
In step S303 of some embodiments, the color of the text position information at the position corresponding to the video picture is obtained to obtain the color information, so as to further determine whether the simulated mouse is correctly clicked according to the color information, so as to improve the accuracy of the operation when the device to be tested is tested, and thus the test of the device to be tested is more accurate.
It should be noted that the page information further includes the identification accuracy, and in addition, the page information may be determined according to the preset content, so that the setting of the page information is more flexible. The specific content of the page information is not limited in this embodiment.
In steps S301 to S303 illustrated in this embodiment, a page text is obtained by performing content analysis on a video picture of the device to be tested, and text position information is obtained by obtaining a position of the page text on the video picture, and color information is obtained by obtaining a color of the text position information on the video picture. Therefore, the page text, the text position information and the color information of the video picture are obtained, so that the content displayed by the current video picture can be determined according to the page text, the text position information and the color information, and a more accurate operation command can be made.
In some embodiments, referring to fig. 4, step S104 specifically includes, but is not limited to, step S401 to step S402.
Step S401, extracting keywords from the picture information according to the test case information to obtain keyword information;
step S402, generating an operation command according to the keyword information.
In step S401 in some embodiments, since the screen information includes page text, text position information, and color information, all page information is not required for generating an operation command each time, and only the content corresponding to the test case information needs to be acquired. Therefore, keyword extraction is carried out on the picture information according to the test case information, and keywords matched with the test case information are extracted from the picture information to obtain keyword information. For example, if the test for switching languages is performed on the device to be tested, and the screen information is the system device information, the test case information is "click the conventional device to find the language, and the electrode switches the desired language", and then the keyword information is extracted from the screen information according to the test case information and is "system setting, conventional setting, language, traditional chinese and traditional chinese".
In step S402 of some embodiments, an operation command is generated according to the keyword information, that is, a command for simulating mouse movement is generated, and a movement position is determined according to text position information corresponding to the keyword information, so as to remotely and gradually control the device under test.
In steps S401 to S402 illustrated in this embodiment, keyword information is obtained by extracting keywords from the screen information according to the test case information, and an operation command is generated according to the keyword information, so that the device to be tested is remotely and accurately controlled, and the test of the device to be tested is more accurate.
In step S104 of some embodiments, after the operation command is sent to the device under test, the device under test performs a corresponding operation according to the operation command, that is, the mouse is moved by a simulation manual to click a corresponding key according to the operation command, so as to implement an automatic test of the device under test. When the device to be tested executes the operation corresponding to the operation command, operation log data is generated, and the device configuration parameters are changed after the operation command is completed to obtain device configuration data.
In some embodiments, referring to fig. 5, step S105 includes, but is not limited to, steps S501 to S503.
Step S501, comparing and analyzing the operation log data and the operation process reference data to obtain operation process test information;
step S502, comparing the equipment configuration data with the configuration reference data to obtain configuration test information;
step S503, the operation flow test information and the configuration test information are collected to obtain test result information.
In step S501 of some embodiments, since the operation log data records the operation flow of the device under test according to the operation command, in order to determine whether the operation executed by the device under test conforms to the test case information, the operation log data and the operation flow reference data are compared and analyzed to obtain operation flow test information, so that whether the operation flow executed by the device under test conforms to the test case information can be determined through the operation flow test information, and the test operation of the device under test is simple.
It should be noted that the operation-required log data includes: the time core and the operation content of the operation occur, and the device configuration information comprises: device model number and device id.
In step S502 of some embodiments, the device configuration data and the configuration reference data are subjected to data comparison to obtain configuration test information, so as to implement configuration test of the device to be tested, and determine whether the configuration of the device to be tested after completing the corresponding operation according to the operation command is matched with the reference configuration according to the configuration test information, so that the configuration test operation of the device to be tested is simple.
In step S503 of some embodiments, test result information is obtained by collecting the operation flow test information and the configuration test information, so as to determine whether the test flow of the device to be tested is qualified and whether the configuration parameter is qualified according to the test result information, so that the test operation of the device to be tested is simple.
In steps S501 to S503 illustrated in this embodiment, operation log data and operation flow reference data are compared and analyzed to obtain operation flow test information, device configuration data and configuration reference data are compared to obtain configuration test information, and finally the operation flow test information and the configuration test information are collected to obtain test result information, so as to complete the operation flow and configuration parameter tests of the device to be tested, so that the test operation of the device to be tested is simple.
In some embodiments, the method for testing the network video recording device further includes: and comparing the pictures before and after the test. The pictures before and after the test are compared to judge whether the function of the equipment to be tested is normal or not, so that the normal test of the function of the equipment to be tested is simple and easy.
Referring to fig. 6, comparing the before and after test screens includes, but is not limited to, steps S601 to S603.
Step S601, obtaining an original picture before testing of the equipment to be tested;
step S602, obtaining a target picture after the device to be tested is tested;
step S603, comparing and analyzing the original picture and the target picture to obtain picture test information.
In step S603 of some embodiments, the original picture and the target picture are compared and analyzed, that is, the picture parameter of the original picture and the picture parameter of the target picture are compared and analyzed to obtain the picture test information. The picture parameters comprise any one or more of the following parameters: resolution, brightness, saturation. If the picture parameter adjustment is carried out on the equipment to be tested, the picture parameter of the original picture and the picture parameter of the target picture are directly compared and analyzed, and then the test result information can be determined.
For example, if the brightness and saturation of the device under test are both 200. Firstly, the environment of the equipment to be tested is set up as a certain fixed white board picture. The original picture and the target picture are obtained, and pictures before and after the operation corresponding to the test case information executed by the equipment to be tested are compared, so that the picture test information is obtained by further judging the test case. The device to be tested is the NVR device, and the original picture and the target picture are obtained by collecting pictures of the NVR device through IPC.
In steps S601 to S602 illustrated in this embodiment, an original picture before the test of the device to be tested is acquired by the acquisition card, a target picture after the test of the device to be tested is acquired, and finally, the original picture and the target picture are compared and analyzed to observe the change of the previous and subsequent pictures to obtain the picture test information. Therefore, the original picture and the target picture are compared to judge whether the function of the device to be tested after the test corresponding to the test case information is executed is normal or not, so that the function test of the device to be tested is simple and easy.
In some embodiments, referring to fig. 7, after step S105, the device testing method of the embodiment of the present application includes, but is not limited to, including step S701 to step S702.
Step S701, acquiring a report generation request;
step S702, test result information is summarized according to the test requirement information and the test case information, and then a concise visual test report is obtained through visual processing.
In steps S701 to S702 of this embodiment, the test result information is summarized according to the test requirement information and the test case information to obtain the device test information, the device test information is visualized to obtain a device test view, and the device test view is summarized to obtain a concise visual test report. Therefore, visualization is carried out after test information is summarized, and the visual equipment test starting diagram is summarized to obtain a visual test report, so that the test report is easy to generate, and a tester can directly determine the test result of the equipment to be tested through the test report.
Referring to fig. 8, an embodiment of the present application further provides a testing apparatus for a network video recording device, which can implement the testing method for the network video recording device, and the apparatus includes:
the image acquisition module 801 is used for acquiring a current video image of the equipment to be tested;
the picture analysis module 802 analyzes picture content of the video picture to obtain picture information;
the command generation module 803 performs command generation according to preset test case information and picture information to obtain an operation command;
the command sending module is used for sending the operation command to the equipment to be tested so that the equipment to be tested executes corresponding operation according to the operation command and receives return data fed back by the equipment to be tested; wherein returning data comprises: operation log data and device configuration data;
and the digital comparison module is used for comparing the operation log data, the equipment configuration data and preset reference data to obtain test result information.
The specific implementation of the testing apparatus for network video equipment is substantially the same as the specific implementation of the testing method for network video equipment, and is not described herein again.
It should be noted that, referring to fig. 9, the device to be tested is an NCR device, and the image acquisition module is an acquisition card, the NVR device is further connected to an IPC device, and the IPC device is a webcam, is a main source of video acquisition, and is also used as an auxiliary test object for assisting in completing the NVR related configuration test. The IPC equipment is connected with the testing device and the NVR equipment through the switch, the switch is used for connecting the equipment in series under the same network, and the testing device can conveniently carry out interactive operation on the NVR equipment, the IPC equipment and other equipment. The test device can be a computer and is used for connecting the NVR equipment, sending a mouse moving operation command to the NVR equipment, receiving and analyzing return data transmitted by the NVR equipment, capturing test signals and network data in real time, analyzing a video image of the acquisition card, comparing the video image to obtain image test information, summarizing all test results and then generating a test report.
Referring to fig. 10, fig. 10 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 1001 may be implemented by a general CPU (Central processing unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided in the embodiment of the present application;
the memory 1002 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM). The memory 1002 may store an operating system and other application programs, and when the technical solution provided in the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 1002, and the processor 1001 calls the network video recording device to execute the test method of the network video recording device according to the embodiments of the present disclosure;
an input/output interface 1003 for implementing information input and output;
the communication interface 1004 is used for realizing communication interaction between the device and other devices, and can realize communication in a wired manner (for example, USB, network cable, etc.) or in a wireless manner (for example, mobile network, WIFI, bluetooth, etc.);
a bus 1005 that transfers information between the various components of the device (e.g., the processor 1001, the memory 1002, the input/output interface 1003, and the communication interface 1004);
wherein the processor 1001, the memory 1002, the input/output interface 1003 and the communication interface 1004 realize communication connections with each other inside the apparatus through a bus 1005.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method for testing the network video recording device.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment of the application provides a method and a device for testing network video equipment, electronic equipment and a storage medium. The video picture of the test equipment is acquired in real time, the picture content is analyzed and extracted, an instruction is automatically generated and sent to the control end so as to control the test equipment to automatically simulate manual mouse clicking, and then a test result is summarized through data comparison and analysis, so that the test efficiency and accuracy are improved.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided in the embodiments of the present application, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems with the evolution of technologies and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the embodiments shown in the figures are not intended to limit the embodiments of the present application and may include more or fewer steps than those shown, or some of the steps may be combined, or different steps may be included.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" is used to describe the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and the scope of the claims of the embodiments of the present application is not limited thereby. Any modifications, equivalents and improvements that may occur to those skilled in the art without departing from the scope and spirit of the embodiments of the present application are intended to be within the scope of the claims of the embodiments of the present application.

Claims (10)

1. A method for testing network video equipment is characterized by comprising the following steps:
acquiring a current video picture of equipment to be tested;
analyzing the picture content of the video picture to obtain picture information;
performing command generation according to preset test case information and the picture information to obtain an operation command;
sending the operation command to the equipment to be tested so that the equipment to be tested executes corresponding operation according to the operation command and receives return data fed back by the equipment to be tested; wherein the return data comprises: operation log data and device configuration data;
and comparing the operation log data, the equipment configuration data and preset reference data to obtain test result information.
2. The method of claim 1, wherein the picture information comprises: page text, text position information and color information; analyzing the picture content of the video picture to obtain picture information, wherein the picture information comprises:
analyzing the content of the video picture to obtain the page text;
acquiring the position information of the page text in the video picture to obtain the text position information;
and acquiring the color of the corresponding position of the video picture according to the text position information to obtain the color information.
3. The method according to claim 2, wherein the performing command generation according to preset test case information and the screen information to obtain an operation command comprises:
extracting keywords from the picture information according to the test case information to obtain keyword information;
and generating the operation command according to the keyword information.
4. The method according to claim 3, wherein before the comparing the operation log data, the device configuration data and the preset reference data to obtain the test result information, the method further comprises:
the reference data includes: operating process reference data and configuration reference data; the data comparison of the operation log data, the equipment configuration data and preset reference data is performed to obtain test result information, and the method comprises the following steps:
comparing and analyzing the operation log data and the operation process reference data to obtain operation process test information;
comparing the equipment configuration data with the configuration reference data to obtain the configuration test information;
and collecting the operation flow test information and the configuration test information to obtain the test result information.
5. The method of claim 4, wherein after the comparing the operation log data, the device configuration data, and the preset reference data to obtain the test result information, the method further comprises:
comparing the pictures before and after the test specifically comprises:
obtaining a picture of the equipment to be tested before testing to obtain an original picture;
obtaining a picture after the device to be tested is tested to obtain a target picture;
and comparing and analyzing the original picture and the target picture to obtain picture test information.
6. The method of claim 1, wherein prior to said obtaining a video footage of a device under test, the method further comprises:
with the equipment communication connection that awaits measuring specifically includes:
screening the equipment to be tested from the candidate equipment according to preset equipment identification information;
establishing communication connection with the equipment to be tested according to preset login information; wherein, the equipment to be tested is a network video recorder.
7. The method of claim 1, wherein after comparing the operation log data, the device configuration data, and preset reference data to obtain test result information, the method further comprises:
generating a test report, specifically comprising:
acquiring a report generation request; wherein the report generation request includes test requirement information;
and summarizing the test result information according to the test demand information and the test case information to obtain the test report.
8. A network video equipment testing device, characterized in that, the device includes:
the picture acquisition module is used for acquiring the current video picture of the equipment to be tested;
the picture analysis module is used for carrying out picture content analysis on the video picture to obtain picture information;
the command generation module is used for generating a command according to preset test case information and the picture information to obtain an operation command;
the command sending module is used for sending the operation command to the equipment to be tested so that the equipment to be tested executes corresponding operation according to the operation command and receives return data fed back by the equipment to be tested; wherein the return data comprises: operation log data and device configuration data;
and the digital comparison module is used for performing data comparison on the operation log data, the equipment configuration data and preset reference data to obtain test result information.
9. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the method for testing the network video recording device according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method for testing the network video recording device according to any one of claims 1 to 7.
CN202211206621.6A 2022-09-30 2022-09-30 Method and device for testing network video equipment, electronic equipment and storage medium Pending CN115474040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211206621.6A CN115474040A (en) 2022-09-30 2022-09-30 Method and device for testing network video equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211206621.6A CN115474040A (en) 2022-09-30 2022-09-30 Method and device for testing network video equipment, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115474040A true CN115474040A (en) 2022-12-13

Family

ID=84334922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211206621.6A Pending CN115474040A (en) 2022-09-30 2022-09-30 Method and device for testing network video equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115474040A (en)

Similar Documents

Publication Publication Date Title
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
CN109408384B (en) Software application testing method and device, processor and electronic device
CN107223246B (en) Image labeling method and device and electronic equipment
RU2439670C2 (en) System and method to implement control of remote computers
US10657036B2 (en) Determining visual testing coverages
CN108920380A (en) Test method, device, server, equipment and the storage medium of the software compatibility
CN106776294B (en) Automatic android mobile phone testing method and system
US11099657B2 (en) Remote information input method, device and system
CN112966772A (en) Multi-person online image semi-automatic labeling method and system
CN111124877B (en) Train display software testing method, device and system
CN110248235B (en) Software teaching method, device, terminal equipment and medium
CN109840212B (en) Function test method, device and equipment of application program and readable storage medium
CN111949517A (en) Remote real machine testing method and device and electronic equipment
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN111817916B (en) Test method, device, equipment and storage medium based on mobile terminal cluster
CN110968501A (en) Linkage testing method and device for application program compatibility
CN115474040A (en) Method and device for testing network video equipment, electronic equipment and storage medium
CN108021353B (en) Device, method, equipment and storage medium for generating description document of software product
CN102779090A (en) Performance measuring method and system for desktop virtualization systems
CN115905016A (en) BIOS Setup search function test method and device, electronic equipment and storage medium
CN111008140B (en) Cross-platform UI (user interface) automatic testing method and device
CN113923443A (en) Network video recorder testing method and device and computer readable storage medium
CN112579431A (en) Cross-platform script recording and playback method based on image recognition
CN110321257A (en) Abnormity screen compatibility test method, device, computer equipment and storage medium
CN113077735B (en) Test method, device and system of vehicle-mounted display equipment

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