CN101894071A - Set top box embedded browser integration test method and system - Google Patents
Set top box embedded browser integration test method and system Download PDFInfo
- Publication number
- CN101894071A CN101894071A CN 201010215021 CN201010215021A CN101894071A CN 101894071 A CN101894071 A CN 101894071A CN 201010215021 CN201010215021 CN 201010215021 CN 201010215021 A CN201010215021 A CN 201010215021A CN 101894071 A CN101894071 A CN 101894071A
- Authority
- CN
- China
- Prior art keywords
- url
- page
- browser
- module
- formation
- 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
Links
- 230000010354 integration Effects 0.000 title claims abstract description 19
- 238000010998 test method Methods 0.000 title claims abstract description 15
- 238000012360 testing method Methods 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 17
- 230000015572 biosynthetic process Effects 0.000 claims description 27
- 230000004044 response Effects 0.000 claims description 13
- 239000000284 extract Substances 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000001934 delay Effects 0.000 claims description 2
- 238000003780 insertion Methods 0.000 claims description 2
- 230000037431 insertion Effects 0.000 claims description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a set top box embedded browser integration test method and a set top box embedded browser integration test system. The method of the invention comprises: setting and resolving parameters, initializing an URL queue, calling a tested browser to obtain a webpage, recording test information, calling the tested browser to display the webpage, extracting the URL from the webpage, and adding the URL into the URL queue. Meanwhile, the invention also discloses a set top box embedded browser integration test method and system. According to the technical scheme of the invention, manual test in a browser integration test process can be replaced or helped, so the working efficiency of test personnel can be improved effectively.
Description
Technical field
The present invention relates to the computer software testing technical field, be specifically related to a kind of set top box embedded browser integration test method and system.
Background technology
Along with the 3C arrival of convergence era, the demand of browser application is arranged in the increasing consumer electronics product, at present, much all supported browser application in digital TV set-top box, IPTV set-top box, digital TV integrated machine and mobile phone or the like product.
Because the CPU processing power of consumer electronics product itself is low, memory size is limited.Some characteristics such as low-power consumption, make that popular IE browser, netscape browser, Firefox browser etc. can't directly be applied in the consumer electronics product on PC, this simultaneously also strengthened built-in browser exploitation, cutting, transplanting difficulty.And also just seem particularly important for the integration testing work of browser after transplanting, the cutting.There are two important aspects to be exactly for the test of browser: 1. the different page of frequent access and not makeing mistakes whether for a long time; 2. whether can show normally for the webpage that obtains.Usually can realize by manually testing for these 2, but this needs artificial input of a large amount of url and test record.Some automated testing methods are also arranged now, but all will also will develop a large amount of test cases.
In research and practice process to the method, the present inventor finds: we can design a kind of browser integration test method and system, are test case with the hyperlink of the page, realize the automatic accession page of browser.It can reach our test request on the one hand, or it can replace manually-operated indirect labor operation on the other hand, and logging test results.
Summary of the invention
The invention provides a kind of set top box embedded browser integration test method, can realize full automation the frequent access test of webpage.Whether normally show also and can obtain webpage by moving that fixed time interval shows provides auxiliary simultaneously to observing the page, the page that can make us be primarily focused on browser like this shows.
The invention provides a kind of set top box embedded browser integration test method, comprising: the setting of parameter and parsing, initialization URL formation, call tested browser and obtain the page, the record detecting information calls the tested browser display page, extracts URL and it is joined the URL formation from the page.
A kind of set top box embedded browser integrated test system, described system comprises:
Must have more than or equal to a seed URL in parsing and the setting module and come initialization URL formation, to set display mode simultaneously, be defaulted as common display, show and also need to set controlled variable, controlled variable to be mainly used to set the residence time of user on a page for fixed time interval.
The formation module is mainly used in the maintenance of URL formation, comprises also whether detect URL is present in the formation, if then abandon, otherwise it is joined in the middle of the formation.
The page access module is mainly used in tested browser mutual, comprises checking whether correct format and to the correct URL of tested browser transmission of URL, will preserve the return state of page access and the response time of page access simultaneously.
The test record module is mainly used in the record detecting information, comprises URL, and the access response state, for successful access, also needs to write down Http response head at the access response time.
The page shows that the record module is mainly used in the selection display mode, and the controlled variable of corresponded manner.Two kinds of modes mainly are provided in the demonstration of the page: common display, fixed time interval show.
So-called common display will obtain the page exactly and show on tested browser, then initiate new connection then.Can this mode be mainly used in the test browser accession page that frequently continue and be indifferent to the demonstration problem of the page.
So-called fixed time interval shows will obtain the page on browser and time of setting of the user that delays time exactly, interior user of this time carefully browsing page to judge whether web displaying normal.
Controlled variable just be meant be used to set be used to rest on the time on the page.
The URL that the URL extraction module is mainly used in the page of successful access extracts, and these hyperlink are joined the URL formation as seed URL
Technique scheme as can be seen, because the embodiment of the invention adopts robotization or semi-automatic integration test method, therefore can make the tester that more energy is focused on complicated more test activity, for example content has or not and overflows, and whether attractive in appearance etc. if setting type.Thereby effectively improve tester's work efficiency.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of embedded browser integration test method of the present invention;
Fig. 2 is the modular structure figure of test macro;
Fig. 3 is the maintenance process figure of URL formation;
Fig. 4 is the reciprocal process figure of integrated test system and browser.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of set top box embedded browser integration test method, can substitute or indirect labor's test, is elaborated below in conjunction with embodiment.
Referring to Fig. 1, this figure is a kind of process flow diagram that the invention process realizes set top box embedded browser integration test method, and is concrete, and this enforcement realizes that the step of set top box embedded browser integration test method is as follows:
Step S101 needed to dispose the URL seed and finishes to transfer part and display mode before testing.Show and also should set the residence time for fixed time interval, should provide prompting and using method, can finish by transmitting parameter during the data specific implementation that need use for initialization for the demonstration of mistake.
Step S102, initialization URL formation also will be safeguarded the URL formation dynamically in operational process, the maintenance of formation mainly contains gets team's head and two basic operations of tail of the queue insertion, but in this realization, also added the detection whether repetition URL is arranged in formation, will abandon for the URL that repeats.
Step S103 checks whether the URL form is correct, correct URL is passed to tested browser and saves return state and the corresponding time.
Step S104, the record detecting information comprises URL, the access response state, for successful access, also needs to write down Http response head at the access response time.
Step S105 advances to select to display mode, also needs to resolve its controlled variable, the just residence time on a page for the fixed time interval demonstration is individual.
Step S106 will obtain the page and show on tested browser, enter the URL extraction module then at once, and can this mode be mainly used in the test browser accession page ability that frequently continue rather than the demonstration problem of the page.
Step S107 will obtain the page and show on tested browser, and the time of the user's setting of delaying time, and the user can borrow this time observe the situation that the page shows.For example check whether meaningful overflowing, situations such as composing.
Step S108 judges that whether test finishes, and mainly judges according to the time, when running to user's setting-up time with regard to end of run in the implementation case.
Step S109 extracts the URL of webpage, and it is joined the URL formation.
Referring to Fig. 3, provided the interaction figure of test macro and set top box embedded browser in this enforcement among the figure,
Step S401, integrated test system take out URL and pass to browser from formation, call the interface that browser is reserved, and then browser is just visited the page of URL representative.
Step S402, browser obtains webpage, and its Access status is returned to integrated test system.
Step S403, the relevant information of record test comprises: URL, return the shape body, the response time, responded head.
Step S403 calls the browser display interface and shows.
Step S404 obtains return state from browser interface.The time that shows then the appointment of integration testing process sleep here for fixed time interval.Common display is then leapt to S405.
Step S405 extracts URL, and it is joined in the URL formation, changes S401.
Need to prove, contents such as the information interaction between said apparatus and intrasystem each unit, implementation since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to embedded browser integration test method and system that the embodiment of the invention provided, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (9)
1. set top box embedded browser integration test method, it is characterized in that, comprise: the setting of parameter and parsing, initialization URL formation, call tested browser and obtain the page, the record detecting information calls the tested browser display page, extracts URL and it is joined the URL formation from the page.
2. set top box embedded browser integrated test system, it is characterized in that described system comprises: parameter is resolved and setting module, is used for controlled variable parsing and the setting and the initialization of described system, described parameter comprises initial seed URL, display mode parameter and controlled variable; URL formation module is used for the maintenance of described system URL formation, mainly is to obtain team's head and two kinds of main operations of tail of the queue insertion; The page access module, be used for described system with the mutual of tested browser and return relevant information for the logging modle record; The test record module is used for described system testing process recording of information, and the information that obtains is preserved with the form of file; Display module is used for the demonstration of the described system page, and this module provides two kinds of display modes to comprise that fixed time interval shows, common display; The URL extraction module is used for the page of described system successful access, according to key word its page hyperlink is extracted and join the URL formation.
3. system according to claim 2, it is characterized in that, must have more than or equal to a seed URL in described parameter parsing and the setting module and come initialization URL formation, to set display mode simultaneously, be defaulted as common display, show and also need to set controlled variable, controlled variable to be mainly used to set the residence time of user on a page for fixed time interval.
4. system according to claim 2 is characterized in that described formation module is mainly used in the maintenance of URL formation, comprises also whether detect URL is present in the middle of the formation, if then abandon, otherwise it is joined in the middle of the formation.
5. system according to claim 2, it is characterized in that, described page access module is mainly used in tested browser mutual, comprise and check whether correct format of URL, and, to the return state of page access and the response time of page access will be preserved simultaneously to the correct URL of tested browser transmission.
6. system according to claim 2, it is characterized in that, described page access module is mainly used in tested browser mutual, comprise and check whether correct format of URL, and to the correct URL of tested browser transmission, simultaneously will be with the response of preserving the return state of page access and page access also time.
7. system according to claim 2 is characterized in that, described test record module is mainly used in the record detecting information, comprises URL, and the access response state, for successful access, also needs to write down Http response head at the access response time.
8. want 2 described built-in browser integrated test systems according to right, it is characterized in that, the described page shows that the record module is mainly used in the selection display mode, and the controlled variable of corresponded manner; Two kinds of modes mainly are provided in the demonstration of the page: common display, fixed time interval show; So-called common display will obtain the page exactly and show on tested browser, then initiate new connection then; Can this mode be mainly used in the test browser accession page that frequently continue and be indifferent to the demonstration problem of the page; So-called fixed time interval shows will obtain the page on browser and time of setting of the user that delays time exactly, interior user of this time carefully browsing page to judge whether web displaying normal; Controlled variable just be meant be used to set be used to rest on the time on the page.
9. built-in browser integrated test system according to claim 2 is characterized in that, the URL that described URL extraction module is mainly used in the page of successful access extracts, and these hyperlink are joined the URL formation as seed URL.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010215021 CN101894071A (en) | 2010-06-30 | 2010-06-30 | Set top box embedded browser integration test method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010215021 CN101894071A (en) | 2010-06-30 | 2010-06-30 | Set top box embedded browser integration test method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101894071A true CN101894071A (en) | 2010-11-24 |
Family
ID=43103265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010215021 Pending CN101894071A (en) | 2010-06-30 | 2010-06-30 | Set top box embedded browser integration test method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101894071A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055623A (en) * | 2010-12-08 | 2011-05-11 | 深圳市茁壮网络股份有限公司 | Method and system for automatically testing embedded type browser |
CN102291593A (en) * | 2011-08-24 | 2011-12-21 | 烽火通信科技股份有限公司 | System configuring and testing method in production of IPTV (Internet Protocol Television) set top box |
CN103281217A (en) * | 2013-05-23 | 2013-09-04 | 中国科学院计算机网络信息中心 | User page stay time measuring method |
CN104035863A (en) * | 2013-03-08 | 2014-09-10 | 腾讯科技(深圳)有限公司 | Browser testing method and device |
CN110134609A (en) * | 2019-05-20 | 2019-08-16 | 广东电网有限责任公司 | Enterprise-level web application system page method for testing performance, device and medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101694658A (en) * | 2009-10-20 | 2010-04-14 | 浙江大学 | Method for constructing webpage crawler based on repeated removal of news |
-
2010
- 2010-06-30 CN CN 201010215021 patent/CN101894071A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101694658A (en) * | 2009-10-20 | 2010-04-14 | 浙江大学 | Method for constructing webpage crawler based on repeated removal of news |
Non-Patent Citations (1)
Title |
---|
《中国优秀硕士学位论文全文数据库》 20080115 庾锡昌 Tops嵌入式浏览器的设计与实现 57-63 1-9 , 第1期 2 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055623A (en) * | 2010-12-08 | 2011-05-11 | 深圳市茁壮网络股份有限公司 | Method and system for automatically testing embedded type browser |
WO2012075890A1 (en) * | 2010-12-08 | 2012-06-14 | 深圳市茁壮网络股份有限公司 | Method and system for automated testing of embedded browser |
CN102055623B (en) * | 2010-12-08 | 2012-10-03 | 深圳市茁壮网络股份有限公司 | Method and system for automatically testing embedded type browser |
CN102291593A (en) * | 2011-08-24 | 2011-12-21 | 烽火通信科技股份有限公司 | System configuring and testing method in production of IPTV (Internet Protocol Television) set top box |
CN104035863A (en) * | 2013-03-08 | 2014-09-10 | 腾讯科技(深圳)有限公司 | Browser testing method and device |
CN104035863B (en) * | 2013-03-08 | 2018-01-09 | 腾讯科技(深圳)有限公司 | A kind of browser testing method and device |
CN103281217A (en) * | 2013-05-23 | 2013-09-04 | 中国科学院计算机网络信息中心 | User page stay time measuring method |
CN103281217B (en) * | 2013-05-23 | 2016-08-10 | 中国科学院计算机网络信息中心 | A kind of measuring method of User Page stay time |
CN110134609A (en) * | 2019-05-20 | 2019-08-16 | 广东电网有限责任公司 | Enterprise-level web application system page method for testing performance, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102801853B (en) | Mobile phone and method for automatically triggering task execution | |
CN103853767B (en) | A kind of social circle's sharing method and device based on browser | |
CN101894071A (en) | Set top box embedded browser integration test method and system | |
JP2010205111A (en) | System, and method for reproducing context, first terminal device, second terminal device, context obtaining device or storage device, program thereof | |
CN103631506B (en) | Reading method based on terminal and corresponding terminal | |
CN104679658A (en) | Test method and test system for WEB pages | |
CN103516557B (en) | test method and system | |
CN102156709A (en) | Browser engine mode switching method | |
WO2010096211A1 (en) | Method and system of processing cookies across domains | |
CN106897216A (en) | The method and apparatus of test software | |
CN102609741B (en) | A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof | |
CN102752371B (en) | In client, realize method and the client of dodging screen | |
CN103631830A (en) | Method and device for detecting web spiders | |
CN103425647B (en) | A kind of seamless browsing method of webpage and system | |
CN107894945A (en) | Bury an adding method, mobile terminal and computer-readable recording medium | |
CN103617209A (en) | File management method and file management device for mobile terminal | |
CN105207832A (en) | Server stress testing method and device | |
CN106484387A (en) | The method that intelligent mobile terminal is used as game paddle and web game device | |
CN105550179A (en) | Webpage collection method and browser plug-in | |
CN104765792B (en) | A kind of method, apparatus and system of dimension data storage | |
CN102750285B (en) | system and method for providing offline browsing | |
CN105187361A (en) | Application content push method, correlative device and system | |
CN102722430B (en) | Method and device for detecting hot plug of secure digital card | |
CN103941997A (en) | Sheet editing method and device | |
CN101866314A (en) | Software testing method and software testing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20101124 |