CN115878457A - Test data verification method and device, electronic equipment and storage medium - Google Patents

Test data verification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115878457A
CN115878457A CN202211429733.8A CN202211429733A CN115878457A CN 115878457 A CN115878457 A CN 115878457A CN 202211429733 A CN202211429733 A CN 202211429733A CN 115878457 A CN115878457 A CN 115878457A
Authority
CN
China
Prior art keywords
test data
verification
field
data verification
file
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
CN202211429733.8A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211429733.8A priority Critical patent/CN115878457A/en
Publication of CN115878457A publication Critical patent/CN115878457A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a test data verification method, a test data verification device, electronic equipment and a storage medium; the data verification page can be displayed, the data verification page comprises a verification setting control and a test data file uploading control, a data verification condition is determined in response to field setting operation aiming at the verification setting control, the data verification condition comprises a verification field corresponding to the field setting operation, a test data file is obtained in response to file uploading operation aiming at the test data file uploading control, test data in the test data file are verified based on the data verification condition, a test data verification result is generated, and the test data verification result is displayed in the data verification page; the embodiment of the invention can reduce the dependence on manpower, save manpower resources, improve the data verification efficiency on the basis of ensuring the accuracy of the data verification result and facilitate the data verification personnel to check the data verification result.

Description

Test data verification method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of testing, in particular to a test data verification method and device, electronic equipment and a storage medium.
Background
With the rapid development of current technologies, people can generate a large amount of data in the process of using various applications. In order to ensure that the application program can normally run under various types of data and avoid the generation of error data, a test of data verification needs to be performed in the test process. Data verification in the testing process directly relates to whether the testing conclusion is credible or not and whether the testing data accords with the actual application scene or not.
Currently, the main method adopted in the test data verification is to manually compare each field item by item to determine the data verification result of each field. However, by adopting the checking scheme, a large amount of manpower is consumed, the efficiency is low, careless mistakes are easy to occur, the troubleshooting is not convenient when the mistakes occur, and the testing progress of the application program is seriously influenced. Therefore, the scheme has great dependence on manpower resources, is slow in verification speed and is not beneficial to the efficiency of testing data verification.
Disclosure of Invention
Embodiments of the present invention provide a test data verification method, an apparatus, an electronic device, and a storage medium, which can reduce dependence on labor, save human resources, improve data verification efficiency on the basis of ensuring accuracy of a data verification result, and facilitate data verification personnel to check the data verification result.
The embodiment of the invention provides a test data verification method, which comprises the following steps:
displaying a data verification page, wherein the data verification page comprises a verification setting control and a test data file uploading control;
responding to field setting operation aiming at the checking setting control, and determining a data checking condition, wherein the data checking condition comprises a checking field corresponding to the field setting operation;
responding to the file uploading operation aiming at the test data file uploading control, and acquiring a test data file;
based on the data verification condition, verifying the test data in the test data file to generate a test data verification result;
and displaying the test data verification result in the data verification page.
Correspondingly, an embodiment of the present invention provides a device for verifying test data, including:
the page display unit is used for displaying a data verification page, and the data verification page comprises a verification setting control and a test data file uploading control;
a field setting unit, configured to determine a data verification condition in response to a field setting operation for the verification setting control, where the data verification condition includes a verification field corresponding to the field setting operation;
the file acquisition unit is used for responding to the file uploading operation aiming at the test data file uploading control and acquiring the test data file;
the result generating unit is used for verifying the test data in the test data file based on the data verification condition to generate a test data verification result;
and the result display unit is used for displaying the test data verification result in the data verification page.
Correspondingly, the embodiment of the invention also provides the electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform any of the steps of the test data verification method provided by the embodiments of the present invention.
Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, where multiple instructions are stored, and the instructions are suitable for being loaded by a processor to perform any of the steps in the test data verification method provided in the embodiment of the present invention.
In addition, the embodiment of the present invention further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the computer program or instructions implement the steps in any one of the test data verification methods provided by the embodiment of the present invention.
By adopting the scheme of the embodiment of the invention, a data verification page can be displayed, wherein the data verification page comprises a verification setting control and a test data file uploading control, a data verification condition is determined in response to a field setting operation aiming at the verification setting control, the data verification condition comprises a verification field corresponding to the field setting operation, a test data file is obtained in response to a file uploading operation aiming at the test data file uploading control, test data in the test data file are verified based on the data verification condition, a test data verification result is generated, and the test data verification result is displayed in the data verification page; in the embodiment of the invention, the control related to the setting of the data verification condition is provided for the user through the data verification page, and the test data verification result is displayed in the data verification page immediately after the verification is finished, so that the dependence on manpower can be reduced, the manpower resource is saved, the data verification efficiency is improved on the basis of ensuring the accuracy of the data verification result, and the data verification result can be conveniently checked by data verification personnel.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a test data verification method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a test data verification method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a data verification interface provided by an embodiment of the present invention;
FIG. 4 is another schematic diagram of a data verification interface provided by an embodiment of the present invention;
FIG. 5 is a further schematic diagram of a data verification interface provided by embodiments of the present invention;
FIG. 6 is a schematic structural diagram of a test data verification apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a test data verification apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a test data verification method and device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the present invention provides a test data verification method suitable for a test data verification apparatus, and the test data verification apparatus may be integrated in an electronic device.
The electronic device may be a terminal or other devices, including but not limited to a mobile terminal and a fixed terminal, for example, the mobile terminal includes but is not limited to a smart phone, a smart watch, a tablet computer, a notebook computer, a smart car, and the like, wherein the fixed terminal includes but is not limited to a desktop computer, a smart television, and the like.
The electronic device may also be a device such as a server, and the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform, but is not limited thereto.
The test data verification method of the embodiment of the invention can be realized by a server, and can also be realized by a terminal and the server together.
The method is described below by taking an example in which the terminal and the server implement the test data verification method together.
As shown in fig. 1, the test data verification system provided by the embodiment of the present invention includes a terminal 10, a server 20, and the like; the terminal 10 and the server 20 are connected via a network, such as a wired or wireless network connection.
The terminal 10 may be configured to display a data verification page, where the data verification page includes a verification setting control and a test data file uploading control, determine a data verification condition in response to a field setting operation for the verification setting control, where the data verification condition includes a verification field corresponding to the field setting operation, and obtain a test data file in response to a file uploading operation for the test data file uploading control.
The terminal 10 may send the test data file to the server 20, and the server 20 may be configured to verify the test data in the test data file based on the data verification condition, and generate a test data verification result.
The server 20 may transmit the test data verification result to the terminal 10, and the terminal 10 may display the test data verification result in the data verification page.
It is understood that, in some embodiments, the step of verifying the test data performed by the server 20 may also be performed by the terminal 10, which is not limited by the embodiment of the present invention.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment of the present invention will be described from the perspective of a test data verification apparatus, which may be specifically integrated in a server or a terminal.
As shown in fig. 2, a specific flow of the test data verification method of this embodiment may be as follows:
201. and displaying a data verification page, wherein the data verification page comprises a verification setting control and a test data file uploading control.
The data verification page is a page on which a data verifier performs test data verification, and specifically, may be a human-machine interaction page (GUI) as shown in fig. 3. The data verification page can comprise a plurality of controls related to data verification, such as a verification setting control and a test data file uploading control; and may further include related information of data verification, such as information of test data files uploaded by data verification personnel, data verification rule information set by data verification personnel, and the like.
Specifically, the data checking rule information may include, but is not limited to, a table name, a field name, an original value of a field, and the like, which are checked.
Optionally, the check setting control may be used for a data checking person to manage the field during data checking. For example, a data verifier may add a field to be verified by a trigger operation on the verification setting control, or set a field to be verified, and so on.
For example, the checkset control may be a control named "please select field name" as shown in FIG. 3.
Optionally, the test data file uploading control is used for uploading a test data file to be tested by a data tester. For example, the test data file upload control may be a control named "import data" as shown in FIG. 4.
Specifically, the data verifier can display a file uploading page by triggering the test data file uploading control, and the file uploading page can include file identifiers corresponding to a plurality of test data files, so that the data verifier can select specific test data files.
The file identifier may be a file name, a file type, or the like, and the embodiment of the present invention does not limit the actual file identifier.
202. And responding to the field setting operation aiming at the checking setting control, and determining a data checking condition, wherein the data checking condition comprises a checking field corresponding to the field setting operation.
Specifically, the field setting operation may be an individual trigger operation, for example, all the fields to be checked set for a certain marketing activity may be displayed on the data check page, and a delete control is correspondingly set behind each field as a check setting control. At this time, the field setting operation may be a triggering operation on the verification setting control, so that the field corresponding to the triggered verification setting control is not regarded as the field to be verified.
Alternatively, the field setting operation may be a continuous operation, for example, the field setting operation may be to select at least one field from the displayed at least one field name as a field to be checked after triggering a control named "please select field name" shown in fig. 3, and so on.
Optionally, the data verification condition may be obtained by analyzing based on an operation sequence of the control. For example, the data verification condition may be a code generated according to operations of deleting, adding, modifying fields, and the like of a data verifier, and the like.
For example, a data verifier may add a data verification condition (i.e., a data verification rule) through a "+ add rule" control as shown in FIG. 3, which may include, but is not limited to, a table name, a field name, an original value of a field.
In some optional embodiments, the verification setting control may include a field setting sub-control and a data table setting control, and the step "determining a data verification condition in response to a field setting operation for the verification setting control" includes:
determining table verification setting information in response to a table attribute setting operation for the data table setting control;
responding to field information setting operation of a field setting sub-control related to the data table setting control, and determining field checking setting information, wherein the field checking setting information comprises a checking field;
and generating a data verification condition based on the incidence relation between the data table setting control and the field setting sub-control, the table verification setting information and the field verification setting information.
That is, when the data verification condition is set, the attribute and the field of the data table may be set separately.
For example, the table attribute setting operation may be setting a name of a data table, a version number of the data table, and the like.
As another example, the field information setting operation may be setting an original value of a field, a mapped value, a field name, and the like.
Optionally, the data verification condition may also be determined by uploading a specific data verification file, for example, as shown in fig. 4, a data verifier may set a comparison file for a specific marketing campaign, where the comparison file includes information related to the data verification condition. After the comparison file is imported, the comparison file can be compared with the test data file.
For example, the file name of the alignment file may be the "alignment-offer configuration template (ACT-35443, 35445, 35447). The comparison file may be written with specific check fields and field values, etc.
In some optional embodiments, before data verification, a data verification condition may be displayed, so that a user may determine whether an uploaded test data file and a set data verification condition are correct, that is, after "obtaining a test data file in response to a file upload operation for the test data file upload control", the test data verification method provided in the embodiment of the present invention may further include:
analyzing the test data file to obtain data table information corresponding to the test data file;
determining a data verification condition corresponding to the test data file based on the data table information and the table verification setting information;
and displaying the data verification condition on the data verification page.
That is, after the data verification user uploads the test data file, the data verification condition corresponding to the test data file may be determined according to the data table information (for example, the name of the data table, the version number of the data table, and the like) of the test data file.
Further, the data verification condition may be displayed on a data verification page so that a data verification person checks whether the data verification condition set for the test data file is incorrect.
Optionally, the check setting control may include a field name setting control and a field attribute value setting control, and the step "determining a data check condition in response to the field setting operation for the check setting control" specifically may include:
responding to the name setting operation aiming at the field name setting control, and determining field name verification information;
determining field attribute value check information in response to an attribute value setting operation for the field attribute value setting control;
and generating a data verification condition based on the field name verification information and the field attribute value verification information.
The field name setting control is a control capable of setting a name of a data field to be verified, and the field attribute value setting control is a control capable of setting a field value of the data field to be verified when the field is set, for example, an original value, a mapping value, a field name, and the like of the field may be set by the field attribute value setting control.
For example, the original value may be set to "not involved", the mapped value may be set to "None", and the like. Specifically, the setting of the field may be set by a data verifier according to an actual requirement, which is not limited in the embodiment of the present invention.
203. And responding to the file uploading operation aiming at the test data file uploading control to obtain the test data file.
The file uploading operation may be a single trigger operation, or may be composed of consecutive N operations. For example, the file upload operation may be dragging a certain file into an area of the test data file upload control, or dragging a certain file into an area of the test data file upload control and then clicking a control for confirming upload, and the like.
It can be understood that, in an actual application process, in order to improve the efficiency of data verification, multiple files may be uploaded at one time, that is, the step "obtaining a test data file in response to a file upload operation for the test data file upload control" may specifically include:
responding to the trigger operation aiming at the test data file uploading control, and displaying a file uploading page, wherein the file uploading page comprises at least one file identifier of an uploaded file;
and responding to the selection operation aiming at the uploaded files, and acquiring at least one test data file.
Correspondingly, in the case that there are multiple test data files, the step "verify the test data in the test data file based on the data verification condition to obtain a test data verification result" may specifically include:
and respectively verifying the test data in each test data file based on the data verification conditions to obtain test data verification results corresponding to each test data file.
That is, the same or different data verification conditions may be set for different test data files. When the test data file is verified, the test data in the test data file can be verified respectively according to the data verification conditions corresponding to the test data file.
In some optional embodiments, the test data verification result corresponding to each test data file includes the verification field corresponding to each test data file and a field verification result corresponding to each verification field, and the step of displaying the test data verification result in the data verification page may specifically include:
determining a result display area corresponding to each test data file in the data verification page;
and aiming at each test data file, displaying each check field corresponding to each test data file and the field check result corresponding to each check field in a result display area corresponding to each test data file.
For example, as shown in fig. 5, the data verification page including the result display area may include different verification fields such as "activity number", "activity name", "coupon name" and the like in fig. 5, and the "comparison result" is a field verification result corresponding to the different verification fields.
204. And verifying the test data in the test data file based on the data verification condition to generate a test data verification result.
The test data verification result may include the number of fields that are compared together, the number of fields that are consistent in data, and so on.
205. And displaying the test data verification result in the data verification page.
For example, the test data verification results may be displayed as shown in FIG. 5.
In some optional examples, before the step "displaying the test data verification result in the data verification page", the test data verification method provided in the embodiment of the present invention may further include:
and counting the test data verification result according to the data verification condition to obtain verification statistical data corresponding to the test data verification result.
Correspondingly, the step of displaying the test data verification result in the data verification page may specifically include:
and displaying the test data verification result and the verification statistical data in the data verification page.
As can be seen from the above, in the embodiment of the present invention, a data verification page may be displayed, where the data verification page includes a verification setting control and a test data file uploading control, a data verification condition is determined in response to a field setting operation for the verification setting control, the data verification condition includes a verification field corresponding to the field setting operation, a test data file is obtained in response to a file uploading operation for the test data file uploading control, test data in the test data file is verified based on the data verification condition, a test data verification result is generated, and the test data verification result is displayed in the data verification page; in the embodiment of the invention, the data verification page provides a control for setting the data verification condition for the user, and the test data verification result is displayed in the data verification page immediately after the verification is finished, so that the dependence on manpower can be reduced, the manpower resource is saved, the data verification efficiency is improved on the basis of ensuring the accuracy of the data verification result, and the data verification personnel can conveniently check the data verification result.
In order to better implement the method, correspondingly, the embodiment of the invention also provides a test data verification device.
Referring to fig. 6, the apparatus may include:
the page display unit 601 may be configured to display a data verification page, where the data verification page may include a verification setting control and a test data file uploading control;
a field setting unit 602, configured to determine a data verification condition in response to a field setting operation for the verification setting control, where the data verification condition may include a verification field corresponding to the field setting operation;
a file obtaining unit 603, configured to obtain a test data file in response to a file uploading operation for the test data file uploading control;
a result generating unit 604, configured to verify the test data in the test data file based on the data verification condition, and generate a test data verification result;
the result display unit 605 may be configured to display the test data verification result in the data verification page.
In some optional embodiments, the check setting control may include a field setting sub-control and a data table setting control, and the field setting unit 602 may be configured to determine table check setting information in response to a table attribute setting operation for the data table setting control;
in response to a field information setting operation of a field setting sub-control associated with the data table setting control, determining field checking setting information, wherein the field checking setting information can comprise a checking field;
and generating a data verification condition based on the incidence relation between the data table setting control and the field setting sub-control, the table verification setting information and the field verification setting information.
In some optional embodiments, as shown in fig. 7, the test data verification apparatus provided in the embodiments of the present invention may further include a condition display unit 606, which may be configured to analyze the test data file to obtain data table information corresponding to the test data file;
determining a data verification condition corresponding to the test data file based on the data table information and the table verification setting information;
and displaying the data verification condition on the data verification page.
In some optional embodiments, the check setting control may include a field name setting control and a field attribute value setting control, and the field setting unit 602 may be configured to determine field name check information in response to a name setting operation for the field name setting control;
determining field attribute value check information in response to an attribute value setting operation for the field attribute value setting control;
and generating a data verification condition based on the field name verification information and the field attribute value verification information.
In some optional embodiments, the test data verification apparatus provided in the embodiment of the present invention may further include a data statistics unit 607, which is configured to perform statistics on the test data verification result according to the data verification condition to obtain verification statistical data corresponding to the test data verification result;
the result display unit 605 may be configured to display the test data verification result and the verification statistical data in the data verification page.
In some optional embodiments, the field setting unit 602 may be configured to display a file upload page in response to a triggering operation for the test data file upload control, where the file upload page may include a file identifier of at least one uploadable file;
responding to the selection operation aiming at the uploaded files, and acquiring at least one test data file;
the result generating unit 604 may be configured to verify the test data in each test data file based on the data verification condition, so as to obtain a test data verification result corresponding to each test data file.
In some optional embodiments, the test data verification result corresponding to each test data file may include the verification field corresponding to each test data file and a field verification result corresponding to each verification field;
the result display unit 605 may be configured to determine a result display area corresponding to each test data file in the data verification page;
and aiming at each test data file, displaying each check field corresponding to each test data file and the field check result corresponding to each check field in a result display area corresponding to each test data file.
From the above, by using a test data verification apparatus, a data verification page may be displayed, where the data verification page includes a verification setting control and a test data file uploading control, a data verification condition is determined in response to a field setting operation for the verification setting control, the data verification condition includes a verification field corresponding to the field setting operation, a test data file is obtained in response to a file uploading operation for the test data file uploading control, test data in the test data file is verified based on the data verification condition, a test data verification result is generated, and the test data verification result is displayed in the data verification page; in the embodiment of the invention, the control related to the setting of the data verification condition is provided for the user through the data verification page, and the test data verification result is displayed in the data verification page immediately after the verification is finished, so that the dependence on manpower can be reduced, the manpower resource is saved, the data verification efficiency is improved on the basis of ensuring the accuracy of the data verification result, and the data verification result can be conveniently checked by data verification personnel.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 8, a schematic structural diagram of the electronic device according to the embodiment of the present invention is shown, specifically:
the electronic device may include Radio Frequency (RF) circuitry 801, memory 802 including one or more computer-readable storage media, input unit 803, display unit 804, sensor 805, audio circuitry 806, wireless Fidelity (WiFi) module 807, processor 808 including one or more processing cores, and power supply 809. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Wherein:
the RF circuit 801 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 808; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 801 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 801 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short Message Service (SMS), and the like.
The memory 802 may be used to store software programs and modules, and the processor 808 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 802 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 808 and the input unit 803 access to the memory 802.
The input unit 803 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 803 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (such as operations by the user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 808, and can receive and execute commands sent by the processor 808. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 803 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 804 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 804 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 808 to determine the type of touch event, and the processor 808 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 8 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 805, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
Audio circuitry 806, a speaker, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 806 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into an audio signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 806 and converted into audio data, which is then processed by the audio data output processor 808, and then sent to, for example, another electronic device via the RF circuit 801, or the audio data is output to the memory 802 for further processing. The audio circuit 806 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
WiFi belongs to short-distance wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 807, which provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 807, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 808 is a control center of the electronic device, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 802 and calling data stored in the memory 802. Optionally, processor 808 may include one or more processing cores; preferably, the processor 808 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 808.
The electronic device also includes a power supply 809 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 808 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 809 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 808 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 802 according to the following instructions, and the processor 808 runs the application programs stored in the memory 802, so as to implement various functions as follows:
displaying a data verification page, wherein the data verification page comprises a verification setting control and a test data file uploading control;
responding to field setting operation aiming at the checking setting control, and determining a data checking condition, wherein the data checking condition comprises a checking field corresponding to the field setting operation;
responding to the file uploading operation aiming at the test data file uploading control, and acquiring a test data file;
based on the data verification condition, verifying the test data in the test data file to generate a test data verification result;
and displaying the test data verification result in the data verification page.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any one of the test data verification methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
displaying a data verification page, wherein the data verification page comprises a verification setting control and a test data file uploading control;
responding to field setting operation aiming at the checking setting control, and determining a data checking condition, wherein the data checking condition comprises a checking field corresponding to the field setting operation;
responding to the file uploading operation aiming at the test data file uploading control, and acquiring a test data file;
based on the data verification condition, verifying the test data in the test data file to generate a test data verification result;
and displaying the test data verification result in the data verification page.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any test data verification method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any test data verification method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
According to an aspect of the application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in the various alternative implementations in the above embodiments.
The test data verification method, the test data verification device, the electronic device and the storage medium provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A test data verification method is characterized by comprising the following steps:
displaying a data verification page, wherein the data verification page comprises a verification setting control and a test data file uploading control;
responding to field setting operation aiming at the checking setting control, and determining a data checking condition, wherein the data checking condition comprises a checking field corresponding to the field setting operation;
responding to the file uploading operation aiming at the test data file uploading control, and acquiring a test data file;
based on the data verification condition, verifying the test data in the test data file to generate a test data verification result;
and displaying the test data verification result in the data verification page.
2. The method of claim 1, wherein the verification setting control comprises a field setting sub-control and a data table setting control, and the determining the data verification condition in response to the field setting operation for the verification setting control comprises:
determining table verification setting information in response to a table attribute setting operation for the data table setting control;
responding to field information setting operation of a field setting sub-control related to the data table setting control, and determining field checking setting information, wherein the field checking setting information comprises a checking field;
and generating a data verification condition based on the incidence relation between the data table setting control and the field setting sub-control, the table verification setting information and the field verification setting information.
3. The method of claim 2, wherein after the test data file is obtained in response to the file upload operation for the test data file upload control, the method further comprises:
analyzing the test data file to obtain data table information corresponding to the test data file;
determining a data verification condition corresponding to the test data file based on the data table information and the table verification setting information;
and displaying the data verification condition on the data verification page.
4. The test data verification method of claim 1, wherein the verification setting control includes a field name setting control and a field attribute value setting control, and the determining the data verification condition in response to the field setting operation for the verification setting control includes:
responding to the name setting operation aiming at the field name setting control, and determining field name verification information;
determining field attribute value check information in response to an attribute value setting operation for the field attribute value setting control;
and generating a data verification condition based on the field name verification information and the field attribute value verification information.
5. The method of claim 1, wherein prior to displaying the test data verification result in the data verification page, the method further comprises:
counting the test data verification result according to the data verification condition to obtain verification statistical data corresponding to the test data verification result;
the displaying the test data verification result in the data verification page includes:
and displaying the test data verification result and the verification statistical data in the data verification page.
6. The method of claim 1, wherein the obtaining a test data file in response to the file upload operation directed to the test data file upload control comprises:
responding to the trigger operation aiming at the test data file uploading control, and displaying a file uploading page, wherein the file uploading page comprises at least one file identifier of an uploaded file;
responding to the selection operation aiming at the uploaded files, and acquiring at least one test data file;
the verifying the test data in the test data file based on the data verifying condition to obtain a test data verifying result includes:
and respectively verifying the test data in each test data file based on the data verification conditions to obtain test data verification results corresponding to each test data file.
7. The method according to claim 6, wherein the test data verification result corresponding to each test data file includes the verification field corresponding to each test data file and a field verification result corresponding to each verification field;
the displaying the test data verification result in the data verification page includes:
determining a result display area corresponding to each test data file in the data verification page;
and aiming at each test data file, displaying each check field corresponding to each test data file and the field check result corresponding to each check field in a result display area corresponding to each test data file.
8. A test data verification apparatus, comprising:
the page display unit is used for displaying a data verification page, and the data verification page comprises a verification setting control and a test data file uploading control;
a field setting unit, configured to determine a data verification condition in response to a field setting operation for the verification setting control, where the data verification condition includes a verification field corresponding to the field setting operation;
the file acquisition unit is used for responding to the file uploading operation aiming at the test data file uploading control and acquiring the test data file;
the result generating unit is used for verifying the test data in the test data file based on the data verification condition to generate a test data verification result;
and the result display unit is used for displaying the test data verification result in the data verification page.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the steps of the test data verification method according to any one of claims 1 to 7.
10. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the test data verification method of any one of claims 1 to 7.
11. A computer program product comprising computer programs or instructions, characterized in that the computer programs or instructions, when executed by a processor, implement the steps of the test data verification method according to any one of claims 1 to 7.
CN202211429733.8A 2022-11-15 2022-11-15 Test data verification method and device, electronic equipment and storage medium Pending CN115878457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211429733.8A CN115878457A (en) 2022-11-15 2022-11-15 Test data verification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211429733.8A CN115878457A (en) 2022-11-15 2022-11-15 Test data verification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115878457A true CN115878457A (en) 2023-03-31

Family

ID=85759994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211429733.8A Pending CN115878457A (en) 2022-11-15 2022-11-15 Test data verification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115878457A (en)

Similar Documents

Publication Publication Date Title
CN108959000B (en) Server pressure testing method, system and terminal
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN104852885B (en) Method, device and system for verifying verification code
CN108039963B (en) Container configuration method and device and storage medium
CN103455330A (en) Application program management method, terminal, equipment and system
CN111078556B (en) Application testing method and device
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN112749074B (en) Test case recommending method and device
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN117435109A (en) Content display method and device and computer readable storage medium
CN108269223B (en) Webpage graph drawing method and terminal
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
CN113593602B (en) Audio processing method and device, electronic equipment and storage medium
CN108234275B (en) Method and device for releasing communication information
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN115018574A (en) Information display method and device, electronic equipment and storage medium
CN112667868B (en) Data detection method and device
CN115878457A (en) Test data verification method and device, electronic equipment and storage medium
CN114490307A (en) Unit testing method, device and storage medium
CN108616552B (en) Webpage access method, device and system
CN114189436B (en) Multi-cluster configuration deployment method and device, electronic equipment and storage medium
CN105656957B (en) Using the method, apparatus and system of interior downloading third-party application
CN108959073B (en) Method and device for testing algorithm library, storage medium and electronic equipment
CN107066116B (en) Character string generation method, character analysis method and device

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