CN111722999A - Data testing method and device, electronic equipment and system - Google Patents

Data testing method and device, electronic equipment and system Download PDF

Info

Publication number
CN111722999A
CN111722999A CN201910221905.4A CN201910221905A CN111722999A CN 111722999 A CN111722999 A CN 111722999A CN 201910221905 A CN201910221905 A CN 201910221905A CN 111722999 A CN111722999 A CN 111722999A
Authority
CN
China
Prior art keywords
data
tested
identification number
testing
version identification
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
CN201910221905.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.)
Tianjin 58daojia Technology Co ltd
Original Assignee
Tianjin 58daojia 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 Tianjin 58daojia Technology Co ltd filed Critical Tianjin 58daojia Technology Co ltd
Priority to CN201910221905.4A priority Critical patent/CN111722999A/en
Publication of CN111722999A publication Critical patent/CN111722999A/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

Abstract

The embodiment of the invention provides a data testing method, a data testing device, electronic equipment and a data testing system, wherein the method comprises the following steps: after receiving the notification message containing the first version identification number, the data testing equipment obtains a second version identification number corresponding to second to-be-tested data displayed by the data testing equipment through the checking operation and the identification number obtaining operation which are triggered in sequence. The data testing equipment can compare the two version identification numbers, if the two version identification numbers are the same, the data testing equipment is shown to have acquired the latest data to be tested, and then the second data to be tested which has been shown can be directly tested. Therefore, the data testing method provided by the invention has the advantages that before the data to be tested is tested, the version identification number comparison process is also provided, and the situation that the testing accuracy is greatly reduced because the data testing equipment directly tests the displayed and non-latest data to be tested can be avoided through the comparison process.

Description

Data testing method and device, electronic equipment and system
Technical Field
The invention relates to the technical field of internet, in particular to a data testing method, a data testing device, electronic equipment and a data testing system.
Background
With the continuous development of the internet and terminal devices, accessing websites or Application programs (APP) is becoming a common way for people to obtain information from the network. Before a website or an APP is on-line or during maintenance after the website or the APP is on-line, a page in the website or a functional module in the APP generally needs to be tested for many times, so that normal use of the website or the APP is guaranteed.
Taking a website page as an example, the multiple testing processes may be: and testing the existing version A, and if the test fails, modifying the version A by a developer to obtain a page of the version B. Then, the page of the version B is tested, and the like is repeated until the test is passed.
As the number of tests increases, the number of versions of the same page increases. When the latest test is performed, it is necessary to find the latest version from among the many versions. Therefore, the accuracy of the test has a direct relationship with the version of the page to be tested, and therefore, how to accurately find the page of the latest version to ensure the accuracy of the test result becomes a problem to be solved urgently.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data testing method, apparatus, electronic device and system, which determine the latest version of data to be tested in a comparison manner, so as to ensure the accuracy of the test result.
In a first aspect, an embodiment of the present invention provides a data testing method applied to data testing equipment, including:
receiving the notification message containing the first version identification number, wherein the first version identification number corresponds to the first data to be tested;
responding to a checking operation triggered by a first user to the data testing equipment, and displaying second to-be-tested data cached in the data testing equipment;
responding to an identification number obtaining operation triggered by the first user on a display page corresponding to the second data to be tested, and obtaining the second version identification number of the second data to be tested;
and if the first version identification number is consistent with the second version identification number, testing the second data to be tested.
In a second aspect, an embodiment of the present invention provides a data testing apparatus, which is applied to data testing equipment, and includes:
a receiving module, configured to receive the notification message including the first version identification number, where the first version identification number corresponds to the first data to be tested;
the display module is used for responding to the checking operation triggered by the first user on the data testing equipment and displaying the second to-be-tested data cached in the data testing equipment;
the identification number acquisition module is used for responding to an identification number acquisition operation triggered by the first user on a display page corresponding to the second to-be-tested data to acquire the second version identification number of the second to-be-tested data;
and the testing module is used for testing the second to-be-tested data if the first version identification number is consistent with the second version identification number.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, and a processor coupled to the memory;
the memory to store one or more computer instructions, wherein the one or more computer instructions are for the processor to invoke for execution;
the processor is configured to execute the one or more computer instructions to perform any one of the above data testing methods.
An embodiment of the present invention provides a computer storage medium, configured to store a computer program, where the computer program enables a computer to implement the data testing method in the first aspect when executed.
In a fourth aspect, an embodiment of the present invention provides a data testing system, including: the data generating device and the data testing device are in communication connection;
the data generating device is used for responding to the operation triggered by a second user and generating first data to be tested containing a first version identification number and a notification message containing the first version identification number; sending the notification message to the data testing equipment;
the data testing device is used for receiving the notification message containing the first version identification number; responding to a checking operation triggered by a first user to the data testing equipment, and displaying second to-be-tested data cached in the data testing equipment; responding to an identification number obtaining operation triggered by the first user on a display page corresponding to the second data to be tested, and obtaining the second version identification number of the second data to be tested; and if the first version identification number is consistent with the second version identification number, testing the second data to be tested.
The embodiment of the invention provides a data testing method, a data testing device, electronic equipment and a data testing system, wherein the method comprises the following steps: the data testing device receives a notification message containing a first version identification number, the notification message is generated and sent by the data generating device and is used for prompting that a first user using the data testing device currently has a testing task to be processed, and the first version identification number also corresponds to first data to be tested, namely the newly generated data to be tested. And then, responding to the checking operation triggered by the first user to the data testing equipment, and displaying second to-be-tested data cached in the data testing equipment by the data testing equipment, wherein the second to-be-tested data also has corresponding second to-be-tested data. Then, the first user may trigger an identification number obtaining operation on the display page corresponding to the second to-be-tested data, so that the data testing device obtains the second version identification number. Finally, the data testing device compares the first version identification number with the second version identification number. If the two are the same, it indicates that the second data to be tested cached in the data testing device is the same as the first data to be tested and is the latest data to be tested, and the data testing device can directly test the second data to be tested (the first data to be tested) to obtain a testing result.
Therefore, after the data testing device receives the notification message, whether the to-be-tested data cached in the data testing device is the latest data can be determined through the comparison of the version identification numbers. The test is started only when the latest data to be tested is cached in the data test equipment. In the prior art, when a test task exists, the first user can directly display and test the data to be tested by controlling the data test equipment. Because there is usually slight difference that can not be directly observed between the data to be tested of different versions, if the version identification number is not compared, the data to be tested that is shown is directly tested, and the situation of testing the data to be tested of wrong version is easy to occur, thereby greatly reducing the testing accuracy. For the data testing mode provided by the invention, the problem of accuracy reduction can be avoided just by the process of comparing the version identification numbers, namely the accuracy of the testing result is further ensured on the basis of determining the latest version of the data to be tested.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of a first embodiment of a data testing method according to the present invention;
FIG. 2 is a flow chart of a second embodiment of a data testing method provided on the basis of the embodiment shown in FIG. 1
FIG. 3 is a flowchart of a third embodiment of a data testing method according to the present invention;
FIG. 4 is a schematic structural diagram of a first data testing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an electronic device corresponding to the data testing apparatus provided in the embodiment shown in FIG. 4;
fig. 6 is a schematic structural diagram of a first data testing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a test", depending on the context. Similarly, the phrase "if it is determined" or "if the test (stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when tested (stated condition or event)" or "in response to a test (stated condition or event)" depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Fig. 1 is a flowchart of a first embodiment of a data testing method according to the present invention, and an execution main body of the data testing method according to the present embodiment may be a data testing device. As shown in fig. 1, the method comprises the steps of:
s101, receiving a notification message containing a first version identification number, wherein the first version identification number corresponds to first data to be tested.
The developer may trigger a generation operation on the data generation device, so that the data generation device generates the to-be-tested data including the version identification number after responding to the operation, where the generated to-be-tested data may be regarded as the latest to-be-tested data, and optionally, the version identification number thereof may be represented as the generation time of the to-be-tested data, that is, the system time of the data generation device when generating the to-be-tested data. For clarity of the following description, the data to be tested obtained after the generating operation is responded may be referred to as first data to be tested, and the version identification number thereof may also be referred to as a first version identification number. In practical applications, each developer may optionally own a data generation device that is proprietary, that is, the two have a one-to-one correspondence.
After generating the first data to be tested, on one hand, the data generating device may send the first data to be tested to a Network node, and optionally, the Network node may be a Content Delivery Network (CDN) node, which may be understood as a server for storing the data to be tested. On the other hand, the data generating device may further generate a notification message including the first version identification number, and transmit the notification message to the data testing device.
After receiving the notification message, the data testing device acquires the first version identification number of the first data to be tested, and the received notification message may be used to notify a user of the data testing device, that is, a tester, that a data testing task currently exists. Alternatively, the data testing device and the first user, i.e., the tester, may have a one-to-one correspondence relationship.
For clarity of the following description, a user of the data testing apparatus, i.e., a tester, may be referred to as a first user, and a user of the data generating apparatus, i.e., a developer, may be referred to as a second user. In practical applications, both the data testing device used by the first user and the data generating device used by the second user may be terminal devices, such as computers.
In addition, it should be noted that, after step 101, although the data testing device has already acquired the first version identification number corresponding to the first data to be tested, for the first user, it cannot be determined whether the data testing device has already acquired the first data to be tested, that is, the latest data to be tested, because: the data updating period of the data testing device itself is not necessarily known, wherein the data updating period is the updating period of the data to be tested which is locally cached by the data testing device. Therefore, in order to avoid the influence of the unknown data update period on the test result, the data test apparatus needs to further perform the following steps.
As for the data updating mode of the data testing device, in an optional mode, the data testing device may send a data to be tested acquisition request to the network node, and after receiving the acquisition request, the network node may send the latest data to be tested, which is buffered on the network node, to the data testing device.
And S102, responding to the checking operation triggered by the first user to the data testing equipment, and displaying the second to-be-tested data cached in the data testing equipment.
S103, responding to an identification number obtaining operation triggered by the first user on the display page corresponding to the second data to be tested, and obtaining a second version identification number of the second data to be tested.
After the data testing device receives the notification message and the first user knows that the testing task currently exists through the notification message, the first user may trigger a viewing operation on the data testing device, and optionally, the viewing operation may be triggered on an operation interface provided by the data testing device.
After responding to the checking operation, the data testing equipment can automatically display the second data to be tested which is cached locally. It is the data test equipment that has a data update cycle whose cycle length is not necessarily known, and therefore, the second data to be tested that is locally cached may be the same as or different from the first data to be tested (the latest data to be tested). Based on the scenario described in the background art, optionally, the data to be tested related in this embodiment and the following embodiments may be source codes corresponding to websites or APPs. At this time, for the display of the second data to be tested, the source code is not directly displayed, but the source code is compiled, rendered and the like, and the obtained processing result is displayed.
Based on the method, the first user can further trigger the identification number acquisition operation on the display page corresponding to the second data to be tested. After the data testing equipment responds to the operation, the second version identification number corresponding to the second to-be-tested data can be obtained.
For the trigger of the identification number obtaining operation, in an optional manner, a plug-in unit for the first user to trigger the operation may exist on the display interface corresponding to the second data to be tested, optionally, the plug-in unit may be represented as a button, and the button clicking operation triggered by the first user is also the aforementioned identification number obtaining operation. Alternatively, the first user may also trigger a preset type of operation on the interface, such as pressing a blank position in the display page for a long time, or trigger an appointed operation on the display page, such as a sliding operation, a clicking operation, and the like.
After the above steps are performed, the data testing device may obtain the first version identification number and the second version identification number. Thereafter, the data testing device can compare the two to obtain the comparison result. For one of the alignment results, see the related description of step 104 below.
And S104, if the first version identification number is consistent with the second version identification number, testing the second data to be tested.
If the first version identification number is consistent with the second version identification number, the second to-be-tested data cached in the data testing equipment is the same as the first to-be-tested data, and both the second to-be-tested data and the first to-be-tested data are the current latest to-be-tested data. Since the latest data to be tested already exists in the data testing device, the second data to be tested can be directly tested at this time to obtain a testing result.
In this embodiment, after receiving the notification message including the first version identification number, the data testing device obtains the second version identification number corresponding to the second to-be-tested data displayed by the data testing device through the checking operation and the identification number obtaining operation triggered in sequence. The data testing device may compare the two version identification numbers to determine whether the data to be tested cached in the data testing device is the latest. The test is started only when the latest data to be tested is cached in the data test equipment. In the prior art, when a test task exists, the first user can directly display and test the data to be tested by controlling the data testing equipment. Because there is usually slight difference that can not be directly observed between the data to be tested of different versions, if the version identification number is not compared, the data to be tested that is shown is directly tested, and the situation of testing the data to be tested of wrong version is easy to occur, thereby greatly reducing the testing accuracy. For the data testing mode provided by the invention, the problem of accuracy reduction can be avoided just by the process of comparing the version identification numbers, namely the accuracy of the testing result is further ensured on the basis of determining the latest version of the data to be tested.
Another comparison result, distinct from step 104, may also occur after step 103 of the embodiment shown in fig. 1. For such results, as shown in fig. 2, the following description of steps 105 to 107 can be referred to.
And S105, if the first version identification number is inconsistent with the second version identification number, clearing the second to-be-tested data cached in the data testing equipment.
S106, obtaining the first data to be tested cached in the network node.
And S107, testing the first data to be tested.
Specifically, if the first version identification number is not consistent with the second version identification number, it indicates that the second to-be-tested data cached in the data testing device is not the latest to-be-tested data, at this time, the data testing device may automatically clear the second testing data cached in the local, obtain the latest to-be-tested data cached in the network node, that is, the first to-be-tested data, and test the first to-be-tested data. Optionally, as for the obtaining manner of the first data to be tested, the first data to be tested may also be obtained by sending an obtaining request to the network node, which is similar to the description in step 101 and is not described herein again.
In this embodiment, on the basis of the embodiment shown in fig. 1, if the first version identification number is different from the second version identification number, that is, if the data testing device does not locally cache the latest data to be tested, the data testing device may clear the non-latest data to be tested, that is, the second data to be tested, and obtain the latest data to be tested again, so that the effect of testing the latest data to be tested may be achieved, and the accuracy of the test result is further ensured.
As can be seen from the above description, the embodiment shown in fig. 2 tests the first data to be tested, the embodiment shown in fig. 1 tests the second data to be tested, and in the embodiment shown in fig. 1, the second data to be tested is actually the same as the first data to be tested. Therefore, in summary, the above embodiments can be understood as performing the test on the first data to be tested.
Alternatively, in practical applications, the data update period of the data testing device is not necessarily known, so the embodiment shown in fig. 1 to 2 omits the data update period. For the case of a known data update period, the latest data to be tested can be determined and tested in the following manner.
When the first version identification number is in an update period, the second to-be-tested data cached locally by the data testing device is definitely not the latest, and the data testing device may directly perform the above-mentioned steps 105 to 107.
When the first version identification number is exactly the same as the starting time in the data updating cycle, the second data to be tested, which is usually cached locally in the data testing equipment, is the latest data to be tested, and at this time, the cached data to be tested can be directly tested.
The data update period may be preset, and the data update period may correspond to at least one pair of a start time and an end time. For example, assuming that the data update data is 1 hour, for one day, the data update data corresponds to 24 pairs of start time and end time, and the third pair of start time and end time may be 3:00 and 3:59 in chronological order.
According to the above description, the data testing device will perform the comparison processing of the version identification number when the first version identification number is the same as the start time in the data updating period, and the comparison processing is not required in other cases, so that the working strength of the data testing device can be greatly reduced.
After the embodiments shown in fig. 1 to fig. 2 are executed, the data testing device completes the testing process on the data to be tested, and fig. 3 is a flowchart of a third embodiment of the data testing method according to the embodiments of the present invention. As shown in fig. 3, the method further comprises the following steps, and the following steps may be performed after step 104 or step 107 of the previous embodiment.
S201, generating a test result.
After testing the latest data to be tested, the data testing device may generate a corresponding test result, and optionally, the test result may be represented as a test report. For the test results, there will be two results, as described in step 202 and step 203, respectively.
And S202, if the test result is that the test is not passed, responding to the input operation triggered by the first user, and sending description information input by the first user and the test result to the data generation equipment so that the second user modifies the data to be tested corresponding to the test result.
When the test fails, the latest data to be tested for testing is indicated to have errors. At this time, based on the test result, the first user may trigger an input operation on the data testing device, and the data testing device responds to the input operation, so as to obtain description information corresponding to the test result, which is input by the first user, optionally, the description information may include a main error existing in the data to be tested.
Then, the data testing device may send the test result and the description information input by the first user to the data generating device, so that the second user may further modify the tested data to be tested.
In addition, as already mentioned in the embodiment shown in fig. 1, the data to be tested may be embodied as a website or source code of APP. Based on this, if the test result is that the test passes, the data testing device may further perform the following steps:
s203, if the test result is that the test is passed, identifying the target code segment in the first data to be tested according to the code content identification in the source code.
And S204, deleting the target code segment to obtain target data to be tested.
S205, sending the target data to be tested to the data generating equipment.
For a second user-written source code, it is composed of multiple code fragments with unused functionality. And in order to improve the readability of the code, the second user can set a code content identifier for each code segment, wherein the code content identifier is used for explaining the functions realized by the code segment.
Based on the above description, if the test result is that the test is passed, which indicates that the source code performing the test is not problematic, the data testing apparatus may identify the target code segment in the first data to be tested according to the code content identifier in the source code. As described in the embodiment shown in fig. 1, if a button plug-in for the first user to trigger the identification number obtaining operation exists in the display page corresponding to the second data to be tested, the target code segment may be a code segment corresponding to the button plug-in.
The target code segment has functions only in the data testing stage, and the functions of the target code segment are not provided for a common user after the product is on line, so that the data testing equipment can delete the target code segment from the first data to be tested to obtain the target data to be tested, and send the target data to be tested to the data generating equipment.
After all the data to be tested generated by the second user passes the test, the data generation device may perform the next operation, such as an online operation, on the received data that passes the test.
It should be noted that, in the embodiment shown in fig. 1, the second data to be tested is tested, and the target code segment deleted in step 204 is actually a code segment in the second data to be tested. However, since in the embodiment shown in fig. 1, the second data to be tested is the same as the first data to be tested, it can also be understood as deleting the code segment in the first data to be tested.
In this embodiment, after the latest data to be tested is tested, different types of test results can be obtained. Specifically, if the test result is that the test fails, the test result is sent to the data generation device, so that the second user modifies the data to be tested, and the defect in the test result is overcome. And if the test result is that the test is passed, deleting the target code segment which is only used in the test stage in the first data to be tested, and sending the target data to be tested obtained after deletion to the data generation equipment. After all the data tests pass the test, the next operation such as online operation can be carried out.
Fig. 4 is a schematic structural diagram of a first embodiment of a data testing method apparatus according to an embodiment of the present invention, and as shown in fig. 4, the data testing method apparatus includes: a receiving module 11, a presentation module 12, an identification number obtaining 13 and a testing module 14.
A receiving module 11, configured to receive the notification message including the first version identification number, where the first version identification number corresponds to the first data to be tested.
And the display module 12 is configured to display the second to-be-tested data cached in the data testing device in response to a viewing operation triggered by the first user on the data testing device.
The identification number obtaining module 13 is configured to obtain the second version identification number of the second data to be tested in response to an identification number obtaining operation triggered by the first user on a display page corresponding to the second data to be tested.
And the testing module 14 is configured to test the second to-be-tested data if the first version identification number is consistent with the second version identification number.
Optionally, the data testing apparatus further includes: a purge module 21 and a data acquisition module 22.
The clearing module 21 is configured to clear the second to-be-tested data cached in the data testing device if the first version identification number is inconsistent with the second version identification number.
The data obtaining module 22 is configured to obtain the first data to be tested, which is cached in the network node.
The test module 14 is configured to test the first data to be tested.
Optionally, the version identification number corresponding to the data to be tested represents the generation time of the data to be tested; the data testing equipment acquires the latest data to be tested from a network node in a preset data updating period, wherein the preset data updating period corresponds to at least one pair of starting time and ending time;
the test module 14 is specifically configured to: and if the first version identification number is the same as the starting time, testing the second data to be tested.
Optionally, the data testing apparatus further includes: a generating module 23 and a sending module 24.
The generating module 23 is configured to generate a test result.
The sending module 24 is configured to send, in response to an input operation triggered by the first user, the description information input by the first user and the test result to the data generation device if the test result is that the test does not pass, so that the second user modifies the to-be-tested data corresponding to the test result.
Optionally, the data to be tested is represented as source code of a website or an application program;
the data testing apparatus further includes: an identification module 25 and a deletion module 26.
The identifying module 25 is configured to identify the target code segment in the first data to be tested according to the code content identifier in the source code if the test result is that the test is passed.
The deleting module 26 is configured to delete the target code segment to obtain the target data to be tested.
The sending module 24 is configured to send the target data to be tested to the data generating device.
The apparatus shown in fig. 4 can perform the method of the embodiment shown in fig. 1 to 3, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 1 to 3. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to fig. 3, and are not described herein again.
The internal functions and structures of the data testing apparatus are described above, and in one possible design, the structures of the data testing apparatus may be implemented as an electronic device, such as a computer. Fig. 5 is a schematic structural diagram of an electronic device according to a first embodiment of the present invention, and as shown in fig. 5, the electronic device includes: a memory 31, and a processor 32 connected to the memory, the memory 31 being used for storing a program for the electronic device to execute the data testing method provided in any of the above embodiments, the processor 32 being configured to execute the program stored in the memory 31.
The program comprises one or more computer instructions which, when executed by the processor 32, are capable of performing the steps of:
receiving the notification message containing the first version identification number, wherein the first version identification number corresponds to the first data to be tested;
responding to a checking operation triggered by a first user to the data testing equipment, and displaying second to-be-tested data cached in the data testing equipment;
responding to an identification number obtaining operation triggered by the first user on a display page corresponding to the second data to be tested, and obtaining the second version identification number of the second data to be tested;
and if the first version identification number is consistent with the second version identification number, testing the second data to be tested.
Optionally, processor 32 is also configured to perform all or some of the method steps described above.
The electronic device may further include a communication interface 33 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for the electronic device, which includes a program for executing the data testing method in the method embodiments shown in fig. 1 to 3.
Fig. 6 is a schematic structural diagram of a first embodiment of a data testing system according to the present invention, and as shown in fig. 6, the data testing system includes: a data generating device 41 and a data testing device 42 communicatively connected.
The specific working process of the system can be described as follows: first, the data generation device 41 generates the first data to be tested containing the first version identification number and the notification message containing the first version identification number in response to the operation triggered by the second user. The second user is the user of the data generating device 41. Then, the data generating device 41 may send the notification message to the data testing device 42, and the generated first data to be tested is the latest data to be tested.
The data test equipment 42 then receives a notification message containing the first version identification number. The user of the data test device 42, i.e. the first user, can be made aware of the current existence of the data test task according to this notification message. At this point, the first user may trigger a viewing operation on the data testing device 42. In response to the first user-triggered viewing operation, the data testing device 42 may present the locally cached second data to be tested. Further, on the display page corresponding to the second data to be tested, the first user may also trigger an identification number obtaining operation, and the data testing device 42 responds to the operation, that is, obtains the second version identification number of the second data to be tested.
Further, the data testing device 42 may compare the acquired first version identification number with the acquired second version identification number. If the two revision identification numbers are consistent, the data testing device 42 may directly test the second data to be tested. If the two revision identification numbers are not consistent, optionally, the data testing system may further include: a network node 43 communicatively connected to the data generating device 41 and the data testing device 42, respectively. At this time, the data testing device 42 may clear the second data to be tested buffered locally and send a data obtaining request to the network node 43. After receiving the obtaining request, the network node 43 may send the latest data to be tested, i.e. the first data to be tested, buffered locally at the node to the data testing device 42. The data testing device 42 may directly test the received first data to be tested.
Optionally, the data testing device 42 may also perform the method embodiments as shown in fig. 1-3.
In this embodiment, the specific working process of each device in the data testing system and the beneficial effect that can be achieved by the whole system can be referred to the related description in the embodiments shown in fig. 1 to fig. 3, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above technical solutions may be embodied in the form of a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., which includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for testing data, comprising:
receiving the notification message containing the first version identification number, wherein the first version identification number corresponds to the first data to be tested;
responding to a checking operation triggered by a first user to the data testing equipment, and displaying second to-be-tested data cached in the data testing equipment;
responding to an identification number obtaining operation triggered by the first user on a display page corresponding to the second data to be tested, and obtaining the second version identification number of the second data to be tested;
and if the first version identification number is consistent with the second version identification number, testing the second data to be tested.
2. The method of claim 1, further comprising:
if the first version identification number is inconsistent with the second version identification number, clearing the second to-be-tested data cached in the data testing equipment;
acquiring the first data to be tested cached in the network node;
and testing the first data to be tested.
3. The method according to claim 1 or 2, characterized in that the version identification number corresponding to the data to be tested is the generation time of the data to be tested; the data testing equipment acquires the latest data to be tested from a network node in a preset data updating period, wherein the preset data updating period corresponds to at least one pair of starting time and ending time;
if the first version identification number is consistent with the second version identification number, testing the second to-be-tested data, including:
and if the first version identification number is the same as the starting time, testing the second data to be tested.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
generating a test result;
and if the test result is that the test is not passed, responding to the input operation triggered by the first user, and sending description information input by the first user and the test result to data generation equipment so that a second user modifies the to-be-tested data corresponding to the test result.
5. The method of claim 4, wherein the data to be tested is represented as source code of a website or an application;
the method further comprises the following steps:
if the test result is that the test is passed, identifying a target code segment in the first data to be tested according to the code content identification in the source code;
deleting the target code segment to obtain target data to be tested;
and sending the target data to be tested to the data generation equipment.
6. A data detection apparatus, comprising:
a receiving module, configured to receive the notification message including the first version identification number, where the first version identification number corresponds to the first data to be tested;
the display module is used for responding to the checking operation triggered by the first user on the data testing equipment and displaying the second to-be-tested data cached in the data testing equipment;
the identification number acquisition module is used for responding to an identification number acquisition operation triggered by the first user on a display page corresponding to the second to-be-tested data to acquire the second version identification number of the second to-be-tested data;
and the testing module is used for testing the second to-be-tested data if the first version identification number is consistent with the second version identification number.
7. The apparatus of claim 6, further comprising:
a clearing module, configured to clear the second to-be-tested data cached in the data testing device if the first version identification number and the second version identification number are inconsistent;
the data acquisition module is used for acquiring the first data to be tested cached in the network node;
the test module is used for testing the first data to be tested.
8. An electronic device, comprising: a memory, and a processor coupled to the memory;
the memory to store one or more computer instructions, wherein the one or more computer instructions are for the processor to invoke for execution;
the processor to execute the one or more computer instructions to implement the data testing method of any of claims 1 to 5.
9. A data testing system, comprising: the data generating device and the data testing device are in communication connection;
the data generating device is used for responding to the operation triggered by a second user and generating first data to be tested containing a first version identification number and a notification message containing the first version identification number; sending the notification message to the data testing equipment;
the data testing device is used for receiving the notification message containing the first version identification number; responding to a checking operation triggered by a first user to the data testing equipment, and displaying second to-be-tested data cached in the data testing equipment; responding to an identification number obtaining operation triggered by the first user on a display page corresponding to the second data to be tested, and obtaining the second version identification number of the second data to be tested; and if the first version identification number is consistent with the second version identification number, testing the second data to be tested.
10. The system of claim 9, further comprising: the network node is respectively in communication connection with the data generation equipment and the data testing equipment;
the data testing device is configured to clear the second to-be-tested data cached in the data testing device if the first version identification number and the second version identification number are not consistent; and sending a data acquisition request to the network node;
the network node is used for receiving the acquisition request; sending the first data to be tested cached locally;
the data testing device is further configured to: and receiving and testing the first data to be tested.
11. The system according to claim 9 or 10, characterized in that the data testing device is further adapted to implement the data testing method according to any of claims 3 to 5.
CN201910221905.4A 2019-03-22 2019-03-22 Data testing method and device, electronic equipment and system Pending CN111722999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910221905.4A CN111722999A (en) 2019-03-22 2019-03-22 Data testing method and device, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910221905.4A CN111722999A (en) 2019-03-22 2019-03-22 Data testing method and device, electronic equipment and system

Publications (1)

Publication Number Publication Date
CN111722999A true CN111722999A (en) 2020-09-29

Family

ID=72562764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910221905.4A Pending CN111722999A (en) 2019-03-22 2019-03-22 Data testing method and device, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN111722999A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765692A (en) * 2015-04-29 2015-07-08 北京嘀嘀无限科技发展有限公司 Method and equipment for automatically testing software
CN105512039A (en) * 2015-12-16 2016-04-20 青岛海信电器股份有限公司 Software test request form generating method and device
CN107122294A (en) * 2017-03-17 2017-09-01 惠州Tcl移动通信有限公司 A kind of method, terminal and the device of test parameter file compatibility
CN107346287A (en) * 2017-07-20 2017-11-14 广东艾檬电子科技有限公司 A kind of exam pool applied program testing method, terminal and simulator
CN107729255A (en) * 2017-11-10 2018-02-23 北京奇虎科技有限公司 Method for testing software, apparatus and system
CN108874661A (en) * 2018-05-07 2018-11-23 上海陆家嘴国际金融资产交易市场股份有限公司 Test mapping relations library generating method, device, computer equipment and storage medium
CN109376048A (en) * 2018-12-25 2019-02-22 上海创功通讯技术有限公司 A kind of test method and equipment of touch screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765692A (en) * 2015-04-29 2015-07-08 北京嘀嘀无限科技发展有限公司 Method and equipment for automatically testing software
CN105512039A (en) * 2015-12-16 2016-04-20 青岛海信电器股份有限公司 Software test request form generating method and device
CN107122294A (en) * 2017-03-17 2017-09-01 惠州Tcl移动通信有限公司 A kind of method, terminal and the device of test parameter file compatibility
CN107346287A (en) * 2017-07-20 2017-11-14 广东艾檬电子科技有限公司 A kind of exam pool applied program testing method, terminal and simulator
CN107729255A (en) * 2017-11-10 2018-02-23 北京奇虎科技有限公司 Method for testing software, apparatus and system
CN108874661A (en) * 2018-05-07 2018-11-23 上海陆家嘴国际金融资产交易市场股份有限公司 Test mapping relations library generating method, device, computer equipment and storage medium
CN109376048A (en) * 2018-12-25 2019-02-22 上海创功通讯技术有限公司 A kind of test method and equipment of touch screen

Similar Documents

Publication Publication Date Title
CN109062809B (en) Online test case generation method and device and electronic equipment
CN108647141B (en) Automatic test method, device, computer readable medium and electronic equipment
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
CN108959059B (en) Test method and test platform
US9760475B2 (en) Automatic updating of graphical user interface element locators based on image comparison
CN109684188B (en) Test method and device
CN110798380B (en) Data acquisition method, system, device, test equipment and test server
US9888084B2 (en) Automatic network domain diagnostic repair and mapping
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
CN111221727B (en) Test method, test device, electronic equipment and computer readable medium
CN111506358B (en) Method and device for updating container configuration
CN109299124B (en) Method and apparatus for updating a model
CN112783756A (en) Automatic test method, terminal, system and storage medium
JP6015750B2 (en) Log collection server, log collection system, and log collection method
CN112612706A (en) Automated testing method, computer device and storage medium
CN111722999A (en) Data testing method and device, electronic equipment and system
CN112835779A (en) Test case determination method and device and computer equipment
US10176087B1 (en) Autogenic test framework
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
CN114371974A (en) Buried point data checking method and electronic equipment
CN109960659B (en) Method and device for detecting application program
CN113704114A (en) Automatic testing method, device, equipment and medium for functional interface
CN109189369B (en) Method and device for compressing codes
CN110362464B (en) Software analysis method and equipment
CN112084114A (en) Method and apparatus for testing an interface

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