CN104572728B - For checking the description of the text of control and the method and apparatus of the uniformity of function - Google Patents
For checking the description of the text of control and the method and apparatus of the uniformity of function Download PDFInfo
- Publication number
- CN104572728B CN104572728B CN201310498991.6A CN201310498991A CN104572728B CN 104572728 B CN104572728 B CN 104572728B CN 201310498991 A CN201310498991 A CN 201310498991A CN 104572728 B CN104572728 B CN 104572728B
- Authority
- CN
- China
- Prior art keywords
- control
- function
- text
- incidence relation
- degree
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application involves a kind of for checking the description of the text of control and the method and apparatus of the uniformity of function.The method comprising the steps of:Text based on control describes the incidence relation between keyword, link and function pages, obtains the text description of control and the incidence relation of function;And according to the description of obtained text and the incidence relation of function, determine the text description of control and the uniformity of function.According to the technical solution of the application, automation inspection can be realized to the text description of control in webpage and the uniformity of function, the problem of most of inconsistent be exposed, so as to save labour turnover, reduce rate of failing to report and rate of false alarm and improve page testing efficiency.
Description
Technical field
This application involves internet arena, more particularly, to a kind of text description for being used to check control and function
The method and apparatus of uniformity.
Background technology
Due to there is a situation where to be likely to occur Edit Error during page script generates or edits, in net
Often there is a situation where text describes corresponding function sequence on page.For example, by mistake by the link text chain of " update "
The description of one text is linked to incorrect webpage etc. by the function or mistake being connected to corresponding to " deletion ".At present, on webpage
Text description and its truth function between correspondence inspection mainly by manually checking, i.e. by tester
The text description of each control is manually clicked on, whether just to check the correspondence between text description and function
Really.
But it checks have the following disadvantages manually:On the one hand, check and take time and effort manually, high labor cost;The opposing party
Face, the page link in webpage is hundreds of, checks that it is easy to appear omit or mistake manually.
Therefore, in the art, it is necessary to a kind of text description for being used to check control and the technology of the uniformity of function, energy
It reaches by the text description of control in webpage and the automation inspection of the uniformity of function, exposing largely inconsistent ask
Topic, so as to save labour turnover, reduce rate of failing to report and rate of false alarm.
The content of the invention
The main purpose of the application is to provide a kind of text description for being used to check control and the skill of the uniformity of function
Art, with solve by by hand check control text description and the inconsistent high labor cost of function, misrepresent deliberately and report by mistake the problems such as.
According to the application's in a first aspect, providing a kind of text description for being used to check control and the side of the uniformity of function
Method, which is characterized in that including step:The association that text based on control is described between keyword, link and function pages is closed
System obtains the text description of control and the incidence relation of function;And it is associated according to the description of obtained text with function
System determines the text description of control and the uniformity of function.
According to the second aspect of the application, a kind of text description for being used to check control and the dress of the uniformity of function are provided
It puts, which is characterized in that including:The association described for the text based on control between keyword, link and function pages is closed
System obtains the text description of control and the module of the incidence relation of function;And for according to the description of obtained text and work(
The incidence relation of energy determines the text description of control and the module of the uniformity of function.
Compared with prior art, according to the technical solution of the application, text description that can be to control in webpage and function
Uniformity realize automation inspection, expose the problem of most of inconsistent, so as to save labour turnover, reduce rate of failing to report and
Rate of false alarm simultaneously improves page testing efficiency.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen
Schematic description and description please does not form the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is the side according to the uniformity of the text description for being used to check control and function of one embodiment of the application
The flow chart of method 100;
Fig. 2 is the side according to the uniformity of the text description for being used to check control and function of one embodiment of the application
The flow chart of method 200;
Fig. 3 is that the text description for being used to check control in Fig. 2 according to one embodiment of the application is consistent with function
The more detailed flow chart of the method 200 of property;
Fig. 4 is that the text description for being used to check control in Fig. 2 according to one embodiment of the application is consistent with function
The more detailed flow chart of the method 200 of property;And
Fig. 5 is the dress according to the uniformity of the text description for being used to check control and function of one embodiment of the application
Put 500 schematic diagram.
Specific embodiment
The main idea of the present application lies in that the text based on the control in a webpage describes keyword, link and function
Incidence relation between the page determines the text description of control and the uniformity of function, so as to fulfill the webpage is checked automatically
Present in control text description with function it is inconsistent the problem of.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under the premise of creative work, shall fall in the protection scope of this application.
With reference to figure 1, Fig. 1 is the text description and the one of function for being used to check control according to one embodiment of the application
The flow chart of the method 100 of cause property.As shown in Figure 1, method 100 starts from step 101.
In step 101, the text based on control describes the incidence relation between keyword, link and function pages, obtains
To the text description of control and the incidence relation of function.
Typically, the control in webpage has text description, link and the function pages of its own.When one control of triggering
During part, by text description and the linking between its function pages of the control, corresponding function pages are may link to.Therefore,
Pass through the page function of keyword and the control used in the link of the keyword, the control of the text description of definite control
Existing incidence relation two-by-two between the keyword in face can obtain the text description of the control and the incidence relation of function.
In step 102, the incidence relation with function is described according to obtained text, determines text description and the work(of control
The uniformity of energy.
It specifically, can be according to the association after step 101 obtains incidence relation of the text description of control with function
Whether relation determines consistent between the text description of the control and its function, i.e. uniformity.For example, obtained pass can be worked as
The value of connection relation be less than default incidence relation value when, determine control text description its function between it is inconsistent, conversely,
It is then consistent.
So far, describe according to one embodiment of the application for checking that the description of the text of control is consistent with function
The flow chart of the method 100 of property.Wherein describe to determine the control with the incidence relation of function by obtaining the text of control
Text describes the uniformity between its function, so as to check that the description of the text of control present in the webpage differs with function
The problem of cause.This can check that the text of most control in webpage is described with function not automatically compared with manual inspection
The problem of consistent, not only reduces cost of labor, but also reduces rate of failing to report and misrepresent deliberately rate, so as to improve page testing efficiency.
Below in conjunction with Fig. 2 to Fig. 4 descriptions according to other more detailed embodiments of application scheme.
With reference to figure 2, Fig. 2 is the text description and the one of function for being used to check control according to one embodiment of the application
The flow chart of the method 200 of cause property.
In step 201, vector set is established for the control in a webpage, which includes one or more to quantum
Collection, wherein, the text that single vector subset includes single control describes keyword, link, function pages and the degree of association, the association
The text description of degree characterization control and the incidence relation of function, also, assign initial value to the degree of association.
Specifically, current web page is traveled through, text is established respectively for each single control and describes keyword(key), link
(link), function pages(page)And the degree of association(correlation)Vectorial subset, the plurality of vector for single control
Subset forms the vector set for current web page.
It to be closed for example, there are three controls, respectively " addition ", " deletion " and " editor ", their text description in a webpage
Key word(key), link(link), function pages(page)And the degree of association(correlation)Respectively:
Addition:Key1=addition;link1=showAdd(786008);The source of page1=triggering " addition " the reached pages afterwards
Code;
It deletes:Key2=deletion;link2=removeCase(786008);Page2=triggering " deletion " the reached pages afterwards
Source code;
Editor:Key3=editor;link3=showEdit(786008);Page3=triggering " editor " the reached page afterwards
Source code.
Therefore, the text for including above three control describes keyword(key), link(link), function pages
(page)And the degree of association(correlation)Vector set(Vector)For:Vector=[{key1,link1,page1,
correlation1},{key2,link2,page2,correlation2},{key3,link3,page3,
correlation3}]
Herein, function pages refer to trigger the page reached after corresponding function, here with the page source for reaching the page
Code represents.
After establishing vector set, initial value is assigned to the degree of association.
For the ease of the comparison to the degree of association after subsequently adjusting, in this step, the degree of association of each control can be assigned
Give identical initial value.According to an embodiment of the present application, initial value can be arbitrary value, and the application does not make this any limit
System.In the present embodiment, such as by initial value 1 is assigned.
Afterwards, 202 are entered step, is described based on the text in a vectorial subset between keyword, link and function pages
Incidence relation and the vector subset describe keyword with the text in other each vectorial subsets, link between function pages
Incidence relation adjust the initial value of the degree of association, to obtain the final degree of association of each control.
It specifically, can be by judging that the text in a control or a vectorial subset describes keyword, link, page function
The degree of association in this three of face between any two come judge the text in the vector subset describe keyword, link and function pages it
Between incidence relation.More particularly, if the text in vectorial subset is described in keyword, link, function pages this threes,
Any one degree of association in the degree of association between any two is low, then it is assumed that the incidence relation degree between this three is low, i.e. the control
The text description of part does not possess uniformity with function.If the text in vectorial subset describe keyword, link, function pages this
In three, the degree of association between any two is all high, then it is assumed that the incidence relation degree between this three is high, i.e. the text of the control
Description possesses uniformity with function.
The association in keyword, link, function pages this threes between any two is described on the text in a vectorial subset
Degree can describe in keyword, link, function pages this threes between any two by calculating the text in the vector subset
With degree(Call current matching degree in the following text)Keyword is described with the text in other vectorial subsets, link and page function with the vector subset
Matching degree between face(Call dislocation matching degree in the following text)To determine.Specifically, if current matching degree in current vector subset
The both greater than dislocation matching degree of the vector subset and other vectorial subsets, then it is assumed that the text description in current vector subset is crucial
The degree of association between word, link and function pages is high, if any one current matching degree is less than corresponding dislocation matching degree,
Then the degree of association is low.
According to an embodiment of the present application, the matching degree computational methods between object A and object B can include step:
Step 1:Carry out standardization processing to the value of object A and object B using synonym table, for example, can by object A and
The value of object B is all represented with small English alphabet, it is assumed that is to the result after the value standardization processing of object A and object B
StrA and strB;
Step 2:Matching degree is calculated with string matching algorithm, specific formula can be:
Matching degree=strA of object A and object B matches the character number * 0.5+strB of character number/strA of strB
Match 0.5 formula of character number * of character number/strB of strA(1)
According to the application preferred embodiment, the final degree of association of a control can be obtained by the following method:
1)For corresponding to a control in webpage vectorial subset key1, link1, page1,
Correlation1 }, the text that can be calculated according to above-mentioned matching degree computational methods in current vectorial subset describes keyword
Key1, the current matching degree of link link1 and function pages page1 between any two:P1(The current matching degree of key1-link1)、
P2(The current matching degree of key1-page1)、P3(The current matching degree of link1-page1).
2)According to above-mentioned matching degree computational methods, the text calculated respectively in current vectorial subset describes keyword key1
With each in other vectorial subsets link link2, link3 ..., the corresponding matching degree x that misplaces between linkn1(key1-
The dislocation matching degree of link2)、x2(The dislocation matching degree of key1-link3)、…xn-1(The dislocation matching degree of key1-linkn);
Similarly, calculate link link1 in current vectorial subset in other vectorial subsets each function pages page2,
Page3 ..., the corresponding dislocation matching degree y between pagen1(The dislocation matching degree of link1-page2)、y2(link1-
The dislocation matching degree of page3)、……、yn-1(The dislocation matching degree of link1-pagen)And the function in current vectorial subset
Page page1 and each text in other vectorial subsets describe keyword key2, key3 ..., the corresponding mistake between keyn
Position matching degree z1(The dislocation matching degree of page1-key2)、z2(The dislocation matching degree of page1-key3)、……、zn-1(page1-
The dislocation matching degree of keyn).
3)According to the following formula(Formula 2-4)Calculation current vector subset key1, link1, page1,
Correlation1 } three alternative degrees of association:
Alternative degree of association A=P1-max (x of key-link1、x2…xn-1)/P1 formula(2);
Alternative degree of association B=P2-max (y of key-page1、y2…yn-1)/P2 formula(3);
Alternative degree of association C=P3-max (z of link-page1、z2…zn-1)/P3 formula(4).
4)The alternative degree of association of value minimum is selected from the above three alternative degree of association A, B, C, for replacing current vector
The initial value of the degree of association in subset, to obtain the final degree of association.
Formula in relation to the alternative degree of association of above-mentioned calculating(Formula 2-4), cardinal principle is:First, each to quantum
In the vector set of mutual exclusion between collection, only when current matching degree is compared with the matching degree that misplaces, all for maximum matching degree when, currently
The incidence relation of three is only correctly in vectorial subset, this be in formula selection current matching degree with dislocation matching degree in most
The reason for big value compares.Secondly, the relative different between current matching degree and dislocation matching degree is bigger, illustrates currently to quantum
The incidence relation of concentration is more accurate, on the contrary, then more inaccurate, this is with current matching degree and maximum in dislocation matching degree in formula
The reason for difference divided by current matching of value are spent.
In addition, the alternative degree of association can also be calculated with other formula.Such as:
Alternative degree of association A=P1/max (x of key-link1、x2…xn-1) or
Alternative degree of association A=(P1-sum (x of key-link1、x2…xn-1)/n-1)/P1。
According to the preferred embodiment of the application, step 202 can be carried out in same control class.It specifically, can be with
Text based on a vectorial subset describe incidence relation between keyword, link and function pages and the vector subset and
Text in other each vectorial subsets with identical control class therewith describes the pass between keyword, link and function pages
Connection relation is adjusted the initial value of the degree of association.Control class for example can be links category, button class etc..It is excellent by this
Embodiment is selected, can more accurately and effectively check that the text description of control inconsistent situation occurs with function.With not with control
Situation subject to part classification is compared, and can further be reduced rate of failing to report and be misrepresented deliberately rate.
Subsequently into step 203, the comparison based on the final degree of association and preset value, determine each control text description and work(
The uniformity of energy.
According to an embodiment of the present application, for the degree of association of all controls on a webpage, the degree of association is smaller, then it is assumed that
The text description of control corresponding to the degree of association is lower with the uniformity of function, on the contrary, then uniformity is higher.According to the application's
One specific embodiment, when the final degree of association of a control is less than preset value, then it is assumed that the text description of the control and function
It is inconsistent, on the contrary, when the final degree of association of a control is more than preset value, then it is assumed that text description and the function one of the control
It causes.Preset value can be any one numerical value between degree of association initial value and the final degree of association.Preferably, preset value is set to
Degree of association initial value and the average value of the final degree of association.
So far, describe according to one embodiment of the application for checking that the description of the text of control is consistent with function
The flow chart of the method 200 of property.Method 200 is by checking that the text in a vectorial subset describes keyword, link and page function
Incidence relation and the vector subset between face describe keyword with the text in other each vectorial subsets, links and page function
Incidence relation between face adjusts the initial value of the degree of association, so that it is determined that one between the text description of the control and its function
Cause property.This method can reduce cost of labor and reduce rate of failing to report and misrepresent deliberately rate.
Above-described embodiment is merely illustrative, and the application is not limited to this.According to an embodiment of the present application, except through inspection one
Text in vectorial subset describe incidence relation between keyword, link and function pages and the vector subset with it is other each
Text in vectorial subset the incidence relation between keyword, link and function pages is described adjust the initial value of the degree of association it
Outside, it is also contemplated that one or more factors of uniformity between other text descriptions that may influence control and function, to adjust
The whole degree of association.Fig. 3 and Fig. 4 just schematically illustrates the situation that the degree of association is further adjusted by other factors.
Fig. 3 is that the text description for being used to check control in Fig. 2 according to one embodiment of the application is consistent with function
The more detailed flow chart of the method 200 of property.As shown in figure 3, method 300 starts from step 201.
After the step 201 in carrying out Fig. 2,301 can be entered step, whether can be opened according to the function pages of control
To adjust the initial value of the degree of association.
Specifically, if after trigger control, when definite corresponding function pages cannot be opened, to the control degree of association
Initial value is adjusted.According to the various embodiments of the application, the initial value of the degree of association can be raised or under be adjusted to except initial
Arbitrary value beyond value.It in the present embodiment, can be by the initial value of respective associated degree from 1 when function pages cannot be opened
Under be adjusted to 0.
For example, after the control in a webpage is triggered, wherein page return value corresponding to a control for http404 or
The conditional codes such as http500, it is determined that the corresponding function pages of the control cannot be opened, at this moment, can will be at the beginning of the control degree of association
Initial value is adjusted to 0.Remaining openable page, the degree of association remain unchanged.
According to the preferred embodiment of the application, step 301 can be carried out in same control class.It specifically, can be with
For the control with identical category, whether can be opened to adjust the initial value of the degree of association according to the function pages of control.Control
Classification for example can be links category, button class etc..By this preferred embodiment, searched whether between same category of control
In the presence of the function pages do not opened, it is possible thereby to more accurately and effectively check that the text description of control and function appearance are inconsistent
Situation.Be not subject to control class situation compared with, can further reduce and rate of failing to report and misrepresent deliberately rate.
After being adjusted in step 301 to the initial value of the degree of association of each control, 302 and 303 can be entered.The step
302 and step 303 processing it is similar with the processing of the step 202 in Fig. 2 and step 203, which is not described herein again.
So far, describe and be used to check the text description of control and the uniformity of function according to the application one embodiment
Method 300.Wherein by checking whether the function webpage of control can be opened to adjust the control degree of association initial value, then
Again by checking that the text in a vectorial subset describes incidence relation and the vector between keyword, link and function pages
Subset and the text in other each vectorial subsets describe keyword, link the incidence relation between function pages further to adjust
The initial value of the whole degree of association, so that it is determined that the uniformity between the text description of the control and its function.Compared to method 200,
The present embodiment can be after vector set is established to each control, describing keyword, link based on the text in a vectorial subset
Incidence relation and the vector subset between function pages describe keyword with the text in other each vectorial subsets, link
Incidence relation between function pages before adjusting the degree of association, is checked in webpage automatically due to the function network of control
The text description of control and the problem of inconsistent function caused by page cannot be opened, reduces based on the text in a vectorial subset
This describes the incidence relation between keyword, link and function pages and the text in the vector subset and other each vectorial subsets
This describes the incidence relation between keyword, link and function pages to adjust the calculation amount of the degree of association.
Although whether described in the present embodiment is that first can open to adjust the degree of association according to the function pages of control, then
Incidence relation and the vector subset between keyword, link and function pages is described again based on the text in a vectorial subset
Keyword is described with text in other each vectorial subsets, the incidence relation between function pages is linked and further adjusts pass
Connection degree, to obtain the final degree of association degree of each control, but the application is not limited to this.It, can according to the other embodiments of the application
With first based on the text in a vectorial subset describe incidence relation between keyword, link and function pages and this to quantum
Collect and describe keyword with text in other each vectorial subsets, link the incidence relation between function pages and adjust the degree of association
Initial value, then the function pages further according to control whether can open further to adjust the degree of association.In addition, according to the application
Other embodiments, can also be described in the text in being not based on a vectorial subset between keyword, link and function pages
Incidence relation and the vector subset describe keyword with the text in other each vectorial subsets, link between function pages
Incidence relation is come in the case of adjusting the initial value of the degree of association, only by checking whether the function pages of each control can be opened come really
The text description of fixed each control and the uniformity of function.
Fig. 4 is that the text description for being used to check control in Fig. 2 according to one embodiment of the application is consistent with function
The more detailed flow chart of the method 200 of property.As shown in figure 4, method 400 starts from step 201.
After step 201 is completed, 401 can be entered step, based on the text with the presence or absence of repetition between each vectorial subset
This describes keyword or the link repeated or the function pages repeated to adjust the initial value of the degree of association.For example, when any one
Control and remaining control exist the text repeated keyword is described or repeat the function pages linked or repeat when, can be by this
The value of a little degrees of association in the presence of the control repeated is adjusted to 0;When there is no repeating, then the value for keeping the degree of association is constant.
According to the preferred embodiment of the application, step 401 can be carried out in same control class.It specifically, can be with
For the control with identical category, determine to close with the presence or absence of the text description repeated between the corresponding vectorial subset of these controls
Key word or the link repeated or the function pages repeated, are adjusted with the initial value to the degree of association.Control class for example can be with
For links category, button class etc..By this preferred embodiment, searched whether between same category of control in the presence of the text repeated
This describes keyword, link or function pages, it is possible thereby to more accurately and effectively check that the text description of control goes out with function
Existing inconsistent situation.Be not subject to control class situation compared with, can further reduce and rate of failing to report and misrepresent deliberately rate.
After being adjusted in step 401 to the initial value of the degree of association of each control, 402 and 403 can be entered.The step
402 and step 403 processing it is similar with the processing of the step 202 in Fig. 2 and step 203, which is not described herein again.So far, describe
According to one embodiment of the application for checking the description of the text of control and the flow of the method 400 of the uniformity of function
Figure.Method 400 with the presence or absence of the text repeated between each vectorial subset wherein based on describing keyword or the link repeated or again
Multiple function pages adjust the initial value of the degree of association, then again by check the text in a vectorial subset describe keyword,
Link function pages between incidence relation and the vector subset with it is other it is each vector subsets in text describe keyword,
The incidence relation between function pages is linked further to adjust the initial value of the degree of association, so that it is determined that the text of the control is retouched
It states and the uniformity between its function.Compared to method 200, the present embodiment can after vector set is established to each control,
Based on the text in a vectorial subset describe incidence relation between keyword, link and function pages and the vector subset and
Text in other each vectorial subsets describes the incidence relation between keyword, link and function pages to adjust the degree of association
Before, check automatically in webpage due to exist between each vectorial subset the text repeated describe keyword or the link repeated or
Repeat function pages caused by control text description with function it is inconsistent the problem of, reduce in next step based on one vector
Text in subset describes incidence relation between keyword, link and function pages and the vector subset and other each vectors
Text in subset describes the incidence relation between keyword, link and function pages to adjust the calculation amount of the degree of association.
Although described in the present embodiment is first crucial based on being described between each vectorial subset with the presence or absence of the text repeated
Word or the link repeated or the function pages repeated adjust the initial value of the degree of association, then again based on the text in a vectorial subset
This describes the incidence relation between keyword, link and function pages and the text in the vector subset and other each vectorial subsets
This describes the incidence relation between keyword, link and function pages further to adjust the degree of association, to obtain each control most
The whole degree of association, but the application is not limited to this.It, can be first based on the text in a vectorial subset according to the other embodiments of the application
This describes the incidence relation between keyword, link and function pages and the text in the vector subset and other each vectorial subsets
This describes the incidence relation between keyword, link and function pages further to adjust the initial value of the degree of association, then base again
Keyword or the link repeated or the function pages repeated are described to closing with the presence or absence of the text repeated between each vectorial subset
Connection degree further adjusts.In addition, according to the other embodiments of the application, can also be retouched in the text in being not based on a vectorial subset
The incidence relation between keyword, link and function pages and the vector subset is stated to retouch with the text in other each vectorial subsets
The incidence relation between keyword, link and function pages is stated come in the case of adjusting the degree of association, only by check each control it
Between keyword or the link repeated are described with the presence or absence of the text repeated or the function pages repeated determine the text of each control
Description and the uniformity of function.
With above-mentioned for checking that the description of the text of control is similar with the method for the uniformity of function, embodiments herein is also
It provides and is used for the text description for checking control and the device of the uniformity of function accordingly.
Fig. 5 is the dress according to the uniformity of the text description for being used to check control and function of one embodiment of the application
Put 500 schematic diagram.
As shown in figure 5, device 500 can include:Keyword, link and page function are described for the text based on control
Incidence relation between face obtains the text description of control and the module 501 of the incidence relation of function;And for according to gained
The text description arrived and the incidence relation of function determine the text description of control and the module 502 of the uniformity of function.
According to one embodiment of the application, keyword, link and function pages are described for the text based on control
Between incidence relation, the text description and the module 501 of the incidence relation of function for obtaining control may further include(Do not show
Go out):Control for being directed in a webpage establishes the module of vector set, wherein, vector set includes one or more vectorial subsets,
The text that single vector subset includes single control describes keyword, link, function pages and the degree of association, degree of association characterization control
Text description and the incidence relation of function, also, assign initial value to the degree of association;And for being based on a vectorial subset
In text incidence relation between keyword, link and function pages and the vector subset and other each vectorial subsets are described
In text the incidence relation between keyword, link and function pages is described to adjust the initial value of the degree of association, with
To the module of the final degree of association of each control..
According to one embodiment of the application, for determining to control according to the description of obtained text and the incidence relation of function
Text description and the module 502 of the uniformity of function of part, may further include(It is not shown):For being based on the final degree of association
With the comparison of preset value, the text description of each control and the module of the uniformity of function are determined.
According to one embodiment of the application, keyword, link and function pages are described for the text based on control
Between incidence relation, the text description and the module 501 of the incidence relation of function for obtaining control may further include(Do not show
Go out):Whether can open to adjust the module of the initial value of the degree of association for the function pages according to the control.It is preferred that
Ground, the module are operated between each vectorial subset with same control class.
According to one embodiment of the application, keyword, link and function pages are described for the text based on control
Between incidence relation, obtain the text description of control and the module 501 of the incidence relation of function, may further include(Not
It shows):For based between each vectorial subset describing keyword or the link repeated with the presence or absence of the text repeated or repeat
Function pages adjust the module of the initial value of the degree of association.Preferably, the module with same control class it is each to
It is operated between quantum collection.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or the embodiment in terms of combining software and hardware can be used in the application
Form.It is deposited moreover, the application can be used to can use in one or more computers for wherein including computer usable program code
Storage media(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The shape of the computer program product of upper implementation
Formula.
The foregoing is merely embodiments herein, are not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle are equal
Replace, improve etc., it should be included within the scope of claims hereof.
Claims (12)
1. a kind of text description for being used to check control and the method for the uniformity of function, which is characterized in that including step:
Text based on control describes the incidence relation between keyword, link and function pages, obtains the text of the control
This description and the incidence relation of function;And
According to the description of the text of the obtained control and the incidence relation of function, determine that the text of control describes and function
Uniformity;Wherein it is determined that the text description of control and the uniformity of function include:Text description and the work(of the control will be characterized
Compared with preset value, text description and the function of control are determined according to comparative result for the degree of association of the incidence relation of energy
Uniformity.
2. according to the method described in claim 1, it is characterized in that, the text based on control describe keyword, link with
And the incidence relation between function pages, the step of text description of the control is with the incidence relation of function is obtained, further
Including step:
Establish vector set for the control in a webpage, the vector set includes one or more vectorial subsets, wherein, it is single to
The text that quantum collection includes single control describes keyword, link, function pages and the degree of association, also, the degree of association is assigned
Give initial value;And
Based on the text in a vectorial subset describe incidence relation between keyword, link and function pages and this to quantum
Collect and describe keyword with text in other each vectorial subsets, link the incidence relation between function pages and adjust the pass
The initial value of connection degree, to obtain the final degree of association of each control.
3. according to the method described in claim 2, it is characterized in that, it is described according to the text of the obtained control description with
The incidence relation of function determines the step of text description of control and uniformity of function, further comprises step:
Comparison based on the final degree of association and preset value determines the text description of each control and the uniformity of function.
4. according to the method described in claim 2, it is characterized in that, establish vector set in the control being directed in a webpage
After step, before the step of obtaining the final degree of association of each control, further comprise step:
Whether can open to adjust the initial value of the degree of association according to the function pages of the control.
5. according to the method described in claim 2, it is characterized in that, establish vector set in the control being directed in a webpage
After step, before the step of obtaining the final degree of association of each control, further comprise step:Based between each vectorial subset
Keyword or the link repeated or the function pages repeated are described with the presence or absence of the text repeated to adjust the first of the degree of association
Initial value.
6. according to the method any one of claim 1-5, which is characterized in that the text description based on control is crucial
Incidence relation between word, link and function pages, obtain the text description of the control and the incidence relation of function be
It is carried out in same control class.
7. a kind of text description for being used to check control and the device of the uniformity of function, which is characterized in that including:
The incidence relation between keyword, link and function pages is described for the text based on control, obtains the control
Text description and the module of the incidence relation of function;And
For describing the incidence relation with function according to the text of the obtained control, text description and the work(of control are determined
The module of the uniformity of energy;The module is additionally operable to:The description of the text that characterizes the control is associated with the incidence relation of function
Compared with preset value, the text description of control and the uniformity of function are determined according to comparative result for degree.
8. device according to claim 7, which is characterized in that described to describe keyword, chain for the text based on control
Connect and function pages between incidence relation, obtain the text description of the control and the module of the incidence relation of function, into
One step includes:
Control for being directed in a webpage establishes the module of vector set, and the vector set includes one or more vectorial subsets,
Wherein, the text that single vector subset includes single control describes keyword, link, function pages and the degree of association, also, to institute
It states the degree of association and assigns initial value;And
For described based on the text in a vectorial subset incidence relation between keyword, link and function pages and this to
Quantum collection describes keyword with the text in other each vectorial subsets, links the incidence relation between function pages to adjust
The initial value of the degree of association is stated, to obtain the module of the final degree of association of each control.
9. device according to claim 8, which is characterized in that described to be used to be retouched according to the text of the obtained control
It states and determines the text description of control and the module of the uniformity of function with the incidence relation of function, further comprise:
For the comparison based on the final degree of association and preset value, the text description of each control and the mould of the uniformity of function are determined
Block.
10. device according to claim 7, which is characterized in that described to describe keyword, chain for the text based on control
Connect and function pages between incidence relation, obtain the text description of the control and the module of the incidence relation of function, into
One step includes:
Whether can open to adjust the module of the initial value of the degree of association for the function pages according to the control.
11. device according to claim 7, which is characterized in that described to describe keyword, chain for the text based on control
Connect and function pages between incidence relation, obtain the text description of the control and the module of the incidence relation of function, into
One step includes:For based on the link or repetition for describing keyword or repetition between each vectorial subset with the presence or absence of the text repeated
Function pages adjust the module of the initial value of the degree of association.
12. according to the device any one of claim 7-11, which is characterized in that the text description based on control is closed
Incidence relation between key word, link and function pages, the text description and the incidence relation of function for obtaining the control are
It is carried out in same control class.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310498991.6A CN104572728B (en) | 2013-10-22 | 2013-10-22 | For checking the description of the text of control and the method and apparatus of the uniformity of function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310498991.6A CN104572728B (en) | 2013-10-22 | 2013-10-22 | For checking the description of the text of control and the method and apparatus of the uniformity of function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572728A CN104572728A (en) | 2015-04-29 |
CN104572728B true CN104572728B (en) | 2018-06-01 |
Family
ID=53088814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310498991.6A Active CN104572728B (en) | 2013-10-22 | 2013-10-22 | For checking the description of the text of control and the method and apparatus of the uniformity of function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572728B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649325A (en) * | 2015-10-29 | 2017-05-10 | 北京国双科技有限公司 | Recognition method and device for wrongly-written characters in website |
CN108052369A (en) * | 2017-12-29 | 2018-05-18 | 北京酷我科技有限公司 | A kind of text control in android system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1622022A1 (en) * | 2004-07-22 | 2006-02-01 | Siemens Aktiengesellschaft | Automatic generation of test cases |
CN102262684A (en) * | 2011-08-30 | 2011-11-30 | 深圳市五巨科技有限公司 | Method and device for generating webpage page of mobile terminal |
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5537599B2 (en) * | 2012-04-27 | 2014-07-02 | 株式会社日立製作所 | Version upgrade management method in business system |
-
2013
- 2013-10-22 CN CN201310498991.6A patent/CN104572728B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1622022A1 (en) * | 2004-07-22 | 2006-02-01 | Siemens Aktiengesellschaft | Automatic generation of test cases |
CN102262684A (en) * | 2011-08-30 | 2011-11-30 | 深圳市五巨科技有限公司 | Method and device for generating webpage page of mobile terminal |
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
Also Published As
Publication number | Publication date |
---|---|
CN104572728A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10664696B2 (en) | Systems and methods for classification of software defect reports | |
US20190370659A1 (en) | Optimizing neural network architectures | |
WO2019114344A1 (en) | Graphical structure model-based method for prevention and control of abnormal accounts, and device and equipment | |
CN106599317B (en) | Test data processing method, device and the terminal of question answering system | |
US20160307101A1 (en) | Method, device, and server for friend recommendation | |
CN109684554A (en) | The determination method and news push method of the potential user of news | |
US11586838B2 (en) | End-to-end fuzzy entity matching | |
CN108509424A (en) | Institutional information processing method, device, computer equipment and storage medium | |
CN106681903B (en) | Method and device for generating test case | |
CN107291840A (en) | A kind of user property forecast model construction method and device | |
CN109582954A (en) | Method and apparatus for output information | |
Zhao et al. | Action sequence augmentation for early graph-based anomaly detection | |
CN106951231A (en) | A kind of computer software development approach and device | |
CN109614319B (en) | Automatic testing method and device, electronic equipment and computer readable medium | |
CN109460434A (en) | Data extract method for establishing model and device | |
CN112085087A (en) | Method and device for generating business rules, computer equipment and storage medium | |
EP4193261A1 (en) | Test script generation from test specifications using natural language processing | |
CN112363814A (en) | Task scheduling method and device, computer equipment and storage medium | |
CN109447412A (en) | Construct method, apparatus, computer equipment and the storage medium of business connection map | |
CN104572728B (en) | For checking the description of the text of control and the method and apparatus of the uniformity of function | |
CN112257959A (en) | User risk prediction method and device, electronic equipment and storage medium | |
WO2022186932A1 (en) | Decision tree native to graph database | |
Aulia et al. | A new history matching sensitivity analysis framework with random forests and Plackett-Burman design | |
US20160004976A1 (en) | System and methods for abductive learning of quantized stochastic processes | |
CN108319606A (en) | The construction method and device of specialized database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |