CN110765025A - 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
CN110765025A
CN110765025A CN201911052669.4A CN201911052669A CN110765025A CN 110765025 A CN110765025 A CN 110765025A CN 201911052669 A CN201911052669 A CN 201911052669A CN 110765025 A CN110765025 A CN 110765025A
Authority
CN
China
Prior art keywords
data
test
test case
application system
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911052669.4A
Other languages
Chinese (zh)
Inventor
陶金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Neusoft Wang Hai Technology Co Ltd
Original Assignee
Beijing Neusoft Wang Hai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Neusoft Wang Hai Technology Co Ltd filed Critical Beijing Neusoft Wang Hai Technology Co Ltd
Priority to CN201911052669.4A priority Critical patent/CN110765025A/en
Publication of CN110765025A publication Critical patent/CN110765025A/en
Pending legal-status Critical Current

Links

Images

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/3684Test management for test design, e.g. generating new test cases
    • 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

Abstract

The embodiment of the invention discloses a test method, a test device, computer equipment and a storage medium, wherein the test method comprises the following steps: acquiring use data generated by the operation of a user terminal; generating at least one test case based on the use data according to a preset data template; and performing data test on a preset target application system according to the at least one test case. The operation data of the user terminal in the operation of the target application system or the similar application system is collected, and the operation data is converted into the test case through the data template.

Description

Test method, test device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of data testing, in particular to a testing method, a testing device, computer equipment and a storage medium.
Background
The data test is a method that the system completes the processing of test data under the control of an auditor or in person, and then the output result is checked with the result which is calculated independently in advance by the auditor. The purpose is to check whether the program of the system can accurately complete a predetermined data processing task.
In the prior art, in order to test the performance of an application system, a large amount of data is needed to perform data test on the application system, and in order to meet the data test requirement, test data is often generated by randomly generating a large amount of virtual data. However, the inventor of the present invention found in research that, because the randomly generated data is not determined, the real operation condition of the system cannot be restored, and the accuracy of the data test is poor.
Disclosure of Invention
The embodiment of the invention provides a test method and device for data test through real data, computer equipment and a storage medium.
In order to solve the above technical problem, the embodiment of the present invention adopts a technical solution that: there is provided a test method comprising:
acquiring use data generated by the operation of a user terminal;
generating at least one test case based on the use data according to a preset data template;
and performing data test on a preset target application system according to the at least one test case.
Optionally, after the generating at least one test case based on the usage data, the method includes:
collecting the generation time of each test case;
and storing each test case and the respective generation time association thereof in a preset test database.
Optionally, the performing data testing on the preset target application system according to the at least one test case includes:
acquiring a set test time period;
and calling the test case with the generation time within the test time period in the test database to perform data test on the target application system.
Optionally, the performing data testing on the preset target application system according to the at least one test case includes:
acquiring a preset test moment;
when the testing time comes, calling a test case generated in the testing database and having the time before the testing time to perform data testing on the target application system.
Optionally, before the obtaining of the usage data generated by the user terminal, the method includes:
analyzing an IP address of a target site corresponding to the user terminal, wherein the target site stores the use data uploaded by the user terminal;
generating a crawling task according to the IP address, wherein the crawling task comprises a crawling program for crawling the use data;
and executing the crawling task and sending the crawling program to the target site so as to acquire the use data uploaded by the user terminal in the target site.
Optionally, after acquiring the usage data generated by the operation of the user terminal, the method includes:
storing the usage data in a cache space.
Optionally, the converting the usage data into the test case according to the preset data template includes:
calling the use data from the cache space;
searching data information of the same type as the identification information in the use data;
and arranging the data information according to the arrangement rule of the data template to generate at least one test case.
To solve the above technical problem, an embodiment of the present invention further provides a testing apparatus, including:
the acquisition module is used for acquiring the use data generated by the operation of the user terminal;
the processing module is used for generating at least one test case based on the use data according to a preset data template;
and the execution module is used for carrying out data test on a preset target application system according to the at least one test case.
Optionally, the testing apparatus further comprises:
the first processing submodule is used for acquiring the generation time of each test case;
and the first execution submodule is used for storing each test case and the association of the generation time of each test case in a preset test database.
Optionally, the testing apparatus further comprises:
the first obtaining submodule is used for obtaining a set testing time period;
and the second processing submodule is used for calling the test case generated in the test database and positioned in the test time period to perform data test on the target application system.
Optionally, the testing apparatus further comprises:
the second obtaining submodule is used for obtaining a preset test moment;
and the third processing submodule is used for calling the test case generated in the test database and positioned before the test time to perform data test on the target application system when the test time comes.
Optionally, the testing apparatus further comprises:
the first analysis submodule is used for analyzing the IP address of a target site corresponding to the user terminal, wherein the target site stores the use data uploaded by the user terminal;
the fourth processing submodule is used for generating a crawling task according to the IP address, wherein the crawling task comprises a crawling program for crawling the use data;
and the second execution submodule is used for executing the crawling task and sending the crawling program to the target site so as to acquire the use data uploaded by the user terminal in the target site.
Optionally, the testing apparatus further comprises:
and the first storage submodule is used for storing the use data in a cache space.
Optionally, the testing apparatus further comprises:
the first calling submodule is used for calling the use data from the cache space;
the fifth processing submodule is used for searching the data information with the same type as the identification information in the use data;
and the third execution submodule is used for arranging the data information according to the arrangement rule of the data template to generate at least one test case.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer device, including a memory and a processor, where the memory stores computer-readable instructions, and the computer-readable instructions, when executed by the processor, cause the processor to execute the steps of the test method.
To solve the above technical problem, an embodiment of the present invention further provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to execute the steps of the test method described above.
The embodiment of the invention has the beneficial effects that: the operation data of the user terminal in the operation of the target application system or the similar application system is collected, and the operation data is converted into the test case through the data template.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a basic flow chart of a testing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of the embodiment of the present invention for periodically collecting and transforming usage data;
FIG. 3 is a schematic flow chart illustrating data testing of a target application system according to a time period according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating data testing performed on a target application system according to a testing time according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of crawling task generation in the embodiment of the present invention;
FIG. 6 is a schematic flow chart illustrating the process of extracting and converting the usage data by the identification information according to the embodiment of the present invention;
FIG. 7 is a schematic diagram of a basic structure of a testing apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of the basic structure of a computer device in which the present invention may be implemented.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by those skilled in the art, "terminal" as used herein includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that include receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
Referring to fig. 1, fig. 1 is a schematic view of a basic flow of the testing method of the present embodiment.
As shown in fig. 1, a testing method includes:
s1100, acquiring use data generated by the operation of the user terminal;
before data testing, the test server needs to collect data generated by the operation of a specific user terminal. The specific user terminal refers to a user terminal that runs the target application system or the like.
The acquisition mode is to crawl data through a web crawler or a crawler system implanted in the user terminal.
Specifically, in some embodiments, data generated by the operation of the user terminal may be sent to a corresponding site (server side) for interaction or storage, the test server side crawls the use data through the site, acquires an IP address of the site corresponding to the user terminal through a DNS system, and then sends the use data of the user terminal crawled by a web crawler to the IP address.
In some embodiments, a crawler system is embedded in the user terminal, for example, in a browser of the user terminal, for crawling content and running logs in the user terminal's browsing.
In some embodiments, the test server and the user terminal upload data generated by operation when the user terminal is determined to be in operation or a specified client is operated through a data transmission protocol.
In some embodiments, the obtained usage data needs to be stored in a local storage space, where the local storage space refers to a hard disk space or a cache space. Before the use data are converted, the use data are temporarily stored in the cache space, so that the system can call the use data conveniently, and after the data conversion is finished, the use data are erased to release the cache space, so that the operating efficiency of the system is improved. However, in some embodiments, to facilitate tracking of the source data, the usage data needs to be stored after the usage data conversion is completed, and the storage is to store the usage data in the hard disk storage space.
S1200, generating at least one test case based on the use data according to a preset data template;
the test server is preset with a data template, and the data template comprises a plurality of data categories and the arrangement sequence of each data category. A data class is a unit of data described by a series of attributes, such as definitions, identifications, representations, and allowed values. In some embodiments, the data category refers to identification information, traversal search is performed on the usage data through the identification information, data with the same identification information in the usage data is extracted, and the extracted data is written into the data template according to the position of the identification information in the data template. In some embodiments, when the traversal does not find the data with the same identifier as the identifier information in the usage data, the data behind the corresponding identifier in the data template is modified to be 0.
Because the data types in the data template all belong to the necessary data for the target application system to perform data test, the data with the format is extracted to be a test case after searching the data with the same data types as the data types in the data template in the use data and arranging the searched data according to the format and the sequence of the data template. The test case is a data set for performing one-time data test on the target application system, and has a fixed data category and a fixed data format.
When different target application systems are tested, the data types and formats in the data template are modified according to the data type qualified data format required by the test of the target application systems, and test cases for the different target application systems can be generated.
And S1300, performing data test on the preset target application system according to the at least one test case.
After data conversion is carried out on the data to generate a test case, the test case is adopted to carry out data test on the target application system, and the data test mode is as follows: and the processor of the test server side takes the test case as an operation parameter to operate the target application system. Detecting whether each performance of the target application system is normal or not in the running process, wherein when each performance is normal, the target application system has no defects; otherwise, the performance exception occurring during operation needs to be recorded through a log, so as to facilitate the optimization of the target application system.
In this embodiment, the target application system is an operating system installed on the test server side, and the operating system is loaded by using a hardware structure of the test server side. In some embodiments, the target application system is a virtual system installed on the test server side.
In the embodiment, the operation data of the user terminal in the operation of the target application system or the similar application system is collected, and the operation data is converted into the test case through the data template.
In some embodiments, in order to better or more completely test the target application system in a larger time span, it is necessary to periodically collect the usage data of the user terminal and store the converted test cases, so as to test the target application system in a larger time span. Referring to fig. 2, fig. 2 is a schematic flow chart illustrating the process of acquiring and converting the usage data at regular time according to the present embodiment.
As shown in fig. 2, after S1200, the method further includes:
s1211, collecting generation time of each test case;
in this embodiment, in order to test the target application system in a larger data volume environment, after the usage data of the user is extracted for the first time, the usage data of the user terminal is then acquired in a timing manner, and the acquired manner is still crawled by a crawler or actively transmitted by the user terminal.
In this embodiment, the test server extracts the usage data once every 1 hour, but is not limited to this, and according to a difference in a specific application scenario, in some embodiments, the time interval for regularly acquiring the usage data is 1 minute, 1 day, or any time set by a user.
And the test server end uses the same data template every time the use data is collected, and converts the use data into a test case. When each test case is successfully converted, a timestamp needs to be marked so as to distinguish different test cases.
And S1212, storing each test case and each generation time association thereof in a preset test database.
And collecting the use data at regular time, converting the use data into test cases with time stamps, and storing the test cases at a pre-established test database. And storing the test cases of the same user terminal in a test database according to the time stamp when the test cases are generated.
The use data of the user terminal is continuously acquired and converted into a plurality of test cases to be stored, so that the test server can accumulate more huge test data and more comprehensively test the target application system in a coherent time period.
In some embodiments, a user performs data testing on a target application system by setting a specific time period and using a test case generated in the time period. Referring to fig. 3, fig. 3 is a schematic flow chart illustrating data testing performed on a target application system according to a time period in the present embodiment.
As shown in fig. 3, S1300 includes:
s1311, acquiring a set test time period;
in this embodiment, in order to perform data testing on the target application system within a larger time span, the test server receives a test time period input by the user. In some embodiments, the user sets a delay program, the delay program includes a test time period, and when the time point of the delay program is reached, the test instruction including the test time period is executed.
The time span of the test period can be 1 day, 1 week, 1 month, 1 year, or other custom length time span.
S1312, calling the test cases in the test database, the generation time of which is within the test time period, to perform data test on the target application system.
After the test time period is obtained, all test cases with the generation time within the test time period are searched in the test database, and the data test is carried out on the target application system by using the searched test cases.
And when the data test is carried out, the test cases are sequentially input to the target application system according to the sequence of the timestamps in the test cases to carry out the data test.
The target application system is tested by using the test cases generated in the set time period, so that the target application system is tested more comprehensively and continuously in a coherent time period, the daily use environment of the target application system is simulated more truly, and the result obtained by testing can be more true and accurate.
In some embodiments, a user performs data testing on a target application system by setting a specific test time and using all test cases generated before the test time. Referring to fig. 4, fig. 4 is a schematic flow chart illustrating a data test performed on a target application system according to a test time in the present embodiment.
As shown in fig. 4, S1300 includes:
s1321, acquiring a preset test moment;
in this embodiment, in order to perform a data test on a target application system in a wider time span, the test server receives a test time input by a user. In some embodiments, the user sets a delay program, where the delay program includes a test time, and when the time point of the delay program is reached, the test instruction including the test time is executed, for example, set 7 days after the first use of data acquisition as the test time.
The setting of the test time can be set by a user in a self-defined mode, and the set time is longer than the time for generating the first test case.
And S1322, when the test time comes, calling the test case generated in the test database and with the time before the test time to carry out data test on the target application system.
After the test time is obtained, all test cases with the generation time before the test time are searched in a test database, and the searched test cases are used for carrying out data test on the target application system.
And when the data test is carried out, the test cases are sequentially input to the target application system according to the sequence of the timestamps in the test cases to carry out the data test.
The target application system is tested by using all test cases generated before the set test time, so that the target application system is tested more comprehensively and continuously in a coherent time period, the daily use environment of the target application system is simulated more truly, and the result obtained by testing can be more true and accurate.
In some embodiments, the test server needs to crawl the usage data in the site corresponding to the user terminal. Referring to fig. 5, fig. 5 is a schematic flow chart illustrating the crawling task generation in the present embodiment.
As shown in fig. 5, before S1100, the method further includes:
s1011, analyzing the IP address of a target site corresponding to the user terminal, wherein the target site stores the use data uploaded by the user terminal;
when the user terminal uploads the use data generated by operation, the transmitted data carries site information of a target site receiving the uploaded data, and an IP address acquisition request is sent to a DNS (domain name system) according to the site information, so that the IP address of the target site can be obtained.
The target site is a server side or a cloud system which receives and stores the use data uploaded by the user terminal.
S1012, generating a crawling task according to the IP address, wherein the crawling task comprises a crawling program for crawling the use data;
and generating a crawling task according to the IP address of the target site obtained by analysis, wherein the crawling task comprises a crawling time interval which is set by a crawling program, namely the time interval for regularly crawling the use data. The crawling task also comprises terminal information of the user terminal, wherein the terminal information is used for searching the corresponding user terminal in the target site by the crawling program and the use data belonging to the user terminal.
And S1013, executing the crawling task and sending the crawling program to the target site so as to acquire the use data uploaded by the user terminal in the target site.
After the crawling task is generated, the generated crawling task is stored in a preset task queue, the task queue is a message queue for processing by a processor in a testing server side, the processor sequentially processes tasks in the task queue according to a stack principle, and when the crawling task is executed, the crawling task is sent to a target site through a network interface.
In some embodiments, the data category includes identification information by which the usage data is translated. Referring to fig. 6, fig. 6 is a schematic flow chart illustrating the process of extracting and converting the usage data by using the identification information according to the embodiment.
As shown in fig. 6, S1200 includes:
s1221, calling the use data from the cache space;
the acquired use data needs to be stored in a local storage space, and the local storage space is a cache space. Before the use data are converted, the use data are temporarily stored in the cache space, so that the system can call the use data conveniently, and after the data conversion is finished, the use data are erased to release the cache space, so that the operating efficiency of the system is improved. And when the use data is converted, calling the use data from the cache space.
S1222, searching the data information with the same type as the identification information in the use data;
each different data in the data includes a data header for distinguishing between differences before the different data. And defining the data headers of different data as identification information of the data, and extracting and searching different data through the identification information.
Different identification information and the arrangement sequence of each identification information are recorded in the data template according to the test requirement. Traversing retrieval is carried out on the use data through the identification information, data with the same identification information in the use data are extracted, and the extracted data are written into the data template according to the position of the identification information in the data template
And S1223, arranging the data information according to the arrangement rule of the data template to generate at least one test case.
The data which is the same as the identification information in the data template is searched in the using data, and after the searched data is arranged according to the format and the sequence of the data template, the data with the format is extracted to form the test case. The test case is a data set for performing one-time data test on the target application system, and has a fixed data category and a fixed data format.
Referring to fig. 7, fig. 7 is a schematic diagram of a basic structure of the testing apparatus of the present embodiment.
As shown in fig. 7, a test apparatus includes: an acquisition module 2100, a processing module 2200, and an execution module 2300. The obtaining module 2100 is configured to obtain usage data generated by the operation of the user terminal; the processing module 2200 is configured to generate at least one test case based on the usage data according to a preset data template; the execution module 2300 is configured to perform data testing on a preset target application system according to the at least one test case.
The testing device collects the operation data of the user terminal in the operation of the target application system or the similar application system, and converts the operation data into the test case through the data template.
In some embodiments, the test device further comprises: a first processing submodule and a first execution submodule. The first processing submodule is used for acquiring the generation time of each test case; the first execution submodule is used for storing each test case and the association of the generation time of each test case in a preset test database.
In some embodiments, the test device further comprises: the device comprises a first acquisition submodule and a second processing submodule. The first obtaining submodule is used for obtaining a set testing time period; and the second processing submodule is used for calling the test case generated in the test database and positioned in the test time period to perform data test on the target application system.
In some embodiments, the test device further comprises: a second acquisition submodule and a third processing submodule. The second obtaining submodule is used for obtaining a preset test moment; and the third processing submodule is used for calling a test case generated in the test database and having time before the test time to perform data test on the target application system when the test time comes.
In some embodiments, the test device further comprises: the system comprises a first analysis submodule, a fourth processing submodule and a second execution submodule. The first analysis submodule is used for analyzing an IP address of a target site corresponding to the user terminal, wherein the target site stores the use data uploaded by the user terminal; the fourth processing submodule is used for generating a crawling task according to the IP address, wherein the crawling task comprises a crawling program for crawling the use data; and the second execution submodule is used for executing the crawling task and sending the crawling program to the target site so as to acquire the use data uploaded by the user terminal in the target site.
In some embodiments, the test device further comprises: and the first storage submodule is used for storing the use data in a cache space.
In some embodiments, the test device further comprises: the first calling submodule, the fifth processing submodule and the third executing submodule. The first calling submodule is used for calling the use data from the cache space; the fifth processing sub-module is used for searching the data information with the same type as the identification information in the use data; and the third execution submodule is used for arranging the data information according to the arrangement rule of the data template to generate at least one test case.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer device. Referring to fig. 8, fig. 8 is a block diagram of a basic structure of a computer device according to the present embodiment.
As shown in fig. 8, the internal structure of the computer device is schematically illustrated. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize a testing method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a testing method. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 8 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 this embodiment, the processor is configured to execute specific functions of the obtaining module 2100, the processing module 2200, and the executing module 2300 in fig. 7, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in this embodiment stores program codes and data required for executing all the sub-modules in the face image key point detection device, and the server can call the program codes and data of the server to execute the functions of all the sub-modules.
The computer equipment collects the operation data of the user terminal in the operation of the target application system or the similar application system, and converts the operation data into the test case through the data template.
The present invention also provides a storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of any of the above-described embodiments of the testing method.
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 a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

