CN104778117A - Method and device for testing page switching smoothness of reading software - Google Patents

Method and device for testing page switching smoothness of reading software Download PDF

Info

Publication number
CN104778117A
CN104778117A CN201410016622.3A CN201410016622A CN104778117A CN 104778117 A CN104778117 A CN 104778117A CN 201410016622 A CN201410016622 A CN 201410016622A CN 104778117 A CN104778117 A CN 104778117A
Authority
CN
China
Prior art keywords
page
time
layout switch
elemental characteristic
page layout
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
CN201410016622.3A
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.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang 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 China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN201410016622.3A priority Critical patent/CN104778117A/en
Publication of CN104778117A publication Critical patent/CN104778117A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and device for testing the page switching smoothness of reading software. The method comprises the following steps: acquiring the element characteristic to be tested of a page; recording the start time of page switching; reading the current page; reading the characteristic value of the element characteristic in the current page; judging whether or not the characteristic value is consistent with the characteristic value of an element characteristic in a history page to obtain a judgment result, and returning to the step of reading the current page if the judgment result is positive; when the judgment result is negative, recording the end time of page switching; and acquiring time needed by page switching according to the start time and the end time. Through the scheme provided by the invention, the testing accuracy and testing flexibility are improved; individual demands are met; and a better testing effect is achieved. Any page of any reading software version can be tested easily regardless of software upgrade testing or ordinary daily testing, and the testing efficiency is very high.

Description

