CN109511012A - Set top box upgrading test method, device, electronic equipment and medium - Google Patents

Set top box upgrading test method, device, electronic equipment and medium Download PDF

Info

Publication number
CN109511012A
CN109511012A CN201811457076.1A CN201811457076A CN109511012A CN 109511012 A CN109511012 A CN 109511012A CN 201811457076 A CN201811457076 A CN 201811457076A CN 109511012 A CN109511012 A CN 109511012A
Authority
CN
China
Prior art keywords
upgrading
path
top box
version number
version
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.)
Granted
Application number
CN201811457076.1A
Other languages
Chinese (zh)
Other versions
CN109511012B (en
Inventor
李�灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201811457076.1A priority Critical patent/CN109511012B/en
Publication of CN109511012A publication Critical patent/CN109511012A/en
Application granted granted Critical
Publication of CN109511012B publication Critical patent/CN109511012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4425Monitoring of client processing errors or hardware failure
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to set top box upgrading field more particularly to a kind of set top box upgrading test method, device, electronic equipment and media.Set top box upgrading test method includes: to obtain n version number of set top box upgrading file, and n >=3, n are positive integer;Multiple upgrading pathes are obtained according to the n version number;Upgrading test is carried out to set-top box with each upgrading path respectively.Set top box upgrading test method, device, electronic equipment and medium provided by the invention, are able to achieve the automatic upgrading test for carrying out set-top box of intelligence, and test method is simple, it is easy to accomplish.

Description

Set top box upgrading test method, device, electronic equipment and medium
Technical field
The present invention relates to set top box upgrading field more particularly to a kind of set top box upgrading test methods, device, electronic equipment And medium.
Background technique
TV is at the necessity of amusement, people can often see TV after the leisure for people's lives.TV is generally by machine Top box controls.In existing set-top box, with the update of set-top box version, the version number of set-top-box system is more and more, is It can guarantee that set-top box is upgraded to highest version from different version numbers, need to test the upgrading of set-top box.It is existing It is all manual testing, test speed is slow, not smart enough when set-top box carries out upgrading test.
Therefore a kind of device or method that can carry out set top box upgrading test automatically how are provided, just at the prior art Demand.
Summary of the invention
The present invention provides a kind of set top box upgrading test method, device, electronic equipment and medium, solves existing machine top Box cannot automatically open the problem of television set, realize the effect for making set-top-box opening in time.
In a first aspect, the embodiment of the invention provides a kind of set top box upgrading test method, this method comprises: obtaining machine top N version number of kit upgrading file, n >=3, n are positive integer;Multiple upgrading pathes are obtained according to the n version number;It uses respectively Each upgrading path carries out upgrading test to set-top box.
Preferably, the upgrading path includes the first upgrading path defined by adjacent version number and is determined by being spaced version number 4th upgrading path of justice.
Preferably, it is described according to the n version number obtain multiple upgrading pathes include: build version number be n First path, first upgrading path include sequentially connected n-1 the first subpaths;First path is saved as upgrading Path;Build version number is the i+1 path of n-i, the i+1 path include sequentially connected n-i-1 i-th+ 1 subpath, i < n-2, i are positive integer;If i+1 subpath and the upgrading path saved are not overlapped, save and saved The i+1 subpath that is not overlapped of upgrading path as upgrading path;The (n-1)th path that build version number is 2, it is described (n-1)th path includes sequentially connected 1 the (n-1)th subpath;If the (n-1)th subpath and the upgrading path saved do not weigh It closes, the (n-1)th subpath that the upgrading path for saving and having saved is not overlapped is as upgrading path.
Preferably, if before the i+1 subpath and the upgrading path saved be not overlapped, further includes: judge i+1 Whether subpath and the upgrading path saved are overlapped;If (n-1)th subpath and the upgrading path saved are not overlapped it Before, further includes: judge whether the (n-1)th subpath and the upgrading path saved are overlapped.
It is preferably, described that carry out upgrading test to set-top box with every upgrading path respectively include: to obtain current upgrading road The minimum version number of diameter;Set-top box is reduced into the minimum version of the current upgrading path;According to the version of current upgrading path This number sequence upgrades set-top box.
Preferably, after version number's sequence according to current upgrading path upgrades set-top box, further includes: obtain Take the maximum version number of current upgrading path;Judge upgrading after version whether be the current upgrading path highest version; If upgrading after version be not the current upgrading path highest version, continue to use it is adjacent in the current upgrading path under One version is upgraded, until the highest version of current upgrading path;After the completion of current upgrading path upgrading, next liter is used Grade path upgrades set-top box.
Preferably, the set top box upgrading test method further include: be directed to each upgrading path, detection carries out upgrading test Whether set-top box afterwards upgrades failure;If upgrading failure, records the staging error in respective upgrades path.
Second aspect, the present invention also provides a kind of set top box upgrading test device, which includes: version Number obtain module, for control acquisition set top box upgrading file n version number, n >=3, n are positive integer;Upgrading path obtains Module obtains multiple upgrading pathes according to the n version number for controlling;Test module, for controlling respectively with each liter Grade path carries out upgrading test to set-top box.
The third aspect, the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, it is characterised in that: the processor realizes the present invention the when executing described program Set top box upgrading test method described in one side embodiment.
Fourth aspect, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, special Sign is: set top box upgrading test method described in first aspect present invention embodiment is realized when the program is executed by processor.
Compared with prior art, set top box upgrading test method, device, electronic equipment and the medium of the embodiment of the present invention, By obtaining n version number of set top box upgrading file, n >=3, n are positive integer;Multiple liters are obtained according to the n version number Grade path;Upgrading test is carried out to set-top box with each upgrading path respectively, is able to achieve the automatic upgrading for carrying out set-top box of intelligence Test, test method are simple, it is easy to accomplish.
Detailed description of the invention
Fig. 1 is the flow diagram for the set top box upgrading test method that first embodiment of the invention provides;
Fig. 2 is the structural schematic diagram for the upgrading path that first embodiment of the invention provides;
Fig. 3 is the flow diagram for the set top box upgrading test method that second embodiment of the invention provides;
Fig. 4 is the flow diagram for the set top box upgrading test method that third embodiment of the invention provides;
Fig. 5 is the flow diagram for the set top box upgrading test method that fourth embodiment of the invention provides;
Fig. 6 is the modular structure schematic diagram for the set top box upgrading test device that seventh embodiment of the invention provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
In the description of the present invention, it is to be understood that, term " first ", " second " etc. can be used to describe herein respectively Kind direction, movement, step or element etc., but these directions, movement, step or element should not be limited by these terms.These terms It is only used for distinguishing first direction, movement, step or element and another direction, movement, step or element.For example, Without departing from the scope of the invention, First Speed difference can be known as to second speed difference, and similarly, can incited somebody to action Second speed difference is known as First Speed difference.First Speed difference and second speed difference both speed difference, but its It is not same speed difference.Term " first ", " second " etc. are not understood to indicate or imply relative importance or implicit Indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or impliedly wrap Include one or more of the features.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three Deng unless otherwise specifically defined.
Referring to Fig. 1, the first embodiment of the present disclosure provides a kind of set top box upgrading test method, which is surveyed Method for testing be applied to server, can be executed by the set top box upgrading test device in server, the device can by hardware and/ Or the mode of software is realized, and is typically integrated into server, for testing the upgrade file system using different editions System upgrading, to determine updating result.The set top box upgrading test method includes:
S11: n version number of set top box upgrading file is obtained, n >=3, n are positive integer;
S12: multiple upgrading pathes are obtained according to the n version number;
S13: upgrading test is carried out to set-top box with each upgrading path respectively.
In S11, with the development of time, the system of set-top box will do it upgrading;The system of set-top box upgrades all every time Need upgrade file, each upgrade file Dou Youyige version number.If the version number of first version of set-top-box system is V1, The version number of second version is V2, and the version number of third version is V3, and the version number of the 4th version is V4, the 5th version This version number is V5.In the number and the name embodiment of the present invention of the version number of set-top box without limitation.Obtain set-top box liter Without limitation, the instruction that can be reception user obtains the mode of n version number of grade file, is also possible to from memory It obtains.In the present embodiment, the number n of version number is 5.
In S12, referring to Fig. 2, upgrading path is node path experienced when being upgraded to highest version from lowest version. Node is the version number reached when set-top-box system upgrading.If the version of set-top-box system is upgraded to version V4 from V1, It first can be upgraded to version V2 from version V1, then version V3 is upgraded to by version V2 with V1 → V2 → V3 → V4, be risen by version V3 Grade arrives version V4, experienced the node of tetra- versions of V1, V2, V3 and V4;Can also with V1 → V3 → V4, can also with V1 → V2 → V4, can also be with V1 → V4.Four kinds of modes are all a kind of upgrading pathes.It is appreciated that difference liter can be passed through when cross-version upgrading The modes such as grade packet are upgraded, and the present invention no longer illustrates.According to the available multiple upgrading pathes of n version number.It is appreciated that Upgrading path described in the embodiment of the present invention is not limited to be upgraded to highest version node road experienced from minimum version Diameter, such as five versions of total V1, V2, V3, V3 and V5, being directly upgraded to version V5 from version V1 is a upgrading path, from version It is also a upgrading path that V2, which is upgraded to V3, as long as being directly or indirectly upgraded to from set-top box any one lowest version opposite Highest version node path experienced.
In S13, upgrading test is carried out to set-top box with each upgrading path respectively, i.e., each path is surveyed Examination, in order to find mistake occur when being upgraded using different paths.
The set top box upgrading test method that the first embodiment of the present disclosure provides, by n that obtain set top box upgrading file Version number, n >=3, n are positive integer;Multiple upgrading pathes are obtained according to the n version number;Respectively with each upgrading path pair Set-top box carries out upgrading test, can carry out set top box upgrading test automatically, test method is simple, it is easy to accomplish.
Referring to Fig. 3, the second embodiment of the present disclosure also provides a kind of set top box upgrading test method, before the present embodiment Based on stating embodiment, a kind of scheme that upgrading path is obtained according to version number, the set top box upgrading test method packet are provided It includes:
S11: n version number of set top box upgrading file is obtained, n >=3, n are positive integer;
S121: build version number is the first path of n, and first upgrading path includes successively connecting by version sequence N-1 the first subpaths connect;
S122: first path is saved as upgrading path;
S123: build version number is the i+1 path of n-i, and the i+1 path includes sequentially connected n- I-1 i+1 subpath, i < n-2, i are positive integer;
S124: if i+1 subpath and the upgrading path saved are not overlapped, the upgrading path for saving and having saved is not weighed The i+1 subpath of conjunction is to update the upgrading path;
S125: the (n-1)th path that build version number is 2, (n-1)th path include sequentially connected 1 the N-1 subpath;
S126: if the (n-1)th subpath and the upgrading path saved are not overlapped, the upgrading path for saving and having saved is not The (n-1)th subpath being overlapped is to update the upgrading path;
S13: upgrading test is carried out to set-top box with each upgrading path respectively.
In S121, the number of version number is total up to n, and build version number is up to the first path of n, first path Including number of nodes be also n.Such as the version number totally 5 of set-top-box system, the first path that build version number is 5 is V1 → V2 → V3 → V4 → V5 comprising 4 the first subpaths being sequentially connected with by version, i.e. V1 → V2, V2 → V3, V3 → This four subpaths of V4, V4 → V5.The first subpath being sequentially connected with by version, as the two of the first subpath node Version be adjacent.
In S122, first path V1 → V2 → V3 → V4 → V5 is saved as upgrading path.
In S123, when n is 5, i < n-2, i are positive integer, i.e. i can be with value for 1 and 2.First make i value 1, it is raw The i+1 upgrading path for being n-i=4 at version number's number, i.e. the 2nd upgrading path, the 2nd upgrading path that version number's number is 4 Including 4, respectively V1 → V2 → V3 → V5, V1 → V2 → V4 → V5, V1 → V3 → V4 → V5 and V2 → V3 → V4 → V5.Often The second upgrading path that a version number's number is 4 includes 3 sequentially connected second subpaths.Sequentially connected n-i-1 I+1 subpath, i.e. i+1 subpath are the path of two nodes composition adjacent in current path.
In S124, when i value is 1, such as the 2nd upgrading path V1 → V2 → V3 → V5 includes sequentially connected 3 the 2nd sons Path, respectively V1 → V2, V2 → V3 and V3 → V5, wherein only the 2nd subpath V3 → V5 and upgrading path V1 saved → V2 → V3 → V4 → V5 is not overlapped, the 2nd subpath V1 → V2, V2 → V3 and the upgrading path V1 → V2 → V3 → V4 saved → V5 is overlapped, the 2nd subpath V3 → V5 conduct that the upgrading path V1 → V2 → V3 → V4 → V5 for saving and having saved is not overlapped Upgrading path.It is appreciated that there are also V2 → V4, V1 → V3 and the upgrading path V1 → V2 → V3 → V4 saved for the 2nd subpath → V5 is not overlapped.When i.e. i value is 1, upgrading path includes V1 → V2 → V3 → V4 → V5, V1 → V3, V2 → V4 and V3 → V5.
It is appreciated that in S123, build version number is the i+1 upgrading path of n-i=2, i.e., in i=2 3rd upgrading path, the 3rd upgrading path that version number's number is 3 have 6, and respectively V1 → V2 → V5, V1 → V3 → V5, V1 → V4 → V5, V2 → V3 → V5, V2 → V4 → V5 and V3 → V4 → V5;The second upgrading path that each version number's number is 3 includes 2 A sequentially connected 3rd subpath.
It is appreciated that in i=2, in S124, such as the 3rd upgrading path V1 → V2 → V5 includes sequentially connected 2 the Three subpaths, respectively V1 → V2 and V2 → V5, wherein only the 3rd subpath V2 → V5 and upgrading path V1 → V2 saved → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5 is not overlapped, and the 3rd subpath V1 → V2 and the upgrading path V1 saved → V2 → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5 are overlapped, the upgrading path V1 → V2 → V3 → V4 for saving and having saved The 3rd subpath V2 → V5 that → V5, V1 → V3, V2 → V4, V3 → V5 is not overlapped is as upgrading path.It is appreciated that the 3rd sub- road There are also V1 → V4 and the upgrading path V1 → V2 → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5 saved not to be overlapped for diameter. I.e. i value be 2 when, upgrading path include V1 → V2 → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5, V1 → V4 and V2 → V5。
In S125, build version number be 2 the (n-1)th path, i.e. the 4th subpath, the 4th path include according to 1 the 4th subpath of secondary connection.
In S126, the 4th subpath includes V1 → V5, V2 → V5 etc., wherein there was only the 4th subpath V1 → V5 and has protected Upgrading path V1 → V2 → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5, V1 → V4, V2 → the V5 deposited is not overlapped, and is saved Upgrading path V1 → V2 → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5, V1 → V4, V2 → the V5 saved is not overlapped The 4th subpath V1 → V5 as upgrading path.Upgrading path includes V1 → V2 → V3 → V4 → V5, V1 → V3, V2 → V4, V3 → V5, V1 → V4, V2 → V5 and V1 → V5.
When n is other values, the present invention no longer explanation and illustration.
Preferably, the i+1 path that version number's number is n-i is the path for being upgraded to highest version;Version number's number is 2 the (n-1)th path is the path for being upgraded to highest version.
Preferably, if before the i+1 subpath and the upgrading path saved be not overlapped, further includes:
Judge whether i+1 subpath and the upgrading path saved are overlapped;
Before if (n-1)th subpath and the upgrading path saved are not overlapped, further includes:
Judge whether the (n-1)th subpath and the upgrading path saved are overlapped.
The set top box upgrading test method that the second embodiment of the present disclosure provides, the upgrading path of generation will not repeat, more sharp It is tested in set top box upgrading, reduces the upgrading test time, do not gone manually to judge upgrading path, save human cost.
Referring to Fig. 4, the third embodiment of the present disclosure provides a kind of set top box upgrading test method, the present embodiment is with aforementioned Based on embodiment, a kind of scheme tested with upgrading path set top box upgrading is provided, the set top box upgrading test method Include:
S11: n version number of set top box upgrading file is obtained, n >=3, n are positive integer;
S12: multiple upgrading pathes are obtained according to the n version number;
S131: the minimum version number of current upgrading path is obtained;
S132: set-top box is reduced into the minimum version of the current upgrading path;
S133: set-top box is upgraded according to version number's sequence of current upgrading path;
S134: the maximum version number of current upgrading path is obtained;
S135: judge upgrading after version whether be the current upgrading path highest version;
S136: if the version after upgrading is not the highest version of the current upgrading path, the current liter is continued to use Adjacent next version is upgraded in grade path, until the highest version of current upgrading path;
S137: after the completion of current upgrading path upgrading, set-top box is upgraded using next upgrading path.
In S131, such as current upgrading path is V1 → V2 → V3 → V4 → V5, then the minimum version of current upgrading path Number be V1.
It is the system of V1 version number the system reducing of set-top box in S132.
In S133, set-top box is risen according to version number's sequence of current upgrading path V1 → V2 → V3 → V4 → V5 Grade.
In S134, current upgrading path is V1 → V2 → V3 → V4 → V5, then the minimum version number of current upgrading path For V5.
In S136, if the version V2 after upgrading is not the highest version V5 of the current upgrading path, institute is continued to use It states adjacent next version V3 in current upgrading path to be upgraded, until the highest version V5 of current upgrading path;
In S137, after the completion of current upgrading path upgrading, using next upgrading path, such as V1 → V3, V2 → V4, V3 → V5 etc. upgrades set-top box.
The set top box upgrading test method that the third embodiment of the present disclosure provides, can be quickly respectively with each upgrading path pair Set-top box carries out upgrading test.
Referring to Fig. 5, the fourth embodiment of the present disclosure provides a kind of set top box upgrading test method, the present embodiment is with aforementioned Based on embodiment, a kind of scheme of record upgrading failure is provided, which includes:
S11: n version number of set top box upgrading file is obtained, n >=3, n are positive integer;
S12: multiple upgrading pathes are obtained according to the n version number;
S13: upgrading test is carried out to set-top box with each upgrading path respectively;
S14: being directed to each upgrading path, and whether the set-top box that detection carries out after upgrading test upgrades failure;
S15: if upgrading failure, records the staging error in respective upgrades path.
In S14, for each upgrading path, whether the set-top box that detection carries out after upgrading test upgrades failure, such as rises When grade path is V1 → V2 → V3 → V4 → V5, whether detection upgrading path V1 → V2 → V3 → V4 → V5 subpath upgrades mistake It loses.
In S15, if upgrading path V1 → V2 → V3 → V4 → V5 subpath V3 → V4 upgrading failure, records correspondence Upgrading path V1 → V2 → V3 → V4 → V5 subpath V3 → V4 staging error.
As a kind of selection, after S15, further includes:
Stop set top box upgrading test.
The set top box upgrading test method that the fourth embodiment of the present disclosure provides can carry out the upgrading path of upgrading failure Record is searched convenient for subsequent error, to be modified the required file of upgrading.
Referring to Fig. 6, the fifth embodiment of the present disclosure provides a kind of set top box upgrading test device, which is surveyed Trial assembly, which sets 30, can realize that the set top box upgrading test method of above-described embodiment, set top box upgrading test device 30 include:
Version number obtains module 31, and for controlling n version number for obtaining set top box upgrading file, n >=3, n are positive whole Number;
Upgrading path obtains module 32, obtains multiple upgrading pathes according to the n version number for controlling;
Test module 33 carries out upgrading test to set-top box with each upgrading path respectively for controlling.
The set top box upgrading test device that the embodiment of the present disclosure provides, by n version for obtaining set top box upgrading file Number, n >=3, n are positive integer;Multiple upgrading pathes are obtained according to the n version number;Respectively with each upgrading path to machine top Box carries out upgrading test, can carry out set top box upgrading test automatically, test method is simple, it is easy to accomplish.
The upgrading path obtains module 32
First path generation module, for controlling the first path that build version number is n, first upgrading path Including sequentially connected n-1 the first subpaths;
First path preserving module saves first path as upgrading path for controlling;
I+1 path-generating module, for controlling the i+1 path that build version number is n-i, the i+1 road Diameter includes sequentially connected n-i-1 i+1 subpath, and i < n-2, i are positive integer;
I+1 path preserving module saves if not being overlapped for controlling i+1 subpath and the upgrading path saved The i+1 subpath that the upgrading path saved is not overlapped is as upgrading path;
(n-1)th path-generating module, the (n-1)th path for being 2 for controlling build version number, (n-1)th tunnel Diameter includes sequentially connected 1 the (n-1)th subpath;
(n-1)th path preserving module, if not being overlapped for the (n-1)th subpath and the upgrading path saved, save and The (n-1)th subpath that the upgrading path saved is not overlapped is as upgrading path.
The upgrading path obtains module 32 further include:
Judgment module judges whether i+1 subpath and the upgrading path saved are overlapped for controlling;It is also used to control Judge whether the (n-1)th subpath and the upgrading path saved are overlapped.
Test module 33 includes:
Version number obtains module, for controlling the minimum version number for obtaining current upgrading path;It is also used to control acquisition to work as The maximum version number of preceding upgrading path;
Recovery module, for controlling the minimum version for set-top box being reduced into the current upgrading path;
Upgraded module, for control according to current upgrading path version number sequence set-top box is upgraded;It is also used to If the version after control upgrading is not the highest version of the current upgrading path, phase in the current upgrading path is continued to use Adjacent next version is upgraded, until the highest version of current upgrading path;It is also used to control current upgrading path upgrading to complete Afterwards, set-top box is upgraded using next upgrading path.
Confirmation module, for control judge upgrading after version whether be the current upgrading path highest version;
Method provided by disclosure any embodiment can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed For executing a kind of set top box upgrading test method when device executes, set top box upgrading test method includes the following steps:
S11: n version number of set top box upgrading file is obtained, n >=3, n are positive integer;
S12: multiple upgrading pathes are obtained according to the n version number;
S13: upgrading test is carried out to set-top box with each upgrading path respectively.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, computer executable program is not It is limited to method operation as described above, can also be performed in set top box upgrading test method provided by any embodiment of the invention Relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, the form of general computer-readable storage medium includes: floppy disk (floppy disk), flexible disc (flexible Disk), hard disk, tape, remaining any magnetic medium, CD-ROM, remaining any optical medium, punched card (punch Cards), paper tape (paper tape), remaining any physical medium of pattern with hole, random access memory (RAM), Programmable read only memory (PROM), erasable programmable read-only memory (EPROM), the read-only storage of quick flashing erasable programmable Device (FLASH-EPROM), remaining any memory chip or cassette (cartridge) or it is any remaining computer can be allowed to read Medium.Instruction can further be sent or receive by a transmission medium." transmission medium " this term may include any tangible Or invisible medium, it can be used to store, encode or carry the instruction for being used to execute to machine, and include that number or simulation are logical Believe the intangible medium of signal or the communication of remaining promotion above-metioned instruction.Transmission medium includes coaxial cable, copper wire and optical fiber, Contain the conducting wire of the bus for transmitting a computer data signal.Computer readable storage medium include some instructions to So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention Method described in example.
The present invention also provides a kind of electronic equipment, which includes memory, processor, and memory and processor are electric Property connection, memory as a kind of computer readable storage medium, can be used for storing software program, computer executable program with And module, such as the corresponding program instruction/module of set top box upgrading test method in the embodiment of the present invention.Processor passes through operation Software program, instruction and module stored in memory, thereby executing the various function application and data of electronic equipment Processing, that is, realize above-mentioned set top box upgrading test method.
Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.One In a little examples, memory may include the memory remotely located relative to processor, these remote memories can pass through network It is connected to equipment/terminal/server.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, shifting Dynamic communication network and combinations thereof.
Being described in the embodiment of the present disclosure involved module or unit can be realized by way of software, can also be with It is realized by way of hardware.Wherein, the title of unit does not constitute the restriction to the unit itself, example under certain conditions Such as, first acquisition unit is also described as " obtaining the unit of at least two internet protocol addresses ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of set top box upgrading test method, which is characterized in that this method comprises:
N version number of set top box upgrading file is obtained, n >=3, n are positive integer;
Multiple upgrading pathes are obtained according to the n version number;
Upgrading test is carried out to set-top box with each upgrading path respectively.
2. set top box upgrading test method according to claim 1, it is characterised in that: the upgrading path includes by adjacent The first upgrading path that version number defines and the 4th upgrading path defined by being spaced version number.
3. set top box upgrading test method according to claim 1, which is characterized in that described according to the n version number Obtaining multiple upgrading pathes includes:
Build version number is the first path of n, and first upgrading path includes the n-1 being sequentially connected with by version A first subpath;
First path is saved as upgrading path;
Build version number is the i+1 path of n-i, and the i+1 path includes sequentially connected n-i-1 i+1 Subpath, i < n-2, i are positive integer;
If i+1 subpath and the upgrading path saved are not overlapped, the i+1 not being overlapped with the upgrading path saved is saved Subpath is to update the upgrading path;
The (n-1)th path that build version number is 2, (n-1)th path include 1 the (n-1)th subpath;
If the (n-1)th subpath and the upgrading path saved are not overlapped, save and the upgrading path that has saved is not overlapped the N-1 subpath is to update the upgrading path.
4. set top box upgrading test method according to claim 3, which is characterized in that
Before if the i+1 subpath and the upgrading path saved are not overlapped, further includes:
Judge whether i+1 subpath and the upgrading path saved are overlapped;
Before if (n-1)th subpath and the upgrading path saved are not overlapped, further includes:
Judge whether the (n-1)th subpath and the upgrading path saved are overlapped.
5. set top box upgrading test method according to claim 1, it is characterised in that: described respectively with every upgrading path Carrying out upgrading test to set-top box includes:
Obtain the minimum version number of current upgrading path;
Set-top box is reduced into the minimum version of the current upgrading path;
Set-top box is upgraded according to version number's sequence of current upgrading path.
6. set top box upgrading test method according to claim 5, which is characterized in that described according to current upgrading path After version number's sequence upgrades set-top box, further includes:
Obtain the maximum version number of current upgrading path;
Judge upgrading after version whether be the current upgrading path highest version;
If the version after upgrading is not the highest version of the current upgrading path, phase in the current upgrading path is continued to use Adjacent next version is upgraded, until the highest version of current upgrading path;
After the completion of current upgrading path upgrading, set-top box is upgraded using next upgrading path.
7. set top box upgrading test method according to claim 1, which is characterized in that the set top box upgrading test method Further include:
For each upgrading path, whether the set-top box that detection carries out after upgrading test upgrades failure;
If upgrading failure, records the staging error in respective upgrades path.
8. a kind of set top box upgrading test device, which is characterized in that the set-top box testing device includes:
Version number obtains module, and for controlling n version number for obtaining set top box upgrading file, n >=3, n are positive integer;
Upgrading path obtains module, obtains multiple upgrading pathes according to the n version number for controlling;
Test module carries out upgrading test to set-top box with each upgrading path respectively for controlling.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, it is characterised in that: the processor realizes the machine top as described in any in claim 1~7 when executing described program Kit upgrading test method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the program is by processor The set top box upgrading test method as described in any in claim 1~7 is realized when execution.
CN201811457076.1A 2018-11-30 2018-11-30 Set top box upgrade test method, device, electronic equipment and medium Active CN109511012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811457076.1A CN109511012B (en) 2018-11-30 2018-11-30 Set top box upgrade test method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457076.1A CN109511012B (en) 2018-11-30 2018-11-30 Set top box upgrade test method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN109511012A true CN109511012A (en) 2019-03-22
CN109511012B CN109511012B (en) 2021-06-08

Family

ID=65749858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457076.1A Active CN109511012B (en) 2018-11-30 2018-11-30 Set top box upgrade test method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN109511012B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633218A (en) * 2019-09-24 2019-12-31 北京首汽智行科技有限公司 APP upgrading test method
CN111381866A (en) * 2020-05-29 2020-07-07 支付宝(杭州)信息技术有限公司 Version upgrading method, system and device of block chain system
CN115328773A (en) * 2022-08-04 2022-11-11 北京志凌海纳科技有限公司 Test method for software version upgrading combined with after-sale system
CN115408304A (en) * 2022-11-02 2022-11-29 深圳市华曦达科技股份有限公司 Method, device, equipment and storage medium for automatic pressure test of software upgrading

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158917A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Software version upgrade mounting test system and method thereof
US20090296584A1 (en) * 2008-06-03 2009-12-03 Tellabs Vienna, Inc. Method and apparatus to support customer premises diagnostics and service simulation via test user interface devices
CN102255748A (en) * 2011-06-27 2011-11-23 中兴通讯股份有限公司 Automated testing system and method, version server and terminal
US20130258865A1 (en) * 2011-07-21 2013-10-03 Movik Networks Distributed RAN Information Collection, Consolidation And RAN-Analytics
CN104252408A (en) * 2013-06-26 2014-12-31 国际商业机器公司 Method and device for providing test case
CN105740146A (en) * 2016-01-28 2016-07-06 广东欧珀移动通信有限公司 Method and device for fast positioning change of test script of mobile terminal
CN106850800A (en) * 2017-01-24 2017-06-13 腾讯科技(深圳)有限公司 Method and client that a kind of download path determines
CN107590064A (en) * 2016-07-08 2018-01-16 北京奇虎科技有限公司 A kind of application upgrade method of testing, device and system
CN108521452A (en) * 2018-03-23 2018-09-11 烽火通信科技股份有限公司 The method and system of auto upgrading are carried out to business release
US20180300224A1 (en) * 2017-04-18 2018-10-18 Sap Se Coverage of call graphs based on paths and sequences
CN108897565A (en) * 2018-06-19 2018-11-27 深圳市道通智能航空技术有限公司 Method for upgrading software, device and electronic equipment in a kind of electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158917A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Software version upgrade mounting test system and method thereof
US20090296584A1 (en) * 2008-06-03 2009-12-03 Tellabs Vienna, Inc. Method and apparatus to support customer premises diagnostics and service simulation via test user interface devices
CN102255748A (en) * 2011-06-27 2011-11-23 中兴通讯股份有限公司 Automated testing system and method, version server and terminal
US20130258865A1 (en) * 2011-07-21 2013-10-03 Movik Networks Distributed RAN Information Collection, Consolidation And RAN-Analytics
CN104252408A (en) * 2013-06-26 2014-12-31 国际商业机器公司 Method and device for providing test case
CN105740146A (en) * 2016-01-28 2016-07-06 广东欧珀移动通信有限公司 Method and device for fast positioning change of test script of mobile terminal
CN107590064A (en) * 2016-07-08 2018-01-16 北京奇虎科技有限公司 A kind of application upgrade method of testing, device and system
CN106850800A (en) * 2017-01-24 2017-06-13 腾讯科技(深圳)有限公司 Method and client that a kind of download path determines
US20180300224A1 (en) * 2017-04-18 2018-10-18 Sap Se Coverage of call graphs based on paths and sequences
CN108521452A (en) * 2018-03-23 2018-09-11 烽火通信科技股份有限公司 The method and system of auto upgrading are carried out to business release
CN108897565A (en) * 2018-06-19 2018-11-27 深圳市道通智能航空技术有限公司 Method for upgrading software, device and electronic equipment in a kind of electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633218A (en) * 2019-09-24 2019-12-31 北京首汽智行科技有限公司 APP upgrading test method
CN110633218B (en) * 2019-09-24 2023-04-11 北京首汽智行科技有限公司 APP upgrading test method
CN111381866A (en) * 2020-05-29 2020-07-07 支付宝(杭州)信息技术有限公司 Version upgrading method, system and device of block chain system
CN115328773A (en) * 2022-08-04 2022-11-11 北京志凌海纳科技有限公司 Test method for software version upgrading combined with after-sale system
CN115408304A (en) * 2022-11-02 2022-11-29 深圳市华曦达科技股份有限公司 Method, device, equipment and storage medium for automatic pressure test of software upgrading

Also Published As

Publication number Publication date
CN109511012B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109511012A (en) Set top box upgrading test method, device, electronic equipment and medium
CN101589592B (en) Multi-protocol removable storage device
CN104699616B (en) The method of a kind of application test, Apparatus and system
CN103353844B (en) A kind of SDK upgrade method and system
CN105068929A (en) Test script generation method, test script generation device, testing method, testing device and testing system
US20130138674A1 (en) System and method for recommending application by using keyword
CN101512486A (en) Method and device for upgrading software in a consumer product
CN104836843A (en) Client application program updating method and device
CN102722381B (en) The technology of optimization and upgrading task
CN110515641A (en) The update method of server firmware, apparatus and system
CN107302476B (en) Automatic testing method and system for testing asynchronous interactive system
CN106131682B (en) WiFi firmware upgrade method, device and set-top box built in set-top box
CN103377116B (en) For record in distributed information system and the method and apparatus analyzing daily record
CN109582335A (en) It is a kind of without interrupt storage cluster node online upgrading method, device and equipment
CN109901858A (en) Application software updates detection method, device, computer equipment and storage medium
CN106681746A (en) Mobile application program pop-up window display method, mobile terminal and system
CN106502713A (en) A kind of method for upgrading software and system
CN109976687A (en) The display system and method for display screen
CN105095464A (en) Method and device for detecting retrieval system
CN107590064A (en) A kind of application upgrade method of testing, device and system
CN110532014A (en) Programme upgrade method, device, terminal device and computer readable storage medium
CN112506728B (en) Test method and device for prototype verification system
CN109388466A (en) Using display processing method, device and the equipment for recommending position
CN110457062A (en) The method, apparatus and computer readable storage medium of screen parameter configuration
US10628182B2 (en) Generation of an instruction guide based on a current hardware configuration of a system

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