CN109862427A - Testing script automatic generation method and system - Google Patents

Testing script automatic generation method and system Download PDF

Info

Publication number
CN109862427A
CN109862427A CN201910063443.8A CN201910063443A CN109862427A CN 109862427 A CN109862427 A CN 109862427A CN 201910063443 A CN201910063443 A CN 201910063443A CN 109862427 A CN109862427 A CN 109862427A
Authority
CN
China
Prior art keywords
mark
epg
default
testing
focus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910063443.8A
Other languages
Chinese (zh)
Inventor
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Communications Polytron Technologies Inc
Original Assignee
Shanghai Communications Polytron Technologies Inc
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 Shanghai Communications Polytron Technologies Inc filed Critical Shanghai Communications Polytron Technologies Inc
Priority to CN201910063443.8A priority Critical patent/CN109862427A/en
Publication of CN109862427A publication Critical patent/CN109862427A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of testing script automatic generation method and system, which is used for set-top box auto-dial testing.This method comprises: obtain it is default by testing program, with default by the corresponding target EPG mark of testing program and goal-focus mark;Obtain the mark of current EPG locating for set-top box and current focus mark, and as with default by the corresponding source EPG mark of testing program and source focus mark;According to data, source EPG mark, source focus mark, target EPG mark and the goal-focus mark stored in EPG structural database, generates and preset by the corresponding testing script of testing program, obtain the first testing script.The workload of staff not only can be effectively reduced in the present invention, saves a large amount of quality time for staff, and can effectively improve the formation efficiency and quality of testing script, has a good application prospect.

Description

Testing script automatic generation method and system
Technical field
The present invention relates to computer software technical field more particularly to a kind of testing script automatic generation method and systems.
Background technique
For the quality of service for ensureing digital video, network video, operator needs periodically to carry out testing to video program, to see Examine the integrality, reliability and play quality (for example, mosaic, pause etc.) of video program.In order to improve testing efficiency, at present Set-top box auto-dial testing method is generallyd use to carry out testing to video program.
Set-top box auto-dial testing method is: testing equipment connects true set-top box, and the audio-video interface with set-top box It is docked with infrared interface.Wherein, audio-video interface set-top box exports for identification image and sound, infrared interface are used for It initiates ultra-red order (for example, upper key, down key, left button, right button, acknowledgement key, return key etc.), with analog telecommand device to set-top box Control operation.In addition, the testing software built in set-top box also can be considered testing equipment.
When needing to carry out testing to certain video program, testing equipment needs to be implemented testing script, and according to testing script Ultra-red order is initiated, it is (usually default silent in first EPG and the EPG from source EPG corresponding with the video program and source focus Recognize focus) start, by operation " upper key ", " down key ", " left button ", " right button ", make set-top box from the source focus in the EPG of the source to Some focus up in the EPG of the source is made set-top box jump to other EPG from source EPG, is continued to execute by operation " confirmation " key Aforesaid operations, until reaching target EPG corresponding with the video program and goal-focus.
However, usually requiring manually to make testing script at present.But due to being stored with a large amount of EPG in cloud, often In a EPG have dozens of focus, and each focus in each EPG in multiple EPG in addition to the EPG remaining EPG it Between linking relationship and each EPG in incidence relation between every two focus it is relative complex, cause staff's production to dial The workload for surveying script greatly increases.
In addition, when testing equipment executes testing script, which can not be in real-time detection and practical testing path The corresponding EPG of every testing subpath and focus that include and corresponding with the every testing subpath recorded in testing script EPG it is whether consistent with focus.When EPG corresponding with certain testing subpath in practical testing path is due to updating or occurring It is abnormal, cause EPG corresponding with this testing subpath and focus and with this testing subpath recorded in testing script Corresponding EPG and focus it is inconsistent and when can not reach by testing video program, need staff different according to updating or occurring (usually the default default in first EPG and the EPG is burnt for normal EPG, source EPG corresponding with the video program and source focus Point) and target EPG corresponding with the video program and goal-focus, testing script is remake again.In this way, whenever with The corresponding EPG of certain testing subpath for including in practical testing path updates or exception occurs, and staff requires basis It updates or abnormal EPG, source EPG corresponding with the video program and source focus occurs (usually in first EPG and the EPG Default default focus) and target EPG corresponding with the video program and goal-focus, testing script is remake again.
It can be seen that the method for this manual manufacture testing script is time-consuming and laborious.
In order to solve the above-mentioned technical problems, the present invention provides a kind of testing script automatic generation method and systems.
Summary of the invention
The technical problems to be solved by the present invention are: the method for manual manufacture testing script in the prior art it is not only time-consuming but also Arduously.
In order to solve the above-mentioned technical problems, the present invention provides a kind of testing script automatic generation method and systems.
According to an aspect of the invention, there is provided a kind of testing script automatic generation method, which is used for machine Top box auto-dial testing, comprising:
It obtains and default default is identified and goal-focus mark by the corresponding target EPG of testing program by testing program, with described Know;
Current EPG mark and current focus mark locating for set-top box are obtained, and is preset as with described by testing The corresponding source EPG mark of program and source focus mark;
According to the data, source EPG mark, source focus mark, the target stored in EPG structural database EPG mark and goal-focus mark, generate and preset with described by the corresponding testing script of testing program, obtain first Testing script.
In a preferred embodiment, obtain it is default by testing program, with it is described preset it is corresponding by testing program Target EPG mark and goal-focus mark, comprising:
It is obtained using optical character recognition algorithms default by testing program;
It is extracted using perceptual hash algorithm and is preset with described by the characteristic fingerprint of the corresponding target EPG of testing program, obtained It default is identified by the corresponding target EPG of testing program with described;
It is obtained using artificial intelligence training image recognizer and is preset with described by the corresponding goal-focus of testing program, and The characteristic fingerprint that the goal-focus is extracted using perceptual hash algorithm, obtain with it is described default by the corresponding target of testing program Focus mark.
In a preferred embodiment, current EPG mark and current focus mark locating for set-top box are obtained, and will Its as with it is described default by the corresponding source EPG mark of testing program and source focus mark, comprising:
The characteristic fingerprint that current EPG locating for set-top box is extracted using perceptual hash algorithm, obtains working as locating for set-top box Preceding EPG mark, and current EPG mark default is identified as with described by the corresponding source EPG of testing program;
The default focus in current EPG locating for set-top box, and benefit are obtained using artificial intelligence training image recognizer The characteristic fingerprint that the default focus is extracted with perceptual hash algorithm obtains the mark of current focus locating for set-top box, and should Current focus mark default is identified as with described by the corresponding source focus of testing program.
In a preferred embodiment, obtain it is default by testing program, with it is described preset it is corresponding by testing program Target EPG mark and goal-focus mark before, further includes:
According to each default focus mark in the default EPG mark of each of multiple default EPG marks and except the default EPG Remaining except mark presets the linking relationship between EPG mark and each presets the default focus mark of every two in EPG mark Incidence relation between knowledge forms EPG structural database.
In a preferred embodiment, according to each pre- in the default EPG mark of each of multiple default EPG marks If focus identifies the linking relationship between remaining default EPG mark in addition to this presets EPG mark and each presets Every two presets the incidence relation between focus mark in EPG mark, forms EPG structural database, comprising:
EPG is preset for each of multiple default EPG, is performed both by following operation:
The characteristic fingerprint that the default EPG is extracted using perceptual hash algorithm obtains default EPG mark;
All default focuses in the default EPG mark are obtained using artificial intelligence training image recognizer, and are utilized Perceptual hash algorithm extracts the characteristic fingerprint for each default focus that all default focuses include respectively, obtains each default focus mark Know, wherein each default focus mark includes default default focus mark;
According to the first ultra-red order, the default EPG mark and each default focus mark, obtain in the default EPG mark Every two presets the incidence relation between focus mark;
According to the second ultra-red order, the default EPG mark and each default focus mark, obtain in the default EPG mark Each default focus mark and multiple default EPG marks between remaining default EPG mark in addition to this presets EPG mark Linking relationship;
By each default focus mark in the default EPG mark of each of multiple default EPG marks and except the default EPG mark Remaining except knowledge presets the linking relationship between EPG mark and each presets the default focus mark of every two in EPG mark Between incidence relation store into database, to form EPG structural database.
In a preferred embodiment, according to data, the source EPG mark, institute stored in EPG structural database Source focus mark, target EPG mark and goal-focus mark are stated, is generated and described default by testing program pair The testing script answered obtains the first testing script, comprising:
According to the data, source EPG mark, source focus mark, the target stored in EPG structural database EPG mark and goal-focus mark obtain identifying and the source from the source EPG using Shortest Path Searching Algorithm Focus is identified to the shortest path of the target EPG mark and goal-focus mark;
According to the shortest path, generates and preset with described by the corresponding testing script of testing program, obtain the first testing Script.
In a preferred embodiment, this method further include: execute the first testing script.
In a preferred embodiment, this method further include: every for including in detection and practical testing path dials It surveys the corresponding default EPG mark of subpath and default focus mark and is dialled with recorded in the first testing script every The corresponding default EPG mark of survey subpath identifies whether consistent with default focus.
In a preferred embodiment, in the current testing subpath pair for detecting with including in practical testing path The default EPG mark and default focus mark answered and with the current testing subpath pair recorded in the first testing script Answer default EPG mark and default focus mark it is inconsistent in the case where, according to the data stored in EPG structural database, with The corresponding default EPG mark of the current testing subpath for including in practical testing path and default focus mark, the target EPG Mark and goal-focus mark, regenerate with it is described default by the corresponding testing script of testing program, obtain second Testing script.
In a preferred embodiment, regenerate with it is described default by the corresponding testing script of testing program, After obtaining the second testing script, further includes:
Since current testing subpath, continue to test with practical testing path in include current testing subpath and its The corresponding default EPG mark of testing subpath afterwards and default focus mark and with recorded in the second testing script Current testing subpath and subsequent the corresponding default EPG mark of testing subpath identify whether consistent with default focus.
According to another aspect of the present invention, a kind of testing script automatic creation system is provided, comprising:
Acquisition module, comprising: the first acquisition submodule, the second acquisition submodule and third acquire submodule,
First acquisition submodule, for obtaining each default coke in the default EPG mark of each of multiple default EPG marks Linking relationship between point identification and remaining default EPG mark in addition to this presets EPG mark and each default EPG mark Every two presets the incidence relation between focus mark in knowledge;
Second acquisition submodule, for obtain it is default by testing program, with default by the corresponding target EPG mark of testing program Know and goal-focus identifies;
Third acquires submodule, for obtaining current EPG mark and current focus mark locating for set-top box, and is made For with default by the corresponding source EPG mark of testing program and source focus mark;
Testing script generation module, is connected with acquisition module, for default according to each of multiple default EPG marks Each default focus mark in EPG mark and remaining in addition to this presets EPG mark, which are preset, links pass between EPG mark Incidence relation, source EPG mark, source focus mark, mesh in system, each default EPG mark between the default focus mark of every two EPG mark and goal-focus mark are marked, generate and is preset by the corresponding testing script of testing program, the first testing foot is obtained This;
Testing script execution module is connected with testing script generation module, for executing the first testing script;And
Testing script monitoring modular, is connected with testing script execution module, for detecting and practical testing path Zhong Bao The corresponding default EPG mark of the every testing subpath contained and default focus mark and with recorded in the first testing script The corresponding default EPG mark of every testing subpath identifies whether consistent with default focus.
Compared with prior art, one or more embodiments in above scheme can have following advantage or beneficial to effect Fruit:
Using testing script automatic generation method provided in an embodiment of the present invention, can be deposited according in EPG structural database The data of storage, with it is default by the corresponding source EPG mark of testing program and source focus mark and with it is default corresponding by testing program Target EPG mark and goal-focus mark, automatically generate and preset by the corresponding testing script of testing program.Therefore, this hair The bright workload that staff not only can be effectively reduced saves a large amount of quality time for staff, and can be effective The formation efficiency and quality for improving testing script, have a good application prospect.
It is also possible to realize whether the practical testing path of detection deviates this group while executing testing script Script is surveyed, the reliability of set-top box auto-dial testing is considerably increased.
It, can be with also, when detecting that certain testing subpath for including in practical testing path deviates the testing script Regenerate testing script since this testing subpath, without from by the corresponding source EPG of testing program and source focus Start, considerably increases the convenience of testing script generation.
Other features and advantages of the present invention will be illustrated in the following description, and partly becomes from specification It is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by wanting in specification, right Specifically noted structure is sought in book and attached drawing to be achieved and obtained.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example and is used together to explain the present invention, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the idiographic flow schematic diagram of the testing script automatic generation method of the embodiment of the present invention;
Fig. 2 is the idiographic flow schematic diagram of the step S101 in Fig. 1;
Fig. 3 is the idiographic flow schematic diagram of the step S102 in Fig. 1;
Fig. 4 is the idiographic flow schematic diagram of the step S103 in Fig. 1;
Fig. 5 is the idiographic flow schematic diagram of the step S100 in Fig. 1;
Fig. 6 is the exemplary signal for illustrating the incidence relation in certain default EPG mark between the default focus mark of every two Figure;
Fig. 7 is to illustrate each default focus mark in each default EPG mark of multiple default EPG marks and to remove this pre- If the illustrative diagram of the linking relationship between remaining default EPG mark except EPG mark;
Fig. 8 is to illustrate each default focus mark in each default EPG mark of multiple default EPG marks and to remove this pre- If remaining except EPG mark presets the linking relationship between EPG mark and each presets every two in EPG mark and preset The illustrative diagram of incidence relation between focus mark;
The concrete structure schematic diagram of Fig. 9 testing script automatic creation system of embodiment to illustrate the invention.
Specific embodiment
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and examples, how to apply to the present invention whereby Technological means solves technical problem, and the realization process for reaching technical effect can fully understand and implement.It needs to illustrate As long as not constituting conflict, each feature in each embodiment and each embodiment in the present invention can be combined with each other, It is within the scope of the present invention to be formed by technical solution.
For the cumbersome and time consuming technical problem of the method for solution manual manufacture testing script in the prior art, the present invention Embodiment provides a kind of testing script automatic generation method, which is used for set-top box auto-dial testing.
Fig. 1 is the idiographic flow schematic diagram of the testing script automatic generation method of the embodiment of the present invention.
As shown in Figure 1, the testing script automatic generation method of the embodiment of the present invention, mainly includes the following steps that S101 to step Rapid S103.
In step s101, it obtains and default is identified and mesh by testing program, with default by the corresponding target EPG of testing program Mark focus mark.Its detailed process is as shown in Figure 2.
In step S1011, obtained using optical character recognition algorithms default by testing program.Specifically, optics is utilized Character recognition algorithm obtains the default keyword by testing programme content, to obtain default by testing program.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
In step S1012, is extracted and preset by the feature of the corresponding target EPG of testing program using perceptual hash algorithm Fingerprint obtains being identified with default by the corresponding target EPG of testing program.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
In step S1013, using artificial intelligence training image recognizer obtain with preset it is corresponding by testing program Goal-focus, and using perceptual hash algorithm extract goal-focus characteristic fingerprint, obtain with preset it is corresponding by testing program Goal-focus mark.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
In step s 102, obtain the mark of current EPG locating for set-top box and current focus mark, and as with it is pre- If being identified by the corresponding source EPG mark of testing program and source focus.Its detailed process is as shown in Figure 3.
In step S1021, the characteristic fingerprint of current EPG locating for set-top box is extracted using perceptual hash algorithm, is obtained The mark of current EPG locating for set-top box, and current EPG mark is identified as with default by the corresponding source EPG of testing program.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
In step S1022, obtained in current EPG locating for set-top box using artificial intelligence training image recognizer Default focus, and the characteristic fingerprint for presetting focus is extracted using perceptual hash algorithm, obtain current focus mark locating for set-top box Know, and current focus mark is identified as with default by the corresponding source focus of testing program.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
In step s 103, according to the data, source EPG mark, source focus mark, target stored in EPG structural database EPG mark and goal-focus mark generate and preset by the corresponding testing script of testing program, obtain the first testing script. Its detailed process is as shown in Figure 4.
In step S1031, according to the data, source EPG mark, source focus mark, target stored in EPG structural database EPG mark and goal-focus mark obtain identifying from source EPG and source focus are identified to mesh using Shortest Path Searching Algorithm Mark the shortest path of EPG mark and goal-focus mark.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
It in step S1032, according to shortest path, generates and presets by the corresponding testing script of testing program, obtain the One testing script.
In a preferred embodiment, before step S101, further includes: step S100, according to multiple default EPG Each of mark presets each default focus mark in EPG mark and remaining default EPG mark in addition to this presets EPG mark Every two presets the incidence relation between focus mark in linking relationship and each default EPG mark between knowledge, is formed EPG structural database.
Preferably, it is obtained by actively climbing survey method each in the default EPG mark of each of multiple default EPG marks Focus is preset to identify the linking relationship between remaining default EPG mark in addition to this presets EPG mark and each preset Every two presets the incidence relation between focus mark in EPG mark.Its detailed process is as shown in Figure 5.
EPG is preset for each of multiple default EPG, is performed both by following operation:
In step S1001, the characteristic fingerprint of the default EPG is extracted using perceptual hash algorithm, obtains default EPG mark Know.
Since the specific operation process of this step is known to those skilled in the art, details are not described herein.
In step S1002, obtained using artificial intelligence training image recognizer all pre- in the default EPG mark If focus, and the characteristic fingerprint for each default focus that all default focuses include is extracted using perceptual hash algorithm respectively, it obtains It is identified to each default focus, wherein each default focus mark includes default default focus mark.
It should be noted that each default EPG has a unique default EPG mark, each default EPG is identified With a default default focus mark, which is usually to be seen after the default EPG mark is presented The mark of current preset focus locating for set-top box.Each default focus has a uniquely default focus mark, same pre- If each default focus mark in EPG mark is different.
In the step s 1003, it is identified, is obtained according to the first ultra-red order, the default EPG mark and each default focus Every two presets the incidence relation between focus mark in the default EPG mark.Wherein, which includes: upper key (moving up operation for indicating), down key (moving down operation for indicating), left button (for indicating shift left operation) and right button are (for table Show right-shift operation).
Specifically, since this presets the default default focus mark that EPG is identified, machine top is changed by the first ultra-red order The mark of current preset focus locating for box, to obtain the association in the default EPG mark between the default focus mark of every two Relationship.As shown in Figure 6.
In Fig. 6, focus a, focus b, focus c etc. are known as focus mark.By such as focus a right button to focus b, This relationship of focus b left button to focus a are known as the incidence relation between focus a and focus b.
In step S1004, is identified, obtained according to the second ultra-red order, the default EPG mark and each default focus Each default focus mark in the default EPG mark and remaining in multiple default EPG marks in addition to this presets EPG mark are pre- If the linking relationship between EPG mark.Wherein, which includes: acknowledgement key (for indicating confirmation operation) and returns Hui Jian (returns to operation for indicating).
Specifically, since the first default focus mark in the first default EPG mark, by the second ultra-red order Acknowledgement key, the first default focus mark for jumping to set-top box in the second default EPG mark.Wherein, the second default EPG mark The first default focus in knowledge is identified as the default default focus mark in the second default EPG mark.In this way, available The linking relationship between the first default focus mark and the second default EPG mark in one default EPG mark.
Similarly, it is removed in each default focus mark in the available first default EPG mark and multiple default EPG marks The linking relationship between remaining default EPG mark except the first default EPG mark, to obtain multiple default EPG marks Each of each default focus mark in default EPG mark identify it with remaining default EPG in addition to this presets EPG mark Between linking relationship.As shown in Figure 7.
In Fig. 7, for example, by the acknowledgement key in the second ultra-red order, making set-top box since the focus 2 in EPG1 Jump to the default default focus mark in EPG2.In this way, linking pass between focus 2 and EPG2 in available EPG1 System.
Further, it is also possible to be back to previous preset from current preset EPG mark by the return key in the second ultra-red order Default default focus mark in EPG mark.
It should be noted that in this step, needing to hold each of each default EPG mark default focus mark Row confirmation operation.If certain default focus mark in certain default EPG mark cannot be made by the acknowledgement key in the second ultra-red order Set-top box jumps to other default EPG marks, but specific video program is directly presented, then this is preset focus mark and be known as end Tip node.
In step S1005, each default focus in the default EPG mark of each of multiple default EPG marks is identified It is every in linking relationship and each default EPG mark between remaining default EPG mark in addition to this presets EPG mark Incidence relation between two default focus marks is stored into database, to form EPG structural database.
It should be noted that can also be grasped by monitoring the history of the default EPG mark of each of multiple default EPG marks Work identifies and to obtain each default focus in the default EPG mark of each of multiple default EPG marks except default EPG mark Except remaining default EPG mark between linking relationship and each in default EPG mark every two presets focus and identifies it Between incidence relation.
In a preferred embodiment, after step s 103, further includes: step S104 executes the first testing foot This.
In a preferred embodiment, after step s 104, further includes: step S105, detection and practical testing The corresponding default EPG mark of every testing subpath for including in path and default focus mark and with the first testing script The corresponding default EPG mark of every testing subpath of middle record identifies whether consistent with default focus.
In the corresponding default EPG mark of current testing subpath for detecting with including in practical testing path and default coke Point identification and default EPG mark corresponding with the current testing subpath recorded in the first testing script and default focus mark Know it is inconsistent in the case where, according to the data stored in EPG structural database, with practical testing path in include current testing The corresponding default EPG mark of subpath and default focus mark, target EPG mark and goal-focus mark, regenerate with It presets by the corresponding testing script of testing program, obtains the second testing script.
In a preferred embodiment, it is regenerating with default by the corresponding testing script of testing program, is obtaining After second testing script, further includes:
Since current testing subpath, continue to test with practical testing path in include current testing subpath and its The corresponding default EPG of testing subpath afterwards is identified and default focus identifies and current with recording in the second testing script Testing subpath and subsequent the corresponding default EPG mark of testing subpath identify whether consistent with default focus.
In the corresponding default EPG mark of current testing subpath for detecting with including in practical testing path and default coke Point identification and default EPG mark corresponding with the current testing subpath recorded in the second testing script and default focus mark Know it is inconsistent in the case where, according to the data stored in EPG structural database, with practical testing path in include current testing The corresponding default EPG mark of subpath and default focus mark, target EPG mark and goal-focus mark, regenerate with It presets by the corresponding testing script of testing program, obtains third testing script.
Then, since current testing subpath, continue to test with practical testing path in include the sub- road of current testing Diameter and subsequent the corresponding default EPG mark of testing subpath and default focus mark and with recorded in third testing script Current testing subpath and subsequent the corresponding default EPG mark of testing subpath identified whether with default focus it is consistent.Such as This is executed repeatedly, until reach with it is default by the corresponding target EPG mark of testing program and goal-focus mark until.
It should be noted that detection mode can be arranged according to actual needs, for example, can be in practical testing path Every testing subpath for including all is detected, can also be primary every three testing subpath detections, is not done herein specific It limits.
The present invention may be implemented whether the practical testing path of detection while executing testing script deviates the testing script, Considerably increase the reliability of set-top box auto-dial testing.
It, can be with also, when detecting that certain testing subpath for including in practical testing path deviates the testing script Regenerate testing script since this testing subpath, without from by the corresponding source EPG of testing program and source focus Start, considerably increases the convenience of testing script generation.
For the ease of more fully understanding the present invention, technical solution of the present invention is retouched in detail below by example It states.
As shown in figure 8, in the present example it is assumed that there are three default EPG marks for tool in cloud: EPG1, EPG2 and EPG4.Its In, there are four default focus marks, i.e. focus 1 to focus 4 for tool in EPG1.Tool is there are three default focus mark, i.e., burnt in EPG2 1 is put to focus 3.There are three default focus marks, i.e. focus 1 to focus 3 for tool in EPG4.
Specifically, in the step s 100, above-mentioned steps S1001 to step S1005, available EPG structured data are utilized Library, the data stored in the EPG structural database are as follows: the focus 2 in EPG1 and the linking relationship between EPG2, the coke in EPG2 Linking relationship between point 3 and EPG4, the incidence relation between focus 1 and focus 2 in EPG1, focus 1 in EPG2 and burnt The incidence relation between the focus 1 and focus 2 in incidence relation and EPG4 between point 3, it is specific as shown in Figure 8.
In step s101, available using above-mentioned steps S1011 to step S1013: with default by testing program pair The target EPG answered is identified as EPG4, and goal-focus is identified as focus 2.
In step s 102, available using above-mentioned steps S1021 and step S1022: with default by testing program pair The source EPG answered is identified as EPG1, and source focus is identified as focus 1.
In step s 103, available using above-mentioned steps S1031 and S1032: the first testing script are as follows: (EPG1's Focus 1) right button (focus 2 of EPG1) acknowledgement key (focus 1 of EPG2) down key (focus 3 of EPG2) acknowledgement key (focus of EPG4 1) right button (focus 2 of EPG4).The first testing script includes five testing subpaths.Wherein, the first testing subpath are as follows: (focus 1 of EPG1) right button (focus 2 of EPG1), the second testing subpath are as follows: (focus 2 of EPG1) acknowledgement key (coke of EPG2 It puts 1), third testing subpath are as follows: (focus 1 of EPG2) down key (focus 3 of EPG2), the 4th testing subpath are as follows: (EPG2's Focus 3) acknowledgement key (focus 1 of EPG4), the 5th testing subpath are as follows: (focus 1 of EPG4) right button (focus 2 of EPG4).
In step S104, the first testing script is executed.
In step s105, default EPG mark corresponding with every testing subpath for including in practical testing path is detected Know and default focus mark and it is corresponding to the 5th testing subpath with the first testing subpath recorded in the first testing script Default EPG mark identified whether with default focus it is consistent.
For example, if it is detected that default EPG corresponding with the second testing subpath for including in practical testing path mark and Default focus mark and default EPG corresponding with the second testing subpath recorded in the first testing script are identified and are preset Focus mark is inconsistent, then according to the data stored in EPG structural database and the second testing for including in practical testing path The corresponding default EPG mark of subpath and default focus mark, target EPG mark and goal-focus mark, regenerate with It presets by the corresponding testing script of testing program, obtains the second testing script.
Then, since the second testing subpath, continue to test with practical testing path in include the sub- road of the second testing Diameter and subsequent the corresponding default EPG mark of testing subpath and default focus mark and with recorded in the second testing script The second testing subpath and subsequent the corresponding default EPG mark of testing subpath identified whether with default focus it is consistent.
For example, if it is detected that default EPG corresponding with the third testing subpath for including in practical testing path mark and Default focus mark and default EPG corresponding with the third testing subpath recorded in the second testing script are identified and are preset Focus mark is inconsistent, then according to the data stored in EPG structural database and the third testing for including in practical testing path The corresponding default EPG mark of subpath and default focus mark, target EPG mark and goal-focus mark, regenerate with It presets by the corresponding testing script of testing program, obtains third testing script.
It executes repeatedly, until reaching with default by the corresponding target EPG mark of testing program and goal-focus mark Until.
Correspondingly, the embodiment of the present invention also provides a kind of testing script automatic creation system, which automatically generates The concrete structure schematic diagram of system is as shown in Figure 9.
As shown in figure 9, the testing script automatic creation system of the embodiment of the present invention, specifically includes that acquisition module 100, dials Survey script generation module 110, testing script execution module 120 and testing script monitoring modular 130.Wherein, acquisition module 100 include: the first acquisition submodule 101, second acquisition submodule 102 and third acquisition submodule 103.
First acquisition submodule 101, it is each pre- in the default EPG mark of each of multiple default EPG marks for obtaining If focus identifies the linking relationship between remaining default EPG mark in addition to this presets EPG mark and each presets Every two presets the incidence relation between focus mark in EPG mark.
Second acquisition submodule 102, for obtain it is default by testing program, with preset by the corresponding target of testing program EPG mark and goal-focus mark.
Third acquires submodule 103, for obtaining current EPG mark and current focus mark locating for set-top box, and will Its as with default by the corresponding source EPG mark of testing program and source focus mark.
Testing script generation module 110 is connected with acquisition module 100, for according to every in multiple default EPG marks Chain between each default focus mark in a default EPG mark and remaining default EPG mark in addition to this presets EPG mark Connect relationship, each incidence relation preset between the default focus mark of every two in EPG mark, source EPG mark, source focus mark Know, target EPG mark and goal-focus mark, generates and preset by the corresponding testing script of testing program, obtain first group Survey script.
Testing script execution module 120 is connected with testing script generation module 110, for executing the first testing script.
Testing script monitoring modular 130, is connected with testing script execution module 120, for detecting and practical testing road The corresponding default EPG mark of every testing subpath for including in diameter and default focus mark and in the first testing script The corresponding default EPG mark of the every testing subpath recorded identifies whether consistent with default focus.
The specific refinement of operation in above-mentioned each module, reference can be made to the saying to the method for the present invention above in conjunction with Fig. 1 to Fig. 8 Bright, in this not go into detail.
Using testing script automatic generation method provided in an embodiment of the present invention, can be deposited according in EPG structural database The data of storage, with it is default by the corresponding source EPG mark of testing program and source focus mark and with it is default corresponding by testing program Target EPG mark and goal-focus mark, automatically generate and preset by the corresponding testing script of testing program.Therefore, this hair The bright workload that staff not only can be effectively reduced saves a large amount of quality time for staff, and can be effective The formation efficiency and quality for improving testing script, have a good application prospect.
It is also possible to realize whether the practical testing path of detection deviates this group while executing testing script Script is surveyed, the reliability of set-top box auto-dial testing is considerably increased.
It, can be with also, when detecting that certain testing subpath for including in practical testing path deviates the testing script Regenerate testing script since this testing subpath, without from by the corresponding source EPG of testing program and source focus Start, considerably increases the convenience of testing script generation.
Those skilled in the art should be understood that each module of the above invention or each step can use general calculating Device realizes that they can be concentrated on a single computing device, or be distributed in network constituted by multiple computing devices On, optionally, they can be realized with the program code that computing device can perform, it is thus possible to be stored in storage It is performed by computing device in device, perhaps they are fabricated to each integrated circuit modules or will be more in them A module or step are fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and Software combines.
While it is disclosed that embodiment content as above but described only to facilitate understanding the present invention and adopting Embodiment is not intended to limit the invention.Any those skilled in the art to which this invention pertains are not departing from this Under the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details, But protection scope of the present invention still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of testing script automatic generation method, which is used for set-top box auto-dial testing characterized by comprising
Obtain it is default by testing program, with it is described default by the corresponding target EPG mark of testing program and goal-focus mark;
Current EPG mark and current focus mark locating for set-top box are obtained, and is preset as with described by testing program Corresponding source EPG mark and source focus mark;
According to the data, source EPG mark, source focus mark, target EPG mark stored in EPG structural database Know and goal-focus mark, generates and preset with described by the corresponding testing script of testing program, obtain the first testing foot This.
2. testing script automatic generation method according to claim 1, which is characterized in that obtain it is default by testing program, With it is described default by the corresponding target EPG mark of testing program and goal-focus mark, comprising:
It is obtained using optical character recognition algorithms default by testing program;
It is extracted using perceptual hash algorithm and is preset with described by the characteristic fingerprint of the corresponding target EPG of testing program, obtained and institute It states default by the corresponding target EPG mark of testing program;
It is obtained using artificial intelligence training image recognizer and is preset with described by the corresponding goal-focus of testing program, and utilized Perceptual hash algorithm extracts the characteristic fingerprint of the goal-focus, obtain with it is described default by the corresponding goal-focus of testing program Mark.
3. testing script automatic generation method according to claim 1, which is characterized in that obtain current locating for set-top box EPG mark and current focus mark, and as with it is described default by the corresponding source EPG mark of testing program and source focus mark Know, comprising:
The characteristic fingerprint that current EPG locating for set-top box is extracted using perceptual hash algorithm, obtains current EPG locating for set-top box Mark, and current EPG mark default is identified as with described by the corresponding source EPG of testing program;
The default focus in current EPG locating for set-top box is obtained using artificial intelligence training image recognizer, and utilizes sense Know that hash algorithm extracts the characteristic fingerprint of the default focus, obtains the mark of current focus locating for set-top box, and this is current Focus mark default is identified as with described by the corresponding source focus of testing program.
4. testing script automatic generation method according to claim 1, which is characterized in that default by testing section obtaining Mesh, with it is described default by before the corresponding target EPG mark of testing program and goal-focus mark, further includes:
According to each default focus mark in the default EPG mark of each of multiple default EPG marks and except the default EPG mark Except remaining default EPG mark between linking relationship and each in default EPG mark every two presets focus and identifies it Between incidence relation, formed EPG structural database.
5. testing script automatic generation method according to claim 4, which is characterized in that identified according to multiple default EPG Each of each default focus mark in default EPG mark identify it with remaining default EPG in addition to this presets EPG mark Between linking relationship and each default EPG mark in every two preset the incidence relation between focus mark, form EPG knot Structure database, comprising:
EPG is preset for each of multiple default EPG, is performed both by following operation:
The characteristic fingerprint that the default EPG is extracted using perceptual hash algorithm obtains default EPG mark;
All default focuses in the default EPG mark are obtained using artificial intelligence training image recognizer, and utilize perception Hash algorithm extracts the characteristic fingerprint for each default focus that all default focuses include respectively, obtains each default focus mark, Wherein, each default focus mark includes default default focus mark;
According to the first ultra-red order, the default EPG mark and each default focus mark, obtain every two in the default EPG mark Incidence relation between a default focus mark;
According to the second ultra-red order, the default EPG mark and each default focus mark, obtain each in the default EPG mark Linking between default focus mark and remaining default EPG mark in multiple default EPG marks in addition to this presets EPG mark Relationship;
By each default focus mark in the default EPG mark of each of multiple default EPG marks and except the default EPG identifies it Every two is preset between focus mark in linking relationship and each default EPG mark between the default EPG mark of remaining outer Incidence relation store into database, to form EPG structural database.
6. testing script automatic generation method according to claim 1, which is characterized in that according in EPG structural database The data of storage, source EPG mark, source focus mark, target EPG mark and goal-focus mark, It generates and presets with described by the corresponding testing script of testing program, obtain the first testing script, comprising:
According to the data, source EPG mark, source focus mark, target EPG mark stored in EPG structural database Know and goal-focus mark obtains identifying and the source focus from the source EPG using Shortest Path Searching Algorithm It is identified to the shortest path of the target EPG mark and goal-focus mark;
According to the shortest path, generates and preset with described by the corresponding testing script of testing program, obtain the first testing script.
7. testing script automatic generation method according to claim 1, which is characterized in that further include: execute described first Testing script.
8. testing script automatic generation method according to claim 7, which is characterized in that further include: detection is dialled with practical Survey the corresponding default EPG mark of every testing subpath for including in path and default focus mark and with described first group The corresponding default EPG mark of the every testing subpath recorded in survey script identifies whether consistent with default focus.
9. testing script automatic generation method according to claim 8, which is characterized in that detecting and practical testing road The corresponding default EPG mark of the current testing subpath for including in diameter and default focus mark and with the first testing foot In the case that the corresponding default EPG mark of the current testing subpath recorded in this and default focus mark are inconsistent, according to EPG Data, the default EPG mark corresponding with the current testing subpath for including in practical testing path stored in structural database With default focus mark, target EPG mark and goal-focus mark, regenerates and preset with described by testing The corresponding testing script of program, obtains the second testing script.
10. testing script automatic generation method according to claim 9, which is characterized in that regenerate with it is described pre- If by the corresponding testing script of testing program, after obtaining the second testing script, further includes:
Since current testing subpath, continue to test with practical testing path in include current testing subpath and subsequent The corresponding default EPG of testing subpath is identified and default focus identifies and current with recording in the second testing script Testing subpath and subsequent the corresponding default EPG mark of testing subpath identify whether consistent with default focus.
CN201910063443.8A 2019-01-23 2019-01-23 Testing script automatic generation method and system Pending CN109862427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910063443.8A CN109862427A (en) 2019-01-23 2019-01-23 Testing script automatic generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910063443.8A CN109862427A (en) 2019-01-23 2019-01-23 Testing script automatic generation method and system

