CN112291621B - System upgrading automation test method, device and test equipment - Google Patents

System upgrading automation test method, device and test equipment Download PDF

Info

Publication number
CN112291621B
CN112291621B CN202011182292.7A CN202011182292A CN112291621B CN 112291621 B CN112291621 B CN 112291621B CN 202011182292 A CN202011182292 A CN 202011182292A CN 112291621 B CN112291621 B CN 112291621B
Authority
CN
China
Prior art keywords
test
serial port
intelligent television
television
smart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011182292.7A
Other languages
Chinese (zh)
Other versions
CN112291621A (en
Inventor
余辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011182292.7A priority Critical patent/CN112291621B/en
Publication of CN112291621A publication Critical patent/CN112291621A/en
Application granted granted Critical
Publication of CN112291621B publication Critical patent/CN112291621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

The embodiment of the application provides a system upgrading automatic test method, a system upgrading automatic test device and test equipment, wherein the method is applied to the test equipment, the test equipment is used for being connected with a smart television through a serial port, and the method comprises the following steps: when the situation that the smart television enters a system upgrading process is detected, monitoring the system upgrading progress of the smart television in real time, controlling the power supply of the smart television to be switched off and on according to a preset test strategy, receiving serial port printing information of the smart television when the power supply of the smart television is switched on again each time, and judging whether the smart television fails to be upgraded or not; and when the upgrade failure is judged, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking. According to the technical scheme, the automatic test of the smart television in the system upgrading process can be realized, the software testing efficiency is improved, and the stability of the system under the emergency condition can be improved by carrying out limit test, so that the user experience is improved.

Description

System upgrading automation test method, device and test equipment
Technical Field
The application relates to the technical field of smart televisions, in particular to a system upgrading automatic testing method, a system upgrading automatic testing device and testing equipment.
Background
In the process of upgrading the smart television, upgrading interruption may be caused by some external factors, so that the upgrading packet is damaged, the upgrading packet cannot be taken down or the upgrading fails, or in the process of upgrading, if a power failure condition occurs, the smart television is abnormally shut down, the upgrading program is forced to be interrupted, the executed upgrading program is also erased, the upgrading fails, after the smart television is powered on again, the upgrading process is abnormal, the upgrading operation cannot be continued, and in severe cases, the system is abnormal in starting, so that a user cannot start the smart television.
In order to meet the requirements of users in the emergency situations, limit tests are often required, and if such tests are performed manually, a large amount of manual resources are required to perform repeated limit tests, which greatly reduces the efficiency of test work.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus and a testing device for automated testing of system upgrade, so as to overcome the deficiencies in the prior art.
The embodiment of the application provides a system upgrading automatic test method, which is applied to test equipment, wherein the test equipment is used for being connected with a smart television through a serial port, and the method comprises the following steps:
when the fact that the intelligent television enters a system upgrading process is detected, monitoring the system upgrading progress of the intelligent television in real time, and controlling the power supply of the intelligent television to be switched on and off according to a preset test strategy; the preset test strategy comprises a first preset number of specified system upgrading schedules used for indicating upgrading power-off operation time;
receiving serial port printing information of the intelligent television when the power supply of the intelligent television is reconnected every time, wherein the serial port printing information is used for judging whether the intelligent television fails to be upgraded or not;
and when the upgrade failure is judged, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
In one embodiment, the test equipment is further used for controlling a power supply device to be connected with a network router through a serial port, the smart television is used for being connected with a cloud server through the network router, and the cloud server stores system upgrading data of the latest system version; before the smart television enters a system upgrading process, the method further comprises the following steps:
when the fact that the smart television starts to download the system upgrading data from the cloud server is detected, monitoring the downloading progress of the smart television in real time, and controlling the power supply of the smart television or the network router to be switched on and off through the serial port control power supply device according to the preset test strategy; the preset test strategy comprises a second preset number of appointed download progress used for indicating the download power-off operation time and a third preset number of appointed download progress used for indicating the network-off operation time;
receiving serial port printing information of the intelligent television when the power supply of the intelligent television is reconnected every time or the intelligent television is reconnected every time, wherein the serial port printing information is used for judging whether the intelligent television fails to download or not;
and when the downloading failure does not occur during each reconnection of the television power supply and each reconnection of the network, confirming that the intelligent television successfully downloads the system upgrading data of the latest system version.
In one embodiment, the system upgrade automation test method further comprises:
and if the download fails, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
In one embodiment, the system upgrade automation test method further includes:
if the upgrade failure does not occur when the television power supply is reconnected every time, reading the system version number after the intelligent television is upgraded after detecting that the system upgrade process is finished, and confirming that the intelligent television is upgraded successfully when judging that the system version number is the latest system version number.
In an embodiment, after confirming that the upgrade of the smart television is successful, if there are multiple inventory system versions of the smart television, the method further includes:
controlling the intelligent television to be switched to an untested stock system version, and re-executing the system upgrading automation test on the intelligent television;
and after the intelligent television is successfully upgraded, controlling to switch to the next untested stock system version for carrying out automatic system upgrade testing until all stock system versions are tested.
In one embodiment, the testing device is configured to connect the smart television and the controllable power socket of the network router through a serial port control power supply apparatus, where the serial port control power supply apparatus includes a USB serial port converter and a relay, the USB serial port converter is connected to the testing device, and the relay is configured to connect the smart television and the controllable power socket of the network router;
the controlling the power of the intelligent television or the network router to be switched on and off comprises the following steps:
the testing equipment controls the relay to be closed or opened through the USB serial port converter, so that the controllable power socket of the intelligent television or the network router is correspondingly connected or disconnected with an alternating current power supply.
The embodiment of the application further provides an automatic testing arrangement of system upgrade, is applied to test equipment, test equipment is used for connecting smart television through the serial ports, the device includes:
the upgrading test module is used for monitoring the system upgrading progress of the intelligent television in real time after detecting that the intelligent television enters a system upgrading process, and controlling the power supply of the intelligent television to be switched on and off according to a preset test strategy; the preset test strategy comprises a first preset number of specified system upgrading schedules used for indicating upgrading power-off operation time;
the first processing module is used for receiving serial port printing information of the intelligent television when the power supply of the intelligent television is switched on again each time, and the serial port printing information is used for judging whether the intelligent television fails to be upgraded or not; and when the upgrade failure is judged, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
The embodiment of the application further provides a testing device, the testing device comprises a serial port, a processor and a memory, the serial port is used for being connected with the smart television, the memory stores a computer program, and the processor is used for executing the computer program to implement the system upgrading automatic testing method.
In one embodiment, the test apparatus further comprises: and the test equipment is used for connecting a controllable power socket of the intelligent television through the serial port control power supply device.
Embodiments of the present application further provide a readable storage medium, which stores a computer program, and when executed, the computer program implements the above-mentioned system upgrade automation test method.
The embodiment of the application has the following advantages:
according to the system upgrading automatic testing method, after the intelligent television enters a system upgrading process, the system upgrading progress of the intelligent television is monitored in real time, the power is cut off when the specified system upgrading progress is reached so as to simulate the reaction after the intelligent television is tested to be powered on again when sudden power failure occurs in actual application, if upgrading failure occurs, the test is stopped, the test result at the moment is printed and sent to a tester for checking, and of course, optionally, if the intelligent television does not have upgrading failure during each simulation power-off operation, the situation that the intelligent television can better cope with the simulation power-off situation occurring in the actual system upgrading process is shown. The automatic testing method can well and repeatedly carry out limit testing, and compared with manual testing, the method can greatly improve the efficiency of testing work.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows an upgrade test flow diagram of a system upgrade automation test method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an application of the system upgrade automation test method according to the embodiment of the present application;
FIG. 3 is a schematic view showing a download test flow of the system upgrade automation test method according to the embodiment of the present application;
FIG. 4 shows a first schematic structural diagram of a system upgrade automation test device of an embodiment of the present application;
fig. 5 shows a second structural schematic diagram of the system upgrade automation test device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numerals, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the presence of or adding to one or more other features, numerals, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. Terms such as those defined in commonly used dictionaries will be interpreted as having a meaning that is the same as a contextual meaning in the related art and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein in various embodiments.
Example 1
Referring to fig. 1, the present embodiment provides a system upgrade automated testing method, which can be applied to the testing device 10 shown in fig. 2, where the testing device 10 is mainly used for implementing a system upgrade automated test of an intelligent television. The method can greatly improve the testing efficiency and the like.
In this embodiment, the testing device 10 is connected to the smart tv 20 as a test object through a serial port, so as to communicate with the connected smart tv 20 through the serial port and obtain corresponding test data during the testing process. In one embodiment, the test device 10 may be a computer device or the like. The serial port is also called a COM port, i.e., a serial communication port. Before starting the test, the test device 10 exemplarily selects a serial port connected to the smart television 20 and performs corresponding operations such as serial baud rate setting, thereby establishing the serial port connection between the test device 10 and the smart television 20.
As shown in FIG. 1, the automatic testing method for upgrading the system is explained below.
S110, it is detected whether the smart tv 20 enters a system upgrade process.
And S120, monitoring the system upgrading progress of the intelligent television 20 in real time after the upgrading process is detected to enter.
Generally, after downloading the system upgrade data with a higher version, the smart television 20 will enter a system upgrade flow to upgrade and update its own system software. Exemplarily, the testing device 10 may obtain the real-time status information of the smart television 20 through a serial port, for example, after the smart television 20 enters a system upgrade process, the testing device 10 may obtain the system upgrade progress of the smart television 20 in real time by writing a corresponding testing software script, for example, the upgrade progress is 10%, 20%, 50%, 8230;, 75%, and the like.
And S130, controlling the power of the intelligent television 20 to be switched on and off according to a preset test strategy. The preset test strategy comprises a plurality of designated system upgrading schedules for indicating the power-off operation time.
In order to test whether the situation that the upgrade fails occurs in the actual system upgrade process of the smart television 20, the smart television 20 is subjected to power off simulation in different stages of the system upgrade in the present embodiment, so as to test the response of the smart television 20 to sudden power off and power on again during the upgrade.
Exemplarily, the testing device 10 will control the power-on and power-off of the smart tv 20 at different system upgrade progress nodes according to a preset testing policy, that is, control the power of the smart tv 20 to be turned off and on. In this embodiment, the preset test policy may include, but is not limited to, a plurality of specified system upgrade schedules for indicating the power-off operation time, for example, the power of the smart tv 20 may be controlled to be turned off once when the system upgrade schedules are 20%, 40%, 60%, 75%, 90%, and the like, respectively, so as to monitor the reaction of the smart tv 20 at each time of power-back. It is to be understood that the above-listed several upgrade progress nodes are only examples, and are not intended to be a specific limitation on the plurality of specified system upgrade progress nodes.
In one embodiment, as shown in fig. 2, the test device 10 may control the power of the smart tv 20 to be turned off and on by controlling the power supply apparatus 101 through a serial port. Exemplarily, the serial port control power supply device 101 includes a USB serial port converter and a relay, wherein the USB serial port converter is used for performing serial port command conversion and driving the relay, the USB serial port converter is connected to the USB interface of the testing device 10, and the relay is used for connecting to the controllable power socket of the smart tv 20, for example, a normally open contact or a normally closed contact of the relay is to be connected to an ac control pin of the controllable power socket. When the test device 10 sends a serial port control command, the USB serial port converter converts the serial port control command and then drives the relay to perform an operation of closing or opening, so that the controllable power socket of the smart television 20 is correspondingly connected or disconnected with the ac power supply in the patch board, and the simulated power-on and power-off effects are achieved.
And S140, receiving serial port printing information of the smart television 20 when the television power supply is switched on again each time, wherein the serial port printing information is used for judging whether upgrade failure occurs.
S150, judging whether the upgrading fails when the television power supply is reconnected every time.
Illustratively, the smart tv 20 will print and send information to the testing device 10 via the serial port each time it is powered back up. Accordingly, the testing device 10 may determine whether the upgrade failure occurs in the smart television 20 through the received serial port printing information. For example, the serial port printing information may include system process change data of the smart television 20, and the like. Exemplarily, the testing device 10 may determine, through the print information, whether the smart tv 20 successfully enters the system upgrade process again after being powered on again, or whether the upgrade progress of the smart tv 20 after entering the system upgrade process stays at the same upgrade progress node for a long time. For example, if the system upgrading process is not re-entered, it may be determined that the upgrading fails in the current simulated power failure test.
And S160, if the upgrading fails, stopping testing and sending the serial port printing information to the tester when the testing is stopped.
Exemplarily, if it is determined that the smart television 20 fails to be upgraded after being powered on again, the current test is immediately stopped, and the serial port printing information when the test is stopped is sent to the tester for checking. Generally, the serial port printing information comprises information such as specific problem phenomena. For example, the test device 10 may package serial port print information for stopping the test into a file and automatically send the file to the tester by mail or the like. Optionally, the test device 10 further detects the size of the packaged file, and if the file is smaller, the file may be directly transmitted, otherwise, if the file exceeds a preset file threshold, the file may be compressed and then transmitted.
It can be understood that the tester need not check the test result in real time, and only needs to check the serial port printing information to analyze the specific test problem after receiving the packed file, so as to solve the test fault of the smart television 20, thereby improving the system reliability of the smart television 20. Generally, after each failure is resolved, the above upgrade test may be performed again on the smart tv 20 until the whole system upgrade process can be performed normally.
Optionally, for the step S150, the method for automatically testing system upgrade further includes:
and S170, if no upgrade failure occurs, after the system upgrade process is detected to be finished, reading the system version number of the upgraded intelligent television 20, and confirming that the intelligent television 20 is upgraded successfully when the system version number is judged to be correct.
Exemplarily, if it is determined that no abnormality occurs in the smart television 20 every time the television power is turned on again, the testing device 10 will verify whether the upgrade is successful by checking the upgraded system version number after the upgrade of the smart television 20 is finished. Exemplarily, when the version number of the upgraded smart television 20 is the same as the latest version number in the cloud server, the upgrade is confirmed to be successful. At this point, the test process of one version upgrade is completed.
In the actual television system upgrading process, considering that a user television is often placed in a user home, a remote upgrading mode is usually adopted, namely, updated system software upgrading data needs to be obtained from a cloud end first, and then system upgrading operation is carried out. Therefore, in some embodiments, the system upgrade automation test may include a remote download test phase in addition to the upgrade test phase, that is, a test process for downloading system upgrade data from the cloud of the smart tv 20. Typically, it may be arranged to enter the upgrade test step after the remote download test has passed.
The test device 10 is further configured to be connected to a network router 30, and the smart television 20 is configured to be connected to a cloud server through the network router 30, so as to obtain the latest version of system software upgrade data from the cloud server. For example, as shown in fig. 2, the smart tv 20 may be connected to the network router 30 through a wired connection or a wireless connection. In one embodiment, the test apparatus 10 may be connected to a controllable power socket of the network router 30 through the serial port control power supply device 101, so as to control the power of the network router 30 to be turned on and off.
Before step S110, as shown in fig. 3, the method for automatically testing system upgrade further includes:
s101, detecting whether the smart television 20 starts to download system upgrading data from a cloud server.
And S102, monitoring the downloading progress of the intelligent television 20 in real time when the starting of downloading is detected.
Exemplarily, the testing device 10 may obtain the real-time status information of the smart television 20 through the serial port, including whether to enter the process of downloading the system upgrade data, the real-time downloading progress of the downloading stage, and the like.
And S103, controlling the power supply of the intelligent television 20 or the network router 30 to be switched on and off according to a preset test strategy. The preset test strategy comprises a second preset number of appointed download progress used for indicating the download power-off operation time and a third preset number of appointed download progress used for indicating the network-off operation time.
Exemplarily, the preset test policy may include that the test device 10 performs power-on and power-off control on the smart tv 20 or the network router 30 at different download schedule times, for example, the specified download schedule at the download power-off operation time may be set to 20%, 40%, 50%, 80%, 90%, and the like; the designated download progress at the time of the network disconnection operation may be 10%, 30%, 60%, 70%, 95%, or the like. Generally, after the power failure, the smart television 20 often cannot be connected to the network, that is, a network failure situation occurs, but the power failure does not necessarily occur when the smart television 20 is disconnected from the network, and optionally, the power failure operation and the network failure operation may occur at different times, so as to implement various scenarios of limit tests, thereby facilitating finding more possible software failures and the like. It is to be understood that the specified download schedules are only examples and are not intended to limit the second predetermined number, the third predetermined number and each specific value.
And S104, receiving serial port printing information of the intelligent television 20 when the television power is reconnected or a network is reconnected every time, wherein the serial port printing information is used for judging whether the intelligent television 20 fails to download.
And S105, judging whether the downloading fails when the television power supply is reconnected every time and the network is reconnected every time.
Exemplarily, the test device 10 may determine, through the serial port printing information, whether the smart television 20 successfully enters the system downloading process again after being powered on again, or whether downloading is resumed after entering the system downloading process again; or, after the network is reconnected, whether the download progress stays at the same download progress node for a long time (i.e., breakpoint resuming) or not may be determined. For example, if the download process is not re-entered, or the breakpoint resume cannot be performed, it can be determined that the download failed in the analog power-off or network-off test.
And S106, if no download failure occurs, confirming that the intelligent television 20 successfully downloads the system upgrading data of the latest system version.
Exemplarily, if the smart tv 20 fails to download every time the tv power is turned on again and every time the network is reconnected, it may be determined that the smart tv 20 successfully downloads the system upgrade data. Further, the smart tv 20 waits for the system upgrade procedure to be automatically entered, i.e., the process jumps to step S110.
Optionally, for step S105, the method for automatically testing system upgrade further includes:
and S107, if the download fails, stopping the test and sending the serial port printing information to a tester for checking when the test is stopped.
Exemplarily, if it is determined that the smart tv 20 has failed in downloading when the power of the tv is turned on again or when the network is reconnected, the test is immediately stopped and the serial port printing information when the test is stopped is sent to the tester. In the serial port printing information sending step when the upgrade fails, the options are also applicable to the case of download failure, and therefore, the description is not repeated here.
Further optionally, in consideration that current versions of the smart televisions 20 of different users may be different, in order to test a case that the smart televisions 20 of different versions are updated to the latest system version, the system upgrade automation test method further includes: and (4) performing cycle test on different stock system versions, namely automatically testing the upgrade of the next stock version after the upgrade of one stock version is tested. The stock system version can be understood as a historical system version which is a non-latest version.
For example, as shown in fig. 2, the smart tv 20 may be accessed through a storage device (e.g., a usb disk, etc.) storing different stock system versions, after the smart tv 20 completes a version upgrade test, the next untested stock system version may be read from the storage device and switched to the current system version, and then the above steps S101 to S107 are re-executed and the above steps S110 to S170 are continuously executed after the download test is successful. Then, after confirming that the smart television 20 is upgraded again successfully, the control is switched to another untested stock system version to re-execute the above-mentioned system upgrade automation test steps until all stock system versions are tested.
According to the system upgrading automatic testing method, after the intelligent television enters a system upgrading process, the system upgrading progress of the intelligent television is monitored in real time, the power is cut off when the specified system upgrading progress is reached so as to be used for testing and simulating the reaction after the intelligent television is electrified again when sudden power failure occurs in actual application, and if the upgrading fails, the testing is stopped, and the testing result at the moment is printed and sent to a tester for checking. Optionally, if the smart television does not have an upgrade failure in each simulated power-off operation, it indicates that the smart television can better cope with the simulated power-off condition occurring in the actual system upgrade process. The automatic testing method can well and repeatedly carry out limit testing, and compared with manual testing, the method can greatly improve the efficiency of testing work.
Example 2
Referring to fig. 4, the present embodiment provides a system upgrade automation test apparatus 100, which is applied to the test device 10 in embodiment 1, and the test device 10 is used to connect to the smart television 20 through a serial port. Exemplarily, the system upgrade automation test device 100 includes:
the upgrade testing module 110 is configured to monitor a system upgrade progress of the smart television 20 in real time after detecting that the smart television 20 enters a system upgrade process, and control power of the smart television 20 to be turned off and on according to a preset testing policy; the preset test strategy comprises a first preset number of designated system upgrading progress used for indicating upgrading outage operation time.
The first processing module 120 is configured to receive serial port printing information of the smart television 20 when the television power is turned on again each time, where the serial port printing information is used to determine whether the smart television 20 fails to be upgraded; and when the upgrade failure is judged, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
Optionally, the first processing module 120 is further configured to, if no upgrade failure occurs when the television power is turned on again each time, after detecting that the system upgrade process is ended, read the system version number of the smart television 20 after being upgraded, and confirm that the smart television 20 is successfully upgraded when determining that the system version number is the latest system version number.
Further, as shown in fig. 5, the system upgrade automation test apparatus 100 further includes: a download test module 130 and a second processing module 140.
The download testing module 130 is configured to monitor a download progress of the smart television 20 in real time when it is detected that the smart television 20 starts to download the system upgrade data from the cloud server, and control power of the smart television 20 or the network router 30 to be turned off and on according to the preset testing policy. The preset test strategy comprises a second preset number of appointed downloading progresses used for indicating downloading power-off operation time and a third preset number of appointed downloading progresses used for indicating network-off operation time.
The second processing module 140 is configured to, when a download failure does not occur each time the television power is reconnected and each time a network is reconnected, confirm that the smart television successfully downloads the system upgrade data of the latest system version. Optionally, the second processing module 140 is further configured to stop the test and send the serial port printing information when the test is stopped to a tester for viewing if the download fails.
It is understood that the "first" of the first processing modules and the "second" of the second processing modules are mainly used to distinguish the processing modules in the upgrade testing stage from the processing modules in the download testing stage. In addition, each module of the embodiment corresponds to each step of the above embodiment 1, and any optional items in the above embodiment 1 are also applicable to the embodiment, so detailed description is not provided herein.
The present application also provides a test device, such as a computer or the like. Exemplarily, the testing device comprises a serial port, a processor and a memory, wherein the serial port is used for connecting the smart television, the memory stores a computer program, and the processor is used for executing the computer program to implement the system upgrade automation testing method of the above embodiment.
Optionally, the testing apparatus may further include the serial port control power supply device 101 in embodiment 1, and the testing apparatus may be configured to connect the smart television and the controllable power socket of the network router through the serial port control power supply device 101. For example, if the testing device is a computer terminal, the serial port control power supply apparatus 101 exemplarily includes a USB serial port converter and a relay, wherein the USB serial port converter is connected to the computer, and the relay is used for connecting to a controllable power socket of a smart television or a network router.
The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the test device (such as serial port printing information, a test script file, etc.), and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The application also provides a readable storage medium for storing a computer program for use in the above-described test apparatus.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (9)

1. The system upgrade automatic test method is applied to test equipment, the test equipment is used for being connected with a smart television through a serial port, the test equipment is used for being connected with a network router, the smart television is used for being connected with a cloud server through the network router, and the cloud server stores system upgrade data of the latest system version, and the method comprises the following steps:
when the fact that the smart television starts to download the system upgrading data from the cloud server is detected, monitoring the downloading progress of the smart television in real time, and controlling the power supply of the smart television or the network router to be switched on and off according to a preset test strategy; the preset test strategy comprises a second preset number of appointed download progress used for indicating the download power-off operation time and a third preset number of appointed download progress used for indicating the network-off operation time;
receiving serial port printing information of the intelligent television when the power supply of the intelligent television is reconnected every time or the intelligent television is reconnected every time, wherein the serial port printing information is used for judging whether the intelligent television fails to download or not;
when the downloading fails during each reconnection of the television power supply and each reconnection of the network, confirming that the intelligent television successfully downloads the system upgrading data of the latest system version;
when the situation that the intelligent television enters a system upgrading process is detected, monitoring the system upgrading progress of the intelligent television in real time, and controlling the power supply of the intelligent television to be switched on and off according to a preset test strategy; the preset test strategy comprises a first preset number of designated system upgrading progress used for indicating the upgrading outage operation moment;
receiving serial port printing information of the smart television when the power supply of the smart television is switched on again each time, wherein the serial port printing information is used for judging whether the smart television fails to be upgraded or not;
and when the upgrade failure is judged, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
2. The system upgrade automation test method of claim 1, further comprising:
and if the download fails, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
3. The system upgrade automation test method according to claim 1 or 2, further comprising:
if the upgrading failure does not occur when the television power supply is reconnected every time, reading the system version number after the intelligent television is upgraded after detecting that the system upgrading process is finished, and confirming that the intelligent television is upgraded successfully when judging that the system version number is the latest system version number.
4. The method for automatically testing system upgrade according to claim 3, wherein after confirming that the upgrade of the smart tv is successful, if there are multiple stock system versions of the smart tv, the method further comprises:
controlling the intelligent television to obtain an untested stock system version, and re-executing the system upgrading automation test on the intelligent television;
and after the intelligent television is successfully upgraded, controlling to switch to the next untested stock system version for carrying out automatic system upgrade testing until all stock system versions are tested.
5. The system upgrade automation test method according to claim 1, wherein the test equipment is used to connect the smart tv and the controllable power socket of the network router through a serial port control power supply device, the serial port control power supply device includes a USB serial port converter and a relay, the USB serial port converter is connected to the test equipment, and the relay is used to connect the smart tv and the controllable power socket of the network router; the controlling the power of the intelligent television or the network router to be switched on and off comprises the following steps:
and the test equipment controls the relay to be closed or opened through the USB serial port converter so as to enable the controllable power socket of the intelligent television or the network router to be correspondingly connected or disconnected with an alternating current power supply.
6. The automatic testing device for system upgrade is applied to testing equipment, the testing equipment is used for being connected with a smart television through a serial port, the testing equipment is used for being connected with a network router, the smart television is used for being connected with a cloud server through the network router, the cloud server stores system upgrade data of the latest system version, and the device comprises:
the downloading test module is used for monitoring the downloading progress of the intelligent television in real time when the intelligent television is detected to start downloading the system upgrading data from the cloud server, and controlling the power supply of the intelligent television or the network router to be switched on and off according to a preset test strategy; the preset test strategy comprises a second preset number of appointed downloading progresses for indicating downloading power-off operation time and a third preset number of appointed downloading progresses for indicating network-off operation time;
the second processing module is used for receiving serial port printing information of the intelligent television when the power supply of the intelligent television is reconnected every time or the intelligent television is reconnected every time, and the serial port printing information is used for judging whether the intelligent television fails to download; when the downloading fails during each reconnection of the television power supply and each reconnection of the network, confirming that the intelligent television successfully downloads the system upgrading data of the latest system version; if the download fails, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking;
the upgrading test module is used for monitoring the system upgrading progress of the intelligent television in real time after detecting that the intelligent television enters a system upgrading process, and controlling the power supply of the intelligent television to be switched on and off according to a preset test strategy; the preset test strategy comprises a first preset number of specified system upgrading schedules used for indicating upgrading power-off operation time;
the first processing module is used for receiving serial port printing information of the intelligent television when the power supply of the intelligent television is switched on again each time, and the serial port printing information is used for judging whether the intelligent television fails to be upgraded or not; and when the upgrade failure is judged, stopping the test and sending the serial port printing information when the test is stopped to a tester for checking.
7. A test device, comprising a serial port for connecting to a smart television, a processor, and a memory, wherein the memory stores a computer program, and wherein the processor is configured to execute the computer program to implement the system upgrade automation test method according to any one of claims 1 to 5.
8. The test apparatus of claim 7, further comprising: and the test equipment is used for connecting the controllable power socket of the intelligent television through the serial port control power supply device.
9. A readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the system upgrade automation test method according to any one of claims 1 to 5.
CN202011182292.7A 2020-10-29 2020-10-29 System upgrading automation test method, device and test equipment Active CN112291621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011182292.7A CN112291621B (en) 2020-10-29 2020-10-29 System upgrading automation test method, device and test equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011182292.7A CN112291621B (en) 2020-10-29 2020-10-29 System upgrading automation test method, device and test equipment

Publications (2)

Publication Number Publication Date
CN112291621A CN112291621A (en) 2021-01-29
CN112291621B true CN112291621B (en) 2023-01-20

Family

ID=74353231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011182292.7A Active CN112291621B (en) 2020-10-29 2020-10-29 System upgrading automation test method, device and test equipment

Country Status (1)

Country Link
CN (1) CN112291621B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860555A (en) * 2021-02-08 2021-05-28 重庆长安汽车股份有限公司 Device and method for remote software upgrading, verifying and testing
CN113890825B (en) * 2021-09-16 2023-08-01 深圳Tcl新技术有限公司 Interactive upgrade test method and device of equipment, storage medium and electronic equipment
CN113836026A (en) * 2021-09-28 2021-12-24 深圳Tcl新技术有限公司 Upgrade test method and device, electronic equipment and storage medium
CN114024735B (en) * 2021-11-02 2024-02-02 北京天融信网络安全技术有限公司 Multi-task parallel feature library testing method and device
CN115328521B (en) * 2022-10-10 2023-05-16 广州鲁邦通物联网科技股份有限公司 USB automatic upgrading method and system based on embedded equipment
CN115509843B (en) * 2022-10-26 2023-04-25 润芯微科技(江苏)有限公司 Intelligent cabin host USB identification automatic testing device and method thereof
CN116088912B (en) * 2023-04-11 2023-06-27 瑞纳智能设备股份有限公司 Application system, method and computer readable storage medium for upgrading user terminal equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786549B (en) * 2014-12-26 2019-09-24 乐融致新电子科技(天津)有限公司 Smart machine and its upgrade method
CN105718324A (en) * 2016-01-13 2016-06-29 广东欧珀移动通信有限公司 Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process
CN106210897B (en) * 2016-08-09 2019-12-10 深圳创维数字技术有限公司 set top box automatic test method based on serial port and system thereof
CN106412696B (en) * 2016-09-20 2019-09-06 深圳Tcl数字技术有限公司 The method for upgrading system and device of smart television
CN111078484A (en) * 2019-12-30 2020-04-28 深圳Tcl数字技术有限公司 Power-off test method, device, equipment and storage medium for system upgrading

Also Published As

Publication number Publication date
CN112291621A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112291621B (en) System upgrading automation test method, device and test equipment
CN105209925A (en) Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing
CN108021410A (en) A kind of firmware upgrade method and system of intelligent appliance equipment
CN106445613B (en) code upgrading method and system
CN108429629A (en) Equipment fault restoration methods and device
CN100583782C (en) Software upgrade method and device
CN105262610A (en) Network repairing method, device and terminal
KR101533813B1 (en) Apparatus and method for controlling power relay assembly
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN108802627B (en) Testing method, device and system for BBU independent power supply and readable storage medium
CN110739025B (en) Power failure test method, device and system for storage equipment
CN110459260B (en) Automatic test switching device, method and system
CN112822254A (en) Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN111341379B (en) Method and equipment for testing storage device
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN116133021A (en) Wireless network card self-management flow based on LINUX board card
CN109960657B (en) Test environment deployment method and related device
CN108418707B (en) Method for upgrading mutual online backup of double CPLDs in communication system and service veneer
CN106997291A (en) A kind of control method and master node, slave node
CN113434347B (en) Power-off automatic test system and method for mobile terminal
CN110096047B (en) Robot motion control system upgrading method and system
CN109446013A (en) Store apparatus testing method, storage device testing system and storage medium
CN115333987B (en) Interface test system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant