CN108319575A - A kind of method of calibration of page assembly, device, server and storage medium - Google Patents

A kind of method of calibration of page assembly, device, server and storage medium Download PDF

Info

Publication number
CN108319575A
CN108319575A CN201810089192.6A CN201810089192A CN108319575A CN 108319575 A CN108319575 A CN 108319575A CN 201810089192 A CN201810089192 A CN 201810089192A CN 108319575 A CN108319575 A CN 108319575A
Authority
CN
China
Prior art keywords
object identifier
verification
component
host application
page
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
CN201810089192.6A
Other languages
Chinese (zh)
Other versions
CN108319575B (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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810089192.6A priority Critical patent/CN108319575B/en
Publication of CN108319575A publication Critical patent/CN108319575A/en
Application granted granted Critical
Publication of CN108319575B publication Critical patent/CN108319575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The embodiment of the invention discloses a kind of method of calibration of page assembly, device, server and storage medium, this method to include:The page assembly for including in host application is matched with verification configuration file;According to matching result, the object identifier mode of object identifier component and the object identifier component is determined;When reaching the verification opportunity that the host application determines, the data of the object identifier component are verified using the object identifier mode;Check results are fed back into the host application.The embodiment of the present invention can provide configurable unified verification rule for developer, realize that front end user verifies the setting of page assembly the data inputted in page assembly and rear end developer;And it is unified in the update in later stage to modify to verification configuration file, improve the efficiency of exploitation, update and maintenance of the developer to application program and verification rule.

Description

A kind of method of calibration of page assembly, device, server and storage medium
Technical field
The present embodiments relate to technical field of software development more particularly to a kind of method of calibration of page assembly, device, Server and storage medium.
Background technology
With the development of Internet technology, the interbehavior of the application software and user installed in mobile terminal is increasingly More, so far user, which needs to input corresponding data content, can obtain the related service provided in application software.
Therefore, when being related to the scenes such as user's input, a large amount of page assembly needs to verify the conjunction of input data format Method, only legal data can be sent to system background, realize to the processing of data and the feedback of user.Currently, Developer is configured the verification mode of the different components on the different pages according to the business demand of different page assemblies, with Meets the needs of user or business.
However, in the interaction of application software and user, since there are a large amount of user interface and a large amount of page groups Part, and application software provides a large amount of trafficwise, so these have resulted in the school of the individually designed various components of developer A large amount of development amount is generated when testing rule.And current verification rule can only be directed to the data that front end user inputs and carry out school It tests, and rear end developer cannot verify the development process of component accordingly.Therefore, existing page assembly verification side Formula not only reduces exploitation and the maintenance efficiency of developer;And the verification mode for resulting in application program is inconsistent, is unfavorable for Exploitation, update and the maintenance of developer rear end.
Invention content
An embodiment of the present invention provides a kind of method of calibration of page assembly, device, server and storage medium, Neng Gouwei Developer provides configurable unified verification rule, realizes that front end user opens the data inputted in page assembly and rear end Originator verifies the setting of page assembly, improves the efficiency of exploitation, update and maintenance of the developer to verification rule.
In a first aspect, an embodiment of the present invention provides a kind of methods of calibration of page assembly, including:
The page assembly for including in host application is matched with verification configuration file;
According to matching result, the object identifier mode of object identifier component and the object identifier component is determined;
When reaching the verification opportunity that the host application determines, using the object identifier mode to the target The data of verification component are verified;
Check results are fed back into the host application.
Second aspect, an embodiment of the present invention provides a kind of calibration equipments of page assembly, including:
Configurations match module, the page assembly for containing host application are matched with verification configuration file;
Determining module is verified, for according to matching result, determining object identifier component and the object identifier component Object identifier mode;
Correction verification module is used for when reaching the verification opportunity that the host application determines, using the object identifier Mode verifies the related data of the object identifier component;
As a result feedback module, for check results to be fed back to the host application.
The third aspect, an embodiment of the present invention provides a kind of servers, including:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the method for calibration of the page assembly described in any embodiment in the embodiment of the present invention.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the method for calibration of the page assembly in the embodiment of the present invention described in any embodiment when the program is executed by processor.
The embodiment of the present invention verifies configuration file by providing configurable page assembly, will be configured with verification configuration text The page assembly for including in the host application of part is matched with the verification configuration file, obtains the target school for needing to verify Component and object identifier mode associated with the object identifier component are tested, thus to object identifier group in the way of object identifier Part is verified, and check results are fed back to host application, so that user or developer know the school of page assembly Test result.The embodiment of the present invention can provide configurable unified verification rule for developer, realize front end user to the page The data and rear end developer inputted in component verify the setting of page assembly;And in the update or modification in later stage When, it can unify to modify to verification configuration file, it is not necessary that the verification rule of various components is respectively modified one by one, raising is opened Efficiency of the originator to exploitation, update and the maintenance of application program and verification rule.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for calibration for page assembly that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the method for calibration of page assembly provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram of the calibration equipment for page assembly that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides.
Specific implementation mode
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this The described specific embodiment in place is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.In addition also It should be noted that illustrating only for ease of description, in attached drawing and the relevant part of the embodiment of the present invention rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the method for calibration for page assembly that the embodiment of the present invention one provides, and the present embodiment can fit The case where carrying out data check to page assembly when for program debugging or operation, this method can be by the calibration equipment of page assembly To execute.This method specifically comprises the following steps:
S110, the page assembly for including in host application is matched with verification configuration file.
In the specific embodiment of the invention, host application refers to the application program configured with verification configuration file.For The demand of user is obtained, and provides the service for meeting user demand to the user, host application would generally be in the page Corresponding page assembly is set, i.e., the visualized graphs element placed on forms has the function of to execute or by trigger event draw Hair code runs and completes the page assemblies such as the function, such as text edit box, button and drop-down menu of response.Wherein, example Such as button or drop-down menu have been applied to the page assembly of user's option, and user without adding in any data manually Hold, is selected or clicked in the option directly provided in assembly.However, for pages such as text edit boxes Component, user need to be manually entered corresponding data content, to submit to the service that backstage exchanges user's needs for.For such page Face component needs to carry out the attribute of page assembly and data wherein input by user in developer's debugging utility The restriction of format;When program is run, user only could carry out the submission and service of data inputting legal data It exchanges for.Therefore, no matter in program debugging stage or program operation phase, for be related to page assembly related data it is legal Property verification be all highly important.
In the present embodiment, it is that host application devises the verification configuration text being configurable in host application Part verifies the related data for being related to the page assembly of user's hand input-data using verification configuration file.Verification is matched The type that page assembly can be contained in file and verification associated with all kinds of page assemblies rule are set, wherein verification rule The format restriction of input data in all kinds of page assemblies and specific verification mode are then can specify that.In verification configuration file In, general component verification rule can be set, can also be made by oneself according to the actual demand of host application, developer's setting The verification rule of justice, and the priority of customized verification rule is higher than the priority of general verification rule.Illustratively, at certain In a host application, general verification rule is provided with for cipher type text edit box, however in some page Trading password text edit box, in order to improve the safety of transaction, the self-defined trading password text edit box of developer Verification rule, and then when component verifies, preferentially using the customized verification rule of developer to the trading password text editing Frame is verified.
Verification configuration file can be only fitted in the application program debugged, and can also configure can be normal after debugging In the application program used.In the program debugging stage, the page assembly for including in the code of host application is matched with verification It sets file to be matched, whether to contain the attribute or number for page assembly in this code to check host application According to the mistake setting of format, while the attribute of same type page assembly or wherein data can also be unified in host application The style of format;And in the program in later stage updates or safeguards, convenient for the unified modification of page assembly relative program, exploitation is improved The development efficiency of person.In the program operation phase, by the page assembly for including in the current operation page of host application and school It tests configuration file to be matched, checks whether data input by user have format error with this, and user is prompted to repair Change.
S120, foundation matching result, determine the object identifier mode of object identifier component and the object identifier component.
In the specific embodiment of the invention, object identifier component is to need verified page assembly.It is to be understood that relating to And it can be to need verified object identifier component to require the page assembly of user input data.Object identifier mode refers to The specific implementation mode that object identifier component is verified, it can be understood as, same type of page assembly is associated with same A verification mode.The type that the page assembly type is not limited to page assembly itself limits, such as text edit box etc., Page assembly type can also be defined from the concrete type of data input by user, for example, the time expression or RMB number The concrete numerical values type such as expression of value.
Since the type of page assembly and associated with all kinds of page assemblies can be contained in verification configuration file Verification mode, therefore when being matched the page assembly for including in host application with verification configuration file, needle first To each page component for including in host application, if also including simultaneously the page assembly in verification configuration file, say Bright page assembly needs are verified, using the page assembly as object identifier component to be verified, and determine object identifier group Part type.It secondly, will be between the component type and verification mode that are stored in object identifier component type and verification configuration file Incidence relation is matched, and determines object identifier mode.
Illustratively, in the page of some host application, provided with the text for needing user's inputting date information Edit box, referred to herein as date type text edit box.Meanwhile it verifying in configuration file and containing date type text editing Frame and verification mode associated with it.Therefore, when carrying out the verification of page assembly, if the program debugging stage, then by place Text edit box in primary application code is matched with verification configuration file, determines that text edit box is target school It is date type text edit box to test component and its type, and is determined according to type, that is, date type of text edit box Object identifier mode, and then be that corresponding attribute is arranged in text edit box and date data format verifies to developer; Similarly, if in the program operation phase, the text edit box in the current operation page of host application is matched with verification File is set to be matched, it is same to determine that text edit box is object identifier component and its type is date type text editing Frame, and object identifier mode is determined according to type, that is, date type of text edit box, and then to data input by user It is verified.
S130, when reaching the verification opportunity that the host application determines, using the object identifier mode to institute The data for stating object identifier component are verified.
It is not that the moment will in the execution of program code or the operational process of the page in the specific embodiment of the invention Page assembly therein is verified, but only when program code needs to execute the program in relation to page assembly or page Face is run to when getting user input data, just reaches verification opportunity, at this time by verify configuration file, determine need by The object identifier component of verification, and object identifier mode associated with the component type of the object identifier component, in use Determining object identifier mode is stated to verify the related data of object identifier component.For example, according to the life cycle of the page The data of data input by user or server feedback in page assembly are verified.
S140, check results are fed back into the host application.
In the specific embodiment of the invention, the purpose verified to page assembly is exactly by the mistake in program debugging stage Developer is fed back to, to improve the development efficiency of developer, is conducive to the unification of page assembly style in host application;Or By the error feedback of user's input data in page assembly to user, so that user changes the input of data.In program debugging In the stage, check results can be prompted to developer by way of interface readjustment, developer obtains by checking specific variable Obtain check results;Alternatively, corresponding prompt message is exported by console, so that developer more intuitively views verification knot Fruit.In the program operation phase, check results can be prompted to use by the mode of user interface (User Interface, UI) Family, for example, reminding window the modes such as pop-up.
The verification component stored in S150, the update verification configuration file, and verify the verification mode of component.
Upgrading that can be with host application in the specific embodiment of the invention or update verification configuration text of more newly arriving Part needs verified target wherein the verification component stored in verification configuration file can be updated in host application Verify component, and the verification associated verification mode of component.It is configurable by verification configuration file in this present embodiment, Therefore update verification configuration file is only needed, it is independent without the verification mode to each page assembly in host application It modifies, to improve the development efficiency of developer.
The technical solution of the present embodiment verifies configuration file by providing configurable page assembly, will be configured with school It tests the page assembly for including in the host application of configuration file to be matched with the verification configuration file, obtains needing to verify Object identifier component and object identifier mode associated with the object identifier component, in the way of object identifier to mesh Calibration is tested component and is verified, and check results are fed back to host application, so that user or developer know the page The check results of component.The embodiment of the present invention can provide configurable unified verification rule for developer, realize that front end is used Family verifies the setting of page assembly the data inputted in page assembly and rear end developer;And the later stage more When new or modification, it can unify to modify to verification configuration file, without one by one repairing the verification rule of various components respectively Change, improves the efficiency of exploitation, update and maintenance of the developer to application program and verification rule.
Embodiment two
The present embodiment on the basis of the above embodiment 1, provides one of a kind of method of calibration of page assembly preferably Embodiment can verify page assembly according to the life cycle that the page is run.Fig. 2 be second embodiment of the present invention provides A kind of page assembly method of calibration flow chart, as shown in Fig. 2, this method includes step in detail below:
S210, the page assembly for including in host application is matched with verification configuration file.
Preferably, in the program debugging stage, the page assembly for including in the code of host application and verification are configured File is matched;Alternatively, in the program operation phase, the current of host application is run into the page assembly for including in the page It is matched with verification configuration file.
In the specific embodiment of the invention, verification configuration file can be only fitted in the application program debugged, and also may be used It can be in the application program of normal use after debugging to configure.It, will be in the code of host application in the program debugging stage Including page assembly with verification configuration file matched, in this code to check host application whether containing pair In the attribute of page assembly or the mistake setting of data format, while the same type page in host application can also be unified The style of the attribute of component or wherein data format;It is related convenient for page assembly and in the program in later stage updates or safeguards The unified modification of program, improves the development efficiency of developer.In the program operation phase, by the current operation page of host application The page assembly for including in face with verification configuration file matched, with this come check data input by user whether have format Mistake, and user is prompted to modify.
S220, for each page component for including in the host application, if being wrapped in the verification configuration file Containing the page assembly, then using the page assembly as the object identifier component, and the object identifier component type is determined.
In the specific embodiment of the invention, the class that the page assembly for needing to verify can be contained in configuration file is verified Type, therefore for each page component for including in host application, one by one with the page assembly in verification configuration file into Row matching, comes with this in clear host application to need verified object identifier component.And according to object identifier component Attribute information or restriction to wherein input data, determine the type of object identifier component.
S230, the object identifier component type is verified into the component type stored in configuration file and verification side with described Incidence relation between formula is matched, and determines the object identifier mode.
In the specific embodiment of the invention, school associated with all kinds of page assemblies can be contained by verifying in configuration file Proved recipe formula specifies a kind of page assembly or the verification rule of some page assembly in verification mode.Therefore, determining that host answers With in program object identifier component and its type after, according to the page assembly type that stores and verification side in verification configuration file Incidence relation between formula, matching obtain the object identifier mode of object identifier component.
S240, the current life cycle for running the page for monitoring the host application.
It is not that the moment will in the execution of program code or the operational process of the page in the specific embodiment of the invention Page assembly therein is verified, but only when program code needs to execute the program in relation to page assembly or page Face is run to when getting user input data, just reaches verification opportunity.Therefore, it is necessary to the current fortune to host application The life cycle of the row page is monitored, with the trigger assembly verification operation that is in due course.
The life cycle of the page refers to from the birth of the page to the whole process of extinction.When passing through network address or the existing page In operation and enter a new page when, server can receive the page request of new page, at this time the life of new page Period monitors new page.Wherein, page request includes the website information of new page or contains simultaneously The additional information of content in one page, server creates an independent, completely new page according to page request, and carries out suitably Processing, the page ultimately generated is returned into browser, subsequent server discharges the page just generated, the life of new page End cycle.
S250, according to the life cycle of the current operation page, in the verification for reaching the host application and determining When opportunity, the data inputted in the object identifier component to user using the object identifier mode are verified.
In the specific embodiment of the invention, in page request only include new page website information the page, usually It is not related to scene input by user, therefore the page access of such lightweight, is not necessarily to the checking procedure of page assembly.However, For including the page of additional information in page request, the new page is typically jumped on the basis of previous page, therefore The generation of such page, which may need to combine, handles additional information, to feed back to one new page of browser.Herein In the class page, need whether be related to scene input by user in the life cycle of the monitoring page, if being related to scene input by user, Then verified according to verification configuration file to being related to page assembly input by user.
Preferably, the data inputted in the object identifier component to user using the object identifier mode carry out school It tests;Alternatively, being verified using the data that the object identifier mode obtains the object identifier component from server.
In the specific embodiment of the invention, not only the data of front end user input are verified, but also backstage is taken The data that business device returns can also be verified.Illustratively, for the text edit box of date type, host application and Verification configuration file is set as 2018-1-1 to its data format.When user in such page assembly inputting date 2018/ When 1/15 or such page assembly is from when the date that server obtains is 2018/1/15, and verification configuration file is according to listening to Page life cycle specific opportunity, the data obtained from server to data input by user or page assembly carry out Verification since two kinds of date formats mismatch, and then can obtain the check results of data formatting error.Further, it is also possible to right The code of page assembly involved in program debugging is verified in the same way, with this come verify developer setting whether Correctly.
S260, check results are fed back into the host application.
In the specific embodiment of the invention, in the program debugging stage, it is preferred that prompted check results by interface readjustment Feed back to the host application;It is answered alternatively, check results are fed back to the host by the prompt of console output information Use program.In the program operation phase, it is preferred that check results are fed back to the host application by UI interface prompts.
The technical solution of the present embodiment verifies configuration file, first by host by providing configurable page assembly The page assembly for including in application program is matched one by one with the page assembly stored in the verification configuration file, is needed The object identifier component of verification;Secondly object identifier mode is determined according to the type of object identifier component;Then basis listens to Page cycle, object identifier component is verified in the way of object identifier when reaching verification opportunity;It finally will verification As a result host application is fed back to, so that user or developer know the check results of page assembly.The embodiment of the present invention Configurable unified verification rule can be provided for developer to be realized to front end according to the life cycle of the page listened to The data and rear end developer that user inputs in page assembly verify the setting of page assembly.By for using journey Sequence configures unified verification configuration file, improves development efficiency of the developer to application program.
Embodiment three
Fig. 3 is a kind of structural schematic diagram of the calibration equipment for page assembly that the embodiment of the present invention three provides, the present embodiment The case where being applicable to carry out data check to page assembly when program debugging or operation, which can realize the embodiment of the present invention The method of calibration of page assembly described in middle any embodiment.The device specifically includes:
Configurations match module 310, the page assembly for containing host application and verification configuration file progress Match;
Determining module 320 is verified, for according to matching result, determining object identifier component and the object identifier component Object identifier mode;
Correction verification module 330 is used for when reaching the verification opportunity that the host application determines, using the target school Proved recipe formula verifies the related data of the object identifier component;
As a result feedback module 340, for check results to be fed back to the host application.
The configurations match module 310, is specifically used for:
In the program debugging stage, the page assembly for including in the code of host application and verification configuration file are carried out Matching;Alternatively, in the program operation phase, the page assembly for including in the current operation page of host application is matched with verification File is set to be matched.
Further, the verification determining module 320, including:
Object identifier component determination unit, for for each page component for including in the host application, if Include the page assembly in the verification configuration file, then using the page assembly as the object identifier component, and determines institute State object identifier component type;
Object identifier mode determination unit, for depositing the object identifier component type with the verification configuration file Incidence relation between the component type of storage and verification mode is matched, and determines the object identifier mode.
Further, the correction verification module 330, including:
Monitoring unit, the life cycle of the current operation page for monitoring the host application;
Verification unit, for the life cycle according to the current operation page, reaching, the host application is true When fixed verification opportunity, the data inputted in the object identifier component to user using the object identifier mode carry out school It tests.
Preferably, the correction verification module 330, is specifically used for:
The data inputted in the object identifier component to user using the object identifier mode are verified;Or Person, the data obtained from server to the object identifier component using the object identifier mode are verified.
Further, the result feedback module 340, is specifically used for:
Check results are fed back into the host application by interface readjustment prompt;Or
It prompts check results feeding back to the host application by console output information.
Further, the result feedback module 340, is specifically used for:
Check results are fed back into the host application by UI interface prompts.
Further, described device further includes:
Update module 350, for updating the verification component stored in the verification configuration file, and the school of verification component Proved recipe formula.
The technical solution of the present embodiment realizes target school to be verified by the mutual cooperation between each function module Test the determination of component, the determination of object identifier mode, the monitoring of page life cycle, the verification of component, check results feedback And the functions such as update of verification configuration file.The embodiment of the present invention can provide configurable unified verification rule for developer Then, realize that front end user verifies the setting of page assembly the data inputted in page assembly and rear end developer; And in the update or modification in later stage, it can unify to modify to verification configuration file, without one by one to various components Verification rule is respectively modified, and improves the efficiency of exploitation, update and maintenance of the developer to application program and verification rule.
Example IV
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides, and Fig. 4 is shown suitable for being used for realizing The block diagram of the exemplary servers of embodiment of the embodiment of the present invention.The server that Fig. 4 is shown is only an example, should not be right The function and use scope of the embodiment of the present invention bring any restrictions.
The server 12 that Fig. 4 is shown is only an example, should not be to the function and use scope band of the embodiment of the present invention Carry out any restrictions.
As shown in figure 4, server 12 is showed in the form of universal computing device.The component of server 12 may include but not It is limited to:One or more processor or processing unit 16, system storage 28, connection different system component (including system Memory 28 and processing unit 16) bus 18.
Bus 18 indicates one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Server 12 typically comprises a variety of computer system readable media.These media can any can be serviced The usable medium that device 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Server 12 may further include other removable/nonremovable , volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not removable Dynamic, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in fig 4, it can provide For the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to moving anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected with bus 18 by one or more data media interfaces.Memory 28 may include at least one program product, There is the program product one group of (for example, at least one) program module, these program modules to be configured to perform the embodiment of the present invention The function of each embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28 In, such program module 42 include but not limited to operating system, one or more application program, other program modules and Program data may include the realization of network environment in each or certain combination in these examples.Program module 42 is usual Execute the function and/or method in described embodiment of the embodiment of the present invention.
Server 12 can also be logical with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.) Letter, can also be enabled a user to one or more equipment interact with the server 12 communicate, and/or with make the server 12 any equipment (such as network interface card, modem etc.) communications that can be communicated with one or more of the other computing device. This communication can be carried out by input/output (I/O) interface 22.Also, server 12 can also pass through network adapter 20 With one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication. As shown, network adapter 20 is communicated by bus 18 with other modules of server 12.It should be understood that although not showing in figure Go out, other hardware and/or software module can be used in conjunction with server 12, including but not limited to:Microcode, device driver, Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, to perform various functions application and Data processing, such as realize the method for calibration for the page assembly that the embodiment of the present invention is provided.
Embodiment five
The embodiment of the present invention five also provides a kind of computer readable storage medium, be stored thereon with computer program (or For computer executable instructions), for executing a kind of method of calibration of page assembly, this method when which is executed by processor Including:
The page assembly for including in host application is matched with verification configuration file;
According to matching result, the object identifier mode of object identifier component and the object identifier component is determined;
When reaching the verification opportunity that the host application determines, using the object identifier mode to the target The data of verification component are verified;
Check results are fed back into the host application.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present invention Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are one or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium, which can be any, includes or the tangible medium of storage program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the embodiment of the present invention operation Computer program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully, partly be executed on the user computer, as an independence on the user computer Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes LAN (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as profit It is connected by internet with ISP).
Note that above are only preferred embodiment and the institute's application technology principle of the embodiment of the present invention.Those skilled in the art It will be appreciated that the embodiment of the present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art each The protection domain that kind significantly changes, readjusts and substitutes without departing from the embodiment of the present invention.Therefore, although more than passing through Embodiment is described in further detail the embodiment of the present invention, but the embodiment of the present invention is not limited only to the above implementation Example can also include other more equivalent embodiments in the case where not departing from design of the embodiment of the present invention, and the present invention is implemented The range of example is determined by scope of the appended claims.

Claims (18)

1. a kind of method of calibration of page assembly, which is characterized in that including:
The page assembly for including in host application is matched with verification configuration file;
According to matching result, the object identifier mode of object identifier component and the object identifier component is determined;
When reaching the verification opportunity that the host application determines, using the object identifier mode to the object identifier The data of component are verified;
Check results are fed back into the host application.
2. according to the method described in claim 1, it is characterized in that, the page assembly that host application is contained and school Configuration file is tested to be matched, including:
In the program debugging stage, by the page assembly for including in the code of host application and verification configuration file progress Match;Alternatively,
In the program operation phase, the page assembly and verification configuration file that will include in the current operation page of host application It is matched.
3. according to the method described in claim 1, it is characterized in that, the determining object identifier component and the object identifier The object identifier mode of component, including:
For each page component for including in the host application, if in the verification configuration file including the page group Part then using the page assembly as the object identifier component, and determines the object identifier component type;
It will be between the component type and verification mode that are stored in the object identifier component type and the verification configuration file Incidence relation is matched, and determines the object identifier mode.
4. method according to claim 1 or 2, which is characterized in that described to use the object identifier mode to the mesh The related data that component is tested in calibration is verified, including:
Monitor the life cycle of the current operation page of the host application;
It is adopted according to the life cycle of the current operation page when reaching the verification opportunity that the host application determines The data inputted in the object identifier component to user with the object identifier mode verify.
5. according to the method described in claim 1, it is characterized in that, described use the object identifier mode to the target school The data for testing component are verified, including:
The data inputted in the object identifier component to user using the object identifier mode are verified;Alternatively,
The data obtained from server to the object identifier component using the object identifier mode are verified.
6. method according to claim 1 or 2, which is characterized in that described that check results are fed back to host's application Program, including:
Check results are fed back into the host application by interface readjustment prompt;Alternatively,
It prompts check results feeding back to the host application by console output information.
7. method according to claim 1 or 2, which is characterized in that described that check results are fed back to host's application Program, including:
Check results are fed back into the host application by UI interface prompts.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
Update the verification component stored in the verification configuration file, and the verification mode of verification component.
9. a kind of calibration equipment of page assembly, which is characterized in that including:
Configurations match module, the page assembly for containing host application are matched with verification configuration file;
Determining module is verified, for according to matching result, determining the target of object identifier component and the object identifier component Verification mode;
Correction verification module is used for when reaching the verification opportunity that the host application determines, using the object identifier mode The related data of the object identifier component is verified;
As a result feedback module, for check results to be fed back to the host application.
10. device according to claim 9, which is characterized in that the configurations match module is specifically used for:
In the program debugging stage, by the page assembly for including in the code of host application and verification configuration file progress Match;Alternatively,
In the program operation phase, the page assembly and verification configuration file that will include in the current operation page of host application It is matched.
11. device according to claim 9, which is characterized in that the verification determining module, including:
Object identifier component determination unit, for for each page component for including in the host application, if described It includes the page assembly to verify in configuration file, then using the page assembly as the object identifier component, and determines the mesh Component type is tested in calibration;
Object identifier mode determination unit, for storing the object identifier component type with the verification configuration file Incidence relation between component type and verification mode is matched, and determines the object identifier mode.
12. device according to claim 9 or 10, which is characterized in that the correction verification module, including:
Monitoring unit, the life cycle of the current operation page for monitoring the host application;
Verification unit reaches what the host application determined for the life cycle according to the current operation page When verification opportunity, the data inputted in the object identifier component to user using the object identifier mode are verified.
13. device according to claim 9, which is characterized in that the correction verification module is specifically used for:
The data inputted in the object identifier component to user using the object identifier mode are verified;Alternatively,
The data obtained from server to the object identifier component using the object identifier mode are verified.
14. device according to claim 9 or 10, which is characterized in that the result feedback module is specifically used for:
Check results are fed back into the host application by interface readjustment prompt;Alternatively,
It prompts check results feeding back to the host application by console output information.
15. device according to claim 9 or 10, which is characterized in that the result feedback module is specifically used for:
Check results are fed back into the host application by UI interface prompts.
16. device according to claim 9, which is characterized in that described device further includes:
Update module, for updating the verification component stored in the verification configuration file, and the verification mode of verification component.
17. a kind of server, which is characterized in that including:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real Now such as the method for calibration of page assembly described in any item of the claim 1 to 8.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method of calibration such as page assembly described in any item of the claim 1 to 8 is realized when execution.
CN201810089192.6A 2018-01-30 2018-01-30 Page component checking method, device, server and storage medium Active CN108319575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810089192.6A CN108319575B (en) 2018-01-30 2018-01-30 Page component checking method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810089192.6A CN108319575B (en) 2018-01-30 2018-01-30 Page component checking method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN108319575A true CN108319575A (en) 2018-07-24
CN108319575B CN108319575B (en) 2021-06-29

Family

ID=62890265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810089192.6A Active CN108319575B (en) 2018-01-30 2018-01-30 Page component checking method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN108319575B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083530A (en) * 2019-03-21 2019-08-02 平安普惠企业管理有限公司 Data verification method, device and computer equipment based on automatic Verification tool
CN110597712A (en) * 2019-08-27 2019-12-20 北京奇艺世纪科技有限公司 Component attribute checking method and device, terminal and storage medium
CN111399806A (en) * 2019-01-03 2020-07-10 百度在线网络技术(北京)有限公司 Component management method and device, electronic equipment and storage medium
CN111444224A (en) * 2020-03-24 2020-07-24 政采云有限公司 Service data verification method and device
CN112769802A (en) * 2020-12-31 2021-05-07 微医云(杭州)控股有限公司 Access verification method and device based on server, electronic equipment and storage medium
CN113407460A (en) * 2021-07-16 2021-09-17 北京字节跳动网络技术有限公司 Page testing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0982930A2 (en) * 1998-08-28 2000-03-01 Hitachi, Ltd. Method for embedding information and device for the same
CN101021890A (en) * 2007-03-20 2007-08-22 华为技术有限公司 Method, system and server for checking page data
US20070223050A1 (en) * 2006-03-23 2007-09-27 Canon Kabushiki Kaisha Document management apparatus, document management system, control method of the apparatus and system, program, and storage medium
CN101105750A (en) * 2007-08-16 2008-01-16 金蝶软件(中国)有限公司 Numerical value input device and method for numerical value input using the device
CN103810421A (en) * 2014-02-19 2014-05-21 北京视博数字电视科技有限公司 Application program verification method and device and terminal device
CN106484374A (en) * 2015-08-26 2017-03-08 北京奇虎科技有限公司 Method and transfer server that a kind of control APK reaches the standard grade

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0982930A2 (en) * 1998-08-28 2000-03-01 Hitachi, Ltd. Method for embedding information and device for the same
US20070223050A1 (en) * 2006-03-23 2007-09-27 Canon Kabushiki Kaisha Document management apparatus, document management system, control method of the apparatus and system, program, and storage medium
CN101021890A (en) * 2007-03-20 2007-08-22 华为技术有限公司 Method, system and server for checking page data
CN101105750A (en) * 2007-08-16 2008-01-16 金蝶软件(中国)有限公司 Numerical value input device and method for numerical value input using the device
CN103810421A (en) * 2014-02-19 2014-05-21 北京视博数字电视科技有限公司 Application program verification method and device and terminal device
CN106484374A (en) * 2015-08-26 2017-03-08 北京奇虎科技有限公司 Method and transfer server that a kind of control APK reaches the standard grade

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LI YING 等: ""Model-based system configuration approach for Internetware"", 《SCIENCE CHINA(INFORMATION SCIENCES)》 *
张志亮 等: ""基于Hadoop的电网数据质量校验方法与验证系统"", 《计算机研究与发展》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399806A (en) * 2019-01-03 2020-07-10 百度在线网络技术(北京)有限公司 Component management method and device, electronic equipment and storage medium
CN111399806B (en) * 2019-01-03 2023-09-01 百度在线网络技术(北京)有限公司 Component management method and device, electronic equipment and storage medium
CN110083530A (en) * 2019-03-21 2019-08-02 平安普惠企业管理有限公司 Data verification method, device and computer equipment based on automatic Verification tool
CN110597712A (en) * 2019-08-27 2019-12-20 北京奇艺世纪科技有限公司 Component attribute checking method and device, terminal and storage medium
CN111444224A (en) * 2020-03-24 2020-07-24 政采云有限公司 Service data verification method and device
CN111444224B (en) * 2020-03-24 2023-08-15 政采云有限公司 Service data verification method and device
CN112769802A (en) * 2020-12-31 2021-05-07 微医云(杭州)控股有限公司 Access verification method and device based on server, electronic equipment and storage medium
CN112769802B (en) * 2020-12-31 2022-09-30 微医云(杭州)控股有限公司 Access verification method and device based on server, electronic equipment and storage medium
CN113407460A (en) * 2021-07-16 2021-09-17 北京字节跳动网络技术有限公司 Page testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108319575B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN108319575A (en) A kind of method of calibration of page assembly, device, server and storage medium
CN108763076A (en) A kind of Software Automatic Testing Method, device, equipment and medium
CN108897691A (en) Data processing method, device, server and medium based on interface analog service
US20180217921A1 (en) System and method for generating and executing automated test cases
CN109726136A (en) Test method, device, equipment and the storage medium of database
CN104765621B (en) A kind of method and system of the deployment program in clustered node
CN107562637B (en) Method, device, system and storage medium for software testing
CN109815147A (en) Test cases generation method, device, server and medium
CN112148582B (en) Policy testing method and device, computer readable medium and electronic equipment
CN110427735A (en) A kind of method of calibration, device, server and storage medium
CN112015654A (en) Method and apparatus for testing
CN108062382A (en) Method, apparatus, equipment and the storage medium of information exchange
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111026394A (en) Method for carrying out flow docking by utilizing self-service docking platform
CN115576217A (en) Vehicle testing method, device, equipment and medium
CN111797020A (en) Mock data method and device based on dynamic bytecode
CN109857634A (en) Interface testing parameter verification method, apparatus, electronic equipment and storage medium
CN112527678A (en) Method, apparatus, device and storage medium for testing protocol
CN108399128A (en) A kind of generation method of user data, device, server and storage medium
CN112015715A (en) Industrial Internet data management service testing method and system
CN110333886A (en) A kind of review procedure iteration update method, device, server and storage medium
US20230007894A1 (en) Intelligent Dynamic Web Service Testing Apparatus in a Continuous Integration and Delivery Environment
CN109522174A (en) Control adb enabled method, apparatus, terminal and storage medium
CN109672482A (en) Radio frequency module testing method, device, equipment and storage medium
CN113609014A (en) Interface field checking method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant