CN116578479A - Test synchronization method, device, electronic equipment and medium - Google Patents

Test synchronization method, device, electronic equipment and medium Download PDF

Info

Publication number
CN116578479A
CN116578479A CN202310498986.9A CN202310498986A CN116578479A CN 116578479 A CN116578479 A CN 116578479A CN 202310498986 A CN202310498986 A CN 202310498986A CN 116578479 A CN116578479 A CN 116578479A
Authority
CN
China
Prior art keywords
test
configuration data
terminal
data
graphic code
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
CN202310498986.9A
Other languages
Chinese (zh)
Inventor
刘俊启
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202310498986.9A priority Critical patent/CN116578479A/en
Publication of CN116578479A publication Critical patent/CN116578479A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

The disclosure provides a test synchronization method, a device, electronic equipment and a medium, relates to the technical field of artificial intelligence, in particular to the field of software testing, and can be used for a scene of synchronizing test experiments of application software. The test synchronization method provided by the disclosure is executed by a first terminal and comprises the following steps: responding to a test synchronization request of a target application, and determining first test configuration data adopted in the process of testing the target application by a first terminal; generating a synchronous graphic code for the test synchronization request based on the first test configuration data; the synchronous graphic code is sent to the second terminal, and the second terminal performs the following steps: extracting first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application. The method and the device can realize test synchronization between the terminals, simplify test synchronization flow, reduce test synchronization cost and are favorable for rapidly positioning the problems in the test process.

Description

Test synchronization method, device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of artificial intelligence, and in particular, to the field of software testing.
Background
AB experiments are a method of assisting decisions based on data, and effect assessment can be made through experiments. AB experiments are widely used in the Internet industry for testing application software. The AB experiment is to design multiple schemes aiming at one functional dimension of the application software, the user flow is correspondingly divided into a plurality of groups, the users use different scheme designs, the data effect is carried out according to the real data feedback verification of the plurality of groups of users, and the optimal scheme is selected to be released to the full, so that the probability of accidents of the full online users can be effectively reduced, and the user experience is improved.
For a huge user group, a 'built-in' super application on a user mobile phone, such as a hundred-degree browser, can simultaneously carry out a plurality of groups of AB experiments aiming at different functional dimensions, and in the process, influence exists among the plurality of groups of experiments, so that the problem investigation difficulty of software operation is high.
Disclosure of Invention
The disclosure provides a test synchronization method, a test synchronization device, electronic equipment and a test synchronization medium.
According to an aspect of the present disclosure, there is provided a test synchronization method performed by a first terminal, the method including:
responding to a test synchronization request of a target application, and determining first test configuration data adopted in the process of testing the target application by a first terminal;
Generating a synchronous graphic code for the test synchronization request based on the first test configuration data;
and transmitting the synchronous graphic code to the second terminal, wherein the second terminal performs the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
According to another aspect of the present disclosure, there is provided a test synchronization method performed by a second terminal, the method including:
acquiring a synchronous graphic code from a first terminal; the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal;
extracting the first test configuration data from the synchronous graphic code;
and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
According to still another aspect of the present disclosure, there is provided a test synchronization device configured to a first terminal, the device including:
the configuration data determining module is used for determining first test configuration data adopted in the process of testing the target application by the first terminal in response to the test synchronization request of the target application;
The first graphic code generation module is used for generating a synchronous graphic code for the test synchronous request based on the first test configuration data;
the graphic code transmitting module is used for transmitting the synchronous graphic code to the second terminal, and the second terminal executes the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
According to still another aspect of the present disclosure, there is provided a test synchronization device configured at a second terminal, the device including:
the graphic code acquisition module is used for acquiring synchronous graphic codes from the first terminal; the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal;
a configuration data extraction module, configured to extract the first test configuration data from the synchronous graphic code;
and the target application testing module is used for testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
According to still another aspect of the present disclosure, there is provided an electronic device including:
At least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the test synchronization method of any one of the embodiments of the present disclosure.
According to yet another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the test synchronization method of any of the embodiments of the present disclosure.
According to yet another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the test synchronization method of any of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the test synchronization flow can be simplified, the test synchronization cost is reduced, and the problems in the test process can be positioned quickly.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a test synchronization method provided in accordance with an embodiment of the present disclosure;
FIG. 2 is a flow chart of another test synchronization method provided in accordance with an embodiment of the present disclosure;
FIG. 3 is a flow chart of another test synchronization method provided in accordance with an embodiment of the present disclosure;
FIG. 4 is a flow chart of another test synchronization method provided in accordance with an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a test synchronization device provided in accordance with an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of another test synchronization device provided in accordance with an embodiment of the present disclosure;
fig. 7 is a block diagram of an electronic device for implementing a test synchronization method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a test synchronization method according to an embodiment of the present disclosure, where the embodiment of the present disclosure is applicable to a case of synchronizing test experiments of application software. The method may be performed by a test synchronization device, which may be implemented in software and/or hardware, configured in the first terminal. As shown in fig. 1, the test synchronization method of the present embodiment may include:
s101, responding to a test synchronization request of a target application, and determining first test configuration data adopted in the process of testing the target application by a first terminal;
s102, generating a synchronous graphic code for the test synchronous request based on the first test configuration data;
s103, the synchronous graphic code is sent to the second terminal, and the second terminal executes the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
The first terminal and the second terminal are respectively provided with a target application. Optionally, the target application has associated therewith at least two sets of test experiments. The test experiment corresponds to a functional item of the target application, and the functional item of the target application can be tested based on the test experiment. Alternatively, the test experiment is an AB experiment, and one test experiment corresponds to at least two different protocols. For the same test experiment, the first terminal and the second terminal can respectively adopt different experimental schemes. For example, test experiment 1 corresponds to 2 different protocols, protocol a and protocol B, respectively. The first terminal adopts an experimental scheme A of a test experiment 1 to test a target application; and the second terminal adopts an experimental scheme B of the test experiment 1 to test the target application.
The target application is application software which needs to be subjected to experimental tests, and the target application can be a super application with a huge user group, such as a hundred-degree browser.
The test synchronization request of the target application is used for requesting to synchronize the first test configuration data of the first terminal to the second terminal. The first test configuration data is used for a first terminal to configure a test experiment, and the test experiment is used for testing a target application in the first terminal.
Optionally, the first terminal determines a test experiment associated with the target application in response to the test synchronization request for the target application, determines a scheme selection parameter corresponding to the test experiment, and generates first test configuration data for the target application based on the scheme selection parameter.
The first terminal generates a synchronization pattern for the test synchronization request based on the first test configuration data. And then the first terminal sends the synchronous graphic code to the second terminal. And synchronizing the first test configuration data adopted by the first terminal to the second terminal by taking the synchronous graphic code as an information carrier and transmitting the synchronous graphic code. And scanning the synchronous graphic code through the second terminal, and extracting the first test configuration data of the first terminal from the synchronous graphic code. The second terminal adopts the first test configuration data to test the target application in the second terminal so as to reproduce the test experiment of the first terminal on the target application at the second terminal and obtain the running data of the target application.
The synchronous graphic code is used as an information carrier and carries first test configuration data of the first terminal. Optionally, the synchronous graphic code is a two-dimensional code or a bar code.
Optionally, the synchronization graphic code is associated with the operation data of the target application in the first terminal. And testing the target application by the second terminal through the first test configuration data, and comparing the obtained operation data of the target application with the operation data of the target application in the first terminal. And optimizing the software architecture of the target application according to the comparison result of the obtained operation data.
Optionally, the first terminal and the second terminal are mobile terminals, for example, a mobile phone or a tablet computer. The first terminal and the second terminal are not limited by regions, and can belong to the same region as in Beijing, and even the first terminal and the second terminal can be in face-to-face position relationship; of course, the two terminals can belong to different regions, such as the first terminal in Beijing, and the second terminal in Shenzhen. If the first terminal and the second terminal are in face-to-face position relationship, the first terminal may not send the synchronous graphic code to the second terminal after generating the synchronous graphic code, but directly display the synchronous graphic code to the second terminal.
According to the technical scheme, the synchronous graphic code is applied to test synchronization, the synchronous graphic code is generated through the first terminal based on the first test configuration data, the synchronous graphic code is sent to the second terminal through the first terminal, the synchronous graphic code is used as an information carrier, the first test configuration data of the first terminal is synchronized to the second terminal, the participation of a server is not needed in the whole test synchronization process, the test synchronization process is effectively simplified, and the test synchronization cost is reduced. According to the technical scheme, the second terminal adopts the first test configuration data extracted from the synchronous graphic code to test the target application in the second terminal, so that the operation data of the target application is obtained, the test experiment of the first terminal on the target application can be reproduced in the second terminal, and the software architecture of the target application can be optimized conveniently.
In an alternative embodiment, generating a synchronization pattern for the test synchronization request based on the first test configuration data includes: determining a target data amount of the first test configuration data; if the target data volume is greater than or equal to a data volume threshold, storing the first test configuration data to a cloud; and generating the synchronous graphic code based on the cloud storage address of the first test configuration data.
The target data size is used for quantifying the size of the memory space required by the first test configuration data. The target data amount of the first test configuration data is related to the number of test experiments associated with the target application in the first terminal. Generally, the greater the number of test experiments associated with the target application in the first terminal, the greater the target data amount of the first test configuration data. It can be known that the amount of data that the synchronization graphic code can carry is limited, and if the target data amount of the first test configuration data exceeds the maximum data amount that the synchronization graphic code can carry, the test synchronization will fail.
In order to ensure the success rate of test synchronization, comparing the target data volume of the first test configuration data with a data volume threshold value to obtain a data volume comparison result. And determining a graphic code material for generating the synchronous graphic code according to the comparison result of the data quantity. Specifically, if the target data size of the first test configuration data is greater than or equal to the data size threshold, which indicates that the target data size of the first test configuration data exceeds the maximum data size that can be carried by the synchronous graphic code, the first test configuration data is stored to the cloud through the first terminal. And taking the cloud storage address of the first test configuration data as a graphic code material. Generating a synchronous graphic code based on a cloud storage address of the first test configuration data through the first terminal; and if the target data volume of the first test configuration data is smaller than the data volume threshold value, indicating that the target data volume of the first test configuration data is smaller than the maximum data volume which can be carried by the synchronous graphic code, using the first test configuration data as a graphic code material, and generating the synchronous graphic code based on the first test configuration data.
Optionally, unique identifiers are allocated to different types of graphic code materials, so that the second terminal can distinguish whether the data extracted from the synchronous graphic codes is a cloud storage address of the first test configuration data or not.
The data quantity threshold is determined according to the maximum data quantity carried by the synchronous graphic code and is used for determining graphic code materials for generating the synchronous graphic code. There is a difference in the maximum amount of data that can be carried by different types of synchronous graphics codes. For example, if the synchronous graphic code is a two-dimensional code, the data capacity of the black-and-white two-dimensional code is about 10KB, the data capacity of the 24-color two-dimensional code is between 1MB and 2MB, and the 256-color three-layer two-dimensional code can accommodate 1TB of data. The specific value of the data amount threshold and the specific type of the synchronous graphic code are determined according to the actual service requirement, and are not limited herein.
According to the technical scheme, the feasible synchronous graphic code generation method is provided, and under the condition that the target data volume of the first test configuration data is larger than or equal to the data volume threshold value, the complete first test configuration data can be synchronized to the second terminal, so that the reliability of the test synchronization method is improved.
In an alternative embodiment, before generating the synchronization pattern for the test synchronization request based on the first test configuration data, the method further comprises: determining candidate applications in the first terminal which are being tested, and acquiring operation data of the candidate applications; and determining the candidate application with abnormal operation as the target application, and generating a test synchronization request for the target application.
The candidate application refers to application software which is installed in the first terminal and is being tested. Each candidate application has corresponding operation data, and the operation data is used for determining the operation state of the application software. Wherein, the running state includes: abnormal operation and normal operation. The target application is application software running abnormally in the candidate applications.
In order to locate the reason of abnormal operation of the target application, the first terminal generates a test synchronization request for the target application, and requests to synchronize first test configuration data of the target application in the first terminal to the second terminal. And testing the target application by adopting the first test configuration data through the second terminal, and reproducing the test experiment of the first terminal on the target application in the second terminal. And then, positioning the reason of the abnormality of the target application in the first terminal based on the operation data obtained by testing the target application by the second terminal through the first test configuration data.
According to the technical scheme, under the condition that the first terminal tests the target application and the operation of the target application is abnormal, a test synchronous request is generated for the target application, and the first test configuration data adopted by the first terminal for testing the target application is requested to be synchronously transmitted to the second terminal, so that the test experiment of the first terminal on the target application is repeated in the second terminal, the problems in the test process can be positioned quickly, the problem positioning efficiency can be improved, and the problem positioning cost can be reduced.
FIG. 2 is a flow chart of another test synchronization method provided in accordance with an embodiment of the present disclosure; this embodiment is an alternative to the embodiments described above.
Referring to fig. 2, the test synchronization method provided in this embodiment includes:
s201, in response to a test synchronization request for a target application, determining first test configuration data adopted in a process of testing the target application by a first terminal.
S202, encrypting the first test configuration data to obtain a test configuration data ciphertext.
In order to ensure the data security of the test synchronization, the first terminal encrypts the first test configuration data. The test configuration data ciphertext is an encryption processing result of the first test configuration data. Optionally, the first terminal encrypts the first test data by using a public key predetermined with the second terminal to obtain a test configuration data ciphertext. The test configuration data ciphertext can only be decrypted by using the private key held by the second terminal to obtain the test configuration data plaintext.
By encrypting the first test data, the security of test synchronization can be greatly ensured, even if the synchronous graphic code is intercepted by other terminals except the second terminal in the transmission process, the other terminals can only extract test configuration data ciphertext from the synchronous graphic code, and the test configuration data plaintext cannot be obtained under the condition that the other terminals do not hold a decryption private key.
Optionally, if the cloud storage address of the first test configuration data is synchronized to the second terminal through the synchronization graphic code, the first terminal encrypts the cloud storage address.
S203, determining the data acquisition time of the first test configuration data, and generating a test synchronization instruction based on the data acquisition time.
It will be appreciated that the first test configuration data is not always valid and may fail due to software version changes of the target application and operating environment fluctuations. Therefore, it is necessary to define the validity of the first test configuration data. Specifically, the validity period of the synchronous graphic code is determined according to the data acquisition time of the first test configuration data so as to limit the validity of the first test configuration data. This is because the second terminal cannot extract data from the failed synchronization pattern.
The data acquisition time refers to the time when the first terminal acquires the first test configuration data.
Based on the data acquisition time, a test synchronization instruction can be generated, optionally, the data acquisition time and a preset character string are spliced, and the obtained character splicing result is used as the test synchronization instruction. The preset character string may be determined according to an actual service requirement, which is not limited herein. The preset string may be updateabrinfo, for example.
The second terminal is used for indicating the second terminal to extract the first test configuration data from the synchronous graphic code. And then, the second terminal adopts the first test configuration data to test the target application in the second terminal.
S204, generating a synchronous graphic code for the test synchronous request according to the test configuration data ciphertext and the test synchronous instruction.
Optionally, the first terminal performs splicing processing on the test configuration data ciphertext and the test synchronization instruction, and generates a synchronization graphic code for the test synchronization request based on the obtained splicing result.
S205, sending the synchronization graphic code to the second terminal, where the second terminal performs the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
According to the technical scheme, the feasible synchronous graphic code generation method is provided, and the test configuration data ciphertext obtained by encrypting the first test configuration data by the first terminal is used for generating the synchronous graphic code, so that the data safety of test synchronization is ensured. And generating a test synchronization instruction based on the data acquisition time of the first test configuration data, and using the test synchronization test instruction and the test configuration data ciphertext together to generate a synchronous graphic code, so that the validity of the first test configuration data and the use of the synchronous graphic code are conveniently limited, and technical support is provided for realizing test synchronization based on the graphic code.
In an alternative embodiment, before generating the synchronization pattern for the test synchronization request based on the first test configuration data, the method further comprises: acquiring network connection data of a first terminal; determining whether the first terminal has the access right of the appointed network according to the network connection data; and if the first terminal has the access right of the appointed network, generating a synchronous graphic code for the test synchronous request based on the first test configuration data.
In order to ensure the safety of test synchronization, in the process of carrying out test synchronization on the target application, specifically, before generating a synchronous graphic code for a test synchronization request, the first terminal is identified about the test synchronization authority of the target application. It can be appreciated that the first terminal may be simultaneously installed with multiple applications, and different applications may have differences in the requirements of the test synchronization authority. In general, the function of performing test synchronization on a target application is only open to the inside of a test development team of the target application.
And acquiring network connection data of the first terminal. Alternatively, the network connection data may include an access network type. The access network type may be, for example, a wireless local area network or a virtual private network. And further determining whether the first terminal has the access right of the designated network under the condition that the access network type of the first terminal is determined. The designated network is related to a test research and development team of the target application, and is a dedicated network of the test research and development team, for example, the designated network may be a corporate intranet.
Determining whether the first terminal has the access right of the appointed network according to the network connection data, and optionally, if the type of the first terminal access network is a wireless local area network, determining whether the wireless local area network is a company intranet; if the first terminal access network type is a virtual private network, determining whether the first terminal can access a designated page of the company intranet.
If the first terminal has the access authority of the appointed network, which indicates that the first terminal has the test synchronization authority of the target application, a synchronous graphic code is generated for the test synchronization request based on the first test configuration data. Otherwise, a synchronization pattern cannot be generated for the test synchronization request.
According to the technical scheme, in the process of testing and synchronizing the target application, specifically, before a synchronous graphic code is generated for a testing and synchronizing request, whether the first terminal has the access right of a designated network is determined according to the network connection data of the first terminal; under the condition that the first terminal has the access authority of the appointed network, based on the first test configuration data, whether the first terminal has the test synchronization authority of the target application is identified, and the safety of test synchronization is ensured.
Fig. 3 is a flowchart of another test synchronization method provided according to an embodiment of the present disclosure, which is applicable to a case of synchronizing test experiments of application software. The method may be performed by a test synchronization device, which may be implemented in software and/or hardware, configured in the second terminal. As shown in fig. 3, the test synchronization method of the present embodiment may include:
S301, acquiring a synchronous graphic code from a first terminal; and the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal.
S302, extracting the first test configuration data from the synchronous graphic code.
S303, testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
The first terminal and the second terminal are respectively provided with a target application. Optionally, the target application has associated therewith at least two sets of test experiments. The test experiment corresponds to a functional item of the target application, and the functional item of the target application can be tested based on the test experiment. The synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal. The first test configuration data is used for the first terminal to configure test experiments.
The second terminal acquires the synchronous graphic code from the first terminal, and the synchronous graphic code is used as an information carrier to synchronize the first test configuration data adopted by the first terminal to the second terminal in a mode of transmitting the synchronous graphic code between the first terminal and the second terminal.
The second terminal scans the synchronization pattern and extracts the first test configuration data therefrom. Optionally, the second terminal directly adopts the first test configuration data obtained from the first terminal to test the target application, so as to obtain the running data of the target application.
According to the technical scheme, the synchronous graphic code is applied to test synchronization, the synchronous graphic code is generated through the first terminal based on the first test configuration data, the synchronous graphic code is sent to the second terminal through the first terminal, the synchronous graphic code is used as an information carrier, the first test configuration data of the first terminal is synchronized to the second terminal, the participation of a server is not needed in the whole test synchronization process, the test synchronization process is effectively simplified, and the test synchronization cost is reduced. According to the technical scheme, the second terminal adopts the first test configuration data extracted from the synchronous graphic code to test the target application in the second terminal, so that the operation data of the target application is obtained, the test experiment of the first terminal on the target application can be reproduced in the second terminal, and the software architecture of the target application can be optimized conveniently.
In an alternative embodiment, extracting the first test configuration data from the synchronization pattern includes: determining whether the data extracted from the synchronous graphic code is a cloud storage address or not; if yes, acquiring the first test configuration data from the cloud based on the cloud storage address.
The synchronous graphic code is generated based on graphic code materials, and the graphic code materials can comprise cloud storage addresses comprising first test configuration data or the first test configuration data. The type of the graphic code material is related to the relative size between the target data volume of the first test configuration data and the data volume threshold value, and if the target data volume of the first test configuration data is greater than or equal to the data volume threshold value, the graphic code material is a cloud storage address of the first test configuration data; otherwise, the graphic code material is the first test configuration data.
The second terminal distinguishes whether the data extracted from the synchronous graphic code is a cloud storage address of the first test configuration data or the first test configuration data based on the unique identification of the graphic code material.
If the data extracted from the synchronous graphic code by the second terminal is the cloud storage address of the first test configuration data, the second terminal acquires the first test configuration data from the cloud based on the cloud storage address of the first test configuration data.
According to the technical scheme, under the condition that the target data volume of the first test configuration data is larger than or equal to the data volume threshold value, the complete first test configuration data can be synchronized to the second terminal, specifically, the first test configuration data is stored in the cloud, and the second terminal reads the first test configuration data from the cloud based on the cloud storage address, so that the reliability of the test synchronization method is improved.
In an alternative embodiment, extracting the first test configuration data from the synchronization pattern includes: extracting a test synchronous instruction from the synchronous graphic code, and determining whether the synchronous graphic code fails according to the data acquisition time in the test synchronous instruction; if the synchronous graphic code is valid, extracting configuration data ciphertext from the synchronous graphic code; and decrypting the configuration data ciphertext to obtain the first test configuration data.
The synchronous graphic code is generated based on a test synchronous instruction and a configuration data ciphertext, and an acting object of the test synchronous instruction is a second terminal and is used for indicating the second terminal to extract first test configuration data from the synchronous graphic code. And then, the second terminal adopts the first test configuration data to test the target application in the second terminal.
The test synchronization instruction is generated by the first terminal based on the data acquisition time of the first test configuration data. The data acquisition time refers to the time when the first terminal acquires the first test configuration data. The data acquisition time may be used to determine the expiration date of the synchronous graphic code.
Optionally, the second terminal determines a graphic code acquisition time of the synchronous graphic code, determines a time difference between the graphic code acquisition time and the data acquisition time, and compares the obtained time difference with a preset effective duration. If the time difference exceeds the preset effective duration, the synchronous graphic code is invalid; otherwise, the synchronous graphic code is valid.
If the synchronous graphic code is invalid, the second terminal cannot extract the data from the synchronous graphic code. If the synchronous graphic code is valid, the second terminal also extracts a configuration data ciphertext from the synchronous graphic code; and decrypting the configuration data ciphertext to obtain the first test configuration data.
The configuration data ciphertext is obtained by encrypting the first test configuration data through the first terminal. And the second terminal decrypts the configuration data ciphertext to obtain the first test configuration data.
According to the technical scheme, the configuration data ciphertext is extracted from the synchronous graphic code through the second terminal under the condition that the synchronous graphic code is effective, and the first test configuration data is obtained through decrypting the test configuration data ciphertext through the second terminal, so that the data safety of test synchronization is ensured, and meanwhile, the effectiveness of test synchronization is ensured.
Similar to the authentication process for the test synchronization right of the first terminal, in an alternative embodiment, the test synchronization right of the second terminal is authenticated before the first test configuration data is extracted from the synchronization pattern, specifically: acquiring network connection data of a second terminal; determining whether the second terminal has the access right of the appointed network according to the network connection data; if the second terminal has the access right of the appointed network, the first test configuration data is extracted from the synchronous graphic code, so that the safety of test synchronization can be further ensured. Specific details regarding the authentication of the test synchronization right of the second terminal will not be discussed further herein, see in particular the authentication details of the test synchronization right of the first terminal.
FIG. 4 is a flow chart of another test synchronization method provided in accordance with an embodiment of the present disclosure; this embodiment is an alternative to the embodiments described above.
Referring to fig. 4, the test synchronization method provided in this embodiment includes:
s401, acquiring a synchronous graphic code from a first terminal; the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal;
s402, extracting the first test configuration data from the synchronous graphic code;
s403, determining second test configuration data adopted in the process of testing the target application by the second terminal;
and the first terminal and the second terminal are respectively provided with a target application. Optionally, the target application has associated therewith at least two sets of test experiments. The test experiment corresponds to a functional item of the target application, and the functional item of the target application can be tested based on the test experiment.
The test experiments are AB experiments, and one test experiment corresponds to at least two different experimental schemes. For the same test experiment, the first terminal and the second terminal can respectively adopt different experimental schemes. For example, test experiment 1 corresponds to 2 different protocols, protocol a and protocol B, respectively. The first terminal adopts an experimental scheme A of a test experiment 1 to test a target application; and the second terminal adopts an experimental scheme B of the test experiment 1 to test the target application.
The first test configuration data corresponds to the first terminal, and the first terminal adopts the first test configuration data to test the target application; the second test configuration data corresponds to the second terminal, and the second terminal adopts the second test configuration data to test the target application.
S404, adjusting the second test configuration data based on the first test configuration data.
The second terminal compares the first test configuration data with the second test configuration data, and adjusts the second test configuration data based on the first test configuration data. Optionally, the second terminal adjusts second test configuration data corresponding to the partial test experiments under the condition that the target application is associated with at least two groups of test experiments. Of course, the second terminal may adjust the second test configuration data based on the first test configuration data a plurality of times. For example, the second test configuration data corresponding to all the test experiments may be adjusted for the first time, the second test configuration data may be restored, and then a part of the test experiments may be selected from all the test experiments, and the second test configuration data corresponding to the selected test experiments may be adjusted.
Under the condition that the first terminal tests the target application and the operation of the target application is abnormal, the method for adjusting the second test configuration data based on multiple times can eliminate the relative influence among different test experiments and is beneficial to quickly positioning the cause of the operation abnormality of the target application. The flexibility of the test synchronization method is improved.
S405, testing the target application in the second terminal by adopting the adjusted second test configuration data to obtain the running data of the target application.
And the second terminal adopts the adjusted second test configuration data to test the target application in the second terminal to obtain the running data of the target application.
According to the technical scheme, the second terminal compares the first test configuration data with the second test configuration data, adjusts the second test configuration data based on the first test configuration data, adopts the adjusted second test configuration data to test the target application in the second terminal to obtain the operation data of the target application, and reproduces the test experiment of the first terminal on the target application in the second terminal, so that problems in the quick positioning test process are facilitated, the problem positioning efficiency is facilitated, and the problem positioning cost is reduced.
In an alternative embodiment, adjusting the second test configuration data based on the first test configuration data includes: comparing the second test configuration data with the first test configuration data to obtain a configuration comparison result; determining a key test experiment from candidate test experiments related to target application according to the configuration comparison result; displaying first scheme selection parameters corresponding to the key test experiments and second scheme selection parameters corresponding to the key test experiments; adjusting the second test configuration data according to a recipe selection parameter adjustment operation acting on the second recipe selection parameter; the first scheme selection parameter and the second scheme selection parameter are respectively extracted from the first test configuration data and the second test configuration data.
The configuration comparison result is used for determining the configuration difference between the first test experiment and the second test experiment. The first test experiment is used for testing the target application by the first terminal; the second test experiment is a test experiment adopted by the second terminal for testing the target application.
And (3) configuring a comparison result, namely comparing the first scheme selection parameter with the second scheme selection parameter, wherein the first scheme selection parameter and the second scheme selection parameter are respectively extracted from the first test configuration data and the second test configuration data.
And determining a key test experiment from candidate test experiments associated with the target application according to the configuration comparison result. The candidate test experiment refers to a test experiment for testing a target application. The key test experiment refers to a test experiment in which the first scheme selection parameter and the second scheme selection parameter are inconsistent. The key test experiments can be one group or multiple groups, and are not limited herein, and the key test experiments are specifically determined according to practical situations.
Displaying first scheme selection parameters corresponding to the key test experiments and second scheme selection parameters corresponding to the key test experiments through a second terminal;
And acquiring a scheme selection parameter adjustment operation acting on the second scheme selection parameter, and adjusting the second test configuration data according to the acquired scheme selection parameter adjustment operation. The scheme selection parameter adjustment operation can be applied to any scheme selection parameter in any key test experiment. Of course, the disclosed solution also supports the second solution selection parameters in the reduction-critical test experiments.
According to the technical scheme, the second test configuration data is adjusted according to the scheme selection parameter adjustment operation acting on the second scheme selection parameter, the second test configuration data is adjusted according to the requirement, the relative influence among different test experiments is eliminated conveniently, and the flexibility of the test synchronization method is improved.
Fig. 5 is a schematic structural diagram of a test synchronization device according to an embodiment of the present disclosure. The embodiment of the disclosure is suitable for the condition of synchronizing the test experiments of the application software. The device can be implemented by software and/or hardware and configured in the first terminal, and can implement the test synchronization method according to any embodiment of the disclosure.
As shown in fig. 5, the test synchronization device 500 includes:
a configuration data determining module 501, configured to determine first test configuration data adopted in a process of testing a target application by a first terminal in response to a test synchronization request for the target application;
A first graphic code generating module 502, configured to generate a synchronous graphic code for the test synchronization request based on the first test configuration data;
a graphic code transmitting module 503, configured to transmit the synchronous graphic code to the second terminal, where the second terminal performs the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
According to the technical scheme, the synchronous graphic code is applied to test synchronization, the synchronous graphic code is generated through the first terminal based on the first test configuration data, the synchronous graphic code is sent to the second terminal through the first terminal, the synchronous graphic code is used as an information carrier, the first test configuration data of the first terminal is synchronized to the second terminal, the participation of a server is not needed in the whole test synchronization process, the test synchronization process is effectively simplified, and the test synchronization cost is reduced. According to the technical scheme, the second terminal adopts the first test configuration data extracted from the synchronous graphic code to test the target application in the second terminal, so that the operation data of the target application is obtained, the test experiment of the first terminal on the target application can be reproduced in the second terminal, and the software architecture of the target application can be optimized conveniently.
Optionally, the first graphic code generating module 502 includes: a data amount determination sub-module for determining a target data amount of the first test configuration data; the data storage sub-module is used for storing the first test configuration data to the cloud end if the target data size is larger than or equal to a data size threshold value; and the first graphic code generation sub-module is used for generating the synchronous graphic code based on the cloud storage address of the first test configuration data.
Optionally, the first graphic code generating module 502 includes: the data encryption sub-module is used for carrying out encryption processing on the first test configuration data to obtain a test configuration data ciphertext; the instruction generation sub-module is used for determining the data acquisition time of the first test configuration data and generating a test synchronization instruction based on the data acquisition time; and the second graphic code generation sub-module is used for generating a synchronous graphic code for the test synchronous request according to the test configuration data ciphertext and the test synchronous instruction.
Optionally, the apparatus further includes: the operation data acquisition module is used for determining candidate applications in the first terminal which are being tested before the synchronous graphic code is generated for the test synchronous request based on the first test configuration data, and acquiring operation data of the candidate applications; and the synchronous request generation module is used for determining the candidate application with abnormal operation as the target application and generating a test synchronous request for the target application.
Optionally, the apparatus further includes: the network connection data acquisition module is used for acquiring network connection data of the first terminal before generating the synchronous graphic code for the test synchronous request based on the first test configuration data; the network access right determining module is used for determining whether the first terminal has the access right of the appointed network according to the network connection data; and the second graphic code generation module is used for generating a synchronous graphic code for the test synchronous request based on the first test configuration data if the first terminal has the access right of the appointed network.
The test synchronization device provided by the embodiment of the disclosure can execute the test synchronization method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the test synchronization method.
Fig. 6 is a schematic structural diagram of another test synchronization device provided according to an embodiment of the present disclosure. The embodiment of the disclosure is suitable for the condition of synchronizing the test experiments of the application software. The device can be implemented by software and/or hardware and configured in the second terminal, and the device can implement the test synchronization method according to any embodiment of the disclosure.
As shown in fig. 6, the test synchronization device 600 includes:
a graphic code acquisition module 601, configured to acquire a synchronous graphic code from a first terminal; the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal;
a configuration data extraction module 602, configured to extract the first test configuration data from the synchronous graphic code;
and the target application testing module 603 is configured to test the target application in the second terminal by using the first test configuration data, so as to obtain operation data of the target application.
According to the technical scheme, the synchronous graphic code is applied to test synchronization, the synchronous graphic code is generated through the first terminal based on the first test configuration data, the synchronous graphic code is sent to the second terminal through the first terminal, the synchronous graphic code is used as an information carrier, the first test configuration data of the first terminal is synchronized to the second terminal, the participation of a server is not needed in the whole test synchronization process, the test synchronization process is effectively simplified, and the test synchronization cost is reduced. According to the technical scheme, the second terminal adopts the first test configuration data extracted from the synchronous graphic code to test the target application in the second terminal, so that the operation data of the target application is obtained, the test experiment of the first terminal on the target application can be reproduced in the second terminal, and the software architecture of the target application can be optimized conveniently.
Optionally, the target application test module 603 includes: a configuration data determining submodule, configured to determine second test configuration data adopted in a process of testing the target application by the second terminal; a configuration data adjustment sub-module for adjusting the second test configuration data based on the first test configuration data; and the target application testing sub-module is used for testing the target application in the second terminal by adopting the adjusted second testing configuration data to obtain the running data of the target application.
Optionally, the configuration data adjustment sub-module includes: the configuration data comparison unit is used for comparing the second test configuration data with the first test configuration data to obtain a configuration comparison result; the key experiment determining unit is used for determining a key test experiment from candidate test experiments related to target application according to the configuration comparison result; the scheme selection parameter display unit is used for displaying first scheme selection parameters corresponding to the key test experiment and second scheme selection parameters corresponding to the key test experiment; a configuration data adjustment unit configured to adjust the second test configuration data according to a scenario selection parameter adjustment operation acting on the second scenario selection parameter; the first scheme selection parameter and the second scheme selection parameter are respectively extracted from the first test configuration data and the second test configuration data.
Optionally, the configuration data extraction module 602 includes: the data type judging sub-module is used for determining whether the data extracted from the synchronous graphic code is a cloud storage address or not; and the configuration data acquisition sub-module is used for acquiring the first test configuration data from the cloud based on the cloud storage address if the configuration data is yes.
Optionally, the configuration data extraction module 602 includes: the graphic code validity determining submodule is used for extracting a test synchronous instruction from the synchronous graphic code and determining whether the synchronous graphic code fails or not according to the data acquisition time in the test synchronous instruction; the configuration data ciphertext extraction sub-module is used for extracting configuration data ciphertext from the synchronous graphic code if the synchronous graphic code is effective; and the data ciphertext decryption sub-module is used for decrypting the configuration data ciphertext to obtain the first test configuration data.
The test synchronization device provided by the embodiment of the disclosure can execute the test synchronization method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the test synchronization method.
In the technical scheme of the disclosure, the related user information is collected, stored, used, processed, transmitted, provided, disclosed and the like, all conform to the regulations of related laws and regulations, and the public order is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 7 illustrates a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information/data with other devices through a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the respective methods and processes described above, such as a test synchronization method. For example, in some embodiments, the test synchronization method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 700 via the ROM 702 and/or the communication unit 709. When a computer program is loaded into RAM 703 and executed by computing unit 701, one or more steps of the test synchronization method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the test synchronization method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable test synchronization device such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
Artificial intelligence is the discipline of studying the process of making a computer mimic certain mental processes and intelligent behaviors (e.g., learning, reasoning, thinking, planning, etc.) of a person, both hardware-level and software-level techniques. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligent software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge graph technology and the like.
Cloud computing (cloud computing) refers to a technical system that a shared physical or virtual resource pool which is elastically extensible is accessed through a network, resources can comprise servers, operating systems, networks, software, applications, storage devices and the like, and resources can be deployed and managed in an on-demand and self-service mode. Through cloud computing technology, high-efficiency and powerful data processing capability can be provided for technical application such as artificial intelligence and blockchain, and model training.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (23)