Publications (1)

Publication Number Publication Date
CN109862427A true CN109862427A (en) 2019-06-07

Family

ID=66895752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910063443.8A Pending CN109862427A (en) 2019-01-23 2019-01-23 Testing script automatic generation method and system

Country Status (1)

Country Link
CN (1) CN109862427A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545473A (en) * 2019-09-24 2019-12-06 北京市博汇科技股份有限公司 device and method for dial testing evaluation of 4K ultra-high-definition set top box based on artificial intelligence
CN112532966A (en) * 2019-08-27 2021-03-19 中兴通讯股份有限公司 Set top box testing method and device, set top box and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162931A1 (en) * 2005-12-28 2007-07-12 Mickle Jacklyn A Methods, systems and computer program products for providing internet protocol television diagnostics
CN104918043A (en) * 2014-03-12 2015-09-16 北京市博汇科技股份有限公司 Program broadcast testing method and device
CN105704483A (en) * 2016-01-15 2016-06-22 北京市博汇科技股份有限公司 Wired interactive TV service call testing method and system
CN107222739A (en) * 2017-07-10 2017-09-29 中邮科通信技术股份有限公司 A kind of IPTV service quality dial testing method based on crawler technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162931A1 (en) * 2005-12-28 2007-07-12 Mickle Jacklyn A Methods, systems and computer program products for providing internet protocol television diagnostics
CN104918043A (en) * 2014-03-12 2015-09-16 北京市博汇科技股份有限公司 Program broadcast testing method and device
CN105704483A (en) * 2016-01-15 2016-06-22 北京市博汇科技股份有限公司 Wired interactive TV service call testing method and system
CN107222739A (en) * 2017-07-10 2017-09-29 中邮科通信技术股份有限公司 A kind of IPTV service quality dial testing method based on crawler technology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532966A (en) * 2019-08-27 2021-03-19 中兴通讯股份有限公司 Set top box testing method and device, set top box and computer readable storage medium
CN110545473A (en) * 2019-09-24 2019-12-06 北京市博汇科技股份有限公司 device and method for dial testing evaluation of 4K ultra-high-definition set top box based on artificial intelligence
CN110545473B (en) * 2019-09-24 2022-10-11 北京市博汇科技股份有限公司 Device and method for dial testing evaluation of 4K ultra-high-definition set top box based on artificial intelligence

Similar Documents

Publication Publication Date Title
US10313523B2 (en) Remote distance assistance system and method
CN108932945B (en) Voice instruction processing method and device
CN109862427A (en) Testing script automatic generation method and system
CN104598380A (en) Method and system for automatic testing based on control
CN101840233B (en) Equipment failure detection device and method
US8732199B2 (en) System, method, and computer readable media for identifying a user-initiated log file record in a log file
CN109492128A (en) Method and apparatus for generating model
CN1113673A (en) Method and system for monitoring, testing and analyzing a telecommunication switching system
CN104778118B (en) The improved method of automatization testing technique
CN103678124B (en) Video surveillance platform auto-test method and device based on continuous integrated environment
JP6917844B2 (en) Work support system, work support method and work support program
CN105405442A (en) Speech recognition method, device and equipment
CN115186850B (en) Dynamic monitoring method and system for submarine cable operating environment
CN110837474A (en) Script recording method, device, terminal and storage medium
CN103631590A (en) Method for editing automated testing script
CN109348392B (en) Method for realizing hardware state detection of microphone array
WO2021047184A1 (en) System failure analysis and processing method and apparatus, storage medium, and electronic device
CN112540309A (en) Battery monitoring system and method based on battery cycle data similarity analysis
KR102325258B1 (en) Method for an autonomic or ai-assisted validation or decision making regarding network performance of a telecommunications network and/or for an autonomic or ai-assisted troubleshooting or performance enhancement within a telecommunications network, telecommunications network, system, machine intelligence entity, visualization interface, computer program and computer-readable medium
CN105204994B (en) A kind of automated testing method and system
CN109245910B (en) Method and device for identifying fault type
CN106357977B (en) Focusing method and device
US8942979B2 (en) Acoustic processing apparatus and method
CN108750844B (en) Calling elevator type identification method and system, identification device and readable storage medium
CN109144809B (en) Focus change monitoring method, storage medium, electronic device and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190607