CN112346988B - Data testing method, system and data screening device - Google Patents

Data testing method, system and data screening device Download PDF

Info

Publication number
CN112346988B
CN112346988B CN202011346493.6A CN202011346493A CN112346988B CN 112346988 B CN112346988 B CN 112346988B CN 202011346493 A CN202011346493 A CN 202011346493A CN 112346988 B CN112346988 B CN 112346988B
Authority
CN
China
Prior art keywords
screening
data
key value
result
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.)
Active
Application number
CN202011346493.6A
Other languages
Chinese (zh)
Other versions
CN112346988A (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.)
Enyike Beijing Data Technology Co ltd
Original Assignee
Enyike Beijing Data 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 Enyike Beijing Data Technology Co ltd filed Critical Enyike Beijing Data Technology Co ltd
Priority to CN202011346493.6A priority Critical patent/CN112346988B/en
Publication of CN112346988A publication Critical patent/CN112346988A/en
Application granted granted Critical
Publication of CN112346988B publication Critical patent/CN112346988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a data testing method, a system and a data filter, wherein the method comprises the following steps: a data acquisition step, which is used for acquiring a webpage to be tested; a data configuration step, namely setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of a screening item key value, a screening type and an operation option; and a data testing step, which is used for obtaining a starting node of the webpage to be tested through the control unit, determining at least one node to be tested and a screening key value thereof in the webpage to be tested through a testing unit according to the starting node, traversing each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result. The application realizes the screening and checking of ultra-large volume data, effectively improves the testing efficiency and meets the requirements of all testing scenes.

Description