1. A test synchronization method performed by a first terminal, the method comprising:
responding to a test synchronization request of a target application, and determining first test configuration data adopted in the process of testing the target application by a first terminal;
generating a synchronous graphic code for the test synchronization request based on the first test configuration data;
and transmitting the synchronous graphic code to the second terminal, wherein the second terminal performs the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
2. The method of claim 1, wherein the generating a synchronization pattern for the test synchronization request based on the first test configuration data comprises:
Determining a target data amount of the first test configuration data;
if the target data volume is greater than or equal to a data volume threshold, storing the first test configuration data to a cloud;
and generating the synchronous graphic code based on the cloud storage address of the first test configuration data.
3. The method of claim 1, wherein the generating a synchronization pattern for the test synchronization request based on the first test configuration data comprises:
encrypting the first test configuration data to obtain a test configuration data ciphertext;
determining the data acquisition time of the first test configuration data, and generating a test synchronization instruction based on the data acquisition time;
and generating a synchronous graphic code for the test synchronous request according to the test configuration data ciphertext and the test synchronous instruction.
4. The method of claim 1, prior to generating a synchronization pattern for the test synchronization request based on the first test configuration data, the method further comprising:
determining candidate applications in the first terminal which are being tested, and acquiring operation data of the candidate applications;
and determining the candidate application with abnormal operation as the target application, and generating a test synchronization request for the target application.
5. The method of claim 1, prior to generating a synchronization pattern for the test synchronization request based on the first test configuration data, the method further comprising:
acquiring network connection data of a first terminal;
determining whether the first terminal has the access right of the appointed network according to the network connection data;
and if the first terminal has the access right of the appointed network, generating a synchronous graphic code for the test synchronous request based on the first test configuration data.
6. A test synchronization method performed by a second terminal, the method comprising:
acquiring a synchronous graphic code from a first terminal; the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal;
extracting the first test configuration data from the synchronous graphic code;
and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
7. The method of claim 6, wherein the testing the target application in the second terminal with the first test configuration data to obtain the operation data of the target application includes:
Determining second test configuration data adopted in the process of testing the target application by the second terminal;
adjusting the second test configuration data based on the first test configuration data;
and testing the target application in the second terminal by adopting the adjusted second test configuration data to obtain the running data of the target application.
8. The method of claim 7, wherein adjusting the second test configuration data based on the first test configuration data comprises:
comparing the second test configuration data with the first test configuration data to obtain a configuration comparison result;
determining a key test experiment from candidate test experiments related to target application according to the configuration comparison result;
displaying first scheme selection parameters corresponding to the key test experiments and second scheme selection parameters corresponding to the key test experiments;
adjusting the second test configuration data according to a recipe selection parameter adjustment operation acting on the second recipe selection parameter;
the first scheme selection parameter and the second scheme selection parameter are respectively extracted from the first test configuration data and the second test configuration data.
9. The method of claim 6, wherein extracting the first test configuration data from the synchronous graphics code comprises:
determining whether the data extracted from the synchronous graphic code is a cloud storage address or not;
if yes, acquiring the first test configuration data from the cloud based on the cloud storage address.
10. The method of claim 6, wherein extracting the first test configuration data from the synchronous graphics code comprises:
extracting a test synchronous instruction from the synchronous graphic code, and determining whether the synchronous graphic code fails according to the data acquisition time in the test synchronous instruction;
if the synchronous graphic code is valid, extracting configuration data ciphertext from the synchronous graphic code;
and decrypting the configuration data ciphertext to obtain the first test configuration data.
11. A test synchronization device configured at a first terminal, the device comprising:
the configuration data determining module is used for determining first test configuration data adopted in the process of testing the target application by the first terminal in response to the test synchronization request of the target application;
the first graphic code generation module is used for generating a synchronous graphic code for the test synchronous request based on the first test configuration data;
The graphic code transmitting module is used for transmitting the synchronous graphic code to the second terminal, and the second terminal executes the following steps: extracting the first test configuration data from the synchronous graphic code; and testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
12. The apparatus of claim 11, wherein the first graphics code generation module comprises:
a data amount determination sub-module for determining a target data amount of the first test configuration data;
the data storage sub-module is used for storing the first test configuration data to the cloud end if the target data size is larger than or equal to a data size threshold value;
and the first graphic code generation sub-module is used for generating the synchronous graphic code based on the cloud storage address of the first test configuration data.
13. The apparatus of claim 11, wherein the first graphics code generation module comprises:
the data encryption sub-module is used for carrying out encryption processing on the first test configuration data to obtain a test configuration data ciphertext;
the instruction generation sub-module is used for determining the data acquisition time of the first test configuration data and generating a test synchronization instruction based on the data acquisition time;
And the second graphic code generation sub-module is used for generating a synchronous graphic code for the test synchronous request according to the test configuration data ciphertext and the test synchronous instruction.
14. The apparatus of claim 11, the apparatus further comprising:
the operation data acquisition module is used for determining candidate applications in the first terminal which are being tested before the synchronous graphic code is generated for the test synchronous request based on the first test configuration data, and acquiring operation data of the candidate applications;
and the synchronous request generation module is used for determining the candidate application with abnormal operation as the target application and generating a test synchronous request for the target application.
15. The apparatus of claim 11, the apparatus further comprising:
the network connection data acquisition module is used for acquiring network connection data of the first terminal before generating the synchronous graphic code for the test synchronous request based on the first test configuration data;
the network access right determining module is used for determining whether the first terminal has the access right of the appointed network according to the network connection data;
and the second graphic code generation module is used for generating a synchronous graphic code for the test synchronous request based on the first test configuration data if the first terminal has the access right of the appointed network.
16. A test synchronization device configured at a second terminal, the device comprising:
the graphic code acquisition module is used for acquiring synchronous graphic codes from the first terminal; the synchronous graphic code is generated according to first test configuration data adopted in the process of testing the target application by the first terminal;
a configuration data extraction module, configured to extract the first test configuration data from the synchronous graphic code;
and the target application testing module is used for testing the target application in the second terminal by adopting the first test configuration data to obtain the running data of the target application.
17. The apparatus of claim 16, wherein the target application test module comprises:
a configuration data determining submodule, configured to determine second test configuration data adopted in a process of testing the target application by the second terminal;
a configuration data adjustment sub-module for adjusting the second test configuration data based on the first test configuration data;
and the target application testing sub-module is used for testing the target application in the second terminal by adopting the adjusted second testing configuration data to obtain the running data of the target application.
18. The apparatus of claim 17, wherein the configuration data adjustment sub-module comprises:
The configuration data comparison unit is used for comparing the second test configuration data with the first test configuration data to obtain a configuration comparison result;
the key experiment determining unit is used for determining a key test experiment from candidate test experiments related to target application according to the configuration comparison result;
the scheme selection parameter display unit is used for displaying first scheme selection parameters corresponding to the key test experiment and second scheme selection parameters corresponding to the key test experiment;
a configuration data adjustment unit configured to adjust the second test configuration data according to a scenario selection parameter adjustment operation acting on the second scenario selection parameter;
the first scheme selection parameter and the second scheme selection parameter are respectively extracted from the first test configuration data and the second test configuration data.
19. The apparatus of claim 16, wherein the configuration data extraction module comprises:
the data type judging sub-module is used for determining whether the data extracted from the synchronous graphic code is a cloud storage address or not;
and the configuration data acquisition sub-module is used for acquiring the first test configuration data from the cloud based on the cloud storage address if the configuration data is yes.
20. The apparatus of claim 16, wherein the configuration data extraction module comprises:
the graphic code validity determining submodule is used for extracting a test synchronous instruction from the synchronous graphic code and determining whether the synchronous graphic code fails or not according to the data acquisition time in the test synchronous instruction;
the configuration data ciphertext extraction sub-module is used for extracting configuration data ciphertext from the synchronous graphic code if the synchronous graphic code is effective;
and the data ciphertext decryption sub-module is used for decrypting the configuration data ciphertext to obtain the first test configuration data.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the test synchronization method according to any one of claims 1-6 or claims 7-10.
22. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the test synchronization method according to any one of claims 1-6 or claims 7-10.
23. A computer program product comprising a computer program which, when executed by a processor, implements the test synchronization method according to any one of claims 1-6 or claims 7-10.
CN202310498986.9A 2023-05-05 2023-05-05 Test synchronization method, device, electronic equipment and medium Pending CN116578479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310498986.9A CN116578479A (en) 2023-05-05 2023-05-05 Test synchronization method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310498986.9A CN116578479A (en) 2023-05-05 2023-05-05 Test synchronization method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116578479A true CN116578479A (en) 2023-08-11

