CN117171035A - Product testing method, device, nonvolatile storage medium and computer equipment - Google Patents
Product testing method, device, nonvolatile storage medium and computer equipment Download PDFInfo
- Publication number
- CN117171035A CN117171035A CN202311149006.0A CN202311149006A CN117171035A CN 117171035 A CN117171035 A CN 117171035A CN 202311149006 A CN202311149006 A CN 202311149006A CN 117171035 A CN117171035 A CN 117171035A
- Authority
- CN
- China
- Prior art keywords
- testing
- product
- test
- target product
- network
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 404
- 238000000034 method Methods 0.000 claims abstract description 74
- 230000008569 process Effects 0.000 claims abstract description 47
- 238000009434 installation Methods 0.000 claims description 65
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000010998 test method Methods 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims 3
- 238000005516 engineering process Methods 0.000 abstract description 11
- 238000011161 development Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 230000010354 integration Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000012356 Product development Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 208000027418 Wounds and injury Diseases 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 208000014674 injury Diseases 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Testing Or Calibration Of Command Recording Devices (AREA)
Abstract
The invention discloses a product testing method, a device, a nonvolatile storage medium and computer equipment. Wherein the method comprises the following steps: acquiring a real-time image in a test room, wherein the test room is a room for testing a target product; judging whether an object irrelevant to the testing process exists in the testing room or not according to the real-time image; and under the condition that no irrelevant object exists in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product. The invention solves the technical problem of lower safety of testers caused by complex environment for product testing in the related technology.
Description
Technical Field
The invention relates to the technical field of product development testing, in particular to a product testing method and device, a nonvolatile storage medium and computer equipment.
Background
With the continuous development of artificial intelligence, development and testing of technology combining software and hardware, which is closely related to artificial intelligence, become a current hot spot. In order to improve the development and test efficiency, problems can be found more timely and earlier in the product development stage, and CICD integration can be adopted to develop and test software.
In the related CICD integration technology, the integration of functions that do not involve hardware operations is favored, and a portion of the product functions are monitored. For the continuous integration of the CICD with full functions of a product combining software and hardware, the operation of hardware, such as the movement of a robot arm, is involved, the test environment is complex, the construction of the corresponding CICD is complex, and the safety of a tester is difficult to maintain.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a product testing method, a device, a nonvolatile storage medium and computer equipment, which at least solve the technical problem of lower safety of testers caused by complex environment for product testing in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a product testing method including: acquiring a real-time image in a test room, wherein the test room is a room for testing a target product; judging whether an object irrelevant to the testing process exists in the testing room or not according to the real-time image; and under the condition that no irrelevant object exists in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product.
Optionally, testing the target product to generate a product test file, including: downloading target codes for testing target products from a first network, wherein the first network is connected with the Internet; determining an installation package corresponding to the target code according to the target code; installing the installation package to the target product through a second network, wherein the second network is connected with the target product and disconnected with the first network; and testing the target product of the installation package through a second network to generate a product test file.
Optionally, determining, according to the object code, an installation package corresponding to the object code includes: according to the target code, a test flow line is established, wherein the test flow line characterizes a test flow of the target product; and downloading the installation package corresponding to the target code through the first network according to the test pipeline.
Optionally, installing the installation package to the target product through the second network includes: transmitting the installation package to an operating system of the target product through a second network; restarting the operating system of the target product so that the installation package is installed to the target product.
Optionally, testing the target product with the installation package installed through a second network to generate a product test file, including: monitoring the connection state of the target product through a second network; and under the condition that the connection state of the target product is successful, testing the target product provided with the installation package through a second network, and generating a product test file.
Optionally, before testing the target product and generating the product test file, the method further comprises: acquiring the opening and closing state of a safety door of a test room; when the switch state is the door opening state, a door closing command is generated and sent to the safety door.
Optionally, the method further comprises: acquiring a manual switch signal of the safety door of the test room, wherein the manual switch signal represents a manual operation instruction for the safety door of the test room, and the manual signal switch comprises a manual opening of the safety door and a manual closing of the safety door; and under the condition that the manual switch signal is a manual switch for opening the safety door, terminating the test process of the target product.
According to another aspect of the embodiment of the present invention, there is also provided a product testing apparatus, including: the acquisition module is used for acquiring real-time images in a test room, wherein the test room is a room for testing a target product; the judging module is used for judging whether an object irrelevant to the testing process exists in the testing room according to the real-time image; the test module is used for testing the target product under the condition that no irrelevant object exists in the test room, and generating a product test file, wherein the product test file is used for describing the result of testing the target product.
According to still another aspect of the embodiments of the present invention, there is further provided a nonvolatile storage medium, the nonvolatile storage medium including a stored program, wherein when the program runs, a device on which the nonvolatile storage medium is controlled to execute any one of the product testing methods described above.
According to still another aspect of the embodiment of the present invention, there is further provided a computer device, including a processor, configured to execute a program, where the program executes any one of the product testing methods described above.
In the embodiment of the invention, a mode of detecting whether an object irrelevant to a test process exists in a test room is adopted, and a real-time image in the test room is acquired, wherein the test room is a room for testing a target product; judging whether an object irrelevant to the testing process exists in the testing room or not according to the real-time image; under the condition that no irrelevant object exists in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product, and the purpose that the product test is performed only when no object irrelevant to the test process exists in the test room is achieved, so that the technical effect of improving the safety of testers is achieved, and the technical problem of lower safety of testers due to complex environment for performing product test in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 shows a block diagram of the hardware architecture of a computer terminal for implementing a product testing method;
FIG. 2 is a flow chart of a method for testing a product according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a product testing environment provided in accordance with an alternative embodiment of the present application;
FIG. 4 is a schematic diagram of a product testing process provided in accordance with an alternative embodiment of the present application;
fig. 5 is a block diagram of a product testing apparatus according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise 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.
First, partial terms or terminology appearing in the course of describing the embodiments of the application are applicable to the following explanation:
sustainable integrated and continuous Deployment (CICD) is a methodology for automating software development processes, improving development efficiency and ensuring application quality by continuously integrating, building, testing and publishing code.
Pipeline (pipeline) technology refers to a quasi-parallel processing implementation technology in which multiple instructions overlap to operate when a program is executed.
In accordance with an embodiment of the present application, there is provided a method embodiment of product testing, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
The method according to the first embodiment of the present application may be implemented in a mobile terminal, a computer terminal or a similar computing device. Fig. 1 shows a block diagram of a hardware structure of a computer terminal for implementing a product testing method. As shown in fig. 1, the computer terminal 10 may include one or more (shown as 102a, 102b, … …,102 n) processors (which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuits described above may be referred to herein generally as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module or incorporated, in whole or in part, into any of the other elements in the computer terminal 10. As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the product testing method in the embodiments of the present application, and the processor executes the software programs and modules stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the product testing method of the application program. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor, which may be connected to the computer terminal 10 via 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 display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10.
Fig. 2 is a flow chart of a product testing method according to an embodiment of the invention, as shown in fig. 2, the method includes the following steps:
step S202, acquiring a real-time image in a test room, wherein the test room is a room for testing a target product.
In the step, the target product can be a robot or other products; the test of the target product can be that a test code for indicating the robot to perform various actions is input into a controller of the robot, and whether the robot performs various actions according to the indication of the test code is tested; testing of the target product may be an automated testing process. That is, the test performed on the target product referred to in the present invention may be an automated test performed on a robot based on CICD. The test room can be a room specially prepared for testing products, a camera can be arranged in the room, and other devices for testing the products can also be arranged in the room. The camera in the test room can monitor the conditions in the test room in real time. The execution subject of the method can be a server, the server can be a server running CICD, and the server can acquire real-time images in the test room by reading information of the camera.
Step S204, judging whether an object irrelevant to the testing process exists in the testing room according to the real-time image.
In this step, the object unrelated to the testing process, that is, the object not participating in the testing process, may be provided with a plurality of devices for performing the product test or assisting the product test in the testing room, and before performing the product test, it is required to ensure that only the devices for performing the product test exist in the testing room, and the object unrelated to the testing process cannot appear in the testing room. The object unrelated to the test procedure may be a tester, or may be another product that does not participate in the test, or the like, and the object other than the test equipment used for the test procedure is an object unrelated to the test procedure.
The server can judge whether the object irrelevant to the testing process exists in the testing room according to the image recognition, or can judge whether the object irrelevant to the testing process exists in the testing room by displaying the video to a tester positioned outside the testing room, and the server can obtain a judging result from the tester.
Step S206, testing the target product under the condition that no irrelevant object exists in the testing room, and generating a product testing file, wherein the product testing file is used for describing the result of testing the target product.
In this step, when there is an irrelevant object in the test room, the product test flow is not started, and only when there is no object irrelevant to the test process in the test room, the target product can be prepared for testing, and the product test file is generated. The product test file specifically may be a report describing a test result of the target product, and the report may include information of the target product, test conditions, and the like; the product test file can also be descriptive text of the test result of the target product, such as test success or failure; the product test file may also be a table indicating the test results. Because the target product can be a robot, unexpected conditions can occur in the test room when the robot is used for testing, if a tester is positioned in the test room, the safety of the tester is easily threatened, so that the product can be tested only when the tester is judged to be not in the test room, and a product detection file is generated.
Through the steps, the purpose that no object irrelevant to the testing process is used for testing the product in the testing room can be achieved, so that the technical effect of improving the safety of the tester is achieved, and the technical problem of lower safety of the tester caused by complex environment for testing the product in the related technology is solved.
As an alternative embodiment, the target product is tested, and the product test file is generated, which may be implemented by the following steps: downloading target codes for testing target products from a first network, wherein the first network is connected with the Internet; determining an installation package corresponding to the target code according to the target code; installing the installation package to the target product through a second network, wherein the second network is connected with the target product and disconnected with the first network; and testing the target product of the installation package through a second network to generate a product test file.
Optionally, in order to ensure the security of product testing in the network field and prevent the product testing process from being attacked by the network, two network cards may be set in the server, and respectively connected to two networks, where the first network may be connected to an external network or a code library, and the second network is separated from the first network and used for connecting with a device between tests, and controlling the target product and the device between tests to perform product testing. When no tester exists in the test room, the product test flow can be started, the server can download codes uploaded by the developer through the first network, namely target codes for testing target products, and can download test codes for indicating testing from a test code library through the first network. The installation package can be determined according to the target code, and after the installation package is installed to the target product through the second network, a product testing process can be performed to obtain a product testing result, and a product testing file is generated.
It should be noted that, the test code and the target code are different, the target code is the code to be tested whether the vulnerability appears in the product test, the installation package corresponding to the target code can be installed on the target product, and then a series of feedback tests are performed on the target product, so that the test results of the target code and the target product can be obtained, and the product test file is generated; when the feedback test is performed on the target product, an automatic test mode can be adopted, namely, test codes indicating the test flow can be downloaded from a test code library, and the server can test the target product by running the test codes.
As an alternative embodiment, according to the object code, determining the installation package corresponding to the object code may be implemented by the following steps: according to the target code, a test flow line is established, wherein the test flow line characterizes a test flow of the target product; and downloading the installation package corresponding to the target code through the first network according to the test pipeline.
Optionally, after the server obtains the object code uploaded by the developer, a development pipeline can be established according to the object code, and after the development pipeline is successfully established, a test pipeline is triggered to start a test flow. The test flow is indicated in the computer field in pipeline technology. The test flow indicates that the test starts, and the installation package corresponding to the target code needs to be downloaded through the first network, namely, the installation package generated according to the development assembly line can be installed on the target product, so that the subsequent product test flow is performed.
As an alternative embodiment, the installation package is installed to the target product through the second network by: transmitting the installation package to an operating system of the target product through a second network; restarting the operating system of the target product so that the installation package is installed to the target product.
Alternatively, after downloading the installation package through the first network, the server may install the installation package on the target product through the second network, that is, place the installation package in a designated folder in the operating system of the target product, and then may validate the installation package on the target product by restarting the operating system of the target product.
As an alternative embodiment, the target product with the installation package installed is tested through the second network, and the product test file is generated, which can be implemented through the following steps: monitoring the connection state of the target product through a second network; and under the condition that the connection state of the target product is successful, testing the target product provided with the installation package through a second network, and generating a product test file.
Optionally, the connection relationship between the target product of the hardware and the server can be detected, and when the target product and the server are successfully connected, the server can automatically test the target product and generate a product test file.
As an alternative embodiment, before testing the target product and generating the product test file, the method may further include the following steps: acquiring the opening and closing state of a safety door of a test room; when the switch state is the door opening state, a door closing command is generated and sent to the safety door.
Optionally, in order to further ensure the safety of the tester, the open/close state of the safety door between the tests can be obtained before the target product is tested, if the open/close state of the safety door is in the open state, the product testing environment is unsafe, and in the testing process, the object which does not participate in the testing process may enter the testing room, so as to influence the testing process, and if the object enters the testing room, the safety of the tester may be dangerous. Therefore, the target product can be tested under the condition that the switch state of the safety door is detected to be the door closing state; if the switch state of the safety door is detected to be in the door opening state, generating a door closing command and sending the command to the safety door until the switch state of the safety door is detected to be in the door closing state, and then carrying out product test.
As an alternative embodiment, it may further include: acquiring a manual switch signal of the safety door of the test room, wherein the manual switch signal represents a manual operation instruction for the safety door of the test room, and the manual signal switch comprises a manual opening of the safety door and a manual closing of the safety door; and under the condition that the manual switch signal is a manual switch for opening the safety door, terminating the test process of the target product.
Alternatively, to ensure control of the test flow by the tester, the operating button of the target product may be connected to outside the test room, so that the tester may manually operate the target product outside the test room. The safety door can be manually opened by a tester if an accident occurs in the testing process, and at the moment, in order to ensure the safety of the tester, the server can send a command for stopping the test to a target product under the condition that the manual opening and closing signal of the safety door is manual opening of the safety door, so that the testing process of the target product is stopped, and the reason for stopping the test can be described in the product testing file, namely that the manual opening and closing signal of the safety door is manual opening of the safety door.
As a specific embodiment, fig. 3 is a schematic diagram of a product testing environment provided according to an alternative embodiment of the present invention, as shown in fig. 3, the product testing environment may be built, and specifically includes a CICD server having two network cards that cannot communicate with each other, where a network card 1 of the two network cards is connected to a code library and an external network in the same network, so as to facilitate environment setting of the server, triggering of the CICD, and configuration setting and debugging of the server by a person, that is, the first network described above; the network card 2 and the equipment and the personal computer of the test room are in one network, so that the implementation of CICD is convenient, and the operation and the debugging of the test room by the research and development personnel, namely the second network are convenient. Wherein the first network and the second network are also non-interworking on the personal computer.
As shown in fig. 3, a developer uses a personal computer to connect with a server through a router 1 to configure and debug the server, so as to ensure perfect CICD configuration of the server and connection of hardware products (such as a robot) between tests. The research and development personnel can also connect the test room through the router 2 network: the configuration of the test room can be set by oneself; the method can also debug each independent signal between tests, such as a door switch signal, a door manual switch signal, operation and signal feedback of an external manual button and a camera visual signal; and meanwhile, the execution condition of the CICD is monitored. The server realizes the interaction requirement of external network dependence, a product code library and a test code library through the network card 1, realizes the interaction requirement of operation through the network card 2, and completes the actual execution of CICD. The camera visual signal of the test room is used for monitoring whether a person exists in the test room, and the automatic deployment and test execution links of CICD are not operable when the person exists, so that the injury to the person caused by the test process is avoided. When the CICD is automatically executed, a door switch signal of the testing room needs to be monitored, namely whether the safety door is closed or not is monitored, if the safety door is not closed, a control instruction for closing the safety door of the testing room needs to be sent through the network card 2, and the safety door of the testing room is closed.
In CICD operation, human intervention will get the highest response. When the door manual switch of the test room is shifted, the corresponding door manual switch signal is sent out and received by the server, the server sends out a CICD stop command, and the corresponding hardware movement of the test room is stopped. In the CICD running process, part of internal and external buttons or functions of the product can be externally connected through an external manual button of the product, and an operation signal of the product is accessed to the network 2 through operation and feedback of the external manual button, so that automation of the functions of the hardware product in a larger range is realized. The hardware product is connected into the network 2 through a 'control operation on the hardware product', so that the most important automation of deployment, operation and test on the hardware product in the CICD process is realized.
FIG. 4 is a schematic diagram of a product testing process provided according to an alternative embodiment of the present invention, and as shown in FIG. 4, is a logic diagram of a CICD automated operation process according to the present invention.
Step 1, a developer uploads a development code for enabling a target product to achieve a certain function, and the development pipeline is automatically triggered and established through a server and is successfully established.
And 2, triggering the test pipeline after the established development pipeline is successful, connecting the server through the network 2, and starting CICD operation of the server.
Step 3, the server downloads the installation package obtained by the development pipeline through the network 1, namely the first network. Then, through the network 1, the automatic test code in the test automatic code library is downloaded, wherein the automatic test code is used for testing the target product.
And 4, the server acquires camera visual signals, namely inter-test images shot by the camera, through the network 2, namely the second network.
Step 5, the server judges whether a person or foreign matter exists in the test room through the image of the test room; if yes, directly suspending the execution of the current CICD to step 12; if not, continuing CICD execution.
Step 6, the server obtains a signal of whether the safety door of the test room is closed or not through the network 2: if the safety door is not closed, the safety door is closed, so that automatic testing and no intrusion of personnel or foreign matters during the operation of hardware are ensured, and the safety of personnel and the stability of testing are ensured; if it has, it continues to step 7.
And 7, the server is connected with the bottom operating system of the hardware product through the network 2, transmits the installation package to the designated installation folder of the operating system, and restarts the operating system to take effect of updating the installation package. This step is the installation and deployment link of the hardware product.
And 8, periodically monitoring whether the hardware is restarted successfully by the server through the network 2, and continuously sending ping commands and the like by the server to acquire information about whether the hardware product can be connected.
Step 9, judging whether the hardware product can be successfully connected: if the server cannot be connected with the successful hardware product, continuing to monitor the hardware product in the next period; if the connection is successful, proceed to step 10.
And 10, after the deployment of the software installation package of the hardware is completed, starting an automatic CICD test link. In the automatic test execution process of the scheme, the server can monitor a door manual switch signal in real time. If the door manual switch is triggered, the test automation operation is terminated, and the flow jumps to step 12; if the process has not been triggered, it continues to step 11.
And 11, completing the test automation execution.
Step 12, under various abnormal scenes, the CICD test is directly interrupted in consideration of safety and test effectiveness.
And step 13, after normal or abnormal ending, resetting the environments of the server and the hardware products, and recovering the environments to the environments before pipeline operation, so as to ensure the environmental stability of the next CICD test execution. And will send instructions for the deployment of the installation package and the test results to the corresponding product, development, test.
And 14, ending the whole testing process.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the above description of the embodiments, it will be clear to those skilled in the art that the product testing method according to the above embodiments may be implemented by means of software plus necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to an embodiment of the present invention, there is further provided a product testing apparatus for implementing the product testing method, and fig. 5 is a block diagram of a structure of the product testing apparatus provided according to an embodiment of the present invention, as shown in fig. 5, the product testing apparatus includes: the product testing device is described below as an acquisition module 52, a judgment module 54 and a testing module 56.
The acquiring module 52 is configured to acquire a real-time image in a test room, where the test room is a room for testing the target product.
And the judging module 54 is connected with the acquiring module 52 and is used for judging whether an object irrelevant to the testing process exists in the testing room according to the real-time image.
The testing module 56 is connected to the judging module 54, and is configured to test the target product to generate a product testing file when no unrelated object exists in the testing room, where the product testing file is used to describe a result of testing the target product.
Here, it should be noted that the above-mentioned obtaining module 52, the judging module 54 and the testing module 56 correspond to step S202 to step S206 in the embodiment, and the plurality of modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above-mentioned embodiment. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in the embodiment.
Embodiments of the present invention may provide a computer device, optionally in this embodiment, the computer device may be located in at least one network device of a plurality of network devices of a computer network. The computer device includes a memory and a processor.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the product testing method and apparatus in the embodiments of the present invention, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the product testing method described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located relative to the processor, which may be connected to the computer terminal via 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 processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: acquiring a real-time image in a test room, wherein the test room is a room for testing a target product; judging whether an object irrelevant to the testing process exists in the testing room or not according to the real-time image; and under the condition that no irrelevant object exists in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product.
Optionally, the above processor may further execute program code for: testing the target product to generate a product test file, including: downloading target codes for testing target products from a first network, wherein the first network is connected with the Internet; determining an installation package corresponding to the target code according to the target code; installing the installation package to the target product through a second network, wherein the second network is connected with the target product and disconnected with the first network; and testing the target product of the installation package through a second network to generate a product test file.
Optionally, the above processor may further execute program code for: according to the target code, determining an installation package corresponding to the target code, including: according to the target code, a test flow line is established, wherein the test flow line characterizes a test flow of the target product; and downloading the installation package corresponding to the target code through the first network according to the test pipeline.
Optionally, the above processor may further execute program code for: installing an installation package to a target product through a second network, comprising: transmitting the installation package to an operating system of the target product through a second network; restarting the operating system of the target product so that the installation package is installed to the target product.
Optionally, the above processor may further execute program code for: testing the target product with the installation package through a second network to generate a product test file, wherein the product test file comprises: monitoring the connection state of the target product through a second network; and under the condition that the connection state of the target product is successful, testing the target product provided with the installation package through a second network, and generating a product test file.
Optionally, the above processor may further execute program code for: before testing the target product and generating the product test file, the method further comprises the following steps: acquiring the opening and closing state of a safety door of a test room; when the switch state is the door opening state, a door closing command is generated and sent to the safety door.
Optionally, the above processor may further execute program code for: further comprises: acquiring a manual switch signal of the safety door of the test room, wherein the manual switch signal represents a manual operation instruction for the safety door of the test room, and the manual signal switch comprises a manual opening of the safety door and a manual closing of the safety door; and under the condition that the manual switch signal is a manual switch for opening the safety door, terminating the test process of the target product.
By adopting the embodiment of the invention, a product testing scheme is provided. The method comprises the steps that a mode of detecting whether an object irrelevant to a test process exists in a test room or not is adopted, and a real-time image in the test room is obtained, wherein the test room is a room for testing a target product; judging whether an object irrelevant to the testing process exists in the testing room or not according to the real-time image; under the condition that no irrelevant object exists in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product, and the purpose that the product test is performed only when no object irrelevant to the test process exists in the test room is achieved, so that the technical effect of improving the safety of testers is achieved, and the technical problem of lower safety of testers due to complex environment for performing product test in the related technology is solved.
Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute on associated hardware, the program may be stored in a non-volatile storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Embodiments of the present invention also provide a nonvolatile storage medium. Alternatively, in the present embodiment, the nonvolatile storage medium may be used to store the program code executed by the product testing method provided in the above embodiment.
Alternatively, in this embodiment, the above-mentioned nonvolatile storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: acquiring a real-time image in a test room, wherein the test room is a room for testing a target product; judging whether an object irrelevant to the testing process exists in the testing room or not according to the real-time image; and under the condition that no irrelevant object exists in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: testing the target product to generate a product test file, including: downloading target codes for testing target products from a first network, wherein the first network is connected with the Internet; determining an installation package corresponding to the target code according to the target code; installing the installation package to the target product through a second network, wherein the second network is connected with the target product and disconnected with the first network; and testing the target product of the installation package through a second network to generate a product test file.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: according to the target code, determining an installation package corresponding to the target code, including: according to the target code, a test flow line is established, wherein the test flow line characterizes a test flow of the target product; and downloading the installation package corresponding to the target code through the first network according to the test pipeline.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: installing an installation package to a target product through a second network, comprising: transmitting the installation package to an operating system of the target product through a second network; restarting the operating system of the target product so that the installation package is installed to the target product.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: testing the target product with the installation package through a second network to generate a product test file, wherein the product test file comprises: monitoring the connection state of the target product through a second network; and under the condition that the connection state of the target product is successful, testing the target product provided with the installation package through a second network, and generating a product test file.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: before testing the target product and generating the product test file, the method further comprises the following steps: acquiring the opening and closing state of a safety door of a test room; when the switch state is the door opening state, a door closing command is generated and sent to the safety door.
Optionally, in the present embodiment, the non-volatile storage medium is arranged to store program code for performing the steps of: further comprises: acquiring a manual switch signal of the safety door of the test room, wherein the manual switch signal represents a manual operation instruction for the safety door of the test room, and the manual signal switch comprises a manual opening of the safety door and a manual closing of the safety door; and under the condition that the manual switch signal is a manual switch for opening the safety door, terminating the test process of the target product.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (10)
1. A method of testing a product, comprising:
acquiring a real-time image in a test room, wherein the test room is a room for testing a target product;
judging whether an object irrelevant to a test process exists in the test room according to the real-time image;
and under the condition that the irrelevant objects do not exist in the test room, testing the target product to generate a product test file, wherein the product test file is used for describing the result of testing the target product.
2. The method of claim 1, wherein the testing the target product to generate a product test file comprises:
downloading target codes for testing the target product from a first network, wherein the first network is connected with the Internet;
determining an installation package corresponding to the target code according to the target code;
installing the installation package to the target product through a second network, wherein the second network is connected with the target product and disconnected with the first network;
and testing the target product provided with the installation package through the second network, and generating the product test file.
3. The method according to claim 2, wherein the determining, according to the object code, an installation package corresponding to the object code includes:
establishing a test assembly line according to the target code, wherein the test assembly line characterizes a test flow of the target product;
and downloading the installation package corresponding to the target code through the first network according to the test pipeline.
4. The method of claim 2, wherein the installing the installation package to the target product over a second network comprises:
sending the installation package to an operating system of the target product through the second network;
restarting the operating system of the target product so that the installation package is installed to the target product.
5. The method of claim 2, wherein the testing the target product for installing the installation package via the second network to generate the product test file comprises:
monitoring the connection state of the target product through the second network;
and under the condition that the connection state of the target product is successful, testing the target product provided with the installation package through the second network, and generating the product test file.
6. The method of claim 1, further comprising, prior to testing the target product to generate a product test file:
acquiring the switch state of a safety door of the test room;
and generating a door closing command and sending the door closing command to the safety door when the switch state is the door opening state.
7. The method according to any one of claims 1 to 6, further comprising:
acquiring a manual switch signal of the safety door of the test room, wherein the manual switch signal represents a manual operation instruction for the safety door of the test room, and the manual signal switch comprises a manual opening of the safety door and a manual closing of the safety door;
and under the condition that the manual switch signal is the manual opening of the safety door, terminating the testing process of the target product.
8. A product testing device, comprising:
the acquisition module is used for acquiring real-time images in a test room, wherein the test room is a room for testing a target product;
the judging module is used for judging whether an object irrelevant to the testing process exists in the testing room according to the real-time image;
The test module is used for testing the target product under the condition that the irrelevant objects do not exist in the test room, and generating a product test file, wherein the product test file is used for describing the result of testing the target product.
9. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the product testing method of any one of claims 1 to 7.
10. A computer device, comprising: a memory and a processor, wherein the memory is configured to store,
the memory stores a computer program;
the processor being configured to execute a computer program stored in the memory, the computer program when run causing the processor to perform the product testing method of any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311149006.0A CN117171035A (en) | 2023-09-06 | 2023-09-06 | Product testing method, device, nonvolatile storage medium and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311149006.0A CN117171035A (en) | 2023-09-06 | 2023-09-06 | Product testing method, device, nonvolatile storage medium and computer equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117171035A true CN117171035A (en) | 2023-12-05 |
Family
ID=88944613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311149006.0A Pending CN117171035A (en) | 2023-09-06 | 2023-09-06 | Product testing method, device, nonvolatile storage medium and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117171035A (en) |
-
2023
- 2023-09-06 CN CN202311149006.0A patent/CN117171035A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112291621B (en) | System upgrading automation test method, device and test equipment | |
| CN110874295B (en) | Test method and system for boot verification after abnormal shutdown | |
| CN106201796A (en) | The collocation method of a kind of test and device | |
| US20130318400A1 (en) | Electronic device, system, and method for testing exception handling mechanism | |
| CN107608848A (en) | Method of testing and system | |
| CN112388641A (en) | Robot control method, control equipment, robot and system | |
| CN104268041A (en) | Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display | |
| CN111338951A (en) | Wireless intelligent household appliance detection method and system | |
| CN111104270A (en) | Hardware configuration detection device and equipment of storage equipment and storage medium | |
| CN112682301B (en) | Water pump inspection method, inspection system, water pump and computer readable storage medium | |
| CN114378862A (en) | Robot abnormity automatic repairing method and device based on cloud platform and robot | |
| CN110287112B (en) | Maintenance method and device for client and readable storage medium | |
| CN117171035A (en) | Product testing method, device, nonvolatile storage medium and computer equipment | |
| CN114670200B (en) | Automatic test method applied to robot, computer storage medium and robot | |
| CN111128139A (en) | Non-invasive voice testing method and device | |
| CN114138587B (en) | Reliability verification method, device and equipment for server power supply firmware upgrade | |
| CN110134558B (en) | Method and device for detecting server | |
| CN112596946B (en) | Service running state control method and device, electronic equipment and storage medium | |
| CN118964157A (en) | Server operation performance testing method and device | |
| CN117793340A (en) | Method, device, equipment and storage medium for monitoring state of set top box | |
| CN115733741B (en) | A method and device for abnormal scenario testing of a system under test | |
| CN119025346A (en) | Stability testing method, device, equipment and storage medium | |
| CN114240900A (en) | Pressure testing system and method for restoring factory settings | |
| CN117400301B (en) | Robot detection method, device and nonvolatile storage medium | |
| CN114741273A (en) | Remote real mobile terminal testing method, device, storage medium and 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 |