Data testing method, system and data screening device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data testing method, system, and data filter.
Background
With the continuous progress of social marketing patterns, cloud marketing patterns are more widespread. Cloud marketing (English name: cloudMarketing) is to integrate a plurality of computing entities with low cost into a perfect system cloud platform with strong marketing capability through a network by taking cloud software, a search engine and social media as main media. The core concept is that the system marketing result is achieved by continuously improving the coverage capability of the cloud and the logic computing capability among the cloud, so that the economic burden of a user is reduced, the user is finally simplified to a terminal only at home, nearly infinite number of high-quality clients can be obtained, and the user enjoys the powerful economic benefit brought by the marketing cloud. The cloud marketing mode is collected on a network with more dependence on consumer preference and collection of various features, and information classification of different consumers is further refined, so that the cloud marketing mode is more diversified and customized when different consumers are managed and marketed, and various condition inquiry and combination modes for different consumers are further improved.
Under the condition, how to quickly and accurately check whether the contents in all the permutation and combination are correct after all the consumer characteristics are permutation and combination is a urgent work requirement. The existing technical scheme often relies on manual testing, the testing effect is relatively stable, but the time is long, when one value in the screening scheme is adjusted and changed, the regression workload is very large, and the testing efficiency is low. And the test case is automatically written, and the test result is returned according to the case. However, the written test cases only aim at fixed scenes or small scenes, and the coverage rate of the cases is low.
Disclosure of Invention
The embodiment of the application provides a data testing method, a data testing system and a data screening device, which expand coverage testing scenes and improve testing efficiency by establishing configuration files and custom screening conditions.
In a first aspect, an embodiment of the present application provides a data testing method, including:
A data acquisition step, which is used for acquiring a webpage to be tested;
A data configuration step, namely setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of a screening item key value, a screening type and an operation option;
And a data testing step, which is used for obtaining a starting node of the webpage to be tested through the control unit, determining at least one node to be tested and a screening key value thereof in the webpage to be tested through a testing unit according to the starting node, traversing each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result.
Through the steps, the problems of large workload and low efficiency of manually executing screening item data correctness check are solved; according to the traversal test of the screening function corresponding to different data types of the screening item key value, the testing efficiency and the testing coverage are improved, and the application range of the data testing method is improved.
In some of these embodiments, the data testing step comprises:
a starting node obtaining step, which is used for obtaining the starting node of the webpage to be tested through the control unit;
A screening result obtaining step, which is used for obtaining a starting node of the control unit through the testing unit, determining at least one node to be tested and a screening item key value thereof according to the starting node, and capturing a data type corresponding to each screening item key value and an operation option corresponding to the data type as a screening result;
and a test result acquisition step, wherein the test unit is used for comparing the screening results with the configuration file one by one, storing the comparison result of each screening item key value into a log file, and summarizing the log file to obtain the test result.
Through the steps, through traversing all the screening item key values and comparing and checking the data types and operation options corresponding to the screening item key values, when the screening structure and/or the values are changed, the method can quickly adjust and quickly execute all page logic queries.
In some of these embodiments, the test result obtaining step further comprises:
a data type comparison step, which is used for comparing the screening item key value and the corresponding data type thereof in the screening result of the screening item key value with the corresponding relationship between the screening item key value and the screening type in the configuration file through the test unit;
An operation option comparison step, which is used for comparing the data type and the corresponding operation options in the screening result of the screening option key value with the corresponding relation between the screening type and the operation options in the configuration file through the test unit;
and a log obtaining step, which is used for recording the test results of the data type comparison step and the operation option comparison step and generating the log file.
In some of these embodiments, the test result obtaining step further includes:
And a log summarizing step, which is used for repeating the data type comparison step, the operation option comparison step and the log obtaining step to test each node to be tested, and summarizing the log file to obtain the test result.
In some embodiments, the filtering key value, the corresponding relationship in the configuration file, and the maximum value or the minimum value of the test hierarchy are respectively defined by the object. By the configuration, the method can support operation option inspection of the screening options with ultra-large quantity, and improves the testing efficiency.
In a second aspect, an embodiment of the present application provides a data testing system, including:
the data acquisition module is used for acquiring a webpage to be tested;
The data configuration module is used for setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of a screening item key value, a screening type and an operation option;
The data testing module is used for acquiring a starting node of the webpage to be tested through the control unit, determining at least one node to be tested and a screening key value thereof in the webpage to be tested through a testing unit according to the starting node, traversing each screening key value to acquire a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result.
Through the module, the system solves the problems of large workload and low efficiency of manually executing screening item data correctness check; according to the traversal test of the screening function corresponding to different data types of the screening option key value, the test efficiency and the test coverage are improved, and the data test system can be used for various test scenes.
In some of these embodiments, the data testing module comprises:
the starting node acquisition module is used for acquiring the starting node of the webpage to be tested through the control unit;
the screening result acquisition module is used for acquiring a starting node of the control unit through the test unit, determining at least one node to be tested and a screening item key value thereof according to the starting node, and capturing a data type corresponding to each screening item key value and an operation option corresponding to the data type as a screening result;
And the test result acquisition module is used for comparing the screening results with the configuration file one by one through the test unit, storing the comparison result of each screening item key value into a log file, and summarizing the log file to obtain the test result.
Through the modules, all the screening option key values are traversed, and the data types and the operation options corresponding to the screening option key values are compared and checked, when the screening structure and/or the values are changed, the system of the embodiment can quickly adjust and quickly execute all page logic inquiry, and test results are obtained.
In some of these embodiments, the test result acquisition module further comprises:
the data type comparison module is used for comparing the screening item key value and the corresponding data type thereof in the screening result of the screening item key value with the corresponding relation between the screening item key value and the screening type in the configuration file through the test unit;
The operation option comparison module is used for comparing the data type and the corresponding operation options in the screening result of the screening item key value with the corresponding relation between the screening type and the operation options in the configuration file through the test unit;
and the log acquisition module is used for recording the test results of the data type comparison module and the operation option comparison module and generating the log file.
In some of these embodiments, the test result acquisition module further comprises:
And the log summarizing module is used for repeatedly executing the data type comparison module, the operation option comparison module and the log acquisition module to test each node to be tested, and summarizing the log file to obtain the test result.
In some embodiments, the filtering key value, the corresponding relationship in the configuration file, and the maximum value or the minimum value of the test hierarchy are respectively defined by the object. By the configuration, the system can support operation option checking of the screening options with ultra-large quantity, and the testing efficiency is improved.
In a third aspect, an embodiment of the present application provides a data filter, configured to perform the data testing method according to the first aspect, including:
The control unit is used for setting a test level, establishing the configuration file and acquiring a starting node of the webpage to be tested;
And the testing unit is used for determining at least one node to be tested and a screening key value thereof in the webpage to be tested according to the starting node, traversing each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result.
In a fourth aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the data testing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data testing method as described in the first aspect above.
Compared with the related art, the data testing method, the system, the computer equipment and the computer readable storage medium provided by the embodiment of the application realize data testing by utilizing the configuration file through the control unit and the testing unit, improve the testing efficiency, simultaneously, the screening item key value, the data type of the screening item key value and the operation options thereof are self-defined, are not limited by the screening level, can support the inspection of the data type and the operation options of the screening item in an ultra-large quantity, improve the testing efficiency, expand the application range of the testing method and the system of the application, and meet the requirements of each testing scene.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a data testing method according to an embodiment of the application;
FIG. 2 is a flow chart illustrating the steps of a data testing method according to an embodiment of the present application;
FIG. 3 is a block diagram of a data testing system according to an embodiment of the present application;
fig. 4 is a block diagram of a data filter according to an embodiment of the present application.
Description of the drawings:
1. A data acquisition module; 2. a data configuration module; 3. a data testing module;
31. A start node acquisition module; 32. a screening result acquisition module; 33. a test result acquisition module;
331. A data type comparison module; 332. an operation option comparison module; 333. a log acquisition module;
334. a log summarizing module; 4. a data filter; 41. a control unit; 42. and a test unit.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person of ordinary skill in the art based on the embodiments provided by the present application without making any inventive effort, are intended to fall within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the described embodiments of the application can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," and similar referents in the context of the application are not to be construed as limiting the quantity, but rather as singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in connection with the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The embodiment provides a data testing method. Fig. 1-2 are flowcharts of a data testing method according to an embodiment of the present application, as shown in fig. 1-2, the flowchart including the steps of:
a data acquisition step S1, which is used for acquiring a webpage to be tested;
Step S2 of data configuration, namely setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of a screening item key value, a screening type and an operation option; the maximum value or the minimum value of the screening item key value, the corresponding relation in the configuration file and the testing level are respectively defined by the object.
And a data testing step S3, which is used for obtaining a starting node of the webpage to be tested through the control unit, determining at least one node to be tested and a screening key value thereof in the webpage to be tested through a testing unit according to the starting node, traversing each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result.
Through the steps, the problems of large workload and low efficiency of manually executing screening item data correctness check are solved; according to the traversal test of the screening function corresponding to different data types of the screening item key value, the testing efficiency and the testing coverage are improved, and the application range of the data testing method is improved. Through custom configuration, the method can support operation option inspection of the screening options with ultra-large quantity, and improves the testing efficiency.
In some of these embodiments, the data testing step S3 includes:
A start node obtaining step S31, configured to obtain, by using a control unit, a start node of a web page to be tested;
A screening result obtaining step S32, configured to obtain, by using a testing unit, a start node of a control unit, determine at least one node to be tested and a screening option key value thereof according to the start node, and capture, as a screening result, a data type and an operation option corresponding to the data type corresponding to each screening option key value;
And a test result obtaining step S33, which is used for comparing the screening results with the configuration file one by one through the test unit, storing the comparison result of each screening option key value into a log file, and summarizing the log file to obtain the test result.
Through the steps, through traversing all the screening item key values and comparing and checking the data types and operation options corresponding to the screening item key values, when the screening structure and/or the values are changed, the method can quickly adjust and quickly execute all page logic queries.
In some of these embodiments, the test result obtaining step S33 further includes:
a data type comparison step S331, configured to compare, by using a test unit, a screening item key value in a screening result of a screening item key value and a corresponding data type thereof with a corresponding relationship between the screening item key value and the screening type in a configuration file;
an operation option comparison step S332, configured to compare, by using the test unit, a data type in a screening result of a screening option key value and a corresponding relationship between the corresponding operation option and the screening type and operation option in the configuration file;
A log obtaining step S333, configured to record the test results of the data type comparison step and the operation option comparison step and generate a log file;
And a log summarizing step S334, which is used for repeating the steps S331-S333 to test each node to be tested, and summarizing the log file to obtain a test result.
The embodiments of the present application will be described and illustrated below by means of preferred embodiments.
When the user object is screened, selecting a screening option key value as the age, then configuring the corresponding data type to be selected as a numerical value type, wherein the numerical value type corresponds to the screening operation as greater than, less than or equal to; when the user object is screened, the screening option key value is selected as gender, the configured data type is text type, and the text type is set as unknown, male and female corresponding to the screening operation. Optionally, different filtering items correspond to different filtering types, and filtering types correspond to final operation options.
Therefore, when a large amount of data is screened, such as screening conditions of 'user access path-access page 1-stay time-longer than the stay time', manual testing faces huge workload, efficiency is extremely low, errors are easy to occur, and the scheme can be adopted to rapidly complete testing. In addition, the requirements of various test environments can be met only by adaptively modifying the configuration file of the embodiment of the application, and the test cases are not required to be independently created, so that the working cost is reduced.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment also provides a data testing system, which is used for implementing the above embodiments and preferred embodiments, and is not described in detail. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 3 is a block diagram of a data testing system according to an embodiment of the present application, as shown in FIG. 3, comprising:
The data acquisition module 1 is used for acquiring a webpage to be tested;
The data configuration module 2 is used for setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of the screening item key value, the screening type and the operation option; specifically, the screening key value, the corresponding relation in the configuration file, and the maximum value or the minimum value of the test level are respectively defined by the object.
The data testing module 3 is configured to obtain a starting node of a web page to be tested through the control unit, determine at least one node to be tested and a screening key value thereof in the web page to be tested according to the starting node through a testing unit, traverse each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and compare the screening result with a corresponding relation in the configuration file one by one to obtain a testing result.
Wherein the data testing module 3 comprises: a start node obtaining module 31, configured to obtain, by using a control unit, a start node of a web page to be tested; the screening result obtaining module 32 is configured to obtain, by using the testing unit, a start node of the control unit, determine at least one node to be tested and a screening key value thereof according to the start node, and capture, as a screening result, a data type and an operation option corresponding to the data type corresponding to each screening key value; the test result obtaining module 33 is configured to compare the screening results with the configuration file one by one through the test unit, store the comparison result of each screening key value into a log file, and collect the log files to obtain the test result. Through the module, all the screening option key values are traversed, and the data types and the operation options corresponding to the screening option key values are compared and checked, when the screening structure and/or the values are changed, the system of the embodiment can quickly adjust and quickly execute all page logic inquiry, and test results are obtained.
Specifically, the test result obtaining module 33 further includes: the data type comparison module 331 is configured to compare, by using the test unit, a screening item key value in a screening result of a screening item key value and a corresponding data type thereof with a corresponding relationship between the screening item key value and the screening type in the configuration file; the operation option comparison module 332 is configured to compare, by using the test unit, a data type in a screening result of a screening option key value and a corresponding relationship between the corresponding operation option and the screening type and the operation option in the configuration file; the log obtaining module 333 is configured to record the test results of the data type comparison module and the operation option comparison module and generate a log file. The log summarizing module 334 is configured to repeatedly execute the data type comparison module 331, the operation option comparison module 332, and the log obtaining module 333 to test each node to be tested, and summarize the log file to obtain a test result.
Through the module, the system solves the problems of large workload and low efficiency of manually executing screening item data correctness check; according to the traversal test of the screening function corresponding to different data types of the screening option key value, the test efficiency and the test coverage are improved, and the data test system can be used for various test scenes. Through the custom configuration, the system can support operation option checking of the screening options with ultra-large quantity, and the testing efficiency is improved.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The embodiment of the application also provides a data filter, fig. 4 is a block diagram of the structure of the data filter according to the embodiment of the application, and referring to fig. 4, the data filter includes:
The control unit 41 is used for setting a test level, establishing a configuration file and acquiring a starting node of a webpage to be tested; the testing unit 42 is configured to determine at least one node to be tested and a screening key value thereof in the web page to be tested according to the start node, traverse each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and compare the screening result with a corresponding relation in the configuration file one by one to obtain a testing result.
In addition, the data testing method of the embodiments of the present application described in connection with FIGS. 1-2 may be implemented by a computer device. The computer device may include a processor and a memory storing computer program instructions.
In particular, the processor may comprise a Central Processing Unit (CPU), or an Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
The memory may include, among other things, mass storage for data or instructions. By way of example, and not limitation, the memory may comprise a hard disk drive (HARD DISK DRIVE, abbreviated HDD), a floppy disk drive, a Solid state drive (Solid STATE DRIVE, abbreviated SSD), flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (Universal Serial Bus, abbreviated USB) drive, or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is a Non-Volatile (Non-Volatile) memory. In particular embodiments, the Memory includes Read-Only Memory (ROM) and random access Memory (Random Access Memory RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (ProgrammableRead-Only Memory, abbreviated PROM), an erasable PROM (Erasable Programmable Read-Only Memory, abbreviated EPROM), an electrically erasable PROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, abbreviated EEPROM), an electrically rewritable ROM (ELECTRICALLY ALTERABLE READ-Only Memory, abbreviated EAROM), or a FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be a Static Random-Access Memory (SRAM) or a dynamic Random-Access Memory (Dynamic Random Access Memory DRAM), where the DRAM may be a fast page mode dynamic Random-Access Memory (Fast Page Mode Dynamic Random Access Memory, FPMDRAM), an extended data output dynamic Random-Access Memory (Extended Date Out Dynamic Random Access Memory, EDODRAM), a synchronous dynamic Random-Access Memory (Synchronous Dynamic Random-Access Memory, SDRAM), or the like, as appropriate.
The memory may be used to store or cache various data files that need to be processed and/or communicated, as well as possible computer program instructions for execution by the processor.
The processor implements any of the data testing methods of the above embodiments by reading and executing computer program instructions stored in the memory.
In addition, in combination with the data testing method in the above embodiment, the embodiment of the present application may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the data testing methods of the above embodiments.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (6)

1. A method of testing data, comprising:
A data acquisition step, which is used for acquiring a webpage to be tested;
A data configuration step, namely setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of a screening item key value, a screening type and an operation option;
a data testing step, which is used for obtaining a starting node of the webpage to be tested through the control unit, determining at least one node to be tested and a screening key value thereof in the webpage to be tested through a testing unit according to the starting node, traversing each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result;
Wherein, the data testing step includes:
a starting node obtaining step, which is used for obtaining the starting node of the webpage to be tested through the control unit;
A screening result obtaining step, which is used for obtaining a starting node of the control unit through the testing unit, determining at least one node to be tested and a screening item key value thereof according to the starting node, and capturing a data type corresponding to each screening item key value and an operation option corresponding to the data type as a screening result;
a test result obtaining step, which is used for comparing the screening results with the configuration file one by one through the test unit, storing the comparison result of each screening item key value into a log file, and summarizing the log file to obtain the test result; the test result obtaining step further includes:
a data type comparison step, which is used for comparing the screening item key value and the corresponding data type thereof in the screening result of the screening item key value with the corresponding relationship between the screening item key value and the screening type in the configuration file through the test unit;
An operation option comparison step, which is used for comparing the data type and the corresponding operation options in the screening result of the screening option key value with the corresponding relation between the screening type and the operation options in the configuration file through the test unit;
and a log obtaining step, which is used for recording the test results of the data type comparison step and the operation option comparison step and generating the log file.
2. The data testing method according to claim 1, wherein the test result acquisition step further comprises:
And a log summarizing step, which is used for repeating the data type comparison step, the operation option comparison step and the log obtaining step to test each node to be tested, and summarizing the log file to obtain the test result.
3. The data testing method according to claim 1, wherein the filtering key value, the corresponding relation in the configuration file, and the maximum value or the minimum value of the test hierarchy are respectively object-customized.
4. A data testing system, comprising:
the data acquisition module is used for acquiring a webpage to be tested;
The data configuration module is used for setting a test level through a control unit and establishing a configuration file, wherein the configuration file is used for representing the corresponding relation among any two of a screening item key value, a screening type and an operation option;
The data testing module is used for acquiring a starting node of the webpage to be tested through the control unit, determining at least one node to be tested and a screening key value thereof in the webpage to be tested through a testing unit according to the starting node, traversing each screening key value to acquire a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result; wherein, the data testing module includes:
the starting node acquisition module is used for acquiring the starting node of the webpage to be tested through the control unit;
the screening result acquisition module is used for acquiring a starting node of the control unit through the test unit, determining at least one node to be tested and a screening item key value thereof according to the starting node, and capturing a data type corresponding to each screening item key value and an operation option corresponding to the data type as a screening result;
The test result acquisition module is used for comparing the screening results with the configuration file one by one through the test unit, storing the comparison result of each screening item key value into a log file, and summarizing the log file to obtain the test result, and the test result acquisition module further comprises:
the data type comparison module is used for comparing the screening item key value and the corresponding data type thereof in the screening result of the screening item key value with the corresponding relation between the screening item key value and the screening type in the configuration file through the test unit;
The operation option comparison module is used for comparing the data type and the corresponding operation options in the screening result of the screening item key value with the corresponding relation between the screening type and the operation options in the configuration file through the test unit;
and the log acquisition module is used for recording the test results of the data type comparison module and the operation option comparison module and generating the log file.
5. The data testing system of claim 4, wherein the test result acquisition module further comprises:
And the log summarizing module is used for repeatedly executing the data type comparison module, the operation option comparison module and the log acquisition module to test each node to be tested, and summarizing the log file to obtain the test result.
6. A data filter for performing the data testing method of any one of claims 1 to 3, comprising:
The control unit is used for setting a test level, establishing the configuration file and acquiring a starting node of the webpage to be tested;
And the testing unit is used for determining at least one node to be tested and a screening key value thereof in the webpage to be tested according to the starting node, traversing each screening key value to obtain a corresponding data type and an operation option corresponding to the data type as a screening result, and comparing the screening result with the corresponding relation in the configuration file one by one to obtain a testing result.
CN202011346493.6A 2020-11-26 2020-11-26 Data testing method, system and data screening device Active CN112346988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011346493.6A CN112346988B (en) 2020-11-26 2020-11-26 Data testing method, system and data screening device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011346493.6A CN112346988B (en) 2020-11-26 2020-11-26 Data testing method, system and data screening device

Publications (2)

Publication Number Publication Date
CN112346988A CN112346988A (en) 2021-02-09
CN112346988B true CN112346988B (en) 2024-07-05

Family

ID=74365937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011346493.6A Active CN112346988B (en) 2020-11-26 2020-11-26 Data testing method, system and data screening device

Country Status (1)

Country Link
CN (1) CN112346988B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270629A (en) * 2016-12-29 2018-07-10 北京国双科技有限公司 Site visitor's behavior monitoring method and device
CN111581328A (en) * 2020-04-21 2020-08-25 浙江华途信息安全技术股份有限公司 Data comparison detection method and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959180A (en) * 2016-06-12 2016-09-21 乐视控股(北京)有限公司 Data detection method and device
CN106503268B (en) * 2016-12-07 2019-08-23 广东神马搜索科技有限公司 Data comparison methods, devices and systems
CN108388512B (en) * 2018-02-13 2021-07-02 创新先进技术有限公司 Data processing method and server
CN109491990A (en) * 2018-09-17 2019-03-19 武汉达梦数据库有限公司 A kind of method of detection data quality and the device of detection data quality
CN109359939A (en) * 2018-09-26 2019-02-19 中国平安人寿保险股份有限公司 Business datum method of calibration, device, computer equipment and storage medium
JP2019021341A (en) * 2018-10-11 2019-02-07 日本電気株式会社 Application test support apparatus, data processing method thereof, and program
CN109583473A (en) * 2018-11-01 2019-04-05 阿里巴巴集团控股有限公司 A kind of generation method and device of characteristic
CN110347568A (en) * 2019-06-27 2019-10-18 苏州浪潮智能科技有限公司 The treating method and apparatus of user behavior data
CN111581074A (en) * 2020-03-26 2020-08-25 平安普惠企业管理有限公司 Call scene coverage testing method and device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270629A (en) * 2016-12-29 2018-07-10 北京国双科技有限公司 Site visitor's behavior monitoring method and device
CN111581328A (en) * 2020-04-21 2020-08-25 浙江华途信息安全技术股份有限公司 Data comparison detection method and system

Also Published As

Publication number Publication date
CN112346988A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN110909015B (en) Splitting method, device and equipment of microservice and storage medium
CN106681903B (en) Method and device for generating test case
CN104572668A (en) Method and equipment for generating combined style file based on multiple style files
CN110059003B (en) Automatic test method, device, electronic equipment and readable storage medium
WO2016112348A1 (en) Filtering data objects
CN115185998A (en) Target field searching method and device, server and computer readable storage medium
CN112346988B (en) Data testing method, system and data screening device
CN108038253B (en) Log query processing method and device
CN117609278A (en) Multi-mode power data management method and system based on deep measurement learning
CN112231459A (en) Method and system for realizing intelligent question answering of software test based on knowledge graph
CN112487513A (en) Method, device and system for design scheme drawing integration optimization
CN117608569A (en) Table form rendering method, system and storage medium
CN109412149B (en) Power grid subgraph construction method based on regional division, topology analysis method and device
CN110019357B (en) Database query script generation method and device
CN112579472B (en) Automatic generation method and device for test cases
CN114861003A (en) Object enumeration method, device and medium under specified directory
CN113760754A (en) Method, system and storage medium for generating test case based on graph search
US20140325378A1 (en) Method and apparatus for generating a personalized page
CN116795723B (en) Chain unit test processing method and device and computer equipment
US9473556B1 (en) Content discovery using description sequences
CN109189346B (en) Data processing method and device
CN116319718B (en) Cloud data storage processing method, system, equipment and medium
CN111427870B (en) Resource management method, device and equipment
CN117251202A (en) Business scene dependency graph generation method and computer equipment
CN116108074A (en) Optimization method, storage medium and equipment for multi-table connection of database

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