Family

ID=87533349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310498986.9A Pending CN116578479A (en) 2023-05-05 2023-05-05 Test synchronization method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116578479A (en)

Similar Documents

Publication Publication Date Title
CN110365491B (en) Service processing method, device, equipment, storage medium and data sharing system
US10659226B2 (en) Data encryption method, decryption method, apparatus, and system
CN103065178B (en) A kind of Quick Response Code sharing apparatus, access means and sharing method
CN113034118B (en) Business auditing method, system, readable storage medium and computer program product
CN111478974B (en) Network connection method and device, electronic equipment and readable storage medium
CN107872315B (en) Data processing method and intelligent terminal
CN109889410B (en) Method, system, device, proxy equipment and storage medium for testing service function
CN115129518B (en) Backup and recovery method, device, equipment and medium for TEE (trusted execution environment) internal storage data
CN114363094B (en) Data sharing method, device, equipment and storage medium
CN113901370B (en) Certificate deployment method, device, electronic equipment and storage medium
CN116578479A (en) Test synchronization method, device, electronic equipment and medium
CN113794706B (en) Data processing method and device, electronic equipment and readable storage medium
US20150088976A1 (en) Information processing system, processing apparatus, and distributed processing method
CN114553548A (en) Communication method, device, equipment and storage medium
CN114785583A (en) Method, device, equipment and medium for encrypted sending and verifying of interface request
CN114239014A (en) File processing method and device based on offline device and electronic device
CN114238928A (en) Method and device for remote server management
CN104407846B (en) Information processing method and device
CN112987942A (en) Method, device and system for inputting information by keyboard, electronic equipment and storage medium
US10671505B2 (en) System and method for monitoring service
CN106487650B (en) Message synchronization method and server
CN114282237B (en) Communication method, device, equipment and storage medium
CN115580489B (en) Data transmission method, device, equipment and storage medium
CN115543392B (en) Trusted program upgrading method, device, equipment and storage medium
CN116166298B (en) Firmware upgrading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination