[go: up one dir, main page]

CN113890825B - Interactive upgrade test method and device of equipment, storage medium and electronic equipment - Google Patents

Interactive upgrade test method and device of equipment, storage medium and electronic equipment Download PDF

Info

Publication number
CN113890825B
CN113890825B CN202111088671.4A CN202111088671A CN113890825B CN 113890825 B CN113890825 B CN 113890825B CN 202111088671 A CN202111088671 A CN 202111088671A CN 113890825 B CN113890825 B CN 113890825B
Authority
CN
China
Prior art keywords
upgrade
application
result
downgrade
instruction
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
CN202111088671.4A
Other languages
Chinese (zh)
Other versions
CN113890825A (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 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 CN202111088671.4A priority Critical patent/CN113890825B/en
Publication of CN113890825A publication Critical patent/CN113890825A/en
Application granted granted Critical
Publication of CN113890825B publication Critical patent/CN113890825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种设备的交互升级测试方法、装置、存储介质及电子设备,涉及互联网技术领域,该方法包括:基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。本申请实现高效可靠进行设备的循环交互升降级测试。

The application discloses an interactive upgrade test method, device, storage medium, and electronic equipment for equipment, and relates to the field of Internet technology. Sending an upgrade reminder of the application; performing upgrade simulation control on the device, controlling the device to perform an upgrade operation corresponding to the upgrade reminder on the application, and obtaining an upgrade result; The device performs forced downgrade control, and controls the device to perform a verification-free downgrade operation on the application to obtain a downgrade result; cyclically controls the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to pass Obtain the upgrade result and the downgrade result cyclically, and test the interactive upgrade performance of the device. The application realizes efficient and reliable cyclic interactive upgrading and upgrading test of equipment.

Description

设备的交互升级测试方法、装置、存储介质及电子设备Equipment interactive upgrade test method, device, storage medium and electronic equipment

技术领域technical field

本申请涉及计算机技术领域,具体涉及一种设备的交互升级测试方法、装置、存储介质及电子设备。The present application relates to the field of computer technology, in particular to an interactive upgrade test method, device, storage medium and electronic equipment for equipment.

背景技术Background technique

通常针对空调等设备会持续对固件进行优化或者开发新功能,云平台通过空中下载技术(OTA,Over-the-Air Technology)的方式对设备进行升级。OTA升级方式主要分为静默升级和交互升级。静默升级是指设备和云端自动交互完成升级;交互升级是指设备上的应用需要确认升级和验证升级结果的升级方式。Usually, the firmware is continuously optimized or new functions are developed for equipment such as air conditioners, and the cloud platform upgrades the equipment through OTA (Over-the-Air Technology). OTA upgrade methods are mainly divided into silent upgrade and interactive upgrade. Silent upgrade refers to the automatic interaction between the device and the cloud to complete the upgrade; interactive upgrade refers to the upgrade method in which the application on the device needs to confirm the upgrade and verify the upgrade result.

针对设备中应用开发的升级包在测试可靠后才可以投放,但是进行测试时,静默升级通常较为容易实现循环升级测试(即升级后降级再升级的循环测试),而对于交互升级的方式,每次需要在应用上确认升级,并由测试人员验证升级结果后手动给设备烧入低版本,难以实现高效可靠的循环升降级测试。The upgrade package developed for the application in the device can only be released after the test is reliable. However, during the test, it is usually easier to implement the cyclic upgrade test (that is, the cycle test of downgrading and upgrading after the upgrade) when performing the test silently. For the interactive upgrade method, every The first time you need to confirm the upgrade on the application, and after the tester verifies the upgrade result, manually burn the lower version into the device, it is difficult to achieve efficient and reliable cyclic upgrade and upgrade tests.

发明内容Contents of the invention

本申请实施例提供一种方案,可以实现高效可靠进行设备的循环交互升降级测试。The embodiment of the present application provides a solution, which can realize the efficient and reliable cyclic interactive upgrade and upgrade test of the device.

为解决上述技术问题,本申请实施例提供以下技术方案:In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:

根据本申请的一个实施例,一种设备的交互升级测试方法,其包括:基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。According to an embodiment of the present application, an interactive upgrade testing method for a device includes: generating a simulated upgrade command based on the identifier of the device and sending it to the cloud, triggering the cloud to send an application upgrade reminder to the device; performing upgrade simulation control, controlling the device to perform the upgrade operation corresponding to the upgrade reminder on the application, and obtaining an upgrade result; according to the upgrade result, performing forced downgrade control on the device through the cloud, and controlling the device performing a verification-free downgrade operation on the application to obtain a downgrade result; cyclically controlling the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result through a loop, Test the interactive upgrade performance of the device.

在本申请的一些实施例中,根据所述升级结果,通过所述云端对所述设备进行强制降级控制,以控制所述设备对所述应用执行免校验降级操作,包括:根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作。In some embodiments of the present application, according to the upgrade result, the device is forcibly downgraded through the cloud to control the device to perform a check-free downgrade operation on the application, including: according to the upgrade As a result, a downgrade command with a specific permission is generated and sent to the cloud, triggering the cloud to send a forced downgrade command to the device, where the forced downgrade command is used to trigger the device to perform a check-free downgrade operation on the application.

在本申请的一些实施例中,所述特定权限的降级指令携带管理员权限信息及特定指示信息;所述强制降级指令携带强制降级指示及所述应用的降级版本信息;所述根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作,包括:根据所述升级结果,生成所述降级指令;将所述降级指令发送至所述云端,所述降级指令触发所述云端验证所述管理员权限信息及特定指示信息通过后,生成所述强制降级指令发送至所述设备,所述强制降级指令触发所述设备在识别到所述强制降级指示后,基于所述降级版本信息对所述应用执行免校验降级操作。In some embodiments of the present application, the downgrade instruction of the specific authority carries administrator authority information and specific instruction information; the forced downgrade instruction carries the forced downgrade instruction and the downgrade version information of the application; As a result, a downgrade command with a specific permission is generated and sent to the cloud, triggering the cloud to send a forced downgrade command to the device, and the forced downgrade command is used to trigger the device to perform a check-free downgrade operation on the application, including : Generate the downgrade instruction according to the upgrade result; send the downgrade instruction to the cloud, and the downgrade instruction triggers the cloud to verify that the administrator authority information and specific instruction information are passed, and then generate the mandatory A downgrade instruction is sent to the device, and the forced downgrade instruction triggers the device to perform a check-free downgrade operation on the application based on the downgrade version information after recognizing the forced downgrade instruction.

在本申请的一些实施例中,所述根据所述升级结果,生成所述降级指令,包括:当所述升级结果指示所述应用升级成功时,生成携带管理员权限信息及特定指示信息的所述降级指令。In some embodiments of the present application, the generating the downgrade instruction according to the upgrade result includes: when the upgrade result indicates that the application is upgraded successfully, generating the Downgrade instructions described above.

在本申请的一些实施例中,所述升级提醒包括显示在所述应用中特定位置的升级标记;所述对所述设备进行升级模拟控制,以控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果,包括:对所述设备发送模拟升级指令,所述模拟升级指令触发所述设备模拟触发所述特定位置,使得所述应用执行所述升级标记对应的升级操作;获取所述应用执行所述升级操作后的升级结果。In some embodiments of the present application, the upgrade reminder includes an upgrade mark displayed at a specific position in the application; and performing upgrade simulation control on the device to control the device to perform the upgrade on the application Reminding the corresponding upgrade operation and obtaining the upgrade result includes: sending a simulated upgrade command to the device, the simulated upgrade command triggers the device to simulate triggering the specific location, so that the application performs the upgrade operation corresponding to the upgrade mark ; Obtain an upgrade result after the application executes the upgrade operation.

在本申请的一些实施例中,所述获取所述应用执行所述升级操作后的升级结果,包括:接收所述设备返回的所述升级结果或所述云端返回的所述设备上传的所述升级结果,所述升级结果中至少包括升级结果指示信息以及升级后所述应用的版本信息。In some embodiments of the present application, the obtaining the upgrade result after the application performs the upgrade operation includes: receiving the upgrade result returned by the device or the uploaded device returned by the cloud. An upgrade result, the upgrade result at least including upgrade result indication information and version information of the application after the upgrade.

在本申请的一些实施例中,所述循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能,包括:获取用于进行循环交互升级测试的目标循环次数;根据所述目标循环次数,循环控制所述设备对所述应用执行所述升级操作及免校验降级操作,得到每次循环产生的所述升级结果及所述降级结果;基于每次循环产生的所述升级结果及所述降级结果,确定所述设备的交互升降级性能。In some embodiments of the present application, the loop controls the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result through a loop, and test the device interactive upgrade performance, including: obtaining a target number of cycles for performing a cyclic interactive upgrade test; according to the target number of cycles, cyclically controlling the device to perform the upgrade operation and the verification-free downgrade operation on the application, and obtain each The upgrade result and the downgrade result generated in a sub-cycle; based on the upgrade result and the downgrade result generated in each cycle, determine the interactive downgrade performance of the device.

根据本申请的一个实施例,一种设备的交互升级测试装置,其包括:升级指示模块,用于基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;升级控制模块,用于对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;降级控制模块,用于根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;循环控制模块,用于循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。According to an embodiment of the present application, an interactive upgrade testing device for a device includes: an upgrade instruction module, configured to generate a simulated upgrade instruction based on the identifier of the device and send it to the cloud, triggering the cloud to send an application upgrade to the device Reminder; an upgrade control module, configured to perform upgrade simulation control on the device, and control the device to perform an upgrade operation corresponding to the upgrade reminder on the application to obtain an upgrade result; a downgrade control module, configured to perform an upgrade result according to the upgrade result , performing forced downgrade control on the device through the cloud, controlling the device to perform a verification-free downgrade operation on the application, and obtaining a downgrade result; The upgrade operation and the verification-free downgrade operation are performed to obtain the upgrade result and the downgrade result in a loop to test the interactive upgrade performance of the device.

根据本申请的另一实施例,一种存储介质,其上存储有计算机程序,当所述计算机程序被计算机的处理器执行时,使计算机执行本申请实施例所述的方法。According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

根据本申请的另一实施例,一种电子设备可以包括:存储器,存储有计算机程序;处理器,读取存储器存储的计算机程序,以执行本申请实施例所述的方法。According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.

本申请实施例中,基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。In the embodiment of the present application, a simulated upgrade command is generated based on the identifier of the device and sent to the cloud, triggering the cloud to send an application upgrade reminder to the device; performing upgrade simulation control on the device, and controlling the device to execute the application The upgrade operation corresponding to the upgrade reminder obtains the upgrade result; according to the upgrade result, the device is forced to downgrade through the cloud, and the device is controlled to perform a verification-free downgrade operation on the application to obtain the downgrade result ; cyclically controlling the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result through a loop, and test the interactive upgrade performance of the device.

以这种方式,在对设备进行交互升级测试时,循环通过模拟升级指令及升级模拟控制,控制设备进行升级操作,通过云端对设备进行强制降级控制使设备执行免校验降级操作,设备可以自动可靠地进行循环交互升级过程,进实现高效可靠进行设备的循环交互升降级测试。In this way, when performing an interactive upgrade test on the device, the upgrade operation is controlled through the simulation upgrade command and the upgrade simulation control, and the forced downgrade control is performed on the device through the cloud to make the device perform a verification-free downgrade operation, and the device can automatically Reliably carry out the cyclic interactive upgrade process, and realize the efficient and reliable cyclic interactive upgrade and upgrade test of equipment.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示出了可以应用本申请实施例的系统的示意图。Fig. 1 shows a schematic diagram of a system to which the embodiments of the present application can be applied.

图2示出了根据本申请的一个实施例的设备的交互升级测试方法的流程图。Fig. 2 shows a flow chart of a method for testing an interactive upgrade of a device according to an embodiment of the present application.

图3示出了根据本申请的一个实施例的设备的交互升级测试装置的框图。Fig. 3 shows a block diagram of an interactive upgrade testing device for equipment according to an embodiment of the present application.

图4示出了根据本申请的一个实施例的电子设备的框图。Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.

在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域技术人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it in a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principles of the present application are described in the above words, which are not meant to be a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware.

图1示出了可以应用本申请实施例的系统100的示意图。如图1所示,系统100可以包括云端服务器101、设备102及设备103。设备102及设备103可以是任意的计算机设备,例如电脑、计算机、手机、智能手表以及家电设备(如空调、门锁)等。云端服务器101可以是提供云服务的服务器。一个示例中,设备102为计算机,设备102为家电设备,云端服务器101为设备102对应的物联网云(loT云)。Fig. 1 shows a schematic diagram of a system 100 to which the embodiment of the present application can be applied. As shown in FIG. 1 , the system 100 may include a cloud server 101 , a device 102 and a device 103 . The device 102 and the device 103 may be any computer devices, such as computers, computers, mobile phones, smart watches, and home appliances (such as air conditioners, door locks) and the like. The cloud server 101 may be a server providing cloud services. In one example, the device 102 is a computer, the device 102 is a home appliance, and the cloud server 101 is an Internet of Things cloud (loT cloud) corresponding to the device 102 .

本示例的一种实施方式中,设备102可以:基于设备103的标识生成模拟升级指令发送至云端(即云端服务器101),触发所述云端(即云端服务器101)向所述设备103发送应用的升级提醒;对所述设备103进行升级模拟控制,控制所述设备103对所述应用执行所述升级提醒对应的升级操作,得到升级结果;根据所述升级结果,通过所述云端(即云端服务器101)对所述设备进行强制降级控制,控制所述设备103对所述应用执行免校验降级操作,得到降级结果;循环控制所述设备103对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备103的交互升级性能。In an implementation manner of this example, the device 102 may: generate a simulated upgrade command based on the identifier of the device 103 and send it to the cloud (that is, the cloud server 101), and trigger the cloud (that is, the cloud server 101) to send the application update instruction to the device 103. Upgrade reminder: perform upgrade simulation control on the device 103, control the device 103 to perform the upgrade operation corresponding to the upgrade reminder on the application, and obtain the upgrade result; according to the upgrade result, through the cloud (ie cloud server) 101) Perform forced downgrade control on the device, control the device 103 to perform a verification-free downgrade operation on the application, and obtain a downgrade result; cyclically control the device 103 to perform the upgrade operation on the application and the free Verify the downgrade operation, so as to test the interactive upgrade performance of the device 103 by obtaining the upgrade result and the downgrade result in a loop.

图2示意性示出了根据本申请的一个实施例的设备的交互升级测试方法的流程图。该设备的交互升级测试方法的执行主体可以是任意的设备,例如图1所示的第一终端102。Fig. 2 schematically shows a flow chart of a method for testing an interactive upgrade of a device according to an embodiment of the present application. The execution subject of the interactive upgrade testing method for a device may be any device, for example, the first terminal 102 shown in FIG. 1 .

如图2所示,该设备的交互升级测试方法可以包括步骤S210至步骤S240。As shown in FIG. 2 , the interactive upgrade testing method of the device may include steps S210 to S240.

步骤S210,基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;Step S210, generating a simulated upgrade command based on the device identifier and sending it to the cloud, triggering the cloud to send an application upgrade reminder to the device;

步骤S220,对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;Step S220, performing an upgrade simulation control on the device, controlling the device to perform an upgrade operation corresponding to the upgrade reminder on the application, and obtaining an upgrade result;

步骤S230,根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;Step S230, according to the upgrade result, perform forced downgrade control on the device through the cloud, control the device to perform a verification-free downgrade operation on the application, and obtain a downgrade result;

步骤S240,循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。Step S240, cyclically controlling the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result through a loop, and test the interactive upgrade performance of the device.

设备(如图1所示的设备103)的标识即唯一标识设备的信息,例如设备ID等。模拟升级指令可以是模拟设备(如图1所示的设备103)生成的指示云端启动对设备(如图1所示的设备103)升级流程的HTTP请求。升级提醒即应用的升级提示,例如应用上显示小红点或者应用接收升级文本信息等,本示例中,升级提醒为应用上显示小红点。The identifier of a device (eg, the device 103 shown in FIG. 1 ) is information that uniquely identifies the device, such as a device ID. The simulated upgrade instruction may be an HTTP request generated by the simulated device (the device 103 shown in FIG. 1 ) instructing the cloud to start an upgrade process for the device (the device 103 shown in FIG. 1 ). The upgrade reminder is the upgrade reminder of the application, for example, a small red dot is displayed on the application or the application receives an upgrade text message, etc. In this example, the upgrade reminder is a small red dot displayed on the application.

本地设备(如图1所示的设备102)上可以运行“压测客户端”,基于用户在压测客户端上的触发操作,压测客户端可以基于指定的设备的标识生成模拟升级指令发送至云端,云端在接收到该模拟升级指令后,可以根据设备的标识向设备发送应用的升级提醒。其中,模拟升级指令中还可以携带应用的标识,云端可以根据设备的标识及应用的标识(例如设备上的某个应用的名称等)向设备上的应用发送升级提醒。The "stress test client" can be run on the local device (device 102 shown in Figure 1). Based on the user's trigger operation on the stress test client, the stress test client can generate a simulated upgrade command based on the identity of the specified device and send it To the cloud, after receiving the simulated upgrade command, the cloud can send an application upgrade reminder to the device according to the identifier of the device. Wherein, the simulated upgrade command may also carry an application identifier, and the cloud may send an upgrade reminder to the application on the device according to the device identifier and the application identifier (such as the name of an application on the device, etc.).

升级模拟控制即设备同步执行压测客户端上的模拟控制操作,例如压测客户端模拟点击小红点对应的目标位置设备同步该点击操作。升级操作例如设备从云端下载更新的应用升级包至本地,然后基于升级包进行应用的升级。升级结果可以包括升级是否成功的升级结果指示信息及升级后应用的版本信息。Upgrading the simulation control means that the device synchronously executes the simulation control operation on the stress test client. For example, the stress test client simulates clicking on the target location corresponding to the small red dot and the device synchronizes the click operation. The upgrade operation, for example, the device downloads an updated application upgrade package from the cloud to the local, and then performs an application upgrade based on the upgrade package. The upgrade result may include upgrade result indication information indicating whether the upgrade is successful, and version information of the upgraded application.

在设备上的应用接收到升级提醒后,本地设备上可以通过“压测客户端”对设备进行升级模拟控制,进而控制设备对应用执行升级提醒对应的升级操作,设备上完成升级操作后,可以将升级结果上传至云端或者返回至压测客户端。After the application on the device receives the upgrade reminder, the local device can perform upgrade simulation control on the device through the "stress test client", and then control the device to perform the upgrade operation corresponding to the upgrade reminder for the application. After the upgrade operation is completed on the device, you can Upload the upgrade result to the cloud or return it to the stress test client.

强制降级控制即强行控制设备对应用进行降级,例如降级为某个低版本的应用。免校验降级操作即设备不进行校验直接进行降级的强制操作,例如设备直接获取某个低版本的安装包,不进行版本高低的校验,直接安装该低版本的安装包进行降级安装,其中,低版本的安装包可以是压测客户端指定的,也可以是云端指定的。降级结果可以包括降级是否成功的降级结果指示信息及降级后应用的版本信息。Forced downgrade control refers to forcibly controlling the device to downgrade the application, such as downgrading to an application of a lower version. The verification-free downgrade operation is a mandatory operation for the device to directly downgrade without verification. For example, the device directly obtains a lower version of the installation package without performing version verification, and directly installs the lower version of the installation package for downgrade installation. Among them, the installation package of the lower version can be specified by the stress test client or the cloud. The downgrade result may include downgrade result indication information indicating whether the downgrade is successful, and version information of the downgraded application.

本地终端在接收到升级结果后,向云端发送降级指令,触发云端对设备发送强制降级指令,进而通过云端对设备进行强制降级控制,控制设备对应用执行免校验降级操作,设备上完成降级操作后,可以将降级结果上传至云端或者返回至压测客户端。After receiving the upgrade result, the local terminal sends a downgrade command to the cloud, which triggers the cloud to send a forced downgrade command to the device, and then controls the device through the cloud to force downgrade, controls the device to perform a verification-free downgrade operation on the application, and completes the downgrade operation on the device After that, the degraded result can be uploaded to the cloud or returned to the stress test client.

基于上述步骤完成一次升级及降级的循环,根据预定的循环次数,本地终端可以通过压测客户端循环控制设备对应用执行升级操作及免校验降级操作,进而进行循环交互升降级测试,循环获得升级结果及降级结果,根据升级结果及降级结果可以测试设备对应用对应的安装包的交互升级性能。Based on the above steps to complete an upgrade and downgrade cycle, according to the predetermined number of cycles, the local terminal can perform an upgrade operation and a verification-free downgrade operation on the application through the pressure test client cycle control device, and then perform a cyclic interactive upgrade/downgrade test. Upgrade results and downgrade results. According to the upgrade results and downgrade results, the interactive upgrade performance of the device to the installation package corresponding to the application can be tested.

以这种方式,基于步骤S210至步骤S240,在对设备进行交互升级测试时,循环通过模拟升级指令及升级模拟控制,控制设备进行升级操作,通过云端对设备进行强制降级控制使设备执行免校验降级操作,设备可以自动可靠地进行循环交互升级过程,进实现高效可靠进行设备的循环交互升降级测试。In this way, based on step S210 to step S240, when performing an interactive upgrade test on the device, cycle through the simulated upgrade command and upgrade simulation control, control the device to perform the upgrade operation, and perform forced downgrade control on the device through the cloud to enable the device to perform calibration-free The device can automatically and reliably carry out the cyclic interactive upgrade process, and realize the efficient and reliable cyclic interactive upgrade test of the device.

下面描述进行设备的交互升级测试时,所进行的各步骤的具体过程。The following describes the specific process of each step when performing the interactive upgrade test of the equipment.

在步骤S210中,基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒。In step S210, a simulated upgrade command is generated based on the identifier of the device and sent to the cloud, triggering the cloud to send an application upgrade reminder to the device.

本示例的实施方式中,设备(如图1所示的设备103)的标识即唯一标识设备的信息,例如设备ID等。模拟升级指令可以是模拟设备(如图1所示的设备103)生成的指示云端启动对设备(如图1所示的设备103)升级流程的HTTP请求。升级提醒即应用的升级提示,例如应用上显示小红点或者应用接收升级文本信息等,本示例中,升级提醒为应用上显示小红点。In the implementation of this example, the identifier of the device (eg, the device 103 shown in FIG. 1 ) is information that uniquely identifies the device, such as a device ID. The simulated upgrade instruction may be an HTTP request generated by the simulated device (the device 103 shown in FIG. 1 ) instructing the cloud to start an upgrade process for the device (the device 103 shown in FIG. 1 ). The upgrade reminder is the upgrade reminder of the application, for example, a small red dot is displayed on the application or the application receives an upgrade text message, etc. In this example, the upgrade reminder is a small red dot displayed on the application.

本地设备(如图1所示的设备102)上可以运行“压测客户端”,基于用户在压测客户端上的触发操作,压测客户端可以基于指定的设备的标识生成模拟升级指令发送至云端,云端在接收到该模拟升级指令后,可以根据设备的标识向设备发送应用的升级提醒。其中,模拟升级指令中还可以携带应用的标识,云端可以根据设备的标识及应用的标识(例如设备上的某个应用的名称等)向设备上的应用发送升级提醒。The "stress test client" can be run on the local device (device 102 shown in Figure 1). Based on the user's trigger operation on the stress test client, the stress test client can generate a simulated upgrade command based on the identity of the specified device and send it To the cloud, after receiving the simulated upgrade command, the cloud can send an application upgrade reminder to the device according to the identifier of the device. Wherein, the simulated upgrade command may also carry an application identifier, and the cloud may send an upgrade reminder to the application on the device according to the device identifier and the application identifier (such as the name of an application on the device, etc.).

在步骤S210之前,测试人员可以基于OTA管理平台上传应用的应用升级包至云端。Before step S210, the tester can upload the application upgrade package of the application to the cloud based on the OTA management platform.

在步骤S220中,对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果。In step S220, an upgrade simulation control is performed on the device, and the device is controlled to perform an upgrade operation corresponding to the upgrade reminder on the application to obtain an upgrade result.

本示例的实施方式中,升级模拟控制即设备同步执行压测客户端上的模拟控制操作,例如压测客户端模拟点击小红点对应的目标位置设备同步该点击操作。升级操作例如设备从云端下载更新的应用升级包至本地,然后基于升级包进行应用的升级。升级结果可以包括升级是否成功的升级结果指示信息及升级后应用的版本信息。In the implementation of this example, upgrading the simulation control means that the device synchronously executes the simulation control operation on the stress test client, for example, the stress test client simulates clicking on the target location corresponding to the small red dot and the device synchronizes the click operation. The upgrade operation, for example, the device downloads an updated application upgrade package from the cloud to the local, and then performs an application upgrade based on the upgrade package. The upgrade result may include upgrade result indication information indicating whether the upgrade is successful, and version information of the upgraded application.

在设备上的应用接收到升级提醒后,本地设备上可以通过“压测客户端”对设备进行升级模拟控制,进而控制设备对应用执行升级提醒对应的升级操作,设备上完成升级操作后,可以将升级结果上传至云端或者返回至压测客户端。After the application on the device receives the upgrade reminder, the local device can perform upgrade simulation control on the device through the "stress test client", and then control the device to perform the upgrade operation corresponding to the upgrade reminder for the application. After the upgrade operation is completed on the device, you can Upload the upgrade result to the cloud or return it to the stress test client.

一种实施例中,所述升级提醒包括显示在所述应用中特定位置的升级标记;步骤S220,对所述设备进行升级模拟控制,以控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果,包括:In one embodiment, the upgrade reminder includes an upgrade mark displayed at a specific location in the application; step S220, perform upgrade simulation control on the device, so as to control the device to perform the upgrade reminder corresponding to the application The upgrade operation to get the upgrade results, including:

对所述设备发送模拟升级指令,所述模拟升级指令触发所述设备模拟触发所述特定位置,使得所述应用执行所述升级标记对应的升级操作;获取所述应用执行所述升级操作后的升级结果。Sending a simulated upgrade command to the device, the simulated upgrade command triggers the device to simulate triggering the specific location, so that the application performs the upgrade operation corresponding to the upgrade mark; obtains the application after the upgrade operation is performed Upgrade results.

特定位置例如应用中升级版本的控件位置,基于模拟升级指令设备可以模拟点击等触发操作,模拟触发所述特定位置,使得应用执行升级标记对应的升级操作,例如下载应用升级包进行安装,在升级完成后生成升级结果,可以将升级结果上报云端或发送至本地终端的压测客户端。A specific location, such as the control location of the upgraded version in the application, based on the simulated upgrade command, the device can simulate trigger operations such as clicking, and simulate the triggering of the specific location, so that the application performs the upgrade operation corresponding to the upgrade mark, such as downloading the application upgrade package and installing it. After completion, the upgrade result is generated, and the upgrade result can be reported to the cloud or sent to the pressure test client of the local terminal.

一种实施例中,所述获取所述应用执行所述升级操作后的升级结果,包括:In one embodiment, the obtaining the upgrade result after the application performs the upgrade operation includes:

接收所述设备返回的所述升级结果或所述云端返回的所述设备上传的所述升级结果,所述升级结果中至少包括升级结果指示信息以及升级后所述应用的版本信息。receiving the upgrade result returned by the device or the upgrade result uploaded by the device returned by the cloud, the upgrade result at least including upgrade result indication information and version information of the upgraded application.

设备在升级完成后生成升级结果,可以将升级结果上报云端或发送至本地终端的压测客户端,设备将升级结果上报云端时,本地终端可以从云端接收升级结果。升级结果可以包括升级是否成功的升级结果指示信息及升级后应用的版本信息。After the device is upgraded, the upgrade result is generated, and the upgrade result can be reported to the cloud or sent to the pressure test client of the local terminal. When the device reports the upgrade result to the cloud, the local terminal can receive the upgrade result from the cloud. The upgrade result may include upgrade result indication information indicating whether the upgrade is successful, and version information of the upgraded application.

在步骤S230中,根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果。In step S230, according to the upgrade result, the cloud performs forced downgrade control on the device, controls the device to perform a check-free downgrade operation on the application, and obtains a downgrade result.

本示例的实施方式中,强制降级控制即强行控制设备对应用进行降级,例如降级为某个低版本的应用。免校验降级操作即设备不进行校验直接进行降级的强制操作,例如设备直接获取某个低版本的安装包,不进行版本高低的校验,直接安装该低版本的安装包进行降级安装,其中,低版本的安装包可以是压测客户端指定的,也可以是云端指定的。降级结果可以包括降级是否成功的降级结果指示信息及降级后应用的版本信息。In the implementation of this example, the forced downgrade control is to forcibly control the device to downgrade the application, for example, downgrade to an application of a lower version. The verification-free downgrade operation is a mandatory operation for the device to directly downgrade without verification. For example, the device directly obtains a lower version of the installation package without performing version verification, and directly installs the lower version of the installation package for downgrade installation. Among them, the installation package of the lower version can be specified by the stress test client or the cloud. The downgrade result may include downgrade result indication information indicating whether the downgrade is successful, and version information of the downgraded application.

本地终端在接收到升级结果后,向云端发送降级指令,触发云端对设备发送强制降级指令,进而通过云端对设备进行强制降级控制,控制设备对应用执行免校验降级操作,设备上完成降级操作后,可以将降级结果上传至云端或者返回至压测客户端。After receiving the upgrade result, the local terminal sends a downgrade command to the cloud, which triggers the cloud to send a forced downgrade command to the device, and then controls the device through the cloud to force downgrade, controls the device to perform a verification-free downgrade operation on the application, and completes the downgrade operation on the device After that, the degraded result can be uploaded to the cloud or returned to the stress test client.

一种实施例中,步骤S220,根据所述升级结果,通过所述云端对所述设备进行强制降级控制,以控制所述设备对所述应用执行免校验降级操作,包括:In one embodiment, step S220, according to the upgrade result, performs forced downgrade control on the device through the cloud, so as to control the device to perform a check-free downgrade operation on the application, including:

根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作。According to the upgrade result, a downgrade instruction of specific permissions is generated and sent to the cloud, triggering the cloud to send a forced downgrade instruction to the device, and the forced downgrade instruction is used to trigger the device to perform verification-free execution of the application downgrade operation.

特定权限即具有指示云端进行强制降级流程的权限,特定权限可以是管理员权限(admin身份对应的权限)获取预先约定的特殊权限,即特定权限的降级指令可以是携带admin身份信息或特殊权限信息的指令。The specific authority has the authority to instruct the cloud to perform a forced downgrade process. The specific authority can be the administrator authority (the authority corresponding to the admin identity) to obtain the pre-agreed special authority, that is, the downgrade instruction of the specific authority can carry admin identity information or special authority information instructions.

本地终端可以通过压测客户端模拟以admin身份等特定权限调用云端的强制OTA降级接口,向云端发送特定权限的降级指令。云端接收到降级指令后可以识别到特定权限,识别到特定权限时,生成强制降级指令发送至设备,触发所述设备对所述应用执行免校验降级操作。The local terminal can use the pressure test client to simulate calling the cloud's forced OTA downgrade interface with specific permissions such as the admin identity, and send a specific permission downgrade command to the cloud. After receiving the downgrade instruction, the cloud can identify the specific authority. When the specific authority is identified, it will generate a forced downgrade instruction and send it to the device, triggering the device to perform a verification-free downgrade operation on the application.

一种实施例中,所述特定权限的降级指令携带管理员权限信息及特定指示信息;所述强制降级指令携带强制降级指示及所述应用的降级版本信息;所述根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作,包括:In one embodiment, the downgrade instruction of the specific authority carries administrator authority information and specific instruction information; the forced downgrade instruction carries the forced downgrade instruction and the downgraded version information of the application; according to the upgrade result, the generated A downgrade command of a specific authority is sent to the cloud, triggering the cloud to send a forced downgrade command to the device, and the forced downgrade command is used to trigger the device to perform a check-free downgrade operation on the application, including:

根据所述升级结果,生成所述降级指令;将所述降级指令发送至所述云端,所述降级指令触发所述云端验证所述管理员权限信息及特定指示信息通过后,生成所述强制降级指令发送至所述设备,所述强制降级指令触发所述设备在识别到所述强制降级指示后,基于所述降级版本信息对所述应用执行免校验降级操作。Generate the downgrade instruction according to the upgrade result; send the downgrade instruction to the cloud, and the downgrade instruction triggers the cloud to verify that the administrator authority information and specific instruction information pass, and then generate the forced downgrade An instruction is sent to the device, and the forced downgrade instruction triggers the device to perform a verification-free downgrade operation on the application based on the downgrade version information after recognizing the forced downgrade instruction.

管理员权限信息即admin身份信息,特定指示信息即指示设备进行降级的信息,特定指示信息可以是交互升级任务的特定任务标识(任务ID,如debug-job)。The administrator authority information is the admin identity information, and the specific instruction information is the information instructing the device to downgrade, and the specific instruction information may be a specific task identifier (task ID, such as debug-job) of the interactive upgrade task.

云端接收到降级指令后可以对管理员权限信息及特定指示信息进行识别验证,即云端验证权限信息是否为管理员权限信息,指示信息是否为特定指示信息,如是则验证通过,确定降级指令指示强制降级任务。After the cloud receives the downgrade instruction, it can identify and verify the administrator authority information and specific instruction information, that is, the cloud verifies whether the authority information is administrator authority information, and whether the instruction information is specific instruction information. If so, the verification is passed, and the downgrade instruction instruction is mandatory Downgrade tasks.

强制降级指示即用于指示设备执行免校验降级操作的指示信息,强制降级指示可以是预先约定的指示信息,例如约定强制降级指示为标识isForce=1。The forced downgrade indication is indication information used to instruct the device to perform a check-free downgrade operation, and the forced downgrade indication may be pre-agreed indication information, for example, the agreed forced downgrade indication is the flag isForce=1.

降级版本信息即比当前版本信息(即步骤S220升级后的应用的版本信息)指示的更低应用安装包版本的信息,例如当前版本信息为10版本的应用信息,则降级版本信息可以是09版本的应用信息。The downgraded version information is the information of the lower application installation package version indicated by the current version information (that is, the version information of the application upgraded in step S220). For example, the current version information is the application information of version 10, and the downgraded version information can be version 09 application information.

云端验证管理员权限信息及特定指示信息通过后,可以根据设备上应用的当前版本信息(即步骤S220升级后的应用的版本信息)携带强制降级指示及应用的降级版本信息的强制降级指令,指示设备在识别到强制降级指示后,基于降级版本信息对所述应用执行免校验降级操作。After the cloud verifies the administrator authority information and the specific instruction information, it can carry the forced downgrade instruction and the forced downgrade instruction of the downgraded version information of the application according to the current version information of the application on the device (that is, the version information of the upgraded application in step S220), indicating After the device recognizes the forced downgrade indication, it performs a check-free downgrade operation on the application based on the downgrade version information.

一种实施例中,所述根据所述升级结果,生成所述降级指令,包括:当所述升级结果指示所述应用升级成功时,生成携带管理员权限信息及特定指示信息的所述降级指令。基于升级结果中的升级结果指示信息可以确定应用是否升级成功,应用升级成功时生成降级指令,可以仅在升级成功时不断循环升降级测试。可以理解,一些实施例中,仅根据循环次数进行循环,不考虑应用是否升级成功。In one embodiment, the generating the downgrade instruction according to the upgrade result includes: when the upgrade result indicates that the application upgrade is successful, generating the downgrade instruction carrying administrator authority information and specific indication information . Based on the upgrade result indication information in the upgrade result, it can be determined whether the application is upgraded successfully. When the application upgrade is successful, a downgrade instruction is generated. Only when the upgrade is successful, the downgrade test can be continuously cycled. It can be understood that in some embodiments, the loop is performed only according to the number of loops, regardless of whether the application is upgraded successfully.

在步骤S240中,循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。In step S240, the device is cyclically controlled to perform the upgrade operation and the check-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result in a loop to test the interactive upgrade performance of the device.

本示例的实施方式中,基于上述步骤完成一次升级及降级的循环,根据预定的循环次数,本地终端可以通过压测客户端循环控制设备对应用执行升级操作及免校验降级操作,进而进行循环交互升降级测试,循环获得升级结果及降级结果,根据升级结果及降级结果可以测试设备对应用对应的安装包的交互升级性能。In the implementation of this example, an upgrade and downgrade cycle is completed based on the above steps. According to the predetermined number of cycles, the local terminal can perform an upgrade operation and a verification-free downgrade operation on the application through the stress test client cycle control device, and then perform a cycle Interactive upgrade and downgrade test, obtain the upgrade result and downgrade result cyclically, and test the interactive upgrade performance of the device to the installation package corresponding to the application according to the upgrade result and downgrade result.

一种实施例中,步骤S240,所述循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能,包括:In one embodiment, in step S240, the loop controls the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result through a loop, and test the device interactive upgrade capabilities, including:

获取用于进行循环交互升级测试的目标循环次数;根据所述目标循环次数,循环控制所述设备对所述应用执行所述升级操作及免校验降级操作,得到每次循环产生的所述升级结果及所述降级结果;基于每次循环产生的所述升级结果及所述降级结果,确定所述设备的交互升降级性能。Obtaining the target number of cycles for performing a cyclic interactive upgrade test; according to the target cycle number, cyclically control the device to perform the upgrade operation and the verification-free downgrade operation on the application, and obtain the upgrade generated in each cycle Result and the degrading result: determining the interactive degrading performance of the device based on the upgrading result and the degrading result generated in each cycle.

测试人员可以在本地终端通过压测客户端设置目标循环次数,例如18次,每次循环控制设备对应用执行一次升级操作及一次免校验降级操作,即循环执行步骤S220及步骤S230,每次循环产生的一升级结果及一降级结果,根据循环获取所述升级结果及降级结果可以确定设备对应用进行交互升级时的升级性能,有效避免设备升级升级包后变砖的风险。The tester can set the target number of cycles through the stress test client on the local terminal, for example, 18 times. Each cycle controls the device to perform an upgrade operation and a verification-free downgrade operation on the application, that is, step S220 and step S230 are executed cyclically. An upgrade result and a downgrade result generated cyclically, according to the cyclic acquisition of the upgrade result and the downgrade result, the upgrade performance of the device when interactively upgrading the application can be determined, effectively avoiding the risk of the device becoming bricked after upgrading the upgrade package.

为便于更好的实施本申请实施例提供的设备的交互升级测试方法,本申请实施例还提供一种基于上述设备的交互升级测试方法的设备的交互升级测试装置。其中名词的含义与上述设备的交互升级测试方法中相同,具体实现细节可以参考方法实施例中的说明。图3示出了根据本申请的一个实施例的设备的交互升级测试装置的框图。In order to facilitate better implementation of the device interactive upgrade testing method provided in the embodiment of the present application, the embodiment of the present application further provides a device interactive upgrade testing device based on the above-mentioned device interactive upgrade testing method. The meanings of the nouns are the same as those in the above-mentioned interactive upgrade test method for devices, and for specific implementation details, please refer to the description in the method embodiments. Fig. 3 shows a block diagram of an interactive upgrade testing device for equipment according to an embodiment of the present application.

如图3所示,设备的交互升级测试装置300中可以包括升级指示模块310、升级控制模块320、降级控制模块330以及循环控制模块340。As shown in FIG. 3 , the device interactive upgrade testing device 300 may include an upgrade instruction module 310 , an upgrade control module 320 , a downgrade control module 330 and a cycle control module 340 .

升级指示模块310可以用于基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;升级控制模块320可以用于对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;降级控制模块330可以用于根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;循环控制模块340可以用于循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。The upgrade instruction module 310 can be used to generate a simulated upgrade instruction based on the identification of the device and send it to the cloud, triggering the cloud to send an application upgrade reminder to the device; the upgrade control module 320 can be used to perform upgrade simulation control on the device, control The device performs an upgrade operation corresponding to the upgrade reminder on the application to obtain an upgrade result; the downgrade control module 330 can be used to perform forced downgrade control on the device through the cloud according to the upgrade result, and control the The device performs a check-free downgrade operation on the application to obtain a downgrade result; the loop control module 340 can be used to loop control the device to perform the upgrade operation and the check-free downgrade operation on the application, so as to obtain The upgrade result and the downgrade result test the interactive upgrade performance of the device.

在本申请的一些实施例中,降级控制模块330,包括:降级控制单元,用于根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作。In some embodiments of the present application, the downgrade control module 330 includes: a downgrade control unit, configured to generate a specific permission downgrade instruction and send it to the cloud according to the upgrade result, triggering the cloud to send a mandatory A downgrade instruction, the forced downgrade instruction is used to trigger the device to perform a check-free downgrade operation on the application.

在本申请的一些实施例中,所述特定权限的降级指令携带管理员权限信息及特定指示信息;所述强制降级指令携带强制降级指示及所述应用的降级版本信息;所述降级控制单元,包括:降级指令生成子单元,用于根据所述升级结果,生成所述降级指令;降级控制子单元,用于将所述降级指令发送至所述云端,所述降级指令触发所述云端验证所述管理员权限信息及特定指示信息通过后,生成所述强制降级指令发送至所述设备,所述强制降级指令触发所述设备在识别到所述强制降级指示后,基于所述降级版本信息对所述应用执行免校验降级操作。In some embodiments of the present application, the downgrade instruction of the specific authority carries administrator authority information and specific instruction information; the forced downgrade instruction carries the forced downgrade instruction and the downgrade version information of the application; the downgrade control unit, It includes: a downgrading instruction generation subunit, configured to generate the downgrading instruction according to the upgrading result; a downgrading control subunit, configured to send the downgrading instruction to the cloud, and the downgrading instruction triggers the cloud verification station After the administrator authority information and specific instruction information are passed, the forced downgrade instruction is generated and sent to the device, and the forced downgrade instruction triggers the device to perform an action based on the downgrade version information after recognizing the forced downgrade instruction. The application performs a check-free downgrade operation.

在本申请的一些实施例中,所述:降级指令生成子单元,用于:当所述升级结果指示所述应用升级成功时,生成携带管理员权限信息及特定指示信息的所述降级指令。In some embodiments of the present application, the downgrade instruction generation subunit is configured to: generate the downgrade instruction carrying administrator authority information and specific indication information when the upgrade result indicates that the application upgrade is successful.

在本申请的一些实施例中,所述升级提醒包括显示在所述应用中特定位置的升级标记;所述升级控制模块320,包括:升级处理单元,用于对所述设备发送模拟升级指令,所述模拟升级指令触发所述设备模拟触发所述特定位置,使得所述应用执行所述升级标记对应的升级操作;升级结果获取单元,用于获取所述应用执行所述升级操作后的升级结果。In some embodiments of the present application, the upgrade reminder includes an upgrade mark displayed at a specific position in the application; the upgrade control module 320 includes: an upgrade processing unit, configured to send a simulated upgrade instruction to the device, The simulated upgrade instruction triggers the device to simulate triggering the specific location, so that the application performs the upgrade operation corresponding to the upgrade mark; the upgrade result obtaining unit is configured to obtain the upgrade result after the application performs the upgrade operation .

在本申请的一些实施例中,所述升级结果获取单元,用于:接收所述设备返回的所述升级结果或所述云端返回的所述设备上传的所述升级结果,所述升级结果中至少包括升级结果指示信息以及升级后所述应用的版本信息。In some embodiments of the present application, the upgrade result obtaining unit is configured to: receive the upgrade result returned by the device or the upgrade result uploaded by the device returned by the cloud, wherein the upgrade result At least including upgrade result indication information and version information of the application after upgrade.

在本申请的一些实施例中,所述循环控制模块340,用于:获取用于进行循环交互升级测试的目标循环次数;根据所述目标循环次数,循环控制所述设备对所述应用执行所述升级操作及免校验降级操作,得到每次循环产生的所述升级结果及所述降级结果;基于每次循环产生的所述升级结果及所述降级结果,确定所述设备的交互升降级性能。In some embodiments of the present application, the cycle control module 340 is configured to: obtain a target cycle number for performing a cycle interaction upgrade test; according to the target cycle number, cycle control the device to execute the The upgrade operation and the verification-free downgrade operation are performed to obtain the upgrade result and the downgrade result generated in each cycle; based on the upgrade result and the downgrade result generated in each cycle, the interactive upgrade and downgrade of the device is determined performance.

以这种方式,基于设备的交互升级测试装置300,在对设备进行交互升级测试时,循环通过模拟升级指令及升级模拟控制,控制设备进行升级操作,通过云端对设备进行强制降级控制使设备执行免校验降级操作,设备可以自动可靠地进行循环交互升级过程,进实现高效可靠进行设备的循环交互升降级测试。In this way, the device-based interactive upgrade test device 300, when performing an interactive upgrade test on the device, circulates through the simulated upgrade command and the upgrade simulation control, controls the device to perform the upgrade operation, and performs forced downgrade control on the device through the cloud to make the device execute Verification-free downgrade operation, the device can automatically and reliably perform the cyclic interactive upgrade process, and realize efficient and reliable cyclic interactive upgrade and downgrade test of the device.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present application, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.

此外,本申请实施例还提供一种电子设备,该电子设备可以为终端或者服务器,如图4所示,其示出了本申请实施例所涉及的电子设备的结构示意图,具体来讲:In addition, the embodiment of the present application also provides an electronic device, which can be a terminal or a server, as shown in FIG. 4 , which shows a schematic structural diagram of the electronic device involved in the embodiment of the present application. Specifically:

该电子设备可以包括一个或者一个以上处理核心的处理器401、一个或一个以上计算机可读存储介质的存储器402、电源403和输入单元404等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The electronic device may include a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, an input unit 404 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 4 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:

处理器401是该电子设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行计算机设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器401可包括一个或多个处理核心;优选的,处理器401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户页面和应用程序等,调制解调处理器主要处理无线通讯。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire computer device, by running or executing software programs and/or modules stored in the memory 402, and calling the Data, perform various functions of computer equipment and process data, so as to conduct overall monitoring of electronic equipment. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc. , the modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 401 .

存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402 . The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of computer equipment, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may further include a memory controller to provide the processor 401 with access to the memory 402 .

电子设备还包括给各个部件供电的电源403,优选的,电源403可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源403还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

该电子设备还可包括输入单元404,该输入单元404可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The electronic device can also include an input unit 404, which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

尽管未示出,电子设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,电子设备中的处理器401会按照如下的指令,将一个或一个以上的计算机程序的进程对应的可执行文件加载到存储器402中,并由处理器401来运行存储在存储器402中的计算机程序,从而实现各种功能,如处理器401可以执行下述步骤:Although not shown, the electronic device may also include a display unit, etc., which will not be repeated here. Specifically, in this embodiment, the processor 401 in the electronic device will load the executable file corresponding to the process of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 will run the executable file stored in the The computer program in memory 402, thereby realizes various functions, as processor 401 can perform the following steps:

基于设备的标识生成模拟升级指令发送至云端,触发所述云端向所述设备发送应用的升级提醒;对所述设备进行升级模拟控制,控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果;根据所述升级结果,通过所述云端对所述设备进行强制降级控制,控制所述设备对所述应用执行免校验降级操作,得到降级结果;循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能。Generate a simulated upgrade command based on the identifier of the device and send it to the cloud, triggering the cloud to send an application upgrade reminder to the device; perform upgrade simulation control on the device, and control the device to execute the upgrade reminder corresponding to the application Upgrade operation to obtain an upgrade result; according to the upgrade result, perform forced downgrade control on the device through the cloud, control the device to perform a verification-free downgrade operation on the application, and obtain a downgrade result; cyclically control the device Executing the upgrade operation and the check-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result in a loop, and test the interactive upgrade performance of the device.

在本申请的一些实施例中,根据所述升级结果,通过所述云端对所述设备进行强制降级控制,以控制所述设备对所述应用执行免校验降级操作时,处理器401可以执行:根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作。In some embodiments of the present application, according to the upgrade result, the cloud performs forced downgrade control on the device, so as to control the device to perform a check-free downgrade operation on the application, and the processor 401 may execute : According to the upgrade result, generate a downgrade command with specific permissions and send it to the cloud, trigger the cloud to send a forced downgrade command to the device, and the forced downgrade command is used to trigger the device to exempt the application from school Check the downgrade operation.

在本申请的一些实施例中,所述特定权限的降级指令携带管理员权限信息及特定指示信息;所述强制降级指令携带强制降级指示及所述应用的降级版本信息;所述根据所述升级结果,生成特定权限的降级指令发送至所述云端,触发所述云端向所述设备发送强制降级指令,所述强制降级指令用于触发所述设备对所述应用执行免校验降级操作时,处理器401可以执行:根据所述升级结果,生成所述降级指令;将所述降级指令发送至所述云端,所述降级指令触发所述云端验证所述管理员权限信息及特定指示信息通过后,生成所述强制降级指令发送至所述设备,所述强制降级指令触发所述设备在识别到所述强制降级指示后,基于所述降级版本信息对所述应用执行免校验降级操作。In some embodiments of the present application, the downgrade instruction of the specific authority carries administrator authority information and specific instruction information; the forced downgrade instruction carries the forced downgrade instruction and the downgrade version information of the application; As a result, a downgrade command with a specific permission is generated and sent to the cloud, triggering the cloud to send a forced downgrade command to the device, and when the forced downgrade command is used to trigger the device to perform a check-free downgrade operation on the application, The processor 401 may execute: generate the downgrade instruction according to the upgrade result; send the downgrade instruction to the cloud, and the downgrade instruction triggers the cloud to verify the administrator authority information and specific instruction information after passing the generating the forced downgrade instruction and sending it to the device, where the forced downgrade instruction triggers the device to perform a check-free downgrade operation on the application based on the downgrade version information after recognizing the forced downgrade instruction.

在本申请的一些实施例中,所述根据所述升级结果,生成所述降级指令时,处理器401可以执行:当所述升级结果指示所述应用升级成功时,生成携带管理员权限信息及特定指示信息的所述降级指令。In some embodiments of the present application, when generating the downgrade instruction according to the upgrade result, the processor 401 may execute: when the upgrade result indicates that the application upgrade is successful, generate an Said downgrade instruction for specific indication information.

在本申请的一些实施例中,所述升级提醒包括显示在所述应用中特定位置的升级标记;所述对所述设备进行升级模拟控制,以控制所述设备对所述应用执行所述升级提醒对应的升级操作,得到升级结果时,处理器401可以执行:对所述设备发送模拟升级指令,所述模拟升级指令触发所述设备模拟触发所述特定位置,使得所述应用执行所述升级标记对应的升级操作;获取所述应用执行所述升级操作后的升级结果。In some embodiments of the present application, the upgrade reminder includes an upgrade mark displayed at a specific position in the application; and performing upgrade simulation control on the device to control the device to perform the upgrade on the application Remind the corresponding upgrade operation, when the upgrade result is obtained, the processor 401 may execute: send a simulated upgrade instruction to the device, and the simulated upgrade instruction triggers the device to simulate triggering the specific location, so that the application performs the upgrade Mark the corresponding upgrade operation; obtain the upgrade result after the application executes the upgrade operation.

在本申请的一些实施例中,所述获取所述应用执行所述升级操作后的升级结果时,处理器401可以执行:接收所述设备返回的所述升级结果或所述云端返回的所述设备上传的所述升级结果,所述升级结果中至少包括升级结果指示信息以及升级后所述应用的版本信息。In some embodiments of the present application, when acquiring the upgrade result after the application performs the upgrade operation, the processor 401 may perform: receiving the upgrade result returned by the device or the upgrade result returned by the cloud. The upgrade result uploaded by the device, the upgrade result at least includes upgrade result indication information and version information of the upgraded application.

在本申请的一些实施例中,所述循环控制所述设备对所述应用执行所述升级操作及所述免校验降级操作,以通过循环获取所述升级结果及降级结果,测试所述设备的交互升级性能时,处理器401可以执行:获取用于进行循环交互升级测试的目标循环次数;根据所述目标循环次数,循环控制所述设备对所述应用执行所述升级操作及免校验降级操作,得到每次循环产生的所述升级结果及所述降级结果;基于每次循环产生的所述升级结果及所述降级结果,确定所述设备的交互升降级性能。In some embodiments of the present application, the loop controls the device to perform the upgrade operation and the verification-free downgrade operation on the application, so as to obtain the upgrade result and the downgrade result through a loop, and test the device When the performance of the interactive upgrade is improved, the processor 401 may execute: acquiring a target number of cycles for performing a cyclic interactive upgrade test; according to the target number of cycles, cyclically control the device to perform the upgrade operation and check-free for the application The downgrade operation is to obtain the upgrade result and the downgrade result generated in each cycle; and determine the interactive downgrade performance of the device based on the upgrade result and the downgrade result generated in each cycle.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过计算机程序来完成,或通过计算机程序控制相关的硬件来完成,该计算机程序可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a computer program, or by controlling related hardware through a computer program, and the computer program can be stored in a computer-readable storage media and is loaded and executed by the processor.

为此,本申请实施例还提供一种存储介质,其中存储有计算机程序,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种方法中的步骤。To this end, the embodiment of the present application further provides a storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the embodiments of the present application.

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

由于该存储介质中所存储的计算机程序,可以执行本申请实施例所提供的任一种方法中的步骤,因此,可以实现本申请实施例所提供的方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the computer program stored in the storage medium can execute the steps in any one of the methods provided in the embodiments of the present application, therefore, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be realized. For details, see the preceding The embodiment of this will not be repeated here.

本领域技术人员在考虑说明书及实践这里公开的实施方式后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application .

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的实施例,而可以在不脱离其范围的情况下进行各种修改和改变。It should be understood that the present application is not limited to the embodiments which have been described above and shown in the accompanying drawings, but various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. An interactive upgrade testing method for a device, comprising:
Generating an analog upgrade instruction based on the identification of the equipment, and sending the analog upgrade instruction to a cloud terminal, and triggering the cloud terminal to send an upgrade prompt of an application to the equipment;
performing upgrade simulation control on the equipment, and controlling the equipment to execute upgrade operation corresponding to the upgrade prompt on the application to obtain an upgrade result;
according to the upgrading result, the cloud performs forced degradation control on the equipment, and the equipment is controlled to perform verification-free degradation operation on the application to obtain a degradation result;
and circularly controlling the equipment to execute the upgrading operation and the verification-free degradation operation on the application so as to obtain the upgrading result and the degradation result through circulation and test the interactive upgrading performance of the equipment.
2. The method of claim 1, wherein the forcing the downgrade control of the device through the cloud to control the device to perform a verification-free downgrade operation on the application according to the upgrade result comprises:
and generating a degradation instruction with a specific authority according to the upgrading result, sending the degradation instruction to the cloud end, triggering the cloud end to send a forced degradation instruction to the equipment, wherein the forced degradation instruction is used for triggering the equipment to execute verification-free degradation operation on the application.
3. The method of claim 2, wherein the degradation instruction of the specific authority carries administrator authority information and specific instruction information; the forced degradation instruction carries forced degradation instruction and degradation version information of the application;
and generating a degradation instruction of a specific authority according to the upgrading result, sending the degradation instruction to the cloud end, triggering the cloud end to send a forced degradation instruction to the equipment, wherein the forced degradation instruction is used for triggering the equipment to execute verification-free degradation operation on the application, and comprises the following steps:
generating the degradation instruction according to the upgrading result;
and sending the degradation instruction to the cloud, wherein the degradation instruction triggers the cloud to verify that the administrator authority information and the specific indication information pass, then generates the forced degradation instruction and sends the forced degradation instruction to the equipment, and the forced degradation instruction triggers the equipment to execute verification-free degradation operation on the application based on the degradation version information after the forced degradation instruction is identified.
4. The method of claim 3, wherein generating the demotion instruction according to the promotion result comprises:
And when the upgrading result indicates that the application is successfully upgraded, generating the degradation instruction carrying the administrator authority information and the specific indication information.
5. The method of claim 1, wherein the upgrade reminder includes an upgrade flag displayed at a particular location in the application;
the step of performing upgrade simulation control on the device to control the device to execute the upgrade operation corresponding to the upgrade prompt on the application to obtain an upgrade result comprises the following steps:
sending a simulated upgrading instruction to the equipment, wherein the simulated upgrading instruction triggers the equipment to simulate triggering the specific position, so that the application executes upgrading operation corresponding to the upgrading mark;
and obtaining an upgrading result of the application after the upgrading operation is executed.
6. The method of claim 1, wherein the obtaining the upgrade result of the application after performing the upgrade operation comprises:
and receiving the upgrade result returned by the equipment or the upgrade result uploaded by the equipment returned by the cloud, wherein the upgrade result at least comprises upgrade result indication information and version information of the application after upgrade.
7. The method of claim 1, wherein the loop controlling the device to perform the upgrade operation and the verification-free downgrade operation on the application to obtain the upgrade result and the downgrade result by a loop, testing interactive upgrade performance of the device, comprises:
acquiring target circulation times for performing circulation interactive upgrade test;
according to the target circulation times, circularly controlling the equipment to execute the upgrading operation and the verification-free degradation operation on the application to obtain the upgrading result and the degradation result generated by each circulation;
and determining interactive upgrading and degrading performance of the equipment based on the upgrading result and the degrading result generated by each cycle.
8. An interactive upgrade testing apparatus for a device, comprising:
the upgrading instruction module is used for generating a simulated upgrading instruction based on the identification of the equipment and sending the simulated upgrading instruction to the cloud, and triggering the cloud to send an upgrading prompt of the application to the equipment;
the upgrade control module is used for carrying out upgrade simulation control on the equipment and controlling the equipment to execute the upgrade operation corresponding to the upgrade prompt on the application to obtain an upgrade result;
The degradation control module is used for carrying out forced degradation control on the equipment through the cloud according to the upgrading result, controlling the equipment to execute verification-free degradation operation on the application, and obtaining a degradation result;
and the circulation control module is used for circularly controlling the equipment to execute the upgrading operation and the verification-free degradation operation on the application so as to obtain the upgrading result and the degradation result through circulation and test the interactive upgrading performance of the equipment.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in a memory to perform the method of any one of claims 1 to 7.
CN202111088671.4A 2021-09-16 2021-09-16 Interactive upgrade test method and device of equipment, storage medium and electronic equipment Active CN113890825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111088671.4A CN113890825B (en) 2021-09-16 2021-09-16 Interactive upgrade test method and device of equipment, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111088671.4A CN113890825B (en) 2021-09-16 2021-09-16 Interactive upgrade test method and device of equipment, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113890825A CN113890825A (en) 2022-01-04
CN113890825B true CN113890825B (en) 2023-08-01

Family

ID=79009291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111088671.4A Active CN113890825B (en) 2021-09-16 2021-09-16 Interactive upgrade test method and device of equipment, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113890825B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811979A (en) * 2015-04-16 2015-07-29 努比亚技术有限公司 Pressure testing method and device based on FOTA upgrading
CN104917633A (en) * 2015-04-20 2015-09-16 努比亚技术有限公司 Method and device simulating FOTA upgrade
CN104978271A (en) * 2015-07-06 2015-10-14 Tcl集团股份有限公司 Automatic upgrade pressure measurement method and system for Android system
CN105653446A (en) * 2015-12-24 2016-06-08 北京奇虎科技有限公司 Automated test method and system for mobile terminal
CN109117156A (en) * 2018-07-18 2019-01-01 郑州云海信息技术有限公司 A kind of upgrade method and system of storage system
CN110892375A (en) * 2017-06-06 2020-03-17 起元技术有限责任公司 Integrated system for rule editing, simulation, version control and business process management
WO2020181814A1 (en) * 2019-03-12 2020-09-17 平安普惠企业管理有限公司 Application program upgrading method and apparatus, terminal and computer readable storage medium
CN112231228A (en) * 2020-11-06 2021-01-15 广州极飞科技有限公司 A firmware upgrade test method, device, platform, device and storage medium
CN112291621A (en) * 2020-10-29 2021-01-29 深圳创维-Rgb电子有限公司 System upgrading automation test method, device and test equipment
CN112306884A (en) * 2020-11-10 2021-02-02 广州华多网络科技有限公司 Program test control and execution method and corresponding device, equipment and medium
CN112346760A (en) * 2020-10-20 2021-02-09 深圳Tcl新技术有限公司 Application upgrade method, system, device and storage medium
CN112860559A (en) * 2021-02-19 2021-05-28 一汽解放汽车有限公司 Upgrade test system and method
CN113099439A (en) * 2021-03-29 2021-07-09 上海闻泰信息技术有限公司 OTA upgrade pressure test method, device, computer equipment and storage medium
US11093380B1 (en) * 2020-05-29 2021-08-17 EMC IP Holding Company LLC Automated testing of backup component upgrades within a data protection environment
US11108638B1 (en) * 2020-06-08 2021-08-31 Robin Systems, Inc. Health monitoring of automatically deployed and managed network pipelines

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8423967B2 (en) * 2009-07-01 2013-04-16 International Business Machines Corporation Automated level-based targeted test configuration
US20170163787A1 (en) * 2015-12-07 2017-06-08 Le Holdings (Beijing) Co., Ltd. Method and electronic device for upgrading or downgrading system
US10042628B2 (en) * 2016-06-29 2018-08-07 Vmware, Inc. Automated upgrade system for a service-based distributed computer system
US10552305B2 (en) * 2017-12-12 2020-02-04 Sap Se Custom upgrade testing system
US10769056B2 (en) * 2018-02-26 2020-09-08 The Ultimate Software Group, Inc. System for autonomously testing a computer system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811979A (en) * 2015-04-16 2015-07-29 努比亚技术有限公司 Pressure testing method and device based on FOTA upgrading
CN104917633A (en) * 2015-04-20 2015-09-16 努比亚技术有限公司 Method and device simulating FOTA upgrade
CN104978271A (en) * 2015-07-06 2015-10-14 Tcl集团股份有限公司 Automatic upgrade pressure measurement method and system for Android system
CN105653446A (en) * 2015-12-24 2016-06-08 北京奇虎科技有限公司 Automated test method and system for mobile terminal
CN110892375A (en) * 2017-06-06 2020-03-17 起元技术有限责任公司 Integrated system for rule editing, simulation, version control and business process management
CN109117156A (en) * 2018-07-18 2019-01-01 郑州云海信息技术有限公司 A kind of upgrade method and system of storage system
WO2020181814A1 (en) * 2019-03-12 2020-09-17 平安普惠企业管理有限公司 Application program upgrading method and apparatus, terminal and computer readable storage medium
US11093380B1 (en) * 2020-05-29 2021-08-17 EMC IP Holding Company LLC Automated testing of backup component upgrades within a data protection environment
US11108638B1 (en) * 2020-06-08 2021-08-31 Robin Systems, Inc. Health monitoring of automatically deployed and managed network pipelines
CN112346760A (en) * 2020-10-20 2021-02-09 深圳Tcl新技术有限公司 Application upgrade method, system, device and storage medium
CN112291621A (en) * 2020-10-29 2021-01-29 深圳创维-Rgb电子有限公司 System upgrading automation test method, device and test equipment
CN112231228A (en) * 2020-11-06 2021-01-15 广州极飞科技有限公司 A firmware upgrade test method, device, platform, device and storage medium
CN112306884A (en) * 2020-11-10 2021-02-02 广州华多网络科技有限公司 Program test control and execution method and corresponding device, equipment and medium
CN112860559A (en) * 2021-02-19 2021-05-28 一汽解放汽车有限公司 Upgrade test system and method
CN113099439A (en) * 2021-03-29 2021-07-09 上海闻泰信息技术有限公司 OTA upgrade pressure test method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Web环境下作战仿真互联测试研究;裴晓黎;龚立;;计算机与数字工程(第08期);全文 *

Also Published As

Publication number Publication date
CN113890825A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN106598835B (en) Application testing method, device and system
CN104811979B (en) Method for testing pressure based on FOTA upgrading and device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN103152327B (en) A kind of method, client and system configuring compression/de-compression plug-in unit
US11023220B2 (en) Firmware update with integrated smart sequence and action engine
CN112631919A (en) Comparison test method and device, computer equipment and storage medium
CN106980565B (en) Upgrading process monitoring method and device
CN105323269A (en) Method for updating APP in Android system, terminal and storage medium
CN109359020A (en) Start time test method and device, computer installation and storage medium
CN110659198A (en) Application program test case execution method and device and software test system
CN107168758A (en) The code compilation inspection method and device of many code libraries
CN109408091A (en) Application upgrading method and device
CN117931637A (en) Automatic real vehicle testing method and device for vehicle-mounted information entertainment system, vehicle and storage medium
CN108132832B (en) Application program starting method and device
CN113890825B (en) Interactive upgrade test method and device of equipment, storage medium and electronic equipment
CN107590064A (en) A kind of application upgrade method of testing, device and system
CN115809077A (en) A vehicle software upgrade method, device, equipment and storage medium
CN114880211A (en) Pressure testing method and device for vehicle-mounted software upgrading
CN114449554B (en) An equipment upgrade method, device, equipment and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
CN106502728B (en) Management method and device for downloading application program and electronic equipment
CN111124795A (en) Application start monitoring method, device and equipment
CN115495367A (en) Test method and test device
TW201941088A (en) System for open software defined service of data center and method thereof

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