Script testing method, device, equipment and storage medium
By adding the execution end classification identifier and interactive process identifier to the data to be run, the target execution end and script are determined, and the problem of low testing efficiency in the existing technology is solved, and parallel testing of multiple scripts is realized, and efficiency is improved.
Patent Information
- Application Number
- CN202211442108.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-11-17
AI Technical Summary
In the case of multiple interactive service products testing, the prior art leads to the problem of low testing efficiency, mainly because the other end needs to wait in line during testing on the mobile or web page, resulting in the waiting situation of the execution side.
By adding the execution end classification identifier and interactive process identifier to the data to be run, determine the target execution end and the target to be tested script, and read these identifiers when adding new data to the database, the allocation of test tasks and parallel testing are realized, and avoid waiting .
It realizes the testing of multiple scripts in parallel with different execution ends, which improves the testing efficiency, reduces the waiting time, and improves the efficiency of the testing process.
Smart Images

Figure CN116149983B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of program testing technology, and in particular to a script testing method, device, equipment and storage medium. Background Art
[0002] Before a network service product is put online, the program or script that implements the network service product needs to be tested first. Only after passing the test can it be put online. Network service products have mobile and web versions that run interactively. In this case, at least two programs or scripts need to be run in sequence, and they also need to be tested in sequence during testing.
[0003] At present, in the prior art, when executing interactive service product tests, when the test on either the mobile terminal or the web terminal is being executed, the test on the other terminal needs to wait in line.
[0004] However, the inventors have discovered that the prior art has at least the following technical problems: when testing multiple interactive service products, the testing efficiency is low due to waiting in queues. Summary of the invention
[0005] The present application provides a script testing method, apparatus, device and storage medium to solve the problem of low testing efficiency.
[0006] In the first aspect, the present application provides a script testing method, which is applied to a server, comprising: in response to the start of any test process, continuously monitoring the amount of data to be run in the database; if the amount of data increases, reading the newly added data to be run, wherein the newly added data to be run includes an execution end classification identifier and an interaction process identifier; determining the target execution end according to the execution end classification identifier; determining the corresponding target script to be tested according to the interaction process identifier; sending the target script to be tested and the newly added data to be run to the target execution end, so that the target execution end uses the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server; according to the interaction process identifier, adding a new execution end classification identifier and a new interaction process identifier to the test result data to obtain new data to be run; storing the new data to be run in the database until all test processes are completed.
[0007] In one possible implementation, the test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process; accordingly, according to the interactive process identifier, a new execution end classification identifier and a new interactive process identifier are added to the test result data to obtain new data to be run, including: determining the corresponding target test link according to the interactive process identifier; determining the next test link of the target test link in the test process as the link to be tested; determining a new execution end classification identifier and a new interactive process identifier according to the link to be tested; adding the new execution end classification identifier and the new interactive process identifier to the test result data to obtain new data to be run.
[0008] In one possible implementation, a new execution end classification identifier and a new interaction process identifier are determined based on the link to be tested, including: based on the link to be tested, searching for the correspondence between the preset test link and the execution end to obtain the corresponding execution end; based on the corresponding execution end, searching for the correspondence between the preset execution end and the execution end classification identifier to obtain a new execution end classification identifier; based on the link to be tested, searching for the correspondence between the test link and the interaction process identifier to determine the new interaction process identifier.
[0009] In one possible implementation, the test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link; accordingly, the test process ends, including: the test result data includes error data; or, the target test link is the last test link in the test process.
[0010] In a possible implementation, after the test process is completed, the method further includes: determining the test result data of the target test phase as the final result; and writing the final result into a database.
[0011] In a possible implementation, before continuously monitoring the amount of data to be run in the database, the method further includes: receiving a script to be tested and a test instruction sent by a client; and starting a test process according to the script to be tested and the test instruction.
[0012] In one possible implementation, the test process includes multiple test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process; accordingly, before storing the new data to be run into the database, it also includes: obtaining the test link order of the test process; determining all subsequent links of the target test link according to the target test link and the test link order; according to each subsequent link, searching for the correspondence between the preset test link and the execution end, and obtaining the execution end corresponding to all subsequent links; if the execution ends corresponding to all subsequent links are the same, then generating a fixed execution end classification identifier according to any subsequent link, and using the fixed execution end classification identifier as the execution end classification identifier corresponding to all subsequent links.
[0013] In a second aspect, the present application provides a script testing method, which is applied to an execution end and includes:
[0014] Receive the target script to be tested and the newly added data to be run sent by the server, wherein the newly added data to be run is the server's response to the start of any test process, continuously monitors the data volume of the data to be run in the database, and is read when the data volume increases. The newly added data to be run includes an execution end classification identifier and an interaction process identifier. The target script to be tested is determined by the server according to the interaction process identifier; use the newly added data to be run to run the target script to obtain test result data, and send the test result data to the server, so that the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier to obtain new data to be run, and stores the new data to be run in the database until all test processes are completed.
[0015] In a third aspect, the present application provides a script testing device, comprising: a data monitoring module, which is used to continuously monitor the amount of data to be run in the database in response to the start of any test process; a data reading module, which is used to read the newly added data to be run if the data amount increases, wherein the newly added data to be run includes an execution end classification identifier and an interaction process identifier; an execution end determination module, which is used to determine the target execution end according to the execution end classification identifier; a script determination module, which is used to determine the corresponding target script to be tested according to the interaction process identifier; a data sending module, which is used to send the target script to be tested and the newly added data to be run to the target execution end, so that the target execution end uses the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server; a data acquisition module, which is used to add a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier to obtain new data to be run; and a data writing module, which is used to store the new data to be run in the database until all test processes are completed.
[0016] In a fourth aspect, the present application provides a script testing device, comprising: a data receiving module, used to receive a target script to be tested and newly added data to be run sent by a server, wherein the newly added data to be run is read by the server in response to the start of any test process, continuously monitoring the data volume of the data to be run in the database when the data volume increases, and the newly added data to be run includes an execution end classification identifier and an interaction process identifier, and the target script to be tested is determined by the server according to the interaction process identifier; a result sending module, used to use the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server, so that the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, obtains new data to be run, and stores the new data to be run in the database until all test processes are completed.
[0017] In a fifth aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the script testing method described in the first aspect or the second aspect.
[0018] In a sixth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the script testing method described in the first aspect or the second aspect.
[0019] The script testing method, apparatus, device and storage medium provided in the present application continuously detect the amount of data to be run in the database, and when the amount of data increases, read the newly added data to be run, determine the corresponding target execution end by the execution end classification identifier in the newly added data to be run, determine the target script to be tested by the interaction process identifier in the data to be run, and use the newly added data to be run to run the target script to be tested by the target execution end to obtain test result data, and add a new execution end classification identifier and a new interaction process identifier to the test result data to obtain new data to be run, and store the new data to be run in the database to start the next test. Since the execution end to be used is determined by the execution end classification identifier included in the data to be run, and the script to be tested is determined by the interaction process identifier, it is possible to implement parallel testing of multiple scripts under different execution ends, thereby increasing the testing efficiency of the script. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0021] Figure 1A schematic diagram of an application scenario of the script testing method provided in an embodiment of the present application;
[0022] Figure 2 Schematic diagram of the script testing method provided in the embodiment of the present application Figure 1 ;
[0023] Figure 3 Schematic diagram of the script testing method provided in the embodiment of the present application Figure 2 ;
[0024] Figure 4 A schematic diagram of the interactive process of the script testing method provided in the embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of the script testing device provided in the embodiment of the present application Figure 1 ;
[0026] Figure 6 A schematic diagram of the structure of the script testing device provided in the embodiment of the present application Figure 2 ;
[0027] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0028] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0030] With the development of Internet technology, network services are gradually improving. In the process of network service updates and iterations, it is necessary to test the network service products that are about to be launched.
[0031] In the prior art, when testing network service products, each test task is queued. When a test task requires two or more execution terminals to interact, during the execution of one execution terminal, the other execution terminal that needs to interact needs to wait until the execution of the execution terminal on one side is completed and the execution result is obtained. This will cause the execution terminal to wait, resulting in low test efficiency.
[0032] In response to the above technical problems, the inventors proposed the following technical concept: by adding execution end classification identifiers and interaction process identifiers to the data to be run, the execution end and test script of the test task can be determined separately. When new data is added to the database, the execution end classification identifier and interaction process identifier are read to allocate the test task.
[0033] Figure 1 Schematic diagram of application scenario of the script testing method provided in the embodiment of the present application. Figure 1 In this scenario, it includes: a server 101, an execution terminal 102 and a database 103.
[0034] The server 101 may be a single server, or a server or a cluster of multiple servers with more powerful processing capabilities and higher security. If possible, a computer or laptop with stronger computing power may be used as a substitute. An automated testing platform may be deployed in the server, such as Jenkins.
[0035] The execution end 102 may be a server for testing, or an electronic device such as a mobile phone, a computer, or a tablet computer.
[0036] The database 103 may include a single database or a combination of multiple databases, such as Oracle database, MySQL (relational database management system), DRDS (Distribute Relational Database Service) database, ES (Elasticsearch) database, etc., and this application does not impose any special restrictions on this.
[0037] The connection between the server 101, the execution terminal 102, and the database 103 can be a communication connection. The communication connection includes a wired connection and a wireless network connection, wherein the network used for the wireless network connection can include various types of wired and wireless networks, such as but not limited to: the Internet, local area network, wireless fidelity (Wireless Fidelity, WIFI), wireless local area network (Wireless Local Area Networks, WLAN), general packet radio service technology (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), 2G / 3G / 4G / 5G cellular network, satellite communication network, etc.
[0038] In the specific implementation process, the server 101 is used to respond to the start of any test process, monitor the data volume of the data to be run in the database 103, and read the newly added data to be run when the data volume increases, determine the target execution end and the target script to be tested according to the execution end classification identifier and the interactive process identifier in the newly added data to be run, and send the target script to be tested and the newly added data to be run to the target execution end. And receive the test result data sent by the target execution end, add the new execution end classification identifier and the new interactive process identifier to the test result data, obtain the new data to be run, and store the new data to be run in the database 103.
[0039] The execution end 102 is used to receive the target script to be tested and the newly added data to be run, and use the newly added data to be run to execute the target script to be tested, obtain test result data, and send the test result data to the server 101.
[0040] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the script testing method. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0041] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0042] Figure 2 Schematic diagram of the script testing method provided in the embodiment of the present application Figure 1 The execution subject of the embodiment of the present application may be Figure 1 The server 101 in the embodiment may also be a computer and / or a mobile phone, etc., which is not particularly limited in this embodiment. Figure 2 As shown, the method includes:
[0043] S201: In response to the start of any test process, continuously monitor the amount of data to be run in the database.
[0044] In this step, the start of the test process can be the receipt of a test process start instruction sent by the client, or the arrival of a preset test process start time. The data to be run in the database can include an increasing serial number identifier, and the database can also add an increasing serial number identifier for the newly added data to be run. The increasing serial number identifier can also be added by the server when writing new data to be tested to the database. The monitoring data volume can be achieved by monitoring the maximum value of the serial number identifier or the serial number identifier of the latest data to be run. Monitoring the data volume of the data to be run in the database can also be achieved by a preset script, command or preset program.
[0045] For example, after any test process is started, the largest serial number identifier of the data to be run or the serial number identifier of the latest data to be run is monitored to be 289, then the data volume of the data to be run is 289 items. For another example, the largest serial number identifier of the data to be run or the serial number identifier of the latest data to be run is monitored to be 27, then the data volume of the data to be run is 27 items. For another example, the serial number identifiers of the data to be run increase from 0, then if the largest serial number identifier of the data to be run is monitored to be 29, then the actual number of data to be run is 30 items.
[0046] S202: If the data volume increases, then read the newly added data to be executed, wherein the newly added data to be executed includes an execution end classification identifier and an interaction process identifier.
[0047] In this step, the increase in data volume can be the increase in data volume monitored by a preset script, command or program, or the increase in the value of the largest sequence number identifier. The execution end classification identifier can correspond to different execution ends, the same test process can be composed of one or more test links, and the execution end corresponding to each test link can be different. The interactive process identifier can correspond to the test link in the test process.
[0048] For example, if the maximum serial number of the data to be run is monitored to be changed from 289 to 290, the amount of the data to be run increases, and the data to be run with the serial number 290 is read. For another example, if the maximum serial number of the data to be run is changed from 1 to 3, two new data to be run are added, and the data to be run with the serial number 2 and the serial number 3 are read. For another example, if the maximum serial number of the data to be run is changed from 95 to 96, one new data to be run is added, and the data to be run with the serial number 96 is read. The execution end classification identifier can be a number as the execution end classification identifier, such as 1, 0, or a letter as the execution end classification identifier, such as A, B, C. The corresponding relationship between the execution end classification identifier and the execution end is, for example, 0 corresponds to the mobile end, and 1 corresponds to the web end.
[0049] S203: Determine the target execution end according to the execution end classification identifier.
[0050] In this step, the target execution end may be obtained by searching the correspondence between the preset classification identifier and the execution end according to the execution end classification identifier. The storage method of the correspondence between the classification identifier and the execution end may be a table, a dictionary or a key-value pair. The target execution end may be an idle execution end in a class of execution ends.
[0051] Among them, the corresponding relationship between the classification identifier and the execution end is described in the above step S202. If the execution end corresponding to the execution end classification identifier is a mobile phone end, an idle mobile phone is selected as the target execution end among the mobile phones. If the execution end corresponding to the execution end classification identifier is a web page end, an idle test device is selected as the target execution end among the web page end test devices. If the execution end corresponding to the execution end classification identifier is a computer end, an idle computer is selected as the target execution end among the computers.
[0052] S204: Determine the corresponding target script to be tested according to the interaction process identifier.
[0053] In this step, the correspondence between preset interaction process identifiers and test scripts may be searched according to the interaction process identifier to obtain the target script to be tested.
[0054] Among them, the correspondence between each interactive process identifier and the test script can be set by receiving the setting information sent by the client, or the name of each script to be tested or the script content may contain the interactive process identifier, and the interactive process identifier is matched with the name or script content of the script to obtain the correspondence between the interactive process identifier and the test script.
[0055] The script to be tested may also be sent by a client, and the client may be a terminal device used by a tester. The script to be tested may also be a preset code.
[0056] S205: Send the target script to be tested and the newly added data to be run to the target execution end, so that the target execution end uses the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server.
[0057] In this step, the script and the data to be run can be sent in the form of a file, and the data to be run can be sent by sending a download instruction to the execution end, so that the execution end downloads the data to be run from the database or server. The script and the data to be run can also be sent in other forms, and this application does not impose any special restrictions on this.
[0058] S206: According to the interaction process identifier, a new execution end classification identifier and a new interaction process identifier are added to the test result data to obtain new data to be run.
[0059] The test process includes at least two test links. In this step, the interactive process identifier corresponds to the target test link. The next test link after the target test link in the test process can be found, and the execution end corresponding to the next test link and the corresponding interactive process identifier can be found. According to the corresponding execution end, the correspondence between the execution end and the execution end classification identifier is found to obtain a new execution end classification identifier, and the new execution end classification identifier and the new interactive process identifier are written into the test result data. When writing, they can be written into the preset position of the test result data.
[0060] The preset position of the test result data is, for example, the beginning or the end of the test result data.
[0061] S207: Store new data to be run into the database until all test processes are completed.
[0062] In this step, the new data to be run is stored in the database, which may be sending the new data to be run to the database so that the database saves the new data to be run. It may also include adding a new serial number identifier to the new data to be run according to the serial number identifier of the existing data to be run. After a test process is completed, the above steps S206 to S207 of the test process may no longer be executed, and the test result data is used as the final test result.
[0063] From the description of the above embodiments, it can be seen that the embodiments of the present application continuously detect the amount of data to be run in the database, and when the amount of data increases, read the newly added data to be run, determine the corresponding target execution end by the execution end classification identifier in the newly added data to be run, and determine the target script to be tested by the interaction process identifier in the data to be run. The target execution end uses the newly added data to be run to run the target script to be tested to obtain test result data, and adds a new execution end classification identifier and a new interaction process identifier to the test result data to obtain new data to be run, and stores the new data to be run in the database to start the next test. Since the execution end classification identifier is included in the data to be run to determine the execution end to be adopted, and the script to be tested is determined by the interaction process identifier, it is possible to implement parallel testing of multiple scripts under different execution ends, thereby increasing the testing efficiency of the script.
[0064] In a possible implementation, the test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process.
[0065] Accordingly, in the above step S206, according to the interaction process identifier, a new execution end classification identifier and a new interaction process identifier are added to the test result data to obtain new data to be run, including:
[0066] S2061: Determine the corresponding target test link according to the interaction process identifier.
[0067] In this step, the correspondence between the preset interaction process identifier and the test link may be searched according to the interaction process identifier to obtain the target test link.
[0068] The correspondence between the interaction process identifier and the test link can be obtained by receiving the client settings, or can be configured when establishing the test process or test task. The storage format of the correspondence can be a table, a dictionary or a key-value pair, and this application does not impose any special restrictions on this.
[0069] S2062: Determine the next test link of the target test link in the test process as the link to be tested.
[0070] In this step, the order of the test links in the test process may be obtained, so as to find the next test link of the target test link according to the target test link.
[0071] For example, in the current test process, there are five test links A, B, C, D, and E in sequence. If the target test link is B, then C is the next test link, and C is determined as the link to be tested. This application does not limit the naming of the test link and the specific test content of the test link.
[0072] S2063: Determine a new execution end classification identifier and a new interaction process identifier according to the link to be tested.
[0073] In this step, the link to be tested corresponds to the execution end, the execution end corresponds to the execution end classification identifier, and the link to be tested also corresponds to the interaction process identifier.
[0074] In a possible implementation, in this step, according to the link to be tested, a new execution end classification identifier and a new interaction process identifier are determined, specifically including:
[0075] S2063A: According to the link to be tested, find the correspondence between the preset test link and the execution end, and obtain the corresponding execution end.
[0076] In this step, the preset correspondence between the test link and the execution end may be obtained by receiving the setting information of the client, or may be set when creating the test process.
[0077] S2063B: According to the corresponding execution end, find the correspondence between the preset execution end and the execution end classification identifier to obtain a new execution end classification identifier.
[0078] In this step, the correspondence between the execution end and the execution end classification identifier may be fixed, such as described in the above steps S202 and S203, which will not be repeated here.
[0079] S2063C: Based on the test link to be tested, find the corresponding relationship between the test link and the interaction process identifier, and determine the new interaction process identifier.
[0080] In this step, the corresponding relationship between the test link and the interaction process identifier can also be obtained by receiving the setting information of the client, or set when creating the test process.
[0081] S2064: Add the new executor classification identifier and the new interaction process identifier to the test result data to obtain the new data to be run.
[0082] This step is similar to the above step S206 and will not be elaborated here.
[0083] From the description of the above embodiments, it can be seen that in the embodiments of the present application, the corresponding target test link is determined by the interaction process identifier, and the next test link of the target test link in the test process is determined as the test link to be tested. From the test link to be tested, the new executor classification identifier and the new interaction process identifier are determined, and the new executor classification identifier and the new interaction process identifier are added to the test result data to obtain the new data to be run, realizing the determination of the new interaction process identifier corresponding to the test link to be tested from the interaction process identifier corresponding to the current test link, generating the new data to be run from the test results obtained from the completed test links, enabling the server to detect an increase in new data to be run in the database, and realizing the continuous operation of the test process.
[0084] In a possible implementation manner, the test process includes at least two sequentially arranged test links, and the interaction process identifier corresponds to the target test link.
[0085] Correspondingly, in the above step S207, the end of the test process includes: S207A or S207B.
[0086] S207A: The test result data contains error data.
[0087] In this step, it may be a preset error mark or error string in the test result.
[0088] Among them, the error characters are, for example, "ERROR", "WARRING" or "error", etc. The present application does not make special restrictions on this.
[0089] S207B: The target test link is the last test link in the test process.
[0090] In this step, since the order of the test links in the test process is fixed, when the target test link is the last test link in a test link, when the target test link ends, this test process will also end.
[0091] For example, there are three test links A, B, and C in the current test process, and the target test link is the C test link. When the target test link obtains the test result, the test process ends.
[0092] From the description of the above embodiments, it can be seen that the embodiments of the present application determine that the test process ends when the test result data summary contains error data or the target test link is the last test link in the test process, thereby terminating the process of generating new data to be run from the result data of this process at the end of any process, and stopping monitoring the data in the database when all test processes are completed, thereby realizing the termination of the test process.
[0093] In a possible implementation, after the test process ends in step S205, the following steps are further included:
[0094] S206A: Determine the test result data of the target test phase as the final result.
[0095] In this step, if the test result data of the target test link contains error data, the test result data containing the error data can be determined as the final result, or the error data can be directly determined as the final result. If the test result data of the target test link does not contain error data, the test result data is determined as the final result.
[0096] S206B: Write the final result into the database.
[0097] In this step, the final result may be sent to a database for storage.
[0098] It can be seen from the description of the above embodiment that the embodiment of the present application determines the test result data of the target test link as the final result, and stores the final result in a database, thereby achieving queryability and traceability of the test result.
[0099] In a possible implementation, after obtaining the final result, the method may further include generating a test report using the final result and / or the test result.
[0100] Specifically, the name of the test process and the final result can be written into an existing test report template, or each test link in the test process and the corresponding test results can be written into an existing test report template, or each test link, the test results corresponding to each test link and the final result can be written into an existing test report template.
[0101] In a possible implementation, before continuously monitoring the amount of data to be run in the database, the method further includes:
[0102] S210: Receive the script to be tested and the test instruction sent by the client.
[0103] In this step, the client can be a terminal device of the tester, there can be one or more scripts to be tested, and the test instruction can be an instruction to start the test. The test process can have a corresponding process name, which can be set by the tester himself. The test instruction can be a preset string or an instruction containing the process name of the test process. It can also include the test links in the test process, the corresponding relationship between the test link and the execution end, the corresponding relationship between the execution end and the execution end classification identifier, the corresponding relationship between the interactive process identifier and the test link, etc.
[0104] S211: Start the test process according to the script to be tested and the test instructions.
[0105] In this step, the test process corresponding to the script to be tested may be started according to the test instruction.
[0106] For example, currently, scripts E, F, G, and H to be tested corresponding to test links A, B, C, and D are received respectively, and test links A, B, C, and D belong to test process X. Test instructions corresponding to test process X are also received, then test process X is started to test scripts E, F, G, and H in turn.
[0107] It can be seen from the description of the above embodiment that the embodiment of the present application realizes the effect of starting control of the test process and creating the test process by starting the test process according to the received script to be tested and test instructions.
[0108] In a possible implementation, the test process includes a plurality of test links arranged in sequence, and the interactive process identifier corresponds to a target test link in the test process.
[0109] Accordingly, before the above step S207 stores the new data to be run into the database, the following steps are also included:
[0110] S207D: Obtain the test phase sequence of the test process.
[0111] In this step, the test link sequence of the test flow can be set when creating the test flow. The test link sequence contains each test link arranged in sequence.
[0112] S207E: Determine all subsequent links of the target test link according to the target test link and the test link sequence.
[0113] In this step, the target test phase may be found in the test phase sequence, and all test phases after the target test phase may be taken as subsequent phases.
[0114] For example, the current test process has test links A, B, C, D, and E in sequence. If the target test link is test link B, then test links C, D, and E are subsequent test links. If the target test link is test link A, then B, C, D, and E are subsequent test links. If the target test link is test link D, then only test link E is a subsequent test link.
[0115] S207F: According to each subsequent link, find the corresponding relationship between the preset test link and the execution end, and obtain the execution end corresponding to all subsequent links.
[0116] In this step, the correspondence between the test link and the execution end is the same as described in the above step S2063A, and will not be repeated here.
[0117] S207G: If the execution ends corresponding to all subsequent links are the same, a fixed execution end classification identifier is generated according to any subsequent link, and the fixed execution end classification identifier is used as the execution end classification identifier corresponding to all subsequent links.
[0118] In this step, for example, if the execution terminals corresponding to all subsequent links are mobile terminals, the execution terminal classification identifier corresponding to the mobile terminal is used as the fixed execution terminal classification identifier, and the execution terminal classification identifier corresponding to the mobile terminal is used as the execution terminal classification identifier corresponding to all subsequent links. For another example, if the execution terminals corresponding to all subsequent links are web terminals, the execution terminal classification identifier corresponding to the web terminal is used as the fixed execution terminal classification identifier, and the execution terminal classification identifier corresponding to the web terminal is used as the execution terminal classification identifier corresponding to all subsequent links.
[0119] From the description of the above embodiments, it can be seen that the embodiments of the present application determine all subsequent links of the target test link according to the target test link and the obtained test link order, find the correspondence between the test link and the execution end, obtain the execution ends corresponding to all subsequent links, and when the execution ends corresponding to the subsequent links are the same, generate a fixed execution end classification identifier according to any subsequent link, and use the fixed execution end classification identifier as the execution end classification identifier corresponding to the subsequent link, so that when the execution ends corresponding to the subsequent links are the same, the process of determining the execution end classification identifier only needs to be executed once.
[0120] Figure 3 Schematic diagram of the script testing method provided in the embodiment of the present application Figure 2 The execution subject of the embodiment of the present application may be Figure 1 The execution end 102 in FIG. Figure 3 As shown, the method includes:
[0121] S301: Receive the target script to be tested and the newly added data to be run sent by the server, wherein the newly added data to be run is the server's response to the start of any test process, and continuously monitors the amount of data to be run in the database, and reads it when the data amount increases. The newly added data to be run includes an execution end classification identifier and an interaction process identifier. The target script to be tested is determined by the server based on the interaction process identifier.
[0122] In this step, the target script to be tested and the newly added data to be run sent by the server are received, and may be received through a network.
[0123] S302: Use the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server, so that the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, obtains new data to be run, and stores the new data to be run in the database until all test processes are completed.
[0124] In this step, the newly added data to be run may be input into the target script to be tested to obtain the test result data, or the target script to be tested may be used to read the newly added data to be run, thereby running the target script to be tested to obtain the test result data.
[0125] From the description of the above embodiments, it can be seen that the embodiments of the present application receive the target script to be tested and the newly added data to be run sent by the server, and use the newly added data to be run to run the target script to be tested to obtain test result data, thereby achieving the purpose of running the script on the execution end and obtaining the test results, and providing a script running environment.
[0126] Figure 4 The following is a schematic diagram of the interactive process of the script testing method provided in the embodiment of the present application. Figure 4 As shown, the interaction process includes:
[0127] S401: In response to the start of any test process, the server continuously monitors the amount of data to be run in the database;
[0128] S402: If the amount of data increases, the server reads the newly added data to be executed in the database, wherein the newly added data to be executed includes the execution end classification identifier and the interaction process identifier;
[0129] S403: The server determines the target execution end according to the execution end classification identifier;
[0130] S404: The server determines the corresponding target script to be tested according to the interaction process identifier;
[0131] S405: Send the target script to be tested and the newly added data to be run to the target execution end.
[0132] S406: The target execution end uses the newly added data to be run to run the target script to be tested, obtains test result data, and sends the test result data to the server;
[0133] S407: The server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, and obtains new data to be run;
[0134] S408: The server stores the new data to be run into the database until all test processes are completed.
[0135] Figure 5 A schematic diagram of the structure of the script testing device provided in the embodiment of the present application Figure 1 .like Figure 5 As shown, the script testing device 500 includes: a data monitoring module 501, a data reading module 502, an execution end determination module 503, a script determination module 504, a data sending module 505, a data obtaining module 506 and a data writing module 507.
[0136] The data monitoring module 501 is used to continuously monitor the amount of data to be run in the database in response to the start of any test process.
[0137] The data reading module 502 is used to read the newly added data to be executed if the data volume increases, wherein the newly added data to be executed includes the execution end classification identifier and the interaction process identifier.
[0138] The execution end determination module 503 is used to determine the target execution end according to the execution end classification identifier.
[0139] The script determination module 504 is used to determine the corresponding target script to be tested according to the interaction process identifier.
[0140] The data sending module 505 is used to send the target script to be tested and the newly added data to be run to the target execution end, so that the target execution end uses the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server.
[0141] The data acquisition module 506 is used to add a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier to obtain new data to be run.
[0142] The data writing module 507 is used to store new data to be run into the database until all test processes are completed.
[0143] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0144] In a possible implementation, the test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to a target test link in the test process.
[0145] The data acquisition module 506 is specifically used to determine the corresponding target test link according to the interactive process identifier. The next test link of the target test link in the test process is determined as the link to be tested. According to the link to be tested, a new execution end classification identifier and a new interactive process identifier are determined. The new execution end classification identifier and the new interactive process identifier are added to the test result data to obtain new data to be run.
[0146] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0147] In a possible implementation, the data acquisition module 506 is specifically used to find the correspondence between the preset test link and the execution end according to the link to be tested, and obtain the corresponding execution end. According to the corresponding execution end, find the correspondence between the preset execution end and the execution end classification identifier to obtain a new execution end classification identifier. According to the link to be tested, find the correspondence between the test link and the interaction process identifier to determine the new interaction process identifier.
[0148] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0149] In a possible implementation, the test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link.
[0150] The data writing module 507 is specifically used to include error data in the test result data. Or, the target test phase is the last test phase in the test process, and the test process is judged to be finished.
[0151] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0152] In a possible implementation, the script testing device 500 further includes: a result writing module 508 .
[0153] The result writing module 508 is used to determine the test result data of the target test phase as the final result and write the final result into the database.
[0154] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0155] In a possible implementation, the script testing device 500 further includes: a test starting module 509 .
[0156] The test start module 509 is used to receive the script to be tested and the test instruction sent by the client, and start the test process according to the script to be tested and the test instruction.
[0157] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0158] In a possible implementation, the test process includes a plurality of test links arranged in sequence, and the interactive process identifier corresponds to a target test link in the test process. The script testing device 500 further includes: an identifier determination module 510 .
[0159] The identification determination module 510 is used to obtain the test link order of the test process. According to the target test link and the test link order, all subsequent links of the target test link are determined. According to each subsequent link, the correspondence between the preset test link and the execution end is searched to obtain the execution end corresponding to all subsequent links. If the execution ends corresponding to all subsequent links are the same, a fixed execution end classification identifier is generated according to any subsequent link, and the fixed execution end classification identifier is used as the execution end classification identifier corresponding to all subsequent links.
[0160] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0161] Figure 6 A schematic diagram of the structure of the script testing device provided in the embodiment of the present application Figure 2 .like Figure 6 As shown, the script testing device 600 includes: a data receiving module 601 and a result sending module 602 .
[0162] The data receiving module 601 is used to receive the target script to be tested and the newly added data to be run sent by the server, wherein the newly added data to be run is read by the server in response to the start of any test process, and the server continuously monitors the data volume of the data to be run in the database when the data volume increases. The newly added data to be run includes the execution end classification identifier and the interaction process identifier. The target script to be tested is determined by the server based on the interaction process identifier.
[0163] The result sending module 602 is used to use the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server, so that the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, obtains new data to be run, and stores the new data to be run in the database until all test processes are completed.
[0164] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0165] In order to implement the above embodiment, the embodiment of the present application also provides an electronic device.
[0166] refer to Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present application, and the electronic device 700 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0167] like Figure 7 As shown, the electronic device 700 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 701, and a memory 702 connected to the processor in communication, and the processor 701 may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0168] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0169] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0170] It should be noted that the computer-readable storage medium mentioned above in the present application may be a computer-readable signal medium or a computer storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable storage medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0171] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0172] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0173] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0174] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0175] The modules involved in the embodiments of the present application may be implemented by software or hardware. The name of the unit does not limit the module itself in some cases. For example, the data reading module may be described as a "newly added data reading module to be run".
[0176] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0177] The present application also provides a computer-readable storage medium, which stores computer execution instructions. When the processor executes the computer execution instructions, the technical solution of the script testing method in any of the above embodiments is implemented. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the script testing method. Please refer to the implementation principle and beneficial effects of the script testing method, which will not be repeated here.
[0178] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0179] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
[0180] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the technical solution of the script testing method in any of the above-mentioned embodiments. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the script testing method. Please refer to the implementation principle and beneficial effects of the script testing method, and no further details will be given here.
[0181] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0182] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A script testing method, It is characterized in that Applicable to servers, including: In response to the initiation of any test process, continuously monitoring the amount of data to be run in the database; If the data volume increases, then read the newly added data to be executed, wherein the newly added data to be executed includes the execution end classification identifier and the interaction process identifier; Determining a target execution end according to the execution end classification identifier; According to the interaction process identifier, determining the corresponding target script to be tested; Sending the target script to be tested and the newly added data to be run to the target execution end, so that the target execution end uses the newly added data to be run to run the target script to be tested, obtains test result data, and sends the test result data to the server; According to the interaction process identifier, a new execution end classification identifier and a new interaction process identifier are added to the test result data to obtain new data to be run; Storing the new data to be run in the database until all test processes are completed; The test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process; Correspondingly, according to the interaction process identifier, a new execution end classification identifier and a new interaction process identifier are added to the test result data to obtain new data to be run, including: Determine the corresponding target test link according to the interaction process identifier; Determine the next test link of the target test link in the test process as the link to be tested; According to the link to be tested, a new execution end classification identifier and a new interaction process identifier are determined; A new execution end classification identifier and a new interaction process identifier are added to the test result data to obtain new data to be run.
2. The method according to claim 1, It is characterized in that Determining a new execution end classification identifier and a new interaction process identifier according to the link to be tested includes: According to the to-be-tested link, searching for a preset correspondence between the test link and the execution end, and obtaining the corresponding execution end; According to the corresponding execution end, searching for a preset corresponding relationship between the execution end and the execution end classification identifier to obtain the new execution end classification identifier; According to the link to be tested, the corresponding relationship between the test link and the interaction process identifier is searched to determine the new interaction process identifier.
3. The method according to claim 1, It is characterized in that The test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link; Accordingly, the test process ends, including: The test result data includes error reporting data; or, The target test phase is the last test phase in the test process.
4. The method according to claim 3, It is characterized in that After the test process is completed, it also includes: Determine the test result data of the target test link as the final result; The final result is written into the database.
5. The method according to any one of claims 1 to 4, It is characterized in that Before the continuously monitoring the amount of data to be run in the database, the method further includes: Receive the script to be tested and the test instructions sent by the client; The test process is started according to the script to be tested and the test instruction.
6. The method according to any one of claims 1 to 4, It is characterized in that The test process includes a plurality of test links arranged in sequence, and the interactive process identifier corresponds to a target test link in the test process; Accordingly, before storing the new data to be run into the database, the method further includes: Obtaining the test phase sequence of the test process; Determine all subsequent links of the target test link according to the target test link and the test link sequence; According to each subsequent link, find the corresponding relationship between the preset test link and the execution end, and obtain the execution end corresponding to all subsequent links; If the execution ends corresponding to all the subsequent links are the same, a fixed execution end classification identifier is generated according to any subsequent link, and the fixed execution end classification identifier is used as the execution end classification identifier corresponding to all the subsequent links.
7. A script testing method, It is characterized in that Applied to the execution end, including: Receive a target script to be tested and newly added data to be run sent by a server, wherein the newly added data to be run is read by the server in response to the start of any test process by continuously monitoring the amount of data to be run in a database when the amount of data increases, the newly added data to be run includes an execution end classification identifier and an interaction process identifier, and the target script to be tested is determined by the server according to the interaction process identifier; Run the target script to be tested using the newly added data to be run to obtain test result data, and send the test result data to the server, so that the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, obtains new data to be run, and stores the new data to be run in the database until all test processes are completed; The test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process; Correspondingly, the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, and obtains new data to be run, including: Determine the corresponding target test link according to the interaction process identifier; Determine the next test link of the target test link in the test process as the link to be tested; According to the link to be tested, a new execution end classification identifier and a new interaction process identifier are determined; A new execution end classification identifier and a new interaction process identifier are added to the test result data to obtain new data to be run.
8. A script testing device, It is characterized in that include: A data monitoring module, used for continuously monitoring the amount of data to be run in the database in response to the start of any test process; A data reading module, configured to read newly added data to be run if the amount of data increases, wherein the newly added data to be run includes an execution end classification identifier and an interaction process identifier; An execution end determination module, used to determine a target execution end according to the execution end classification identifier; A script determination module, used to determine the corresponding target script to be tested according to the interaction process identifier; A data sending module, used for sending the target script to be tested and the newly added data to be run to the target execution end, so that the target execution end uses the newly added data to be run to run the target script to be tested, obtains test result data, and sends the test result data to the server; A data acquisition module, configured to add a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, so as to obtain new data to be run; A data writing module is used to store the new data to be run into the database until all test processes are completed; The test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process; Correspondingly, when the data acquisition module is used to add a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier to obtain new data to be run, it is specifically used to: determine the corresponding target test link according to the interaction process identifier; determine the next test link of the target test link in the test process as the link to be tested; determine a new execution end classification identifier and a new interaction process identifier according to the link to be tested; add the new execution end classification identifier and the new interaction process identifier to the test result data to obtain new data to be run.
9. A script testing device, It is characterized in that include: A data receiving module, used for receiving a target script to be tested and newly added data to be run sent by a server, wherein the newly added data to be run is read by the server in response to the start of any test process by continuously monitoring the amount of data to be run in the database when the amount of data increases, the newly added data to be run includes an execution end classification identifier and an interaction process identifier, and the target script to be tested is determined by the server according to the interaction process identifier; A result sending module is used to use the newly added data to be run to run the target script to be tested, obtain test result data, and send the test result data to the server, so that the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier, obtains new data to be run, and stores the new data to be run in the database until all test processes are completed; The test process includes at least two test links arranged in sequence, and the interactive process identifier corresponds to the target test link in the test process; Correspondingly, the server adds a new execution end classification identifier and a new interaction process identifier to the test result data according to the interaction process identifier to obtain new data to be run, which specifically includes: the server determines the corresponding target test link according to the interaction process identifier; The server determines the next test link of the target test link in the test process as the link to be tested; the server determines a new execution end classification identifier and a new interaction process identifier based on the link to be tested; the server adds the new execution end classification identifier and the new interaction process identifier to the test result data to obtain new data to be run.
10. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the script testing method according to any one of claims 1 to 6 or claim 7.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the script testing method according to any one of claims 1 to 6 or claim 7 when executed by a processor.
