CN110647452A - Test method, test device, computer equipment and storage medium - Google Patents

Test method, test device, computer equipment and storage medium Download PDF

Info

Publication number
CN110647452A
CN110647452A CN201910817518.7A CN201910817518A CN110647452A CN 110647452 A CN110647452 A CN 110647452A CN 201910817518 A CN201910817518 A CN 201910817518A CN 110647452 A CN110647452 A CN 110647452A
Authority
CN
China
Prior art keywords
field
code table
field information
information
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910817518.7A
Other languages
Chinese (zh)
Other versions
CN110647452B (en
Inventor
尤亮升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910817518.7A priority Critical patent/CN110647452B/en
Publication of CN110647452A publication Critical patent/CN110647452A/en
Application granted granted Critical
Publication of CN110647452B publication Critical patent/CN110647452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • 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/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a test method, a test device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining input field information, obtaining a field type corresponding to the input field information, searching a corresponding field code table according to the field type and the input field information, obtaining a field state corresponding to the input field information according to the field information in the field code table, synchronizing the input field information and the field state into the field code table, generating an updated field code table, obtaining a test data set according to the updated field code table, comparing the field information in the test data set with the field information in the updated field code table, and generating a test log. The computer equipment generates the updated field code table by synchronizing the input field information and the field state into the field code table, and the field code table is not required to be maintained and updated manually, so that the field code table is maintained and updated more conveniently, and the test efficiency is improved.

Description

Test method, test device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test method, an apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, most business tests can be realized by programs in computer equipment. In the process of testing the business, field information is often involved, and taking the loan business as an example, the field information involved in the loan business may include information such as name, age, salary, credit, and the like. The field information is key information in the service test process, and different results may be obtained by adopting different field information in the test of the same service. The service may correspond to a field code table, the field code table may store field information, and the field information in the field code table may be manually maintained.
However, the target test method has a problem of low test efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a testing method, an apparatus, a computer device and a storage medium, which can improve the testing efficiency.
A method of testing, the method comprising:
acquiring input field information and acquiring a field type corresponding to the input field information;
searching a corresponding field code table according to the field type and the input field information;
acquiring a field state corresponding to the input field information according to the field information in the field code table;
synchronizing the input field information and the field state to the field code table to generate an updated field code table;
and acquiring a test data set according to the updated field code table, and comparing the field information in the test data set with the field information in the updated field code table to generate a test log.
In one embodiment, the obtaining, according to the field information in the field code table, the field state corresponding to the input field information includes:
extracting field information from the field code table;
matching the extracted field information in the field code table with the input field information to obtain a matching result;
and obtaining a field state corresponding to the input field information according to the matching result.
In one embodiment, the method further comprises:
classifying the input field information according to the field state corresponding to the input field information to obtain each field information category;
respectively acquiring the priority corresponding to each field information category, and sequencing each field information category according to the priority to obtain the sequenced field information categories;
the synchronizing the input field information and the field state into the field code table includes:
and synchronizing the input field information and the field state into the field code table according to the sorted field information type.
In one embodiment, the obtaining a test data set according to the updated field code table, and comparing field information in the test data set with field information in the updated field code table to generate a test log includes:
when a test instruction is detected, extracting test field information from the test data set;
acquiring field information in the updated field code table;
and testing the field information in the updated field code table according to the test field information, and generating the test log.
In one embodiment, the test field information includes a test field name and a test field threshold; the field information in the updated field code table comprises field names and field thresholds;
the testing the field information in the updated field code table according to the test field information and generating the test log includes:
comparing the test field name to the field name and comparing the test field threshold to the field threshold;
and when the test field name is different from the field name or the test field threshold is different from the field threshold, carrying out exception marking on the field information in the updated field code table, and generating the test log.
In one embodiment, the method further comprises:
acquiring an abnormal positioning instruction;
extracting a field code table identifier in the abnormal positioning instruction, and searching a field code table corresponding to the field code table identifier;
acquiring a test log corresponding to the field code table;
and extracting field information containing the abnormal mark in the test log.
A test apparatus, the apparatus comprising:
the field information acquisition module is used for acquiring input field information and acquiring a field type corresponding to the input field information;
a field code table acquisition model used for searching a corresponding field code table according to the field type and the input field information;
a field state obtaining module, configured to obtain, according to field information in the field code table, a field state corresponding to the input field information;
a field code table generating module, configured to synchronize the input field information and the field state to the field code table, and generate an updated field code table;
and the test module is used for acquiring a test data set according to the updated field code table, comparing the field information in the test data set with the field information in the updated field code table and generating a test log.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring input field information and acquiring a field type corresponding to the input field information;
searching a corresponding field code table according to the field type and the input field information;
acquiring a field state corresponding to the input field information according to the field information in the field code table;
synchronizing the input field information and the field state to the field code table to generate an updated field code table;
and acquiring a test data set according to the updated field code table, and comparing the field information in the test data set with the field information in the updated field code table to generate a test log.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring input field information and acquiring a field type corresponding to the input field information;
searching a corresponding field code table according to the field type and the input field information;
acquiring a field state corresponding to the input field information according to the field information in the field code table;
synchronizing the input field information and the field state to the field code table to generate an updated field code table;
and acquiring a test data set according to the updated field code table, and comparing the field information in the test data set with the field information in the updated field code table to generate a test log.
According to the test method, the test device, the computer equipment and the storage medium, the input field information is obtained, the field type corresponding to the input field information is obtained, the corresponding field code table is searched according to the field type and the input field information, the field state corresponding to the input field information is obtained according to the field information in the field code table, the input field information and the field state are synchronized into the field code table, the updated field code table is generated, the test data set is obtained according to the updated field code table, and the field information in the test data set is compared with the field information in the updated field code table to generate the test log. The computer equipment generates the updated field code table by synchronizing the input field information and the field state into the field code table, and the field code table is not required to be maintained and updated manually, so that the field code table is maintained and updated more conveniently, and the test efficiency is improved. The computer equipment compares the field information in the test data set with the field information in the updated field code table and generates a test log, and the computer equipment can locate the field information with abnormal test through the test log, so that the efficiency of searching the abnormal field information can be improved.
Drawings
FIG. 1 is a diagram of an application scenario of the test method in one embodiment;
FIG. 2 is a schematic flow chart of a test method in one embodiment;
FIG. 3 is a block diagram of the test apparatus in one embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The test method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a computer device 110. The computer device 110 may acquire the input field information and acquire a field type corresponding to the input field information. The computer device 110 may search a corresponding field code table according to the field type and the input field information, and the computer device 110 may obtain a field state corresponding to the input field information according to the field information in the field code table. Computer device 110 may synchronize the entered field information and field status into the field code table, generating an updated field code table. The computer device 110 may obtain the test data set according to the updated field code table, compare the field information in the test data set with the field information in the updated field code table, and generate a test log. The computer device 110 may be, but is not limited to, various personal computers, notebook computers, tablet computers, and the like.
In one embodiment, as shown in FIG. 2, there is provided a testing method comprising the steps of:
step 202, acquiring the input field information, and acquiring a field type corresponding to the input field information.
The computer equipment can realize the test of various services. For example, in a loan transaction, the computer device may perform a check on the workflow of the loan transaction and further perform a test on the information involved in the workflow, thereby reducing the error rate of the workflow. Wherein a workflow can be an automation of a portion or the whole of a business process in a computer application environment.
The field information may be information that is involved in a workflow when various services are performed. For example, the field information may be information such as name, gender, identification number, occupation, salary, etc. inputted by the user through the computer device. The field types may be classified into a public field type and a private field type. The field information corresponding to the public field type may be field information that is common in the workflow of each service, and the private field type may be field information that is unique in the workflow of a part of services. For example, the field information corresponding to the public field type may be information such as name, gender, and identification number, and the field information corresponding to the private field type may be information such as occupation, salary, credit, for example, in the case of loan transaction.
The computer device may store therein a correspondence between the field information and the field type. The computer device can acquire the field information input by the user, and acquire the field type corresponding to the input field information according to the corresponding relation between the stored field information and the field type. For example, the input field information acquired by the computer device is name, identification card number, salary and credit, the field type acquired by the computer device corresponding to the name and identification card number is public field type, and the field type acquired by the computer device corresponding to the salary and credit is private field type according to the corresponding relationship between the field information and the field type.
And step 204, searching a corresponding field code table according to the field type and the input field information.
The field code table may store field information and field types related to the workflow of each service. One field code table may correspond to one service, and one field code table may also correspond to a plurality of services.
The computer device can find the corresponding field code table according to the field type and the input field information. Specifically, the computer device may search for the service corresponding to the workflow according to the field type and the input field information, and then search for the corresponding field code table according to the service. For example, the field information acquired by the computer device is name, age, phone number, salary, and credit, respectively; the field types corresponding to the field information acquired by the computer device are respectively name: common field type, age: public field type, phone number: public field type, salary: private field type, credit: the computer equipment can further search the field code table corresponding to the loan service according to the fact that the common field type is name, age and telephone number, the private field type is salary and credit, and the service corresponding to the workflow is the loan service.
And step 206, acquiring a field state corresponding to the input field information according to the field information in the field code table.
The field status may be used to indicate the status of the entered field information. The field state may include an original state, a new added state, a modified state, and the like.
The computer equipment can obtain the field state corresponding to the input field information according to the field information in the field code table. Specifically, the computer device may compare the field information in the field code table with the input field information, respectively, to obtain a comparison result. The computer device can obtain the field state corresponding to the input field information according to the comparison result.
And step 208, synchronizing the input field information and the field state into the field code table to generate an updated field code table.
After the computer device obtains the field state corresponding to the input field information, the field information in the field code table can be updated. Specifically, the computer device may synchronize the input field information and the field state to the field code table according to the field state, and generate an updated field code table. For example, the field state corresponding to the identity card number acquired by the computer device is the new added state, and the identity card number and the corresponding new added state may be added to the field code table by the computer device, so as to generate the updated field code table.
Step 210, obtaining a test data set according to the updated field code table, and comparing field information in the test data set with field information in the updated field code table to generate a test log.
The test data set may store reference field information, which may be used to determine whether the field information in the updated field code table is qualified.
The computer device may obtain the test data set from the updated field code table. Each field code table may correspond to a field code table identifier, and each field code table may correspond to a test data set. After the computer device generates the updated field code table, the corresponding test data set can be found through the field code table identifier corresponding to the updated field code table. The computer device may compare the field information in the test data set with the fields in the updated field code table in sequence and generate a test log.
In this embodiment, the computer device obtains the input field information, obtains a field type corresponding to the input field information, searches a corresponding field code table according to the field type and the input field information, obtains a field state corresponding to the input field information according to the field information in the field code table, synchronizes the input field information and the field state into the field code table, generates an updated field code table, obtains a test data set according to the updated field code table, and compares the field information in the test data set with the field information in the updated field code table to generate a test log. The computer equipment generates the updated field code table by synchronizing the input field information and the field state into the field code table, and the field code table is not required to be maintained and updated manually, so that the field code table is maintained and updated more conveniently, and the test efficiency is improved. The computer equipment compares the field information in the test data set with the field information in the updated field code table and generates a test log, and the computer equipment can locate the field information with abnormal test through the test log, so that the efficiency of searching the abnormal field information can be improved.
In an embodiment, the provided test method may further include a process of acquiring a field state, where the specific process includes: extracting field information from the field code table; matching the field information in the extracted field code table with the input field information to obtain a matching result; and obtaining the field state corresponding to the input field information according to the matching result.
The computer device may sequentially extract field information from the field code table and match the extracted field information with the input field information. For example, the computer device extracts the first field information, namely name three, according to the arrangement sequence of the field information in the field code table, and the computer device can match the name three with the name in the input field information to obtain a matching result; next, the computer device extracts that the second field information in the field code table is age 29, and the computer device can match age 29 with the age in the input field information and obtain a matching result.
After the field information in the field code table is matched by the computer device, the computer device can judge whether unmatched input field information exists, and the computer device can obtain that the matching result corresponding to the unmatched input field information is unmatched. The computer device may obtain a field state corresponding to the input field information according to the matching result.
For example, the field information in the field code table acquired by the computer device is respectively: name Zhang III, age 29, telephone number 12345678, salary 2 thousands, credit 90; the field information of the input acquired by the computer equipment is respectively as follows: the computer equipment matches the field information telephone number 12345678 in the field code table with the input field information telephone number 87654321 to obtain a matching result as a modification, and further obtains a field state corresponding to the telephone number in the input field information as a modification state; because the field code table does not have the identification number 12121212, the computer equipment can obtain that the matching result is unmatched, and further obtain that the field state corresponding to the input identification number is a new state; the computer equipment matches the name, the age, the salary and the credit in the field code table with the input name, the age, the salary and the credit to obtain a matching result which is a complete match, and further obtains the field state corresponding to the name, the age, the salary and the credit as an original state.
In this embodiment, the computer device extracts the field information from the field code table, matches the field information in the extracted field code table with the input field information to obtain a matching result, and obtains a field state corresponding to the input field information according to the matching result. The computer equipment matches the input field information with the field information in the field code table, and obtains the field state corresponding to the input field information according to the matching result, so that the field state corresponding to the input field information can be obtained more conveniently.
In an embodiment, the provided test method may further include a process of updating the field code table, where the specific process includes: classifying the input field information according to the field state corresponding to the input field information to obtain each field information category; respectively acquiring the priority corresponding to each field information category, and sequencing each field information category according to the priority to obtain the sequenced field information categories; and synchronizing the input field information and the field state into a field code table according to the sorted field information type.
The field information category can be divided into an original category, a new category, a modified category and the like. The computer device can classify the input field information according to the field state corresponding to the input field information, so as to obtain each field information category. For example, the field state corresponding to the input field information name is an original state, and the computer device can divide the name into original classes; the field state corresponding to the input field information telephone number is a modification state, and the computer device can divide the telephone number into modification classes.
The computer device can obtain the priority corresponding to each field information category. The priority corresponding to each field information category can be the highest priority of the original category, the second highest priority of the modified category and the lowest priority of the newly added category; or the newly added class has the highest priority, the modified class has the second highest priority, and the newly added class has the lowest priority, which is not limited herein. The computer device may rank the field information categories according to priority to obtain ranked field information categories. Specifically, the computer device may sort the field information categories in order of priority from high to low; the computer device may also sort the field information categories in order of priority from low to high, which is not limited herein.
The computer device may synchronize the input field information and the field status into the field code table according to the sorted field information categories. Taking the field information categories as new categories, modified categories and original categories as examples, the field information categories which are ranked on the first bit in the sorted field information categories obtained by the computer equipment are the new categories, the modified categories are ranked on the second bit, the original categories are ranked on the third bit, the field information of which the field state is the new state and the new state can be synchronized to the first bit in the field code table by the computer equipment, the field information of which the field state is the modified state and the modified state are synchronized to the second bit in the field code table, and the field information of which the field state is the original state and the original state are synchronized to the third bit in the field code table.
In this embodiment, the computer device classifies the input field information according to the field state corresponding to the input field information to obtain each field information category, obtains the priority corresponding to each field information category, sorts each field information category according to the priority to obtain the sorted field information category, and synchronizes the input field information and the field state to the field code table according to the sorted field information category. The computer equipment can synchronize the input field information and the field state into the field code table according to the sorted field information category, and the efficiency of searching the field information in the field code table can be improved.
In an embodiment, the provided test method may further include a process of generating a test log, where the specific process includes: when a test instruction is detected, extracting test field information from the test data set; acquiring field information in the updated field code table; and testing the field information in the updated field code table according to the test field information, and generating a test log.
The test instruction may be triggered by the user via a computer device. The test instruction may be generated by a user triggering a button in the computer device; the test instruction can also be generated by triggering a control in a display screen of the computer equipment by a user; the test command may also be generated in other ways, which are not limited herein.
The computer device may detect the test instruction. When the computer device detects the test instruction, the computer device may extract the test field information from the test data set. The computer device can obtain the field information in the updated field code table, and the computer device can test the field information in the updated field code table according to the test field information to generate a test log.
In this embodiment, when a test instruction is detected, the computer device obtains field information in the updated field code table by extracting test field information from the test data set, tests the field information in the updated field code table according to the test field information, and generates a test log. The computer equipment tests the field information in the updated field code table according to the field information in the test data set, so that the test accuracy can be improved.
In another embodiment, the provided test method may further include a process of generating a test log, where the specific process includes: comparing the test field name with the field name, and comparing the test field threshold with the field threshold; and when the test field name is different from the field name or the test field threshold is different from the field threshold, carrying out exception marking on the field information in the updated field code table, and generating a test log.
In this embodiment, the test field information includes a test field name and a test field threshold; the field information in the updated field code table contains the field name and the field threshold. For example, the test field information is salary of 2 ten thousand, wherein the test field name is salary, and the test field threshold is 2 ten thousand; and the updated field information in the field code table is name Zhang III, wherein the field name is the name, and the field threshold value is Zhang III.
After the computer device obtains the test field information in the test data set and the field information in the updated field code table, comparing the test field name in the test field information with the field name in the field information to obtain a field name comparison result; the computer device may compare the test field threshold in the test field information with the field threshold in the field information to obtain a field threshold comparison result. When the field name comparison result obtained by the computer device is that the test field name is different from the field name, or the field threshold comparison result obtained by the computer device is that the test field threshold is different from the field threshold, the computer device may perform exception marking on the field information in the updated field code table.
For example, the name of a test field in test field information acquired by the computer device is salary, and the threshold value of the test field is 2 ten thousand; the field name in the field information in the updated field code table is salary, the field threshold value is 1 ten thousand, and the computer equipment can perform exception marking on the 1 ten thousand field information salaries and generate a test log because the test field threshold value is different from the field threshold value.
In this embodiment, the computer device compares the test field name with the field name, and compares the test field threshold with the field threshold, and when the test field name is different from the field name or the test field threshold is different from the field threshold, the computer device performs exception marking on the field information in the updated field code table, and generates the test log. And the computer equipment carries out abnormity marking on the field information in the updated field code table according to the comparison result, so that whether the field information is abnormal or not can be judged more accurately. Because the computer equipment generates the test log, the abnormal positioning is more convenient.
In one embodiment, the provided test method may further include a process of locating field information, where the specific process includes: acquiring an abnormal positioning instruction; extracting a field code table identifier in the abnormal positioning instruction, and searching a field code table corresponding to the field code table identifier; acquiring a test log corresponding to the field code table; and extracting field information containing the abnormal mark in the test log.
The exception locator instruction may be used to locate exception field information in the field information. The exception locating instruction may be triggered by a user via a computer device. The exception locating instruction may be generated by a user triggering a button in the computer device; the abnormal positioning instruction can also be generated by triggering a control in a display screen of the computer equipment by a user; the exception positioning instruction may also be generated in other manners, which are not limited herein. The field code table identification may be used to distinguish between different field code tables. The field code table identifier may be a numeric identifier or a text identifier, which is not limited herein.
The computer device may obtain an exception positioning instruction, where the exception positioning instruction may include a field code table identifier. The computer device can extract the field code table identification in the abnormal positioning instruction, and then find the field code table corresponding to the field code table identification. The computer device can obtain the test log corresponding to the field code table and search the field information containing the abnormal mark in the test log. The computer device can extract the field information containing the abnormal mark in the test log.
In this embodiment, the computer device obtains the abnormal positioning instruction, extracts the field code table identifier in the abnormal positioning instruction, searches the field code table corresponding to the field code table identifier, obtains the test log corresponding to the field code table, and extracts the field information containing the abnormal marker in the test log. Because the computer equipment marks the abnormal field information in the test log, when the abnormal positioning instruction is obtained, the computer equipment can directly extract the field information containing the abnormal mark in the test log, and can accurately position the abnormal field information.
It should be understood that, although the steps in the respective flowcharts described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in each of the flowcharts described above may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a test apparatus comprising: a field information obtaining module 310, a field code table obtaining model 320, a field state obtaining module 330, a field code table generating module 340 and a testing module 350, wherein:
a field information obtaining module 310, configured to obtain the input field information, and obtain a field type corresponding to the input field information.
The field code table obtaining model 320 is used for searching a corresponding field code table according to the field type and the input field information.
A field state obtaining module 330, configured to obtain, according to the field information in the field code table, a field state corresponding to the input field information.
The field code table generating module 340 is configured to synchronize the input field information and the field state to the field code table, and generate an updated field code table.
The testing module 350 is configured to obtain a test data set according to the updated field code table, compare field information in the test data set with field information in the updated field code table, and generate a test log.
In one embodiment, the field status obtaining module 330 is further configured to extract field information from the field code table; matching the field information in the extracted field code table with the input field information to obtain a matching result; and obtaining the field state corresponding to the input field information according to the matching result.
In one embodiment, the field code table generating module 340 is further configured to classify the input field information according to a field state corresponding to the input field information, so as to obtain each field information category; respectively acquiring the priority corresponding to each field information category, and sequencing each field information category according to the priority to obtain the sequenced field information categories; and synchronizing the input field information and the field state into a field code table according to the sorted field information type.
In one embodiment, the test module 350 is further configured to extract test field information from the test data set when the test instruction is detected; acquiring field information in the updated field code table; and testing the field information in the updated field code table according to the test field information, and generating a test log.
In one embodiment, the test field information includes a test field name and a test field threshold; the field information in the updated field code table contains the field name and the field threshold. The test module 350 is further configured to compare the test field name with the field name, and compare the test field threshold with the field threshold; and when the test field name is different from the field name or the test field threshold is different from the field threshold, carrying out exception marking on the field information in the updated field code table, and generating a test log.
In one embodiment, the testing apparatus provided may further include an exception locating module configured to obtain an exception locating instruction; extracting a field code table identifier in the abnormal positioning instruction, and searching a field code table corresponding to the field code table identifier; acquiring a test log corresponding to the field code table; and extracting field information containing the abnormal mark in the test log.
For the specific definition of the testing device, reference may be made to the above definition of the testing method, which is not described herein again. The modules in the testing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
acquiring input field information and acquiring a field type corresponding to the input field information;
searching a corresponding field code table according to the field type and the input field information;
acquiring a field state corresponding to the input field information according to the field information in the field code table;
synchronizing the input field information and the field state into a field code table to generate an updated field code table;
and acquiring a test data set according to the updated field code table, and comparing the field information in the test data set with the field information in the updated field code table to generate a test log.
In one embodiment, the processor, when executing the computer program, further performs the steps of: extracting field information from the field code table; matching the field information in the extracted field code table with the input field information to obtain a matching result; and obtaining the field state corresponding to the input field information according to the matching result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: classifying the input field information according to the field state corresponding to the input field information to obtain each field information category; respectively acquiring the priority corresponding to each field information category, and sequencing each field information category according to the priority to obtain the sequenced field information categories; and synchronizing the input field information and the field state into a field code table according to the sorted field information type.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when a test instruction is detected, extracting test field information from the test data set; acquiring field information in the updated field code table; and testing the field information in the updated field code table according to the test field information, and generating a test log.
In one embodiment, the test field information includes a test field name and a test field threshold; the field information in the updated field code table contains the field name and the field threshold. The processor, when executing the computer program, further performs the steps of: comparing the test field name with the field name, and comparing the test field threshold with the field threshold; and when the test field name is different from the field name or the test field threshold is different from the field threshold, carrying out exception marking on the field information in the updated field code table, and generating a test log.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an abnormal positioning instruction; extracting a field code table identifier in the abnormal positioning instruction, and searching a field code table corresponding to the field code table identifier; acquiring a test log corresponding to the field code table; and extracting field information containing the abnormal mark in the test log.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring input field information and acquiring a field type corresponding to the input field information;
searching a corresponding field code table according to the field type and the input field information;
acquiring a field state corresponding to the input field information according to the field information in the field code table;
synchronizing the input field information and the field state into a field code table to generate an updated field code table;
and acquiring a test data set according to the updated field code table, and comparing the field information in the test data set with the field information in the updated field code table to generate a test log.
In one embodiment, the computer program when executed by the processor further performs the steps of: extracting field information from the field code table; matching the field information in the extracted field code table with the input field information to obtain a matching result; and obtaining the field state corresponding to the input field information according to the matching result.
In one embodiment, the computer program when executed by the processor further performs the steps of: classifying the input field information according to the field state corresponding to the input field information to obtain each field information category; respectively acquiring the priority corresponding to each field information category, and sequencing each field information category according to the priority to obtain the sequenced field information categories; and synchronizing the input field information and the field state into a field code table according to the sorted field information type.
In one embodiment, the computer program when executed by the processor further performs the steps of: when a test instruction is detected, extracting test field information from the test data set; acquiring field information in the updated field code table; and testing the field information in the updated field code table according to the test field information, and generating a test log.
In one embodiment, the test field information includes a test field name and a test field threshold; the field information in the updated field code table contains the field name and the field threshold. The computer program when executed by the processor further realizes the steps of: comparing the test field name with the field name, and comparing the test field threshold with the field threshold; and when the test field name is different from the field name or the test field threshold is different from the field threshold, carrying out exception marking on the field information in the updated field code table, and generating a test log.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring an abnormal positioning instruction; extracting a field code table identifier in the abnormal positioning instruction, and searching a field code table corresponding to the field code table identifier; acquiring a test log corresponding to the field code table; and extracting field information containing the abnormal mark in the test log.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of testing, the method comprising:
acquiring input field information and acquiring a field type corresponding to the input field information;
searching a corresponding field code table according to the field type and the input field information;
acquiring a field state corresponding to the input field information according to the field information in the field code table;
synchronizing the input field information and the field state to the field code table to generate an updated field code table;
and acquiring a test data set according to the updated field code table, and comparing the field information in the test data set with the field information in the updated field code table to generate a test log.
2. The method according to claim 1, wherein the obtaining a field status corresponding to the input field information according to the field information in the field code table comprises:
extracting field information from the field code table;
matching the extracted field information in the field code table with the input field information to obtain a matching result;
and obtaining a field state corresponding to the input field information according to the matching result.
3. The method of claim 1, further comprising:
classifying the input field information according to the field state corresponding to the input field information to obtain each field information category;
respectively acquiring the priority corresponding to each field information category, and sequencing each field information category according to the priority to obtain the sequenced field information categories;
the synchronizing the input field information and the field state into the field code table includes:
and synchronizing the input field information and the field state into the field code table according to the sorted field information type.
4. The method according to any one of claims 1 to 3, wherein the obtaining a test data set according to the updated field code table, comparing field information in the test data set with field information in the updated field code table, and generating a test log comprises:
when a test instruction is detected, extracting test field information from the test data set;
acquiring field information in the updated field code table;
and testing the field information in the updated field code table according to the test field information, and generating the test log.
5. The method of claim 4, wherein the test field information comprises a test field name and a test field threshold; the field information in the updated field code table comprises field names and field thresholds;
the testing the field information in the updated field code table according to the test field information and generating the test log includes:
comparing the test field name to the field name and comparing the test field threshold to the field threshold;
and when the test field name is different from the field name or the test field threshold is different from the field threshold, carrying out exception marking on the field information in the updated field code table, and generating the test log.
6. The method of claim 5, further comprising:
acquiring an abnormal positioning instruction;
extracting a field code table identifier in the abnormal positioning instruction, and searching a field code table corresponding to the field code table identifier;
acquiring a test log corresponding to the field code table;
and extracting field information containing the abnormal mark in the test log.
7. A test apparatus, the apparatus comprising:
the field information acquisition module is used for acquiring input field information and acquiring a field type corresponding to the input field information;
a field code table acquisition model used for searching a corresponding field code table according to the field type and the input field information;
a field state obtaining module, configured to obtain, according to field information in the field code table, a field state corresponding to the input field information;
a field code table generating module, configured to synchronize the input field information and the field state to the field code table, and generate an updated field code table;
and the test module is used for acquiring a test data set according to the updated field code table, comparing the field information in the test data set with the field information in the updated field code table and generating a test log.
8. The apparatus of claim 7, wherein the field status obtaining module is further configured to extract field information from the field code table; matching the extracted field information in the field code table with the input field information to obtain a matching result; and obtaining a field state corresponding to the input field information according to the matching result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910817518.7A 2019-08-30 2019-08-30 Test method, test device, computer equipment and storage medium Active CN110647452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910817518.7A CN110647452B (en) 2019-08-30 2019-08-30 Test method, test device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910817518.7A CN110647452B (en) 2019-08-30 2019-08-30 Test method, test device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110647452A true CN110647452A (en) 2020-01-03
CN110647452B CN110647452B (en) 2023-02-07

Family

ID=69009962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910817518.7A Active CN110647452B (en) 2019-08-30 2019-08-30 Test method, test device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110647452B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346994A (en) * 2020-12-01 2021-02-09 广州品唯软件有限公司 Test information correlation method and device, computer equipment and storage medium
CN112632030A (en) * 2020-12-04 2021-04-09 贝壳技术有限公司 Data abnormity positioning method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461863A (en) * 2014-10-29 2015-03-25 中国建设银行股份有限公司 Service system testing method, device and system
CN105095056A (en) * 2015-08-14 2015-11-25 焦点科技股份有限公司 Method for monitoring data in data warehouse
CN106407404A (en) * 2016-09-22 2017-02-15 成都快乐家网络技术有限公司 A data storage method, a data management method and system, a database and a client
CN107908759A (en) * 2017-11-23 2018-04-13 中国银行股份有限公司 Repeat business determination methods and system
CN110019566A (en) * 2019-03-13 2019-07-16 平安信托有限责任公司 Data checking, device, computer equipment and storage medium based on data warehouse

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461863A (en) * 2014-10-29 2015-03-25 中国建设银行股份有限公司 Service system testing method, device and system
CN105095056A (en) * 2015-08-14 2015-11-25 焦点科技股份有限公司 Method for monitoring data in data warehouse
CN106407404A (en) * 2016-09-22 2017-02-15 成都快乐家网络技术有限公司 A data storage method, a data management method and system, a database and a client
CN107908759A (en) * 2017-11-23 2018-04-13 中国银行股份有限公司 Repeat business determination methods and system
CN110019566A (en) * 2019-03-13 2019-07-16 平安信托有限责任公司 Data checking, device, computer equipment and storage medium based on data warehouse

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346994A (en) * 2020-12-01 2021-02-09 广州品唯软件有限公司 Test information correlation method and device, computer equipment and storage medium
CN112632030A (en) * 2020-12-04 2021-04-09 贝壳技术有限公司 Data abnormity positioning method and device
CN112632030B (en) * 2020-12-04 2023-04-14 贝壳技术有限公司 Data abnormity positioning method and device

Also Published As

Publication number Publication date
CN110647452B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
WO2020186786A1 (en) File processing method and apparatus, computer device and storage medium
US11023533B2 (en) Node task data display method and apparatus, storage medium and computer equipment
CN109063108B (en) Search ranking method and device, computer equipment and storage medium
CN109325042B (en) Processing template acquisition method, form processing method, device, equipment and medium
CN108874661B (en) Test mapping relation library generation method and device, computer equipment and storage medium
CN110362479B (en) System upgrade test method and system
CN110647452B (en) Test method, test device, computer equipment and storage medium
CN110659298A (en) Financial data processing method and device, computer equipment and storage medium
CN110659297A (en) Data processing method, data processing device, computer equipment and storage medium
CN110362478B (en) Application upgrade test method and device, computer equipment and storage medium
CN111190946A (en) Report generation method and device, computer equipment and storage medium
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN111026647A (en) Code coverage rate obtaining method and device, computer equipment and storage medium
CN107832227B (en) Interface parameter testing method, device, equipment and storage medium of business system
CN111324375A (en) Code management method and device, computer equipment and storage medium
WO2021036681A1 (en) Data verification method and apparatus, computer device and storage medium
CN112433753A (en) Interface document generation method, device, equipment and medium based on parameter information
CN112084403A (en) Data query method and device, computer equipment and storage medium
CN110874326A (en) Test case generation method and device, computer equipment and storage medium
CN108897772B (en) Data source supplementing method and device, computer equipment and storage medium
US6681347B1 (en) Method for testing keyboard complied with language code
CN111460268B (en) Method and device for determining database query request and computer equipment
CN114547087A (en) Method, device, equipment and medium for automatically identifying proposal and generating report
CN114416847A (en) Data conversion method, device, server and storage medium
CN112416785A (en) Word cutting tool version difference testing method, device, equipment 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
GR01 Patent grant
GR01 Patent grant