Claims (10)

1. A method of testing, comprising:
acquiring use data generated by the operation of a user terminal;
generating at least one test case based on the use data according to a preset data template;
and performing data test on a preset target application system according to the at least one test case.
2. The method of claim 1, wherein after generating at least one test case based on the usage data, the method comprises:
collecting the generation time of each test case;
and storing each test case and the respective generation time association thereof in a preset test database.
3. The method according to claim 2, wherein the performing data testing on the preset target application system according to the at least one test case comprises:
acquiring a set test time period;
and calling the test case with the generation time within the test time period in the test database to perform data test on the target application system.
4. The method according to claim 2, wherein the performing data testing on the preset target application system according to the at least one test case comprises:
acquiring a preset test moment;
when the testing time comes, calling a test case generated in the testing database and having the time before the testing time to perform data testing on the target application system.
5. The method according to claim 1, wherein before obtaining the usage data generated by the user terminal, the method comprises:
analyzing an IP address of a target site corresponding to the user terminal, wherein the target site stores the use data uploaded by the user terminal;
generating a crawling task according to the IP address, wherein the crawling task comprises a crawling program for crawling the use data;
and executing the crawling task and sending the crawling program to the target site so as to acquire the use data uploaded by the user terminal in the target site.
6. The method according to claim 1, wherein after obtaining the usage data generated by the operation of the user terminal, the method comprises:
storing the usage data in a cache space.
7. The testing method of claim 6, wherein the data template includes identification information, and wherein generating at least one test case based on the usage data comprises:
calling the use data from the cache space;
searching data information of the same type as the identification information in the use data;
and arranging the data information according to the arrangement rule of the data template to generate at least one test case.
8. A test apparatus, comprising:
the acquisition module is used for acquiring the use data generated by the operation of the user terminal;
the processing module is used for generating at least one test case based on the use data according to a preset data template;
and the execution module is used for carrying out data test on a preset target application system according to the at least one test case.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to carry out the steps of the test method according to any one of claims 1 to 7.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the test method of any one of claims 1 to 7.
CN201911052669.4A 2019-10-31 2019-10-31 Test method, test device, computer equipment and storage medium Pending CN110765025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911052669.4A CN110765025A (en) 2019-10-31 2019-10-31 Test method, test device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911052669.4A CN110765025A (en) 2019-10-31 2019-10-31 Test method, test device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110765025A true CN110765025A (en) 2020-02-07

Family

ID=69335159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911052669.4A Pending CN110765025A (en) 2019-10-31 2019-10-31 Test method, test device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110765025A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782507A (en) * 2020-06-12 2020-10-16 航天信息股份有限公司 Data testing method and device, storage medium and electronic equipment
CN111858333A (en) * 2020-07-17 2020-10-30 视若飞信息科技(上海)有限公司 Copyright management system interface test method and device based on real data
CN112073709A (en) * 2020-07-27 2020-12-11 武汉旷视金智科技有限公司 Test data generation method and device and electronic equipment
CN112540919A (en) * 2020-12-08 2021-03-23 上海哔哩哔哩科技有限公司 Test equipment determination method and device
CN116303101A (en) * 2023-05-19 2023-06-23 建信金融科技有限责任公司 Test case generation method, device and equipment
CN111782507B (en) * 2020-06-12 2024-04-30 航天信息股份有限公司 Data testing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140172512A1 (en) * 2012-12-14 2014-06-19 International Business Machines Corporation Efficiently generating test cases
CN106980573A (en) * 2016-10-26 2017-07-25 阿里巴巴集团控股有限公司 A kind of method for building test case request object, apparatus and system
CN108345642A (en) * 2018-01-12 2018-07-31 深圳壹账通智能科技有限公司 Method, storage medium and the server of website data are crawled using Agent IP
CN109614308A (en) * 2018-10-16 2019-04-12 深圳壹账通智能科技有限公司 Test data generating method, device and computer equipment based on crawler log

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140172512A1 (en) * 2012-12-14 2014-06-19 International Business Machines Corporation Efficiently generating test cases
CN106980573A (en) * 2016-10-26 2017-07-25 阿里巴巴集团控股有限公司 A kind of method for building test case request object, apparatus and system
CN108345642A (en) * 2018-01-12 2018-07-31 深圳壹账通智能科技有限公司 Method, storage medium and the server of website data are crawled using Agent IP
CN109614308A (en) * 2018-10-16 2019-04-12 深圳壹账通智能科技有限公司 Test data generating method, device and computer equipment based on crawler log

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
祝犇: "基于爬虫的Web 测试生成系统的设计与实现", 《苏州科技学院学报(自然科学版)》 *
袁津生 等: "《搜索引擎原理与实践》", 30 November 2008, 北京邮电大学出版社 *
鯊魚兒: "基于场景的性能测试设计", 《DAISHAOLI.BLOG.163.COM/BLOG/STATIC/163253374201521832955835/》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782507A (en) * 2020-06-12 2020-10-16 航天信息股份有限公司 Data testing method and device, storage medium and electronic equipment
CN111782507B (en) * 2020-06-12 2024-04-30 航天信息股份有限公司 Data testing method and device, storage medium and electronic equipment
CN111858333A (en) * 2020-07-17 2020-10-30 视若飞信息科技(上海)有限公司 Copyright management system interface test method and device based on real data
CN112073709A (en) * 2020-07-27 2020-12-11 武汉旷视金智科技有限公司 Test data generation method and device and electronic equipment
CN112073709B (en) * 2020-07-27 2023-04-14 武汉旷视金智科技有限公司 Test data generation method and device and electronic equipment
CN112540919A (en) * 2020-12-08 2021-03-23 上海哔哩哔哩科技有限公司 Test equipment determination method and device
CN112540919B (en) * 2020-12-08 2024-02-23 上海哔哩哔哩科技有限公司 Test equipment determining method and device
CN116303101A (en) * 2023-05-19 2023-06-23 建信金融科技有限责任公司 Test case generation method, device and equipment
CN116303101B (en) * 2023-05-19 2023-08-15 建信金融科技有限责任公司 Test case generation method, device and equipment

Similar Documents

Publication Publication Date Title
CN110765025A (en) Test method, test device, computer equipment and storage medium
CN111177095B (en) Log analysis method, device, computer equipment and storage medium
US20110161005A1 (en) Systems and methods for end-to-end location and media content tracking
JP2016515698A (en) Visual audiovisual annotation on infrared images using a separate wireless mobile device
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN105589783A (en) Application program lag problem data obtaining method and device
CN110781230A (en) Data access method, device and equipment
CN108765610A (en) Attendance management method for work transmission line scene
CN111738010B (en) Method and device for generating semantic matching model
CN112948492A (en) Data processing system, method and device, electronic equipment and storage medium
CN107357804A (en) The analysis system and method for internet finance massive logs
CN111597267A (en) Data middlebox based on multilayer service engine and construction method
CN111859046A (en) Water pollution tracing system and method based on pollution element source analysis
CN105721519B (en) A kind of webpage data acquiring method, apparatus and system
Bhavsar et al. Approaches to digital forensics in the age of big data
CN117130870B (en) Transparent request tracking and sampling method and device for Java architecture micro-service system
CN110019363A (en) A kind of method and apparatus verifying data
Benkhelifa et al. Framework for mobile devices analysis
CN115576731A (en) System fault root cause positioning method and device, equipment and storage medium
CN110955709B (en) Data processing method and device and electronic equipment
US20130265314A1 (en) Method and apparatus for capturing and analyzing real-time user sentiment for an event
CN111158019B (en) Data processing method, device and system
CN113901372A (en) User behavior data warehouse construction system and method
CN111694875B (en) Method and device for outputting information
CN102395141A (en) Recurrence method and equipment based on consistency testing

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
CB02 Change of applicant information

Address after: 801-2, floor 8, building 3, No. 22, Ronghua Middle Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Wanghai Kangxin (Beijing) Technology Co.,Ltd.

Address before: Room 07, Room 2, Building B, 12 Hongda North Road, Beijing Daxing District, Beijing

Applicant before: BEIJING NEUSOFT VIEWHIGH TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication