Nothing Special   »   [go: up one dir, main page]

CN104572728A - Method and device for checking consistency of text description and functions of controls - Google Patents

Method and device for checking consistency of text description and functions of controls Download PDF

Info

Publication number
CN104572728A
CN104572728A CN201310498991.6A CN201310498991A CN104572728A CN 104572728 A CN104572728 A CN 104572728A CN 201310498991 A CN201310498991 A CN 201310498991A CN 104572728 A CN104572728 A CN 104572728A
Authority
CN
China
Prior art keywords
text
function
control
incidence relation
association
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310498991.6A
Other languages
Chinese (zh)
Other versions
CN104572728B (en
Inventor
栗志果
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310498991.6A priority Critical patent/CN104572728B/en
Publication of CN104572728A publication Critical patent/CN104572728A/en
Application granted granted Critical
Publication of CN104572728B publication Critical patent/CN104572728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL 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

The invention relates to a method and a device for checking the consistency of text description and functions of controls. The method includes steps of acquiring association relationships between the text description and the functions of the controls on the basis of association relationships among text description keywords, links and function pages of the controls; determining the consistency of the text description and the functions of the controls according to the obtained association relationships between the text description and the functions. According to the technical scheme, the method and the device have the advantages that the consistency of the text description and the functions of the controls in web pages can be automatically checked, most inconsistency problems can be exposed, accordingly, the labor cost can be saved, the missing report rate and the false alarm rate can be reduced, and the page test efficiency can be improved.

Description

For checking that the text of control describes the conforming method and apparatus with function
Technical field
The application relates to internet arena, more specifically, relates to a kind of text for checking control and describes the conforming method and apparatus with function.
Background technology
Owing to there is the situation that may occur Edit Error in the process of page script generation or editor, therefore, webpage often can occur the situation that text describes the function sequence corresponding with it.Such as, the link text of " renewal " is linked to the function corresponding to " deletion " by mistake, or a text description chain is received incorrect webpage etc. by mistake.At present, the inspection of corresponding relation between its truth function is described mainly by checking manually for the text on webpage, that is, manually clicked the text description of each control by tester, check that whether the corresponding relation that the text describes between function is correct.
But there is following shortcoming in manual examination (check): on the one hand, and manual examination (check) takes time and effort, and cost of labor is high; On the other hand, the page link in webpage is hundreds of, and manual examination (check) is easy to occur omitting or mistake.
Therefore, in the art, a kind of text for checking control is needed to describe the conforming technology with function, can by describing the text of control in webpage and the conforming robotization inspection of function, expose the inconsistent problem of major part, thus save labour turnover, reduce rate of failing to report and rate of false alarm.
Summary of the invention
The fundamental purpose of the application is to provide a kind of text for checking control to describe the conforming technology with function, solving by checking that the cost of labor that text describes and function is inconsistent of control is high by hand, misrepresents deliberately and the problem such as wrong report.
According to the first aspect of the application, a kind of text for checking control is provided to describe the conforming method with function, it is characterized in that, comprise step: the text based on control describes the incidence relation between key word, link and function pages, the text obtaining control describes the incidence relation with function; And according to obtained text, the incidence relation with function is described, determine that the text of control describes the consistance with function.
According to the second aspect of the application, a kind of text for checking control is provided to describe the conforming device with function, it is characterized in that, comprise: for describing the incidence relation between key word, link and function pages based on the text of control, the text obtaining control describes the module with the incidence relation of function; And for describing the incidence relation with function according to obtained text, determine that the text of control describes the conforming module with function.
Compared with prior art, according to the technical scheme of the application, can to describe the text of control in webpage and the consistance of function realize robotization inspection, to expose the problem that major part is inconsistent, thus save labour turnover, reduce rate of failing to report and rate of false alarm and improve page testing efficiency.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, and form a application's part, the schematic description and description of the application, for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 be according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 100 of function;
Fig. 2 be according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 200 of function;
Fig. 3 be according to the application embodiment in Fig. 2 for checking that the text of control describes the more detailed process flow diagram with the conforming method 200 of function;
Fig. 4 be according to the application embodiment in Fig. 2 for checking that the text of control describes the more detailed process flow diagram with the conforming method 200 of function; And
Fig. 5 be according to the embodiment of the application for checking that the text of control describes the schematic diagram with the conforming device 500 of function.
Embodiment
The main thought of the application is, text based on the control in a webpage describes the incidence relation between key word, link and function pages, determine that the text of control describes the consistance with function, thus realize the problem that text describes and function is inconsistent that self-verifying goes out the control existed in this webpage.
For making the object of the application, technical scheme and advantage clearly, below in conjunction with the application's specific embodiment and corresponding accompanying drawing, technical scheme is clearly and completely described.Obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
With reference to figure 1, Fig. 1 be according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 100 of function.As shown in Figure 1, method 100 starts from step 101.
In step 101, the text based on control describes the incidence relation between key word, link and function pages, and the text obtaining control describes the incidence relation with function.
Typically, the text that the control in webpage has himself describes, links and function pages.When triggering one control, describe linking between its function pages by the text of this control, corresponding function pages can be linked to.Therefore, by determining the incidence relation that exists between two between the key word of key word, the key word that uses of link of this control and the function pages of this control that the text of control describes, the text that can obtain this control describes the incidence relation with function.
In step 102, describe the incidence relation with function according to obtained text, determine that the text of control describes the consistance with function.
Specifically, after step 101 obtains the text description of control and the incidence relation of function, can determine the text of this control describes whether consistent with between its function according to this incidence relation, that is, consistance.Such as, when the value can working as obtained incidence relation is less than the value of default incidence relation, determine that the text of control describes between its function inconsistent, otherwise, then unanimously.
So far, describe according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 100 of function.Text wherein by obtaining control describes and the incidence relation of function determines that the text of this control describes the consistance between its function, thus checks out that the text of the control existed in this webpage describes the problem inconsistent with function.This is relative to manual inspection, can describe and the inconsistent problem of function by the self-verifying text that goes out most control in webpage, not only reduces cost of labor, and reduce rate of failing to report and misrepresent deliberately rate, thus improve page testing efficiency.
Below in conjunction with Fig. 2 to Fig. 4, other the more specific embodiment according to the application's scheme is described.
With reference to figure 2, Fig. 2 be according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 200 of function.
In step 201, vector set is set up for the control in a webpage, this vector set comprises one or more vectorial subset, wherein, the text that single vector subset comprises single control describes key word, link, function pages and the degree of association, the text that this degree of association characterizes control describes the incidence relation with function, and, give initial value to the degree of association.
Specifically, traversal current web page, set up for each single control the vectorial subset that text describes key word (key), link (link), function pages (page) and the degree of association (correlation) respectively, the plurality of vectorial subset formation for single control is for the vector set of current web page.
Such as, have three controls in a webpage, be respectively " interpolation ", " deletion " and " editor ", their text describes key word (key), link (link), function pages (page) and the degree of association (correlation) and is respectively:
Add: key1=adds; Link1=showAdd (786008); Page1=triggers the source code of " interpolation " arrived page afterwards;
Delete: key2=deletes; Link2=removeCase (786008); Page2=triggers the source code of " deletion " arrived page afterwards;
Editor: key3=edits; Link3=showEdit (786008); Page3=triggers the source code of " editor " arrived page afterwards.
Therefore, the text including above-mentioned three controls describe key word (key), link (link), function pages (page) and the degree of association (correlation) vector set (Vector) be: Vector=[{ key1, link1, page1, correlation1}, { key2, link2, page2, correlation2}, { key3, link3, page3, correlation3}]
Here, the page that function pages arrives after referring to and triggering corresponding function, represents with the page source code arriving the page here.
After setting up vector set, give initial value to the degree of association.
For the ease of the comparison to the degree of association after follow-up adjustment, in this step, identical initial value can be given to the degree of association of each control.According to the embodiment of the application, initial value can be arbitrary value, and the application does not impose any restrictions this.In the present embodiment, such as all 1 is given by initial value.
Afterwards, enter step 202, key word, incidence relation between link and function pages and this vectorial subset and the initial value that text describes key word, the incidence relation linked between function pages adjusts the degree of association in other each vectorial subset are described, to obtain the final degree of association of each control based on the text in a vectorial subset.
Specifically, the text that the degree of association that can be described by the text judging in a control or a vectorial subset in key word, link, this three of function pages between any two judges in this vectorial subset describes key word, incidence relation between link and function pages.More particularly, if the text in vectorial subset describes in key word, link, this three of function pages, any one degree of association in the degree of association is between any two low, then think that the incidence relation degree between this three is low, that is, the text of this control describes and does not possess consistance with function.If the text in vectorial subset describes in key word, link, this three of function pages, the degree of association is between any two all high, then think that the incidence relation degree between this three is high, that is, the text of this control describes and possesses consistance with function.
To describe in key word, link, this three of function pages the degree of association between any two about the text in a vectorial subset, matching degree (calling current matching degree in the following text) between any two can be described in key word, link, this three of function pages by the text calculated in this vectorial subset and this vectorial subset describes key word with the text in other vectorial subsets, the matching degree (calling the matching degree that misplaces in the following text) linked between function pages is determined.Specifically, if the current matching degree in current vectorial subset is all greater than the dislocation matching degree of this vectorial subset and other vectorial subsets, the text then thinking in current vectorial subset describes key word, the degree of association between 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 the embodiment of the application, the matching degree computing method between object A and object B can comprise step:
Step 1: utilize the value of synonym table to object A and object B to carry out standardization processing, such as, the value of object A and object B all can be represented with small English alphabet, supposes that the result after to the value standardization processing of object A and object B is strA and strB;
Step 2: calculate matching degree with string matching algorithm, concrete formula can be:
The character number * 0.5+strB that the matching degree=strA of object A and object B matches the character number/strA of strB matches character number * 0.5 formula (1) of the character number/strB of strA
According to a preferred embodiment of the application, the final degree of association of a control can be obtained by the following method:
1) for the vectorial subset { key1 corresponding to the control of in webpage, link1, page1, correlation1}, can describe key word key1, link link1 and function pages page1 current matching degree between any two according to the above-mentioned matching degree computing method text calculated in current vectorial subset: the current matching degree of P1(key1-link1), the current matching degree of P2(key1-page1), the current matching degree of P3(link1-page1).
2) according to above-mentioned matching degree computing method, the text calculated respectively in current vectorial subset describe key word key1 and each in other vectorial subsets link link2, link3 ..., corresponding dislocation matching degree x between linkn 1(the dislocation matching degree of key1-link2), x 2(the dislocation matching degree of key1-link3) ... x n-1(the dislocation matching degree of key1-linkn); In like manner, calculate the link link1 in current vectorial subset and each function pages page2 in other vectorial subsets, page3 ..., corresponding dislocation matching degree y between pagen 1(the dislocation matching degree of link1-page2), y 2(the dislocation matching degree of link1-page3) ..., y n-1(the dislocation matching degree of link1-pagen), and the function pages page1 in current vectorial subset and each text in other vectorial subsets describe key word key2, key3 ..., corresponding dislocation matching degree z between keyn 1(the dislocation matching degree of page1-key2), z 2(the dislocation matching degree of page1-key3) ..., z n-1(the dislocation matching degree of page1-keyn).
3) according to following formula (formula 2-4) calculation current vector subset three alternative degrees of association of key1, link1, page1, correlation1}:
The alternative degree of association A=P1-max (x of key-link 1, x 2x n-1)/P1 formula (2);
The alternative degree of association B=P2-max (y of key-page 1, y 2y n-1)/P2 formula (3);
The alternative degree of association C=P3-max (z of link-page 1, z 2z n-1)/P3 formula (4).
4) from above-mentioned three alternative degree of association A, B, C, the minimum alternative degree of association of value is selected, for replacing the initial value of the degree of association in current vectorial subset, to obtain the final degree of association.
About the formula (formula 2-4) of the alternative degree of association of above-mentioned calculating, its cardinal principle is: first, in the vector set of mutual exclusion between each vectorial subset, only have when current matching degree is compared with dislocation matching degree, when being all maximum matching degree, in current vectorial subset, the incidence relation of three is only correct, and this is the reason of selection current matching degree compared with maximal value in dislocation matching degree in formula.Secondly, relative different between current matching degree and dislocation matching degree is larger, illustrates that the incidence relation in current vectorial subset is more accurate, on the contrary, then more inaccurate, this is by the reason of the difference of maximal value in current matching degree and dislocation matching degree divided by current matching degree in formula.
In addition, also can by the alternative degree of association of other formulae discovery.Such as:
The alternative degree of association A=P1/max (x of key-link 1, x 2x n-1) or
The alternative degree of association A=(P1-sum (x of key-link 1, x 2x n-1)/n-1)/P1.
According to the preferred embodiment of the application, can carry out step 202 in same control class.Specifically, based on the text of a vectorial subset, key word, incidence relation between link and function pages can be described, and this vectorial subset describes key word with other text had with it in each vectorial subset of identical control class, links incidence relation between function pages, adjusts the initial value of the degree of association.Control class can be such as links category, button class etc.By this preferred embodiment, can check out that the text of control describes more accurately and effectively and occur inconsistent situation with function.Compared with situation about not being as the criterion with control class, rate of failing to report can be reduced further and misrepresent deliberately rate.
Then enter step 203, based on comparing of the final degree of association and preset value, determine that the text of each control describes the consistance with function.
According to the embodiment of the application, for the degree of association of controls all on a webpage, the degree of association is less, then think that the text of control corresponding to this degree of association describes with the consistance of function lower, on the contrary, then consistance is higher.According to a specific embodiment of the application, when the final degree of association of a control is less than preset value, then think that the text of this control describes with function inconsistent, on the contrary, when the final degree of association of a control is greater than preset value, then think that the text of this control describes consistent with function.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 the mean value of degree of association initial value and the final degree of association.
So far, describe according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 200 of function.Method 200 describes key word, incidence relation between link and function pages and this vectorial subset and the initial value that text describes key word, the incidence relation linked between function pages adjusts the degree of association in other each vectorial subset by the text checking in a vectorial subset, thus determines that the text of this control describes the consistance between its function.This method can reduce cost of labor and reduces rate of failing to report and misrepresent deliberately rate.
Above-described embodiment is only example, and the application is not limited to this.According to the embodiment of the application, except the text by checking in a vectorial subset, key word, incidence relation between link and function pages are described and this vectorial subset describes key word with the text in other each vectorial subset, the incidence relation linked between function pages adjusts except the initial value of the degree of association, it is also conceivable to other text that may affect control and describe conforming one or more factor between function, adjust the degree of association.Fig. 3 and Fig. 4 just schematically illustrates the situation being adjusted the degree of association by other factors further.
Fig. 3 be according to the application embodiment in Fig. 2 for checking that the text of control describes the more detailed process flow diagram with the conforming method 200 of function.As shown in Figure 3, method 300 starts from step 201.
After carrying out the step 201 in Fig. 2, can enter step 301, whether the function pages according to control can open the initial value adjusting the degree of association.
Specifically, if after trigger control, when determining that corresponding function pages can not be opened, the initial value of this control degree of association 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 arbitrary value except initial value.In the present embodiment, when function pages can not be opened, the initial value of respective associated degree can be adjusted to 0 from 1.
Such as, when after the control in triggering one webpage, the page rreturn value wherein corresponding to a control is the status codes such as http404 or http500, then determine that the function pages that this control is corresponding can not be opened, at this moment, this control degree of association initial value can be adjusted to 0.All the other openable pages, the degree of association remains unchanged.
According to the preferred embodiment of the application, can carry out step 301 in same control class.Specifically, can for the control with identical category, whether the function pages according to control can open the initial value adjusting the degree of association.Control class can be such as links category, button class etc.By this preferred embodiment, between other control of same class, search the function pages whether existing and do not open, can check out that the text of control describes thus more accurately and effectively and occur inconsistent situation with function.Compared with situation about not being as the criterion with control class, rate of failing to report can be reduced further and misrepresent deliberately rate.
After in step 301 the initial value of the degree of association of each control being adjusted, 302 and 303 can be entered.Step 202 in the process of this step 302 and step 303 and Fig. 2 and the process of step 203 similar, repeat no more here.
So far, describe according to the application's embodiment for checking that the text of control describes and the conforming method 300 of function.Wherein adjust this control degree of association initial value by checking whether the function webpage of control can be opened, and then describe key word, incidence relation between link and function pages and this vectorial subset and the initial value that the text in other each vectorial subset describes key word, the incidence relation linked between function pages adjusts the degree of association further by the text checking in a vectorial subset, thus determine that the text of this control describes the consistance between its function.Compared to method 200, the present embodiment can after setting up vector set to each control, based on the text in a vectorial subset, key word is being described, link the incidence relation between function pages and the text in this vectorial subset and other each vectorial subset describes key word, before incidence relation between link and function pages adjusts the described degree of association, self-verifying goes out can not open due to the function webpage of control in webpage and the text of control that causes describes the problem inconsistent with function, decrease and describe key word based on the text in a vectorial subset, link the incidence relation between function pages and the text in this vectorial subset and other each vectorial subset describes key word, incidence relation between link and function pages adjusts the calculated amount of the degree of association.
Although whether what describe in the present embodiment is first can open according to the function pages of control to adjust the degree of association, and then based on the text in a vectorial subset, key word, incidence relation between link and function pages are described and this vectorial subset describes key word with the text in other each vectorial subset, the incidence relation linked between function pages adjusts the degree of association further, to obtain the final degree of association degree of each control, but the application is not limited to this.According to other embodiment of the application, first can describe key word, incidence relation between link and function pages and this vectorial subset and the initial value that text describes key word, the incidence relation linked between function pages adjusts the degree of association in other each vectorial subset based on the text in a vectorial subset, and then whether can open according to the function pages of control and adjust the degree of association further.In addition, according to other embodiment of the application, also when not describing key word, incidence relation between link and function pages based on the text in a vectorial subset and this vectorial subset describes key word with the text in other each vectorial subset, the incidence relation linked between function pages adjusts the initial value of the degree of association, can determine that the text of each control describes the consistance with function by means of only checking whether the function pages of each control can be opened.
Fig. 4 be according to the application embodiment in Fig. 2 for checking that the text of control describes the more detailed process flow diagram with the conforming method 200 of function.As shown in Figure 4, method 400 starts from step 201.
After completing steps 201, can enter step 401, the function pages of the link or repetition that describe key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts the initial value of the degree of association.Such as, when any one control and all the other controls exist the text repeated the function pages of linking of key word or repetition or repetition is described time, these values that there is the degree of association of the control repeated all can be adjusted to 0; When there is not repetition, then keep the value of the degree of association constant.
According to the preferred embodiment of the application, can carry out step 401 in same control class.Specifically, for the control with identical category, can determine that the text that whether there is repetition between the vectorial subset that these controls are corresponding describes the link of key word or repetition or the function pages of repetition, to adjust the initial value of the degree of association.Control class can be such as links category, button class etc.By this preferred embodiment, between other control of same class, search the text that whether there is repetition describe key word, link or function pages, can check out that the text of control describes thus more accurately and effectively and occur inconsistent situation with function.Compared with situation about not being as the criterion with control class, rate of failing to report can be reduced further and misrepresent deliberately rate.
After in step 401 the initial value of the degree of association of each control being adjusted, 402 and 403 can be entered.Step 202 in the process of this step 402 and step 403 and Fig. 2 and the process of step 203 similar, repeat no more here.So far, describe according to the embodiment of the application for checking that the text of control describes the process flow diagram with the conforming method 400 of function.The function pages of link or repetition that method 400 wherein describes key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts the initial value of the degree of association, and then describe key word, incidence relation between link and function pages and this vectorial subset and the initial value that the text in other each vectorial subset describes key word, the incidence relation linked between function pages adjusts the degree of association further by the text checking in a vectorial subset, thus determine that the text of this control describes the consistance between its function.Compared to method 200, the present embodiment can after setting up vector set to each control, based on the text in a vectorial subset, key word is being described, link the incidence relation between function pages and the text in this vectorial subset and other each vectorial subset describes key word, before incidence relation between link and function pages adjusts the described degree of association, the text that self-verifying goes out the control caused because the text that there is repetition between each vectorial subset describes the link of key word or repetition or the function pages of repetition in webpage describes the problem inconsistent with function, decrease next step and describe key word based on the text in a vectorial subset, link the incidence relation between function pages and the text in this vectorial subset and other each vectorial subset describes key word, incidence relation between link and function pages adjusts the calculated amount of the degree of association.
Although what describe in the present embodiment is the initial value that the function pages of the link or repetition first describing key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts the degree of association, and then based on the text in a vectorial subset, key word, incidence relation between link and function pages are described and this vectorial subset describes key word with the text in other each vectorial subset, the incidence relation linked between function pages adjusts the degree of association further, to obtain the final degree of association of each control, but the application is not limited to this.According to other embodiment of the application, first can describe key word, incidence relation between link and function pages and this vectorial subset and the initial value that the text in other each vectorial subset describes key word, the incidence relation linked between function pages adjusts the degree of association further based on the text in a vectorial subset, and then the function pages of the link or repetition that describe key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts further to the degree of association.In addition, according to other embodiment of the application, also can when not describing key word, incidence relation between link and function pages based on the text in a vectorial subset and this vectorial subset describes key word with the text in other each vectorial subset, the incidence relation linked between function pages adjusts the degree of association, by means of only checking that the text that whether there is repetition between each control describes the link of key word or repetition or the function pages of repetition to determine that the text of each control describes the consistance with function.
Describe with the conforming method of function similar with the above-mentioned text for checking control, the embodiment of the application also provides accordingly for checking that the text of control describes the conforming device with function.
Fig. 5 be according to the embodiment of the application for checking that the text of control describes the schematic diagram with the conforming device 500 of function.
As shown in Figure 5, device 500 can comprise: for describing the incidence relation between key word, link and function pages based on the text of control, and the text obtaining control describes the module 501 with the incidence relation of function; And for describing the incidence relation with function according to obtained text, determine that the text of control describes the conforming module 502 with function.
According to an embodiment of the application, for the text based on control, key word is described, link and function pages between incidence relation, the text obtaining control describes and may further include (not shown) with the module 501 of the incidence relation of function: for setting up the module of vector set for the control in a webpage, wherein, vector set comprises one or more vectorial subset, the text that single vector subset comprises single control describes key word, link, function pages and the degree of association, the text that the degree of association characterizes control describes the incidence relation with function, and, initial value is given to the described degree of association, and for describing key word, incidence relation between link and function pages and this vectorial subset and the initial value that the text in other each vectorial subset describes key word, the incidence relation linked between function pages adjusts the described degree of association based on the text in a vectorial subset, to obtain the module of the final degree of association of each control.。
According to an embodiment of the application, with the text of the incidence relation determination control of function, the conforming module 502 with function is described for describing according to obtained text, may further include (not shown): for comparing based on the final degree of association and preset value, determine that the text of each control describes the conforming module with function.
According to an embodiment of the application, for describing the incidence relation between key word, link and function pages based on the text of control, the text obtaining control describes and may further include (not shown) with the module 501 of the incidence relation of function: for whether can open the module of the initial value adjusting the described degree of association according to the function pages of described control.Preferably, this module operates between each vectorial subset with same control class.
According to an embodiment of the application, for describing the incidence relation between key word, link and function pages based on the text of control, the text obtaining control describes the module 501 with the incidence relation of function, may further include (not shown): the function pages for the link or repetition that describe key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts the module of the initial value of the described degree of association.Preferably, this module operates between each vectorial subset with same control class.
In one typically configuration, computing equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as ROM (read-only memory) (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computing machine comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic RAM (DRAM), the random access memory (RAM) of other types, ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc ROM (read-only memory) (CD-ROM), digital versatile disc (DVD) or other optical memory, magnetic magnetic tape cassette, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise temporary computer readable media (transitory media), as data-signal and the carrier wave of modulation.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
It will be understood by those skilled in the art that the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The foregoing is only the embodiment of the application, be not limited to the application.To those skilled in the art, the application can have various modifications and variations.Any amendment done within all spirit in the application and principle, equivalent replacement, improvement etc., within the right that all should be included in the application.

Claims (12)

1., for checking that the text of control describes the conforming method with function, it is characterized in that, comprise step:
Text based on control describes the incidence relation between key word, link and function pages, and the text obtaining described control describes the incidence relation with function; And
Describe the incidence relation with function according to obtained text, determine that the text of control describes the consistance with function.
2. method according to claim 1, is characterized in that, the described text based on control describes the incidence relation between key word, link and function pages, and the text obtaining described control describes the step with the incidence relation of function, comprises step further:
Vector set is set up for the control in a webpage, described vector set comprises one or more vectorial subset, wherein, the text that single vector subset comprises single control describes key word, link, function pages and the degree of association, the text that the described degree of association characterizes described control describes the incidence relation with function, further, initial value is given to the described degree of association; And
Key word, incidence relation between link and function pages and this vectorial subset and the initial value that the text in other each vectorial subset describes key word, the incidence relation linked between function pages adjusts the described degree of association are described, to obtain the final degree of association of each control based on the text in a vectorial subset.
3. method according to claim 2, is characterized in that, described description according to obtained text describes the conforming step with function with the text of the incidence relation determination control of function, comprises step further:
Based on comparing of the final degree of association and preset value, determine that the text of each control describes the consistance with function.
4. method according to claim 2, is characterized in that, described set up the step of vector set for the control in a webpage after, before obtaining the step of the final degree of association of each control, comprise step further:
Whether the function pages according to described control can open the initial value adjusting the described degree of association.
5. method according to claim 2, it is characterized in that, described set up the step of vector set for the control in a webpage after, before obtaining the step of the final degree of association of each control, comprise step further: the function pages of the link or repetition that describe key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts the initial value of the described degree of association.
6. the method according to any one of claim 1-5, it is characterized in that, the described text based on control describes the incidence relation between key word, link and function pages, and the text obtaining described control describes and carries out in same control class with the incidence relation of function.
7., for checking that the text of control describes the conforming device with function, it is characterized in that, comprise:
For describing the incidence relation between key word, link and function pages based on the text of control, the text obtaining described control describes the module with the incidence relation of function; And
For describing the incidence relation with function according to obtained text, determine that the text of control describes the conforming module with function.
8. device according to claim 7, is characterized in that, the described incidence relation for describing based on the text of control between key word, link and function pages, and the text obtaining described control describes the module with the incidence relation of function, comprises further:
For setting up the module of vector set for the control in a webpage, described vector set comprises one or more vectorial subset, wherein, the text that single vector subset comprises single control describes key word, link, function pages and the degree of association, the text that the described degree of association characterizes described control describes the incidence relation with function, further, initial value is given to the described degree of association; And
For describing key word, incidence relation between link and function pages and this vectorial subset and the initial value that the text in other each vectorial subset describes key word, the incidence relation linked between function pages adjusts the described degree of association based on the text in a vectorial subset, to obtain the module of the final degree of association of each control.
9. device according to claim 8, is characterized in that, described for describing the conforming module with function according to the description of obtained text and the text of the incidence relation determination control of function, comprises further:
For comparing based on the final degree of association and preset value, determine that the text of each control describes the conforming module with function.
10. device according to claim 7, it is characterized in that, the described incidence relation for describing based on the text of control between key word, link and function pages, the text obtaining described control describes the module with the incidence relation of function, comprises further:
For whether can open the module of the initial value adjusting the described degree of association according to the function pages of described control.
11. devices according to claim 7, it is characterized in that, the described incidence relation for describing based on the text of control between key word, link and function pages, the text obtaining described control describes the module with the incidence relation of function, comprises further: the function pages for the link or repetition that describe key word or repetition based on the text that whether there is repetition between each vectorial subset adjusts the module of the initial value of the described degree of association.
12. devices according to any one of claim 7-11, it is characterized in that, the described text based on control describes the incidence relation between key word, link and function pages, and the text obtaining described control describes and carries out in same control class with the incidence relation of function.
CN201310498991.6A 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 Active CN104572728B (en)

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 true CN104572728A (en) 2015-04-29
CN104572728B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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 (4)

* Cited by examiner, † Cited by third party
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
JP2013228970A (en) * 2012-04-27 2013-11-07 Hitachi Ltd Version-up management method in task system

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
JP2013228970A (en) * 2012-04-27 2013-11-07 Hitachi Ltd Version-up management method in task system

Cited By (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN104572728B (en) 2018-06-01

Similar Documents

Publication Publication Date Title
US10521336B1 (en) Systems and methods for testing a software application
CN104182335B (en) Method for testing software and device
CN108874644A (en) Data monitoring method, device, computer equipment and storage medium
CN107957957A (en) The acquisition methods and device of test case
CN109086204A (en) The foundation of node relationships tree, page marks and recognition methods, device and storage medium
US10261967B2 (en) Data extraction
CN112181804A (en) Parameter checking method, equipment and storage medium
CN107463597B (en) Passive verification method and system for block chain of modified block volume data
CN108415846A (en) A kind of method and apparatus generating minimal automation test use cases
WO2021120628A1 (en) Blockchain-based sensitive word detection method and apparatus, computer device and computer-readable storage medium
CN107179933A (en) Dynamic language identification variables method, device, interpretation method and software transplanting method
CN113282971B (en) Processing method, device, equipment and storage medium of test log
CN114610635A (en) Interface test case generation method and device, computer equipment and storage medium
CN112580363A (en) Requirement document processing method and device, computer equipment and storage medium
CN107368513A (en) The method and device of client database renewal
CN111722998A (en) Code quality control method, system, device and storage medium
CN110781090B (en) Control method and device for data processing test, computer equipment and storage medium
CN104572728A (en) Method and device for checking consistency of text description and functions of controls
CA3138761A1 (en) Method, device, computer equipment and storage medium for verifying inter-system data admission
CN107451002B (en) Active verification method and system for block chain of modified block volume data
CN111625448B (en) Protocol packet generation method, device, equipment and storage medium
CN117093497A (en) Test report processing method and device, electronic equipment and storage medium
CN106649108A (en) Generation method and device of test data
CN107133163A (en) A kind of method and apparatus for verifying description class API
CN104750609A (en) Method and device for determining interface layout compatibility degree

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