A kind of method and device testing ocr software page layout switch fluency
Technical field
The present invention relates to data service technical field, refer to a kind of method and the device of testing ocr software page layout switch fluency especially.
Background technology
Digital reading product, before formal issue, need carry out the fluency test switched between two reading pages usually.
The page layout switch fluency test major part of existing digital reading software (can comprise here: the multiple product such as client, wap, www form) is undertaken by manual, in test process, tester carries out manual page turning, and writing time, contrast with the time of the similar page layout switch of similar software, if than similar software page average switching time slowly; could be judged to be defective.This kind of method of testing efficiency is lower, software upgrading each time or amendment, and Jun Xu establishment officer carries out test comparison; In addition, manually-operated degree of accuracy is lower, can there is certain perceptual error for the beginning of page layout switch and end.
Another kind of existing page fluency method of testing then utilizes " time of reading page loaded and displayed " to substitute, namely the element of a reading page all represents the time length of needs, and by realizing the preset qualified time, automatically contrast, if the test duration is slower than Preset Time, then defective.This kind of method of testing can solve the inefficiency problem of manual testing, but the error certain to the existence starting the condition that defines and expection of page layout switch.Because switch fluency test request be starting point from a page layout switch, end point is that the certain element of another webpage representation terminates.And existing automated testing method only uses " the loaded and displayed time of another page " to replace, the handoff response time in the middle of obviously having lacked, this often causes larger error.As: the element of certain page is very many, and existing methodical conclusion is that its fluency is poor; But legitimate reading can not prove to switch fluency good job, can only prove that the page loads slow.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method and the device of testing ocr software page layout switch fluency, solves in prior art that the efficiency of testing ocr software page layout switch fluency is low, degree of accuracy is low or accurately can not define start time of page layout switch and end time thus cause measurement result to there is problem compared with big error.
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of method of testing ocr software page layout switch fluency, comprises the steps:
Obtain the elemental characteristic to be tested of the page;
Record switches the start time of the described page;
Read current page;
The eigenwert of described elemental characteristic is read in described current page;
Judging that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page, obtain a judged result, when described judged result is for being, then returning the step of described reading current page; When described judged result is no, then record switches the end time of the described page;
Page layout switch required time is obtained according to described start time and described end time.
Above-mentioned method, wherein, also comprises after obtaining the step of page layout switch required time according to described start time and described end time:
Described page layout switch required time and Preset Time are compared, obtains a comparative result;
Described comparative result be described page layout switch required time be not more than described Preset Time time then determine that described page layout switch fluency meets preset requirement, described comparative result be described page layout switch required time be greater than described Preset Time time then determine that described page layout switch fluency does not meet preset requirement.
Above-mentioned method, wherein, also comprises before obtaining the step of the elemental characteristic to be tested of the page:
Create the elemental characteristic storehouse of the page of ocr software, described elemental characteristic storehouse is for providing described elemental characteristic to be tested.
Above-mentioned method, wherein, described elemental characteristic storehouse comprises one or more combination following: word, image, gray scale, color, texture and border.
Above-mentioned method, wherein, what judge step that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page adopts is mode identification technology.
Present invention also offers a kind of device testing ocr software page layout switch fluency, comprising:
First acquisition module, for obtaining the elemental characteristic to be tested of the page;
First logging modle, for recording the start time switching the described page;
First read module, for reading current page;
Second read module, for reading the eigenwert of described elemental characteristic in described current page;
Second logging modle, for recording the end time switching the described page;
Judge module, for judging that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page, obtains a judged result;
Trigger module, for when described judged result is for being, triggers described first read module, described second read module and described judge module executable operations again; When described judged result is no, trigger the end time that described second logging modle record switches the described page;
Second acquisition module, for obtaining page layout switch required time according to described start time and described end time.
Above-mentioned device, wherein, described device also comprises:
Comparison module, for described page layout switch required time and Preset Time being compared after described second acquisition module obtains described page layout switch required time, obtains a comparative result;
Determination module, for at described comparative result be described page layout switch required time be not more than described Preset Time time then determine that described page layout switch fluency meets preset requirement, described comparative result be described page layout switch required time be greater than described Preset Time time then determine that described page layout switch fluency does not meet preset requirement.
Above-mentioned device, wherein, described device also comprises:
Creation module, for creating the elemental characteristic storehouse of the page of ocr software before described first acquisition module obtains the elemental characteristic to be tested of the page, described elemental characteristic storehouse is for providing described elemental characteristic to be tested.
Above-mentioned device, wherein, described elemental characteristic storehouse comprises one or more combination following: word, image, gray scale, color, texture and border.
Above-mentioned device, wherein, what described judge module adopted is mode identification technology.
The beneficial effect of technique scheme of the present invention is as follows:
In such scheme, the method of described test ocr software page layout switch fluency relatively judges the page whether handover success by setting up characteristic element, and utilize computer pattern recognition, can accurately define start time and end time, improve the degree of accuracy of test; For the different pages, different test conditions is set according to different test requests, adopts different characteristic elements to compare, improve the dirigibility of test, meet individual demand, make to test better effects if simultaneously; By the foundation in elemental characteristic storehouse, easily can test any page of any ocr software version, no matter be software upgrading test or usual daily test, and the efficiency of test is very high.
Accompanying drawing explanation
Fig. 1 is the method step schematic diagram of the embodiment of the present invention;
Fig. 2 is that the method for the embodiment of the present invention performs schematic flow sheet;
Fig. 3 is the apparatus structure schematic diagram of the embodiment of the present invention.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The present invention is directed in existing technology that the efficiency of testing ocr software page layout switch fluency is low, degree of accuracy is low or accurately can not define start time of page layout switch and end time thus cause measurement result to there is problem compared with big error, a kind of method of testing ocr software page layout switch fluency is provided, as shown in Figure 1, comprise the steps:
Step 11: the elemental characteristic to be tested obtaining the page;
Step 12: record switches the start time of the described page;
Step 13: read current page;
Step 14: the eigenwert reading described elemental characteristic in described current page;
Step 15: judge that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page, obtain a judged result, when described judged result is for being, then returns the step 13 of described reading current page; When described judged result is no, then record switches the end time of the described page;
Step 16: obtain page layout switch required time according to described start time and described end time.
Wherein, also comprise after obtaining the step of page layout switch required time according to described start time and described end time: described page layout switch required time and Preset Time are compared, obtains a comparative result; Described comparative result be described page layout switch required time be not more than described Preset Time time then determine that described page layout switch fluency meets preset requirement, described comparative result be described page layout switch required time be greater than described Preset Time time then determine that described page layout switch fluency does not meet preset requirement.
It should be noted that, perform step 14 very short, negligible with the time required for step 15.Page layout switch required time is for from a page layout switch herein, and the elemental characteristic (namely to be tested elemental characteristic) certain to another webpage representation terminates the required time, but not the loaded and displayed time of another page.
The method of the described test ocr software page layout switch fluency that the embodiment of the present invention provides improves the degree of accuracy of test and the dirigibility of test, meets individual demand, makes to test better effects if simultaneously; Easily can test any page of any ocr software version, no matter be software upgrading test or usual daily test, and the efficiency of test is very high.
Also comprise before obtaining the step of the elemental characteristic to be tested of the page in the described method that the embodiment of the present invention provides: the elemental characteristic storehouse creating the page of ocr software, described elemental characteristic storehouse is for providing described elemental characteristic to be tested.
Concrete, described elemental characteristic storehouse comprises one or more combination following: word, image, gray scale, color, texture and border.
Separately, what judge step that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page preferentially adopts is mode identification technology.Other can certainly be adopted can to reach the technological means of technical purpose, in this citing that differs.
The following detailed description of the concrete execution flow process of the embodiment of the present invention, as shown in Figure 2.
The page elements of ocr software not only comprises the fundamental elements such as the writings and image that the page shows, and also comprises other characteristic elements, as gray feature, color characteristic, boundary characteristic, textural characteristics etc.
Generally, the elemental characteristic between two different reading pages certainly can not be identical, and as being loaded into the word page from page picture, the texture that its page is corresponding, color, writings and image are all different.And existing computer pattern recognition is very ripe, above-mentioned elemental characteristic can be identified fast.
So can judge to create switching behavior between two pages by the elemental characteristic difference of page identification, and these elemental characteristics can carry out personal settings according to the test request of ocr software.Pre-seting by elemental characteristic, accurately can control the time point starting and terminate, and the mistiming that test elements feature changes, the test data finally as fluency carries out fluency contrast.
The concrete execution flow process of the embodiment of the present invention is:
Set up reading page elemental characteristic storehouse, ocr software has its distinctive elemental characteristic, comprises here: the fundamental elements such as writings and image, gray feature, color characteristic, textural characteristics and boundary characteristic etc.
Tester's start-up simulation machine pattern-recognition (this technology is existing cooked mode, can compare the visual signature of two different pages).Mode identification technology, according to the statistical property extracted from image or structural information, is divided into image and gives fixed classification.In computer vision, mode identification technology is through being usually used in some part in image, the identification of such as cut zone and classification.Whether the page elements feature being distinguished two different pages by CRT technology is identical.
Configure the page elements characteristic parameter of this test.Although the page feature element of ocr software is a lot, judges whether to jump to the page 2 from the page 1, do not need more all elemental characteristics.Only need the Partial Elements that comparative feature is stronger, improve computing efficiency so on the one hand, also can ensure degree of accuracy on the other hand.Entering read page as clicked from book cover, whether equally only need compare its picture feature, as long as different, then proving it from book cover page layout switch to reading page; As being switched to 233 pages from read page 232 pages, then needing to compare character features, whether equally to judge whether it has switched complete, because other features are all the same.
To the switching page of specifying, start timing, and the start time of page layout switch is stored.
Carry out CRT technology, start to read the beginning page (claiming: the page 1) element here, and capture the characteristic element (as gray scale) wherein set.In the handoff procedure of the page, constantly refresh and identify page elements instantly.
If there is the characteristic element coupling of the page and the initial page refreshed always, then represent and still rest on current page, do not switch in the past, then continue to read page data.
If the page refreshed and the characteristic element of initial page do not mate, then represent and be switched to the new page.And record this time point as the end time, and store.
Obtain according to start time and end time the time that page layout switch needs, and compare with the Preset Time stored, if the value tested out is less than preset value, then show that fluency is relatively good, meet preset requirement and test successfully (i.e. test passes); Value as tested out is larger than preset value, then show that smooth value is bad, do not meet preset requirement test crash (i.e. test failure).
Start the switching fluency test of the next page.
For solving the problems of the technologies described above, the embodiment of the present invention additionally provides a kind of device testing ocr software page layout switch fluency, as shown in Figure 3, comprising:
First acquisition module, for obtaining the elemental characteristic to be tested of the page;
First logging modle, for recording the start time switching the described page;
First read module, for reading current page;
Second read module, for reading the eigenwert of described elemental characteristic in described current page;
Second logging modle, for recording the end time switching the described page;
Judge module, for judging that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page, obtains a judged result;
Trigger module, for when described judged result is for being, triggers described first read module, described second read module and described judge module executable operations again; When described judged result is no, trigger the end time that described second logging modle record switches the described page;
Second acquisition module, for obtaining page layout switch required time according to described start time and described end time.
Wherein, described first read module starts to carry out read operation after described first acquisition module obtains described elemental characteristic; Described second acquisition module is also for storing the start time and end time that described first logging modle and described second logging modle record respectively.
Separately, described device also comprises: comparison module, for described page layout switch required time and Preset Time being compared after described second acquisition module obtains described page layout switch required time, obtains a comparative result; Determination module, for at described comparative result be described page layout switch required time be not more than described Preset Time time then determine that described page layout switch fluency meets preset requirement, described comparative result be described page layout switch required time be greater than described Preset Time time then determine that described page layout switch fluency does not meet preset requirement.
Further, described device also comprises: creation module, and for creating the elemental characteristic storehouse of the page of ocr software before described first acquisition module obtains the elemental characteristic to be tested of the page, described elemental characteristic storehouse is for providing described elemental characteristic to be tested.
Concrete, described elemental characteristic storehouse comprises one or more combination following: word, image, gray scale, color, texture and border.
What described in the described device that the embodiment of the present invention provides, judge module preferentially adopted is mode identification technology.Other can certainly be adopted can to reach the technological means of technical purpose, in this citing that differs.
The device of the described test ocr software page layout switch fluency that the embodiment of the present invention provides relatively judges the page whether handover success by setting up characteristic element, and utilize computer pattern recognition, can accurately define start time and end time, improve the degree of accuracy of test; For the different pages, different test conditions is set according to different test requests, adopts different characteristic elements to compare, improve the dirigibility of test, meet individual demand, make to test better effects if simultaneously; By the foundation in elemental characteristic storehouse, easily can test any page of any ocr software version, no matter be software upgrading test or usual daily test, and the efficiency of test is very high.
It should be noted that, the described embodiment that realizes of said method is all applicable in the embodiment of this device, also can reach identical technique effect.
Above-described is the preferred embodiment of the present invention; should be understood that the ordinary person for the art; not departing under principle prerequisite of the present invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. test a method for ocr software page layout switch fluency, it is characterized in that, comprise the steps:
Obtain the elemental characteristic to be tested of the page;
Record switches the start time of the described page;
Read current page;
The eigenwert of described elemental characteristic is read in described current page;
Judging that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page, obtain a judged result, when described judged result is for being, then returning the step of described reading current page; When described judged result is no, then record switches the end time of the described page;
Page layout switch required time is obtained according to described start time and described end time.
2. method according to claim 1, is characterized in that, also comprises after obtaining the step of page layout switch required time according to described start time and described end time:
Described page layout switch required time and Preset Time are compared, obtains a comparative result;
Described comparative result be described page layout switch required time be not more than described Preset Time time then determine that described page layout switch fluency meets preset requirement, described comparative result be described page layout switch required time be greater than described Preset Time time then determine that described page layout switch fluency does not meet preset requirement.
3. method according to claim 1, is characterized in that, also comprises before obtaining the step of the elemental characteristic to be tested of the page:
Create the elemental characteristic storehouse of the page of ocr software, described elemental characteristic storehouse is for providing described elemental characteristic to be tested.
4. method according to claim 3, is characterized in that, described elemental characteristic storehouse comprises one or more combination following: word, image, gray scale, color, texture and border.
5. method according to claim 1, is characterized in that, what judge step that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page adopts is mode identification technology.
6. test a device for ocr software page layout switch fluency, it is characterized in that, comprising:
First acquisition module, for obtaining the elemental characteristic to be tested of the page;
First logging modle, for recording the start time switching the described page;
First read module, for reading current page;
Second read module, for reading the eigenwert of described elemental characteristic in described current page;
Second logging modle, for recording the end time switching the described page;
Judge module, for judging that whether described eigenwert is consistent with the eigenwert of the elemental characteristic in history page, obtains a judged result;
Trigger module, for when described judged result is for being, triggers described first read module, described second read module and described judge module executable operations again; When described judged result is no, trigger the end time that described second logging modle record switches the described page;
Second acquisition module, for obtaining page layout switch required time according to described start time and described end time.
7. device according to claim 6, is characterized in that, described device also comprises:
Comparison module, for described page layout switch required time and Preset Time being compared after described second acquisition module obtains described page layout switch required time, obtains a comparative result;
Determination module, for at described comparative result be described page layout switch required time be not more than described Preset Time time then determine that described page layout switch fluency meets preset requirement, described comparative result be described page layout switch required time be greater than described Preset Time time then determine that described page layout switch fluency does not meet preset requirement.
8. device according to claim 6, is characterized in that, described device also comprises:
Creation module, for creating the elemental characteristic storehouse of the page of ocr software before described first acquisition module obtains the elemental characteristic to be tested of the page, described elemental characteristic storehouse is for providing described elemental characteristic to be tested.
9. device according to claim 8, is characterized in that, described elemental characteristic storehouse comprises one or more combination following: word, image, gray scale, color, texture and border.
10. device according to claim 6, is characterized in that, what described judge module adopted is mode identification technology.
CN201410016622.3A 2014-01-14 2014-01-14 Method and device for testing page switching smoothness of reading software Pending CN104778117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410016622.3A CN104778117A (en) 2014-01-14 2014-01-14 Method and device for testing page switching smoothness of reading software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410016622.3A CN104778117A (en) 2014-01-14 2014-01-14 Method and device for testing page switching smoothness of reading software

Publications (1)

Publication Number Publication Date
CN104778117A true CN104778117A (en) 2015-07-15

Family

ID=53619596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410016622.3A Pending CN104778117A (en) 2014-01-14 2014-01-14 Method and device for testing page switching smoothness of reading software

Country Status (1)

Country Link
CN (1) CN104778117A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506488A (en) * 2019-01-30 2020-08-07 阿里巴巴集团控股有限公司 Application page response test method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102579A (en) * 2007-06-22 2008-01-09 华为技术有限公司 A method and device for knowing and positioning UI in test
CN101853152A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method and system for generating graphical user interface
CN102156673A (en) * 2011-04-20 2011-08-17 北京航空航天大学 Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof
CN102662839A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Testing method and device for software interface state change time
US20120243745A1 (en) * 2009-12-01 2012-09-27 Cinnober Financial Technology Ab Methods and Apparatus for Automatic Testing of a Graphical User Interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102579A (en) * 2007-06-22 2008-01-09 华为技术有限公司 A method and device for knowing and positioning UI in test
CN101853152A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method and system for generating graphical user interface
US20120243745A1 (en) * 2009-12-01 2012-09-27 Cinnober Financial Technology Ab Methods and Apparatus for Automatic Testing of a Graphical User Interface
CN102156673A (en) * 2011-04-20 2011-08-17 北京航空航天大学 Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof
CN102662839A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Testing method and device for software interface state change time

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506488A (en) * 2019-01-30 2020-08-07 阿里巴巴集团控股有限公司 Application page response test method and device
CN111506488B (en) * 2019-01-30 2024-04-05 阿里巴巴集团控股有限公司 Application page response testing method and device

Similar Documents

Publication Publication Date Title
CN108920380A (en) Test method, device, server, equipment and the storage medium of the software compatibility
CN101719095A (en) Method and device for managing regression testing
JP2000253252A5 (en) Image processing device and image processing method
CN102662839A (en) Testing method and device for software interface state change time
CN111078552A (en) Method and device for detecting page display abnormity and storage medium
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN108304243B (en) Interface generation method and device, computer equipment and storage medium
CN108921209A (en) Image identification method, device and electronic equipment
CN107578438A (en) Circle recognition methods, device and electronic equipment
CN107276842A (en) Interface test method and device and electronic equipment
CN106093647A (en) The line degradation detecting method of touch screen and detecting system
CN109684125A (en) A kind of method, apparatus, equipment and storage medium for repairing DDR physical damage
CN109542278A (en) Processing method, device and the touch apparatus of touch data
CN109376341A (en) A kind of preservation of long list and method of calibration, apparatus and system
CN109359029A (en) It is a kind of automate non-intrusion type Android apply accessible support detection method
CN104951380A (en) Test method and system used for testing on-line products
US20050024064A1 (en) System and method for testing devices
CN104778117A (en) Method and device for testing page switching smoothness of reading software
CN101154468A (en) Test method for embedded memory chip
CN106919407B (en) The method that computer embeds product information synchronized update
CN111782521B (en) Printing automation test method and device
CN103956129A (en) Automatic identification system for electronic product display screen
CN113628077A (en) Method for generating non-repeated examination questions, terminal and readable storage medium
CN105653123A (en) Icon grouping method and terminal equipment
CN105721650A (en) Mobile phone card identification method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150715

RJ01 Rejection of invention patent application after publication