CN114138790A - Interface element verification method, device, storage medium and program product - Google Patents

Interface element verification method, device, storage medium and program product Download PDF

Info

Publication number
CN114138790A
CN114138790A CN202111461389.6A CN202111461389A CN114138790A CN 114138790 A CN114138790 A CN 114138790A CN 202111461389 A CN202111461389 A CN 202111461389A CN 114138790 A CN114138790 A CN 114138790A
Authority
CN
China
Prior art keywords
input
verified
preset
component
input component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111461389.6A
Other languages
Chinese (zh)
Inventor
刘庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111461389.6A priority Critical patent/CN114138790A/en
Publication of CN114138790A publication Critical patent/CN114138790A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2272Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a verification method, equipment, storage medium and program product of interface elements, which relate to the field of intelligent service and are used for receiving business information input by a user through at least one input component in an interface; taking out an input assembly to be verified from at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; and executing a verification method on the input component to be verified so as to verify the business information input by the input component. According to the method, under an interface framework which does not support forms, corresponding verification methods are configured for all input assemblies in advance and are loaded into the first preset container, when the service information input by a certain or some input assemblies needs to be verified, the input assemblies can be taken out of the first preset container, the verification methods configured in advance are executed, the service data are verified, and only the verification methods need to be configured for the input assemblies in advance, so that the development efficiency is effectively improved, and the code redundancy is reduced.

Description

Interface element verification method, device, storage medium and program product
Technical Field
The present application relates to the field of intelligent services, and in particular, to a method, an apparatus, a storage medium, and a program product for verifying an interface element.
Background
The intelligent teller machine is used as a direct channel facing to customers, the appearance of the intelligent teller machine greatly reduces the queuing waiting time of the business handling of customer counters, and the pressure of teller business handling is also reduced. And the intelligent teller machine can accurately and effectively verify and prompt an interface in the process of interacting with the client, thereby greatly shortening the service handling time of the client and improving the satisfaction rate of the client.
At present, some intelligent teller machines can provide users with business information input through forms, and perform business information verification through an information verification method of the forms. However, the interface frames of some intelligent teller machines do not support form operation, and only the service information can be collected through the interface components, so that the service information is not convenient to verify.
Disclosure of Invention
The application provides a method, equipment, a storage medium and a program product for verifying interface elements, which are used for solving the problem of verifying service data collected by an interface component under an interface framework which does not support forms.
In a first aspect, the present application provides a method for verifying an interface element, including:
receiving business information input by a user through at least one input component in the interface;
taking out an input assembly to be verified in the at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in the interface;
and executing the verification method on the input component to be verified so as to verify the service information input by the input component to be verified.
Optionally, the taking out the input component to be verified from the at least one input component from the first preset container includes:
and taking out the input assembly to be verified from the first preset container according to the preset index information of the input assembly to be verified.
Optionally, the taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified includes:
acquiring preset index information of a plurality of input components to be verified from at least one second preset container, wherein the preset index information of the plurality of input components to be verified in the same batch of verification is stored in each second preset container;
and taking out the plurality of input assemblies to be verified corresponding to the preset index information from the first preset container according to the preset index information of the plurality of input assemblies to be verified in the same batch.
Optionally, the taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified includes:
traversing all input assemblies in the first preset container, and determining at least one input assembly to be verified;
and acquiring preset index information of the input component to be verified, and taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified.
Optionally, the verifying the service information input by the input component to be verified includes:
performing at least one of the following verification on the service information input by the input component to be verified:
verifying the validity, verifying the data type and verifying according to the service rule.
Optionally, after receiving the service information input by the user through the at least one input component in the interface, the method further includes:
taking out a target assembly of a target method to be executed from the first preset container, and acquiring a preset target method from the target assembly;
performing the target method on the target component, wherein the target method comprises at least one of: setting a value, taking a value, setting a target component as a read-only method, and setting the target component as an editable method.
Optionally, before receiving the service information input by the user through the at least one input component in the interface, the method further includes:
creating the first preset container and configuring the attribute of the first preset container;
configuring corresponding verification methods for all input components in the interface respectively;
and storing each input assembly in the first preset container.
Optionally, before obtaining the preset index information of the plurality of input components to be verified from the at least one second preset container, the method further includes:
determining a plurality of input components to be verified which are verified in the same batch;
and storing the preset index information of a plurality of input assemblies to be verified in the same batch into one second preset container.
In a second aspect, the present application provides an interface element verification apparatus, comprising:
the input module is used for receiving the business information input by a user through at least one input component in the interface;
the acquisition module is used for taking out an input assembly to be verified in the at least one input assembly from a first preset container and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in the interface;
and the execution module is used for executing the verification method on the input component to be verified so as to verify the service information input by the input component to be verified.
Optionally, when the input component to be verified in the at least one input component is taken out from the first preset container, the obtaining module is configured to:
and taking out the input assembly to be verified from the first preset container according to the preset index information of the input assembly to be verified.
Optionally, when the obtaining module takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, the obtaining module is configured to:
acquiring preset index information of a plurality of input components to be verified from at least one second preset container, wherein the preset index information of the plurality of input components to be verified in the same batch of verification is stored in each second preset container;
and taking out the plurality of input assemblies to be verified corresponding to the preset index information from the first preset container according to the preset index information of the plurality of input assemblies to be verified in the same batch.
Optionally, when the obtaining module takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, the obtaining module is configured to:
traversing all input assemblies in the first preset container, and determining at least one input assembly to be verified;
and acquiring preset index information of the input component to be verified, and taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified.
Optionally, when the execution module verifies the service information input by the input component to be verified, the execution module is configured to:
performing at least one of the following verification on the service information input by the input component to be verified:
verifying the validity, verifying the data type and verifying according to the service rule.
Optionally, the obtaining module is further configured to take out a target component of a target method to be executed from the first preset container, and obtain a preconfigured target method from the target component;
the execution module is further configured to execute the target method on the target component, wherein the target method comprises at least one of: setting a value, taking a value, setting a target component as a read-only method, and setting the target component as an editable method.
Optionally, the apparatus further comprises: the configuration module is used for creating the first preset container and configuring the attribute of the first preset container before receiving the service information input by a user through at least one input assembly in an interface;
configuring corresponding verification methods for all input components in the interface respectively;
and storing each input assembly in the first preset container.
Optionally, before the preset index information of the plurality of input components to be verified is obtained from the at least one second preset container, the configuration module is further configured to:
determining a plurality of input components to be verified which are verified in the same batch;
and storing the preset index information of a plurality of input assemblies to be verified in the same batch into one second preset container.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to the first aspect when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
The method, the equipment, the storage medium and the program product for verifying the interface elements receive the service information input by at least one input component in the interface by a user; taking out an input assembly to be verified from at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in an interface; and executing a verification method on the input component to be verified so as to verify the business information input by the input component to be verified. According to the method, under an interface framework which does not support forms, corresponding verification methods are configured for all input assemblies in advance and are loaded into the first preset container, when the service information input by a certain or some input assemblies needs to be verified, the input assemblies can be taken out of the first preset container, the verification methods configured in advance are executed, the service data are verified, and only the verification methods need to be configured for the input assemblies in advance, so that the development efficiency is effectively improved, and the code redundancy is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario of a verification method for an interface element according to an embodiment of the present application;
fig. 2 is a flowchart of a verification method for interface elements according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for verifying an interface element according to another embodiment of the present application;
FIG. 4 is a flowchart of a method for verifying an interface element according to another embodiment of the present application;
FIG. 5 is a flowchart of a method for verifying an interface element according to another embodiment of the present application;
FIG. 6 is a flowchart of a method for verifying an interface element according to another embodiment of the present application;
fig. 7 is a structural diagram of a verification device for interface elements according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The intelligent teller machine is used as a direct channel facing to customers, the appearance of the intelligent teller machine greatly reduces the queuing waiting time of the business handling of customer counters, and the pressure of teller business handling is also reduced. And the intelligent teller machine can accurately and effectively verify and prompt an interface in the process of interacting with the client, thereby greatly shortening the service handling time of the client and improving the satisfaction rate of the client. For example, in an ETC (Electronic Toll Collection) project, the intelligent teller machine can greatly reduce the time for a client to transact business and also reduce the pressure of a teller.
At present, some intelligent teller machines can provide users with business information input through forms, and perform business information verification through an information verification method of the forms. However, the interface frames of some intelligent teller machines do not support form operation, and only the service information can be collected through the interface components, so that the service information is not convenient to verify.
In order to solve the foregoing technical problem, an embodiment of the present application provides a method for processing user feedback information, where, under an interface framework that does not support a form, each input component is configured with a corresponding verification method in advance and is loaded into a preset container, and when service information input by one or some input components needs to be verified, an input component can be taken out from the preset container and the verification method configured in advance is executed, so as to implement verification of service data.
Specifically, business information input by a user through at least one input component in the interface is received; taking out an input assembly to be verified in the at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in the interface; and executing the verification method on the input component to be verified so as to verify the service information input by the input component to be verified.
The method for verifying interface elements provided by the embodiment of the application is applicable to electronic devices such as an intelligent teller machine 10 shown in fig. 1, where the intelligent teller machine 10 includes an interface 11 for a user to operate, and a processing device 12, where the interface 11 may receive service information input by a user through at least one input component in the interface and input the service information into the processing device 12, and the processing device 12 may take out an input component to be verified in the at least one input component from a first preset container and obtain a pre-configured verification method from the input component to be verified; the first preset container stores a plurality of components in an interface; and executing a verification method on the input component to be verified so as to verify the business information input by the input component to be verified.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a verification method for interface elements according to an embodiment of the present disclosure. The embodiment provides a method for verifying an interface element, the execution subject of which is an electronic device such as a smart teller machine, the method for verifying the interface element specifically comprises the following steps:
s201, receiving service information input by a user through at least one input component in the interface.
In this embodiment, when a user transacts business in the intelligent teller machine, the business information may be input through an input component on the interface of the intelligent teller machine, where the input component includes, but is not limited to, a text input box, a pull-down selection box, a single/check box, and the like, and the business information may include, but is not limited to, personal information such as name, gender, birthday, certificate number, and the like, or other business information input by the user.
S202, taking out an input assembly to be verified from the at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; and a plurality of components in the interface are stored in the first preset container.
In this embodiment, before receiving the service information input by the user through at least one input component in the interface, a container needs to be created in advance, the container is a carrier for storing the components, and the input component can be added into the container after the verification scheme of each input component in the page is configured in advance, as shown in fig. 3, the specific process is as follows:
s301, creating the first preset container, and configuring the attribute of the first preset container;
s302, configuring corresponding verification methods for all input components in the interface respectively;
s303, storing each input assembly in the first preset container.
In this embodiment, first, a first preset container is created, and its attributes are configured, specifically, the following object-defined code descriptions are used to implement the following: var object { }; namely, the input component is stored and taken out in an object mode, and the name of the first preset container, the rule for storing and taking out the component, the application description and other attributes can be configured in the code. In addition, the components can be stored and taken out in an array mode, and the details are not repeated here.
In addition, each input component can be configured, the input component can be defined by using the fields of the business transaction elements, and a verification method corresponding to the input component is also needed to be configured, so as to verify the business information input by the input component, including but not limited to at least one of the following: verifying the validity, verifying the data type and verifying according to the service rule. In addition, a condition of verification failure can be configured and a failure reason can be returned, and other common methods such as a value setting method, a value taking method, a method for setting the component to be read-only, a method for setting the component to be editable and the like can also be configured. Optionally, a certain input component may be used as a common component, and all interfaces may be multiplexed.
After the configuration of the first preset container and the input component is completed, the input component may be added to the first preset container, and optionally, an index of each input component may be further configured to take out the input component from the first preset container.
On the basis of the above embodiment, after the user completes the input of the business information through one or some input components, the intelligent teller machine needs to verify one or some business information input by at least one input component used by the user, take the corresponding input component as the input component to be verified, take out the input component to be verified from the first preset container, and further obtain the pre-configured verification method from the input component to be verified.
S203, the verification method is executed on the input component to be verified, so that the business information input by the input component to be verified is verified.
In this embodiment, after acquiring a preconfigured verification method from the input component to be verified, the verification method may be executed on the input component to be verified, so as to verify the service information input by the input component to be verified, where the verification method includes, but is not limited to, at least one of the following: validity verification, data type verification and verification according to the service rule, and the specific verification process is not described herein again.
In the method for verifying the interface element provided by the embodiment, the service information input by a user through at least one input component in the interface is received; taking out an input assembly to be verified from at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in an interface; and executing a verification method on the input component to be verified so as to verify the business information input by the input component to be verified. In this embodiment, under an interface framework that does not support a form, a corresponding verification method is configured for each input component in advance, and the verification method is loaded into a first preset container, so that when service information input by a certain or some input components needs to be verified, the input components can be taken out of the first preset container, and the verification method configured in advance is executed, thereby realizing verification of service data.
On the basis of any of the above embodiments, the taking out the input component to be verified from the at least one input component in the first preset container in S201 may specifically include:
and taking out the input assembly to be verified from the first preset container according to the preset index information of the input assembly to be verified.
In this embodiment, considering that there may be many input elements in the interface and the input elements are stored in the first preset container, in order to facilitate fast taking out the input elements to be verified from the first preset container, in this embodiment, when the input elements are stored in the first preset container in S303, the preset index information of the input elements may be configured, so that the input elements to be verified may be fast taken out according to the preset index information, thereby improving the verification efficiency.
On the basis of the above embodiment, in order to further improve the verification efficiency, batch verification may be performed in this embodiment, that is, verification may be performed on a plurality of input components to be verified at the same time.
In an alternative embodiment, as shown in fig. 4, the taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified includes:
s401, acquiring preset index information of a plurality of input components to be verified from at least one second preset container, wherein the preset index information of the plurality of input components to be verified in the same batch is stored in each second preset container;
s402, according to the preset index information of the plurality of input components to be verified in the same batch, taking the plurality of input components to be verified corresponding to the preset index information out of the first preset container.
In this embodiment, when the input components are stored in the first preset container, a plurality of input components to be verified in the same batch can be determined, and then the preset index information of the plurality of input components to be verified in the same batch is stored in a second preset container, for example, if the input components 1, 2, and 3 are required to be verified simultaneously as a batch, the preset index information of the input components 1, 2, and 3 is stored in the second preset container a, if the input components 4, 5, and 6 are required to be verified simultaneously as a batch, the preset index information of the input components 4, 5, and 6 is stored in the second preset container B, and so on.
On this basis, when the input component to be verified is taken out from the first preset container, the preset index information of a plurality of input components to be verified in the same batch can be sequentially obtained from the second preset container, then the corresponding plurality of input components to be verified are taken out from one preset container according to the preset index information, and after the verification method of the plurality of input components to be verified in one batch is executed, the preset index information of the plurality of input components to be verified in the same batch is obtained from the next second preset container, and so on.
In another alternative embodiment, as shown in fig. 5, the taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified may include:
s501, traversing all input assemblies in the first preset container, and determining at least one input assembly to be verified;
s502, obtaining preset index information of the input assembly to be verified, and taking out the input assembly to be verified from the first preset container according to the preset index information of the input assembly to be verified.
In this embodiment, all input assemblies to be verified can be determined by traversing all input assemblies in the first preset container, and all input assemblies to be verified can be taken out at one time based on the preset index information of the input assemblies to be verified, so that the verification methods of the input assemblies to be verified can be executed in batch, and the verification efficiency is improved.
On the basis of any of the above embodiments, the above verification method for the interface element may be further extended to perform other methods on the input component or other components in the interface, that is, after S301, in addition to configuring a corresponding verification method for each input component in the interface, a target method may be configured for each input component and/or other components in the interface and added to the first preset container, where the target method includes, but is not limited to, at least one of the following: setting value method, setting the module as read-only method, and setting the module as editable method.
Further, as shown in fig. 6, after receiving the service information input by the user through the at least one input component in the interface in S201, the method may further include:
s601, taking out a target component of a target method to be executed from the first preset container, and acquiring a preset target method from the target component;
s602, executing the target method on the target component, wherein the target method comprises at least one of the following: setting a value, taking a value, setting a target component as a read-only method, and setting the target component as an editable method.
In this embodiment, if it is required to execute the target method on one or some target components, the target components may be taken out from the first preset container, the pre-configured target method may be obtained from the target components, and the target method may be executed on the target components. The process of taking out the target component from the first preset container is the same as the above embodiment, that is, the target component may also be taken out from the first preset container through the preset index information of the target component, and similarly, batch processing may also be performed as in S401-S402 or S501-S502, which is not described herein again.
Fig. 7 is a structural diagram of a verification device for interface elements according to an embodiment of the present application. The interface element verification apparatus provided in this embodiment may execute the processing flow provided in the interface element verification method embodiment, as shown in fig. 7, the interface element verification apparatus 700 includes an input module 701, an obtaining module 702, and an executing module 703.
An input module 701, configured to receive service information input by a user through at least one input component in an interface;
an obtaining module 702, configured to take out an input component to be verified from the at least one input component from a first preset container, and obtain a pre-configured verification method from the input component to be verified; the first preset container stores a plurality of components in the interface;
an executing module 703 is configured to execute the verification method on the input component to be verified, so as to verify the service information input by the input component to be verified.
In one or more embodiments of the present application, the obtaining module 702, when taking out an input component to be verified from the first preset container, is configured to:
and taking out the input assembly to be verified from the first preset container according to the preset index information of the input assembly to be verified.
In one or more embodiments of the present application, when the obtaining module 702 takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, the obtaining module is configured to:
acquiring preset index information of a plurality of input components to be verified from at least one second preset container, wherein the preset index information of the plurality of input components to be verified in the same batch of verification is stored in each second preset container;
and taking out the plurality of input assemblies to be verified corresponding to the preset index information from the first preset container according to the preset index information of the plurality of input assemblies to be verified in the same batch.
In one or more embodiments of the present application, when the obtaining module 702 takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, the obtaining module is configured to:
traversing all input assemblies in the first preset container, and determining at least one input assembly to be verified;
and acquiring preset index information of the input component to be verified, and taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified.
In one or more embodiments of the present application, when verifying the service information input by the input component to be verified, the executing module 703 is configured to:
performing at least one of the following verification on the service information input by the input component to be verified:
verifying the validity, verifying the data type and verifying according to the service rule.
In one or more embodiments of the present application, the obtaining module 702 is further configured to take out a target component of a target method to be executed from the first preset container, and obtain a preconfigured target method from the target component;
the execution module 703 is further configured to execute the target method on the target component, wherein the target method comprises at least one of: setting a value, taking a value, setting a target component as a read-only method, and setting the target component as an editable method.
In one or more embodiments of the present application, the apparatus further comprises: a configuration module 704, configured to create the first preset container and configure an attribute of the first preset container before receiving service information input by a user through at least one input component in an interface;
configuring corresponding verification methods for all input components in the interface respectively;
and storing each input assembly in the first preset container.
In one or more embodiments of the present application, before obtaining the preset index information of the plurality of input components to be verified from the at least one second preset container, the configuration module 704 is further configured to:
determining a plurality of input components to be verified which are verified in the same batch;
and storing the preset index information of a plurality of input assemblies to be verified in the same batch into one second preset container.
The verification device for interface elements provided in this embodiment may execute the processing procedure provided in the foregoing method embodiment, and the principle and technical effect thereof are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device provided in the embodiment of the present application may execute the processing flow provided in the embodiment of the interface element verification method, as shown in fig. 8, the electronic device 80 includes a memory 81, a processor 82, and a computer program; wherein the computer program is stored in the memory 81 and is configured to execute the interface element verification method described in the above embodiments by the processor 82. Furthermore, the electronic device 80 may also have a communication interface 83 for transmitting control commands and/or data.
The electronic device in the embodiment shown in fig. 8 may be used to execute the technical solution in the embodiment of the interface element verification method, and the implementation principle and the technical effect are similar, which are not described herein again.
The processor 82 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods, among others. The memory 81 may be a non-transitory computer readable storage medium.
In addition, the present embodiment also provides a computer-readable storage medium on which a computer program is stored, the computer program being executed by a processor to implement the method of the above embodiment.
In addition, the present embodiment also provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the method of the above embodiment.
In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
The above embodiments are only used for illustrating the technical solutions of the embodiments of the present application, and are not limited thereto; although the embodiments of the present application have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A method for verifying an interface element, comprising:
receiving business information input by a user through at least one input component in the interface;
taking out an input assembly to be verified in the at least one input assembly from a first preset container, and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in the interface;
and executing the verification method on the input component to be verified so as to verify the service information input by the input component to be verified.
2. The method of claim 1, wherein said removing the input component to be authenticated from the at least one input component from the first predetermined container comprises:
and taking out the input assembly to be verified from the first preset container according to the preset index information of the input assembly to be verified.
3. The method according to claim 2, wherein the extracting the input component to be verified from the first preset container according to the preset index information of the input component to be verified comprises:
acquiring preset index information of a plurality of input components to be verified from at least one second preset container, wherein the preset index information of the plurality of input components to be verified in the same batch of verification is stored in each second preset container;
and taking out the plurality of input assemblies to be verified corresponding to the preset index information from the first preset container according to the preset index information of the plurality of input assemblies to be verified in the same batch.
4. The method according to claim 2, wherein the extracting the input component to be verified from the first preset container according to the preset index information of the input component to be verified comprises:
traversing all input assemblies in the first preset container, and determining at least one input assembly to be verified;
and acquiring preset index information of the input component to be verified, and taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified.
5. The method according to any one of claims 1 to 4, wherein the verifying the service information input by the input component to be verified comprises:
performing at least one of the following verification on the service information input by the input component to be verified:
verifying the validity, verifying the data type and verifying according to the service rule.
6. The method according to any one of claims 1-4, wherein after receiving the service information input by the user through at least one input component in the interface, the method further comprises:
taking out a target assembly of a target method to be executed from the first preset container, and acquiring a preset target method from the target assembly;
performing the target method on the target component, wherein the target method comprises at least one of: setting a value, taking a value, setting a target component as a read-only method, and setting the target component as an editable method.
7. The method according to any one of claims 1-4, wherein before receiving the service information input by the user through at least one input component in the interface, the method further comprises:
creating the first preset container and configuring the attribute of the first preset container;
configuring corresponding verification methods for all input components in the interface respectively;
and storing each input assembly in the first preset container.
8. The method according to claim 3, wherein before obtaining the preset index information of the plurality of input components to be verified from the at least one second preset container, the method further comprises:
determining a plurality of input components to be verified which are verified in the same batch;
and storing the preset index information of a plurality of input assemblies to be verified in the same batch into one second preset container.
9. An interface element verification apparatus, comprising:
the input module is used for receiving the business information input by a user through at least one input component in the interface;
the acquisition module is used for taking out an input assembly to be verified in the at least one input assembly from a first preset container and acquiring a preset verification method from the input assembly to be verified; the first preset container stores a plurality of components in the interface;
and the execution module is used for executing the verification method on the input component to be verified so as to verify the service information input by the input component to be verified.
10. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-8.
11. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, perform the method of any one of claims 1-8.
12. A computer program product, comprising a computer program which, when executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202111461389.6A 2021-12-02 2021-12-02 Interface element verification method, device, storage medium and program product Pending CN114138790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111461389.6A CN114138790A (en) 2021-12-02 2021-12-02 Interface element verification method, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111461389.6A CN114138790A (en) 2021-12-02 2021-12-02 Interface element verification method, device, storage medium and program product

Publications (1)

Publication Number Publication Date
CN114138790A true CN114138790A (en) 2022-03-04

Family

ID=80387277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111461389.6A Pending CN114138790A (en) 2021-12-02 2021-12-02 Interface element verification method, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN114138790A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231232A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 A kind of auth method and device
CN108269187A (en) * 2018-01-29 2018-07-10 深圳壹账通智能科技有限公司 Verification method, device, equipment and the computer storage media of financial business
US20180241571A1 (en) * 2016-01-08 2018-08-23 Tencent Technology (Shenzhen) Company Limited Service processing method, device and system
CN112214402A (en) * 2020-09-23 2021-01-12 深圳大学 Code verification algorithm selection method and device and storage medium
CN113672709A (en) * 2021-08-03 2021-11-19 支付宝(杭州)信息技术有限公司 Data processing method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180241571A1 (en) * 2016-01-08 2018-08-23 Tencent Technology (Shenzhen) Company Limited Service processing method, device and system
CN107231232A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 A kind of auth method and device
CN108269187A (en) * 2018-01-29 2018-07-10 深圳壹账通智能科技有限公司 Verification method, device, equipment and the computer storage media of financial business
CN112214402A (en) * 2020-09-23 2021-01-12 深圳大学 Code verification algorithm selection method and device and storage medium
CN113672709A (en) * 2021-08-03 2021-11-19 支付宝(杭州)信息技术有限公司 Data processing method, device and equipment

Similar Documents

Publication Publication Date Title
US11442939B2 (en) Configurable and incremental database migration framework for heterogeneous databases
CN107464151B (en) Order data processing method and device for high-concurrency service
CN103150837A (en) System and method for achieving cardless withdrawal on automatic teller machine (ATM)
US10511453B2 (en) Information processing system and charge calculation apparatus
CN110162516A (en) A kind of method and system that the data based on mass data processing are administered
CN106815148A (en) A kind of transaction test method and device
CN106096926B (en) Event processing method, device, electronic device and storage medium
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN112631879A (en) Data acquisition method and device, computer readable medium and electronic equipment
US9934257B2 (en) System and method for recursive metadata layers on big data sets
CN114138790A (en) Interface element verification method, device, storage medium and program product
CN116993523A (en) Configurable account checking method, device, equipment and storage medium
CN114895879B (en) Management system design scheme determining method, device, equipment and storage medium
CN109358813B (en) Capacity expansion method and device for distributed storage system
US10997539B2 (en) Supplier analysis and verification system and method
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
US10152318B2 (en) Computer system and method for executing applications with new data structures
CN109582450B (en) Application program management method, device, medium and electronic equipment
CN114239296A (en) Data processing method and device and electronic equipment
CN113127099A (en) Server configuration method, device, equipment and storage medium
CN104992093A (en) Information management method and apparatus
CN108961045A (en) A kind of method, system, audit terminal and the transaction terminal of page reduction
CN113792267B (en) Method and device for checking digital copyright of card surface picture of payment mechanism
CN115578081A (en) Code flow visualization display method and device, electronic equipment and storage medium
CN109584087B (en) Information processing method, device and storage medium

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