CN114138312A - Upgrade test method, device, electronic equipment and computer readable storage medium - Google Patents

Upgrade test method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114138312A
CN114138312A CN202111658507.2A CN202111658507A CN114138312A CN 114138312 A CN114138312 A CN 114138312A CN 202111658507 A CN202111658507 A CN 202111658507A CN 114138312 A CN114138312 A CN 114138312A
Authority
CN
China
Prior art keywords
version
upgrade
upgrading
target
sample terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111658507.2A
Other languages
Chinese (zh)
Inventor
林华坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111658507.2A priority Critical patent/CN114138312A/en
Publication of CN114138312A publication Critical patent/CN114138312A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the application discloses an upgrade test method, an upgrade test device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: upgrading the version of the sample terminal according to the target upgrading channel to obtain a target version; obtaining an upgrade detection result according to the target version; when the upgrade detection result is successful, and within a preset condition, performing version reduction on the target version to obtain a historical version; returning to execute the version upgrading of the sample terminal according to the target upgrading channel until a preset stopping condition is met; and determining an upgrade test result of the target upgrade channel according to all the obtained upgrade detection results. The sample terminal is upgraded through the upgrade channel, the version of the sample terminal is upgraded and restored for multiple times, the upgrade detection result of each version upgrade is obtained, the upgrade performance of the upgrade channel can be determined by using multiple upgrade detection results, and the upgrade performance of the upgrade channel can be detected.

Description

Upgrade test method, device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the field of automatic testing, in particular to an upgrade testing method and device, electronic equipment and a computer readable storage medium.
Background
Along with the rapid development of computer technology, intelligent household appliances are rapidly popularized, and the intelligent household appliances are continuously updated and expanded in capability range, so that the intelligent household appliances are more and more intelligent.
Currently, the update iteration of an intelligent appliance depends on a corresponding upgrade channel, for example, Over-the-Air Technology (OTA), and the update performance of the upgrade channel determines the update quality of the appliance product, which directly affects the user experience.
Disclosure of Invention
The embodiment of the application provides an upgrade testing method, an upgrade testing device, electronic equipment and a computer-readable storage medium, which can detect an upgrade channel to ensure the upgrade quality of a product.
In a first aspect, an embodiment of the present application provides an upgrade testing method, including:
upgrading the version of the sample terminal according to the target upgrading channel to obtain a target version;
obtaining an upgrade detection result according to the target version;
when the upgrade detection result is successful, and within a preset condition, performing version reduction on the target version to obtain a historical version;
returning to execute the version upgrading of the sample terminal according to the target upgrading channel until a preset stopping condition is met;
and determining an upgrade test result of the target upgrade channel according to all the obtained upgrade detection results.
In a second aspect, an embodiment of the present application further provides an upgrade testing apparatus, including:
the upgrading module is used for upgrading the version of the sample terminal according to the target upgrading channel to obtain a target version;
the acquisition module is used for acquiring an upgrade detection result according to the target version;
the restoring module is used for restoring the version of the target version to obtain a historical version when the upgrading detection result is successful and within a preset condition;
the circulating module is used for returning and executing the version upgrading of the sample terminal according to the target upgrading channel until a preset stopping condition is met;
and the determining module is used for determining the upgrading test result of the target upgrading channel according to all the obtained upgrading detection results.
In some embodiments of the present application, the target upgrade channel includes an over-the-air technology channel, and the upgrade module includes:
the first determining unit is used for determining a target version upgrading file;
and the first upgrading unit is used for sending the target version upgrading file to a sample terminal according to the over-the-air downloading technology channel and upgrading the version of the sample terminal according to the target version upgrading file to obtain the target version of the sample terminal.
Wherein, in some embodiments of the present application, the reduction module comprises:
a second determination unit configured to determine a history version upgrade file;
and the restoring unit is used for restoring the version of the sample terminal according to the historical version upgrading file to obtain the historical version of the sample terminal.
Wherein, in some embodiments of the present application, the reduction unit comprises:
the detection subunit is used for detecting the version update type of the sample terminal to obtain the version update type;
the first restoring subunit is used for driving the sample terminal to automatically return to the historical version according to the historical version upgrading file when the version updating type comprises automatic returning;
and the second restoring subunit is configured to burn the historical version upgrade file into the sample terminal to obtain the historical version of the sample terminal when the version update type does not include the automatic rollback.
Wherein, in some embodiments of the present application, the determining module comprises:
the acquisition unit is used for acquiring the upgrading success rate of the target upgrading channel according to all the obtained upgrading detection results and acquiring the time consumed by each upgrading;
and the third determining unit is used for determining an upgrading test result of the target upgrading channel according to the upgrading success rate, a plurality of time consumption times and a preset time consumption threshold.
Wherein, in some embodiments of the present application, the apparatus further comprises a detection stopping module, the detection stopping module comprising:
and the fourth determining unit is used for directly determining the upgrade detection result as the upgrade test result of the target upgrade channel when the upgrade detection result is failed.
Wherein, in some embodiments of the present application, the upgrade module comprises:
and the second upgrading unit is used for triggering and generating a version upgrading instruction of the sample terminal on the auxiliary terminal and sending the version upgrading instruction to the sample terminal so that the sample terminal carries out version upgrading according to the version upgrading instruction to obtain a target version.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the upgrade test method when executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the upgrade testing method are implemented.
According to the embodiment of the application, the sample terminal is upgraded through the upgrading channel, the version upgrading and version restoring of the sample terminal are carried out for multiple times, the upgrading detection result of each version upgrading is obtained, the upgrading performance of the upgrading channel can be determined by utilizing a plurality of upgrading detection results, and the upgrading performance of the upgrading channel can be detected. The test of the version upgrading channel can be performed on a single sample terminal through the cyclic processing of version upgrading and version restoring, and the test complexity is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of an upgrade testing method provided in an embodiment of the present application;
FIG. 2 is a schematic flowchart of an upgrade testing method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of testing an upgrade channel in an upgrade testing method provided in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an upgrade testing apparatus provided in an embodiment of the present application;
FIG. 5 is a system architecture diagram of a test upgrade channel according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides an upgrade test method, an upgrade test device, electronic equipment and a computer-readable storage medium. Specifically, the embodiment of the application provides an upgrade test device suitable for electronic equipment, wherein the electronic equipment may include a television, an air conditioner, a washing machine, a refrigerator or other intelligent household electrical appliance terminals.
Referring to fig. 1, in the embodiment of the present application, an example is taken of an intelligent household appliance terminal executing an upgrade test method, and the specific execution process is as follows:
triggering an upgrade operation on the terminal 10, so that the terminal 11 performs version upgrade according to an upgrade channel to obtain a target version, obtaining an upgrade detection result according to the target version, when the upgrade detection result is successful, performing version restoration on the target version to obtain a historical version, circularly executing the version upgrade and the version restoration until a preset stop condition is met, obtaining a plurality of upgrade detection results, then determining an upgrade test result of the upgrade channel according to the plurality of upgrade detection results, and returning the upgrade test result to the terminal 10, thereby facilitating the check of a user.
In the embodiment of the present application, the upgrade channel includes an Over-the-Air Technology (OTA) channel, and the test of the upgrade performance of the Over-the-Air Technology can be implemented by cyclically utilizing the Over-the-Air Technology for upgrading.
Wherein, in this application embodiment, imbed the integrated module of wifi and the bluetooth that can network in the intelligent household electrical appliances terminal, this module also is called intelligent household electrical appliances brain, has had this module, and traditional household electrical appliances can be interconnected with the high in the clouds, not only can expand the household electrical appliances ability through the high in the clouds, and the scene linkage of many household electrical appliances also widens the ability boundary of intelligent household electrical appliances simultaneously. Meanwhile, through networking, the wifi module can also be used as an Over the Air (Over the Air) module, and as with a mobile phone operating system, updating iteration is always performed, so that the household appliance is more and more intelligent.
In the embodiment of the application, the upgrading requirements of the user mainly include whether the use of the current product is influenced after upgrading, whether customer complaints are easily caused, whether the updated channel can be kept smooth, whether functions can be added or defects can be repaired, and the user experience is improved.
The method and the device for detecting the upgrading performance of the upgrading channel have the advantages that the sample terminal is upgraded through the upgrading channel, the version of the sample terminal is upgraded and restored for multiple times, the upgrading detection result of each version upgrading is obtained, the upgrading performance of the upgrading channel can be determined by using multiple upgrading detection results, and the upgrading performance of the upgrading channel can be detected. The test of the version upgrading channel can be performed on a single sample terminal through the cyclic processing of version upgrading and version restoring, and the test complexity is reduced.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
Referring to fig. 2, fig. 2 is a schematic flowchart of an upgrade testing method according to an embodiment of the present application. The specific process of the upgrade test method can be as follows:
101. and upgrading the version of the sample terminal according to the target upgrading channel to obtain a target version.
In the embodiment of the present application, the upgrade channel includes an Over-the-Air Technology (OTA) channel. The over-the-air technology is a technology for remotely managing SIM card data and applications through an air interface of mobile communication (GSM or CDMA). The air interface may employ WAP, GPRS, CDMAlx and the most popular short message technologies. The application of the 0-TA technology enables mobile communication to provide not only mobile voice and data services but also new mobile services. The application and content service provider is not limited by the platform, and continuously develops more personalized services close to the user requirements. The mobile phone user can download various service menus provided by the network into the mobile phone by using the OTA mechanism according to personal preference by simply operating, and can customize specific services according to own will, even repair potential faults caused by the delivery of the mobile phone.
In the embodiment of the application, the over-the-air downloading technology is applied to the version upgrading and upgrading process of the intelligent household appliance, so that the remote automatic upgrading of the intelligent household appliance is realized, wherein in order to ensure the effective running of the upgrading process and the stability of the upgrading process, the embodiment of the application mainly carries out performance detection on an upgrading channel so as to ensure the stability of a product upgraded according to the upgrading channel.
Wherein, in this application embodiment, sample terminal includes intelligent household electrical appliances such as intelligent TV, intelligent refrigerator, intelligent washing machine or intelligent air conditioner, wherein, through the test to the upgrading passageway, under the circumstances of guaranteeing upgrading passageway stability, can ensure the stability of intelligent household electrical appliance version upgrading, realizes the expansion of new function, the restoration of defect and promotes user's experience.
In the embodiment of the present application, the target version may be any new version based on the version before the upgrade, the specific version and the specific content of the upgrade are not limited in the present application, and the embodiment of the present application tests whether the upgrade channel is stable and accurate according to the upgrade process.
In this embodiment of the present application, if the upgrade channel includes an Over-the-Air Technology (OTA) channel, the sample terminal may be upgraded according to the OTA Technology, that is, optionally, in some embodiments of the present application, the step "upgrade the version of the sample terminal according to the target upgrade channel to obtain the target version" includes:
determining a target version upgrading file;
and sending the target version upgrading file to a sample terminal according to the over-the-air downloading technology channel, and upgrading the version of the sample terminal according to the target version upgrading file to obtain the target version of the sample terminal.
The upgrading processing of the sample terminal can be realized by sending the version upgrading file by using the over-the-air downloading technology and pushing the sample terminal to upgrade, and the upgrading performance of the upgrading channel can be conveniently determined according to the upgrading detection result.
In this embodiment of the present application, the upgrading operation of the sample terminal may also be performed by starting with assistance of the auxiliary terminal, for example, the upgrading operation of the sample terminal is started by the auxiliary terminal, that is, optionally, in some embodiments of the present application, the step "performing version upgrade on the sample terminal according to the target upgrade channel to obtain the target version" includes:
and triggering and generating a version upgrading instruction of the sample terminal on the auxiliary terminal, and sending the version upgrading instruction to the sample terminal so that the sample terminal carries out version upgrading according to the version upgrading instruction to obtain a target version.
In the embodiment of the application, the auxiliary terminal comprises a mobile phone, and after the mobile phone is bound with the sample terminal, the version upgrading operation of the sample terminal is triggered by the mobile phone, so that the sample terminal can be upgraded according to an over-the-air downloading technology.
102. And obtaining an upgrade detection result according to the target version.
In the embodiment of the present application, an upgrade detection result of the current upgrade may be obtained according to the upgrade content of the target version and the function of the upgraded sample terminal, where in the embodiment of the present application, the upgrade detection result includes upgrade success and upgrade failure.
103. And when the upgrade detection result is successful, and within a preset condition, performing version reduction on the target version to obtain a historical version.
In the embodiment of the present application, the preset conditions may include a time condition of an upgrade test, an upgrade frequency condition, and the like, and the acquisition of a plurality of upgrade detection results may be achieved through version restoration in the preset conditions and subsequent version upgrade.
By restoring the version of the sample terminal, the next upgrade by using the upgrade channel can be facilitated, so that the upgrade channel can be used, and the performance condition of the upgrade channel can be determined conveniently according to the upgrade detection result.
In this embodiment of the present application, the version of the sample terminal may be restored according to the upgrade file of the historical version, that is, optionally, in some embodiments of the present application, the step "restore the version of the target version to obtain the historical version" includes:
determining a historical version upgrading file;
and performing version restoration on the sample terminal according to the historical version upgrading file to obtain the historical version of the sample terminal.
The version of the sample terminal is restored through the historical version upgrading file, so that the accuracy of version restoration can be guaranteed, the sample terminal can be conveniently upgraded again according to the upgrading channel subsequently, and the accuracy of upgrading and testing of the upgrading channel is improved.
In this embodiment of the present application, the sample terminal may include a terminal capable of automatically returning a version, and therefore, for the sample terminal capable of automatically returning, the version may be restored according to an automatic return function, that is, optionally, in some embodiments of the present application, the step "restore the version of the sample terminal according to the history version upgrade file to obtain the history version of the sample terminal" includes:
detecting the version updating type of the sample terminal to obtain the version updating type;
when the version updating type comprises automatic rollback, driving the sample terminal to automatically rollback to the historical version according to the historical version upgrading file;
and when the version updating type does not comprise the automatic rollback, burning the historical version upgrading file into the sample terminal to obtain the historical version of the sample terminal.
After the version updating type of the sample terminal is determined and the sample terminal is determined to be the automatic rollback type, the version restoring processing can be performed on the sample terminal according to the automatic rollback function of the sample terminal, and the efficiency of the version restoring processing is improved.
In the embodiment of the application, for the sample terminal which cannot automatically return, the version of the sample terminal is restored by directly burning the historical version upgrade file into the sample terminal.
104. And returning to execute the version upgrading of the sample terminal according to the target upgrading channel until a preset stopping condition is met.
The method and the device have the advantages that the upgrade of the version of the sample terminal and the cyclic execution of the version restoration can be realized, the upgrade channel can be used for multiple times, an upgrade detection result can be obtained according to each upgrade, and the test result of the upgrade channel can be determined according to a plurality of upgrade detection results.
In the embodiment of the present application, the preset stop condition may include a preset stop time condition or a preset stop time condition (upgrade time), and the like, and multiple versions are upgraded and restored in the preset condition, so that multiple uses of the upgrade channel can be realized, and the upgrade performance of the upgrade channel can be conveniently determined according to the upgrade detection result.
In the embodiment of the present application, the preset stop condition may further include an upgrade failure, and when the upgrade detection result indicates that the upgrade fails, the loop of the version upgrade and the version restore may be stopped, and a reason for the upgrade failure may be detected.
105. And determining an upgrade test result of the target upgrade channel according to all the obtained upgrade detection results.
The upgrading performance of the upgrading channel can be determined through a plurality of upgrading detection results, and the upgrading test result of the upgrading channel is obtained. And the accuracy of the upgrading test result is also improved by the plurality of upgrading detection results.
In this embodiment of the present application, the upgrade detection result may further include time-consuming information for each upgrade, and therefore, the upgrade performance of the upgrade channel may be determined according to the time-consuming information for each upgrade, that is, optionally, in some embodiments of the present application, the step "determining the upgrade test result of the target upgrade channel according to all obtained upgrade detection results" includes:
obtaining the upgrade success rate of the target upgrade channel and the time consumed by each upgrade according to all the obtained upgrade detection results;
and determining an upgrading test result of the target upgrading channel according to the upgrading success rate, the plurality of consumed time and a preset consumed time threshold.
The upgrading performance of the upgrading channel can be determined by comparing the time consumption with the time consumption threshold value, and an upgrading test result is obtained.
In the embodiment of the application, the upgrade success rate of the upgrade channel can be determined according to the multiple upgrade detection results, and the upgrade performance of the upgrade channel can be determined according to the upgrade success rate. The upgrading performance of the upgrading channel can be comprehensively determined through the upgrading success rate and the upgrading time consumption condition, and the accuracy of the obtained upgrading test result is improved.
In this embodiment of the present application, the upgrade detection result may also include upgrade failure, and when the upgrade fails, the performance detection on the upgrade channel may be directly stopped to obtain the detection result of the upgrade failure, that is, optionally, in some embodiments of the present application, after the step "obtaining the upgrade detection result according to the target version", the method further includes:
and when the upgrade detection result is failed, directly determining the upgrade detection result as the upgrade test result of the target upgrade channel.
In the embodiment of the application, when the upgrade detection result is failure, it indicates that the upgrade of the upgrade channel fails, and the problem troubleshooting processing can be directly performed on the upgrade channel, so that unnecessary version upgrade and version restoration processing are reduced, and the detection complexity is reduced.
The sample terminal is upgraded through the upgrade channel, the version of the sample terminal is upgraded and restored for multiple times, the upgrade detection result of each version upgrade is obtained, the upgrade performance of the upgrade channel can be determined by using multiple upgrade detection results, and the upgrade performance of the upgrade channel can be detected. The test of the version upgrading channel can be performed on a single sample terminal through the cyclic processing of version upgrading and version restoring, and the test complexity is reduced.
In the embodiment of the present application, both the version upgrade and the version restore may be automatically executed according to the execution of the test case in the automated testing process, for example, the version upgrade is automatically triggered based on a script of the test case, and the version restore of the upgraded sample terminal is automatically triggered according to the script.
Referring to fig. 3, fig. 3 is a schematic flow chart of testing an upgrade channel provided in the embodiment of the present application, where a specific flow of the upgrade channel testing is as follows;
111. preparing an OTA (over-the-air technology) test environment which mainly comprises the networking of equipment (a sample terminal), the deployment of an OTA (over-the-air technology) platform upgrade package, the preparation of a current version burning file and the correct connection of a test mobile phone to a computer;
112. simulating a user to click an APP (application) upgrading button of the mobile phone according to the script, and driving the equipment to carry out OTA (over the air) upgrading;
113. detecting an upgrading result, executing step 117 when the upgrading result indicates that upgrading fails, otherwise executing step 114;
114. starting an automatic burning module of the running script, automatically burning the version rollback, and restoring the upgraded version to the current version;
115. continuing OTA (over the air technology) upgrading until the set test times or the test fails;
116. obtaining performance indexes such as OTA upgrading time consumption, success rate and the like according to the upgrading result after each upgrading;
117. the test is ended.
The performance test of the upgrading channel can be realized by using a single device (sample terminal) and related test tools through automatic test, the dependence on a plurality of sample terminals is not needed, the test efficiency is improved, and the test operation difficulty is reduced.
In order to better implement the upgrading test method of the application, the application also provides an upgrading test device based on the upgrading test method. The meanings of the terms are the same as those in the above upgrading test method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an upgrade testing apparatus provided in the present application, wherein the upgrade testing apparatus may include:
and the upgrading module 201 is configured to upgrade the version of the sample terminal according to the target upgrading channel to obtain a target version.
In some embodiments of the present application, the target upgrade channel includes an over-the-air technology channel, and the upgrade module includes:
the first determining unit is used for determining a target version upgrading file;
and the first upgrading unit is used for sending the target version upgrading file to a sample terminal according to the over-the-air downloading technology channel and upgrading the version of the sample terminal according to the target version upgrading file to obtain the target version of the sample terminal.
Wherein, in some embodiments of the present application, the upgrade module comprises:
and the second upgrading unit is used for triggering and generating a version upgrading instruction of the sample terminal on the auxiliary terminal and sending the version upgrading instruction to the sample terminal so that the sample terminal carries out version upgrading according to the version upgrading instruction to obtain a target version.
An obtaining module 202, configured to obtain an upgrade detection result according to the target version.
And the restoring module 203 is configured to, when the upgrade detection result is successful, perform version restoration on the target version within a preset condition to obtain a historical version.
Wherein, in some embodiments of the present application, the reduction module comprises:
a second determination unit configured to determine a history version upgrade file;
and the restoring unit is used for restoring the version of the sample terminal according to the historical version upgrading file to obtain the historical version of the sample terminal.
Wherein, in some embodiments of the present application, the reduction unit comprises:
the detection subunit is used for detecting the version update type of the sample terminal to obtain the version update type;
the first restoring subunit is used for driving the sample terminal to automatically return to the historical version according to the historical version upgrading file when the version updating type comprises automatic returning;
and the second restoring subunit is configured to burn the historical version upgrade file into the sample terminal to obtain the historical version of the sample terminal when the version update type does not include the automatic rollback.
And the circulating module 204 is configured to return to execute the version upgrade on the sample terminal according to the target upgrade channel until a preset stop condition is met.
The determining module 205 is configured to determine an upgrade test result of the target upgrade channel according to all obtained upgrade detection results.
Wherein, in some embodiments of the present application, the determining module comprises:
the acquisition unit is used for acquiring the upgrading success rate of the target upgrading channel according to all the obtained upgrading detection results and acquiring the time consumed by each upgrading;
and the third determining unit is used for determining an upgrading test result of the target upgrading channel according to the upgrading success rate, a plurality of time consumption times and a preset time consumption threshold.
Wherein, in some embodiments of the present application, the apparatus further comprises a detection stopping module, the detection stopping module comprising:
and the fourth determining unit is used for directly determining the upgrade detection result as the upgrade test result of the target upgrade channel when the upgrade detection result is failed.
According to the embodiment of the application, the upgrading module 201 carries out version upgrading on the sample terminal according to the target upgrading channel to obtain the target version, then the obtaining module 202 obtains the upgrading detection result according to the target version, then the restoring module 203 carries out version restoring on the sample terminal when the upgrading detection result is successful to obtain the historical version, then the circulating module 204 circularly executes version upgrading and version restoring of the sample terminal until the preset stopping condition is met to obtain a plurality of upgrading detection results, and finally the determining module 205 obtains the upgrading test result of the target upgrading channel according to the plurality of upgrading detection results.
The method and the device for detecting the upgrading performance of the upgrading channel have the advantages that the sample terminal is upgraded through the upgrading channel, the version of the sample terminal is upgraded and restored for multiple times, the upgrading detection result of each version upgrading is obtained, the upgrading performance of the upgrading channel can be determined by using multiple upgrading detection results, and the upgrading performance of the upgrading channel can be detected. The test of the version upgrading channel can be performed on a single sample terminal through the cyclic processing of version upgrading and version restoring, and the test complexity is reduced.
Referring to fig. 5, fig. 5 is a schematic diagram of a system architecture of a test upgrade channel provided in the embodiment of the present application, where the system includes a wifi module, a serial port tool, a router, an OTA (over the air technology) upgrade platform, a programmable smart socket, a PC for running an automation test program, burning software, a windows UI automation program, a python automation program, an APP UI OTA (over the air technology) upgrade automation program, and an automation program running configuration interface, where:
wifi module (like intelligent household electrical appliances wifi module) 211: a module for establishing connection between the intelligent household appliance and the IOT cloud, which is also an IOT core part, includes 5 general pins as shown in fig. 5, wherein GPIOA _0 is a burning pin, when VOD33 and GPIOA _0 are simultaneously connected to 3.3V, the wifi module is powered off and restarted, the wifi module enters a burning state, and at this time, the module can be burned by operating burning software;
the router 212: the network access module is used for providing a networking channel for the wifi module;
serial port tool 213: the communication tool is used for the wifi module and the PC, the serial port tool is connected with the corresponding pin of the module (as shown in figure 5), the PC obtains module log output through the serial port tool, and meanwhile when the wifi module enters a burning mode, the PC can burn the module through burning software;
OTA (over the air) upgrade platform 214: the platform is used for upgrading the wifi module and is a product function to be verified (namely an object to be tested in performance);
the programmable smart socket 215: the system is used for controlling the wifi module to perform a burning mode or a normal mode (for example, the programmable smart socket a), or controlling the wifi module to be powered on or powered off (for example, the programmable smart socket B), wherein the programmable smart socket 215 in the system is composed of a single chip microcomputer (arduino) and a relay, wherein in the embodiment of the application, the programmable smart socket 215 may also be composed of other instruments, which is not limited herein;
PC216 of automated test program run: the window execution machine is used for operating the system;
the burning software 217: the method comprises the steps of programming a wifi module, wherein in the embodiment of the application, a wifi module chip adopts 8720CF of Realtek corporation, and programming software provides Ameraz 2_ PGTool _ v1.2.3 for the Realtek corporation;
windows UI automation program 218: the automatic module burning method is used for automatically simulating a person to operate burning software to perform automatic module burning actions, wherein in the embodiment of the application, the windows UI automation program 218 is implemented in python by adopting pywinauto;
APP UI OTA (over the air technology) upgrade automation program 219: the system is used for simulating a person to operate a mobile phone APP to click an OTA (over the air technology) upgrading confirmation button to realize automatic upgrading of the OTA (over the air technology), wherein airtest is adopted in the system;
python automation program 220: the system is used for coordinating the operation of each component and realizing a complete automatic burning and upgrading process, such as controlling the power-on and power-off of an intelligent socket, controlling a windows UI automatic program to start running, controlling an APP UI OTA (over-the-air technology) upgrading automatic program to start running, acquiring a module serial port output log to confirm a module upgrading result, outputting a test report result and the like;
the automation program runs the configuration interface 221: and the method is used for user interaction, such as program running entry, configuration running times, log storage directory and the like.
Wherein, this system finally makes the tester can realize automatic burning to the wifi module that does not have the version to roll back the function through comprehensive design, and the automatic test of the whole flow of automatic upgrading simultaneously, this system also can confirm the state of wifi module through the log of serial port instrument output, realizes more accurate test and problem location to promote intelligent household electrical appliances product research and development efficiency. And because each module of the system adopts open source software or hardware, the realization difficulty and the cost are lower, the system also has higher portability, the detection efficiency of the OTA (over the air technology) functional performance is further improved, and the detection cost is reduced.
In addition, the present application also provides an electronic device, as shown in fig. 6, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing the steps in any one of the upgrade test methods provided in this application.
According to the embodiment of the application, the sample terminal is upgraded through the upgrading channel, the version upgrading and version restoring of the sample terminal are carried out for multiple times, the upgrading detection result of each version upgrading is obtained, the upgrading performance of the upgrading channel can be determined by utilizing a plurality of upgrading detection results, and the upgrading performance of the upgrading channel can be detected. The test of the version upgrading channel can be performed on a single sample terminal through the cyclic processing of version upgrading and version restoring, and the test complexity is reduced.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium having stored thereon a computer program, which can be loaded by a processor to perform the steps of any of the upgrade test methods provided herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute any step in the image processing provided by the present application, the beneficial effects that can be achieved by any upgrade testing method provided by the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The upgrade test method, the upgrade test device, the upgrade test electronic device, and the storage medium provided by the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An upgrade test method, comprising:
upgrading the version of the sample terminal according to the target upgrading channel to obtain a target version;
obtaining an upgrade detection result according to the target version;
when the upgrade detection result is successful, and within a preset condition, performing version reduction on the target version to obtain a historical version;
returning to execute the version upgrading of the sample terminal according to the target upgrading channel until a preset stopping condition is met;
and determining an upgrade test result of the target upgrade channel according to all the obtained upgrade detection results.
2. The method of claim 1, wherein the target upgrade path comprises an over-the-air technology path, and the performing version upgrade on the sample terminal according to the target upgrade path to obtain a target version comprises:
determining a target version upgrading file;
and sending the target version upgrading file to a sample terminal according to the over-the-air downloading technology channel, and upgrading the version of the sample terminal according to the target version upgrading file to obtain the target version of the sample terminal.
3. The method of claim 1, wherein the performing version restoration on the target version to obtain a historical version comprises:
determining a historical version upgrading file;
and performing version restoration on the sample terminal according to the historical version upgrading file to obtain the historical version of the sample terminal.
4. The method according to claim 3, wherein the performing version restoration on the sample terminal according to the historical version upgrade file to obtain the historical version of the sample terminal comprises:
detecting the version updating type of the sample terminal to obtain the version updating type;
when the version updating type comprises automatic rollback, driving the sample terminal to automatically rollback to the historical version according to the historical version upgrading file;
and when the version updating type does not comprise the automatic rollback, burning the historical version upgrading file into the sample terminal to obtain the historical version of the sample terminal.
5. The method of claim 1, wherein determining the upgrade test result of the target upgrade channel according to all the obtained upgrade detection results comprises:
obtaining the upgrade success rate of the target upgrade channel and the time consumed by each upgrade according to all the obtained upgrade detection results;
and determining an upgrading test result of the target upgrading channel according to the upgrading success rate, the plurality of consumed time and a preset consumed time threshold.
6. The method according to any one of claims 1 to 5, wherein after obtaining the upgrade detection result according to the target version, the method further comprises:
and when the upgrade detection result is failed, directly determining the upgrade detection result as the upgrade test result of the target upgrade channel.
7. The method of claim 1, wherein the performing version upgrade on the sample terminal according to the target upgrade channel to obtain a target version comprises:
and triggering and generating a version upgrading instruction of the sample terminal on the auxiliary terminal, and sending the version upgrading instruction to the sample terminal so that the sample terminal carries out version upgrading according to the version upgrading instruction to obtain a target version.
8. An upgrade test apparatus, comprising:
the upgrading module is used for upgrading the version of the sample terminal according to the target upgrading channel to obtain a target version;
the acquisition module is used for acquiring an upgrade detection result according to the target version;
the restoring module is used for restoring the version of the target version to obtain a historical version when the upgrading detection result is successful and within a preset condition;
the circulating module is used for returning and executing the version upgrading of the sample terminal according to the target upgrading channel until a preset stopping condition is met;
and the determining module is used for determining the upgrading test result of the target upgrading channel according to all the obtained upgrading detection results.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the upgrade test method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the upgrade test method according to any one of claims 1 to 7.
CN202111658507.2A 2021-12-30 2021-12-30 Upgrade test method, device, electronic equipment and computer readable storage medium Pending CN114138312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111658507.2A CN114138312A (en) 2021-12-30 2021-12-30 Upgrade test method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111658507.2A CN114138312A (en) 2021-12-30 2021-12-30 Upgrade test method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114138312A true CN114138312A (en) 2022-03-04

Family

ID=80383913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111658507.2A Pending CN114138312A (en) 2021-12-30 2021-12-30 Upgrade test method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114138312A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023221005A1 (en) * 2022-05-18 2023-11-23 北京小米移动软件有限公司 Upgrading performance testing method for operating system, apparatus, electronic device, and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023221005A1 (en) * 2022-05-18 2023-11-23 北京小米移动软件有限公司 Upgrading performance testing method for operating system, apparatus, electronic device, and medium

Similar Documents

Publication Publication Date Title
CN111245898B (en) Network equipment online method, device, server and storage medium
CN105209925A (en) Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing
JP2010514304A (en) Test equipment
US8924769B2 (en) Software burning system and burning control method
CN108647140B (en) Test method and test system of mobile terminal
CN110457154B (en) Abnormal service processing method and device, storage medium and communication terminal
CN106126414B (en) Application software testing method and system
CN108304326B (en) Automatic testing system and method for android intelligent terminal
WO2017028574A1 (en) Router testing method and testing device
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN113590401B (en) CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium
CN109460359A (en) A kind of software version test method and system for embedded device
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN110459260B (en) Automatic test switching device, method and system
CN106776310B (en) Debugging method and debugging device
CN114584498A (en) Method, device, equipment, system and product for testing power on and power off of gateway equipment
CN111400166A (en) Real-time communication service testing method, device and system and electronic equipment
CN107391329B (en) Method, system and storage device for testing repeated use of mobile terminal
CN103544099A (en) Method and device for testing programs on mobile device
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN107870840B (en) IPMI-based server multi-test instruction automatic execution method
CN111142954B (en) Startup control method and device and computer readable storage medium
CN109960657B (en) Test environment deployment method and related device
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
CN111026651A (en) Test method, test device, storage medium and electronic 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