Attribution test method and device, electronic equipment, storage medium and system
By performing attribution detection at the second terminal and passing the results back to the first terminal to generate attribution test results, the problems of cumbersome and inaccurate testing of attribution solutions in the prior art are solved, and the testing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202311827918.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2025-07-01
AI Technical Summary
The attribution schemes in the prior art are cumbersome and prone to errors, resulting in high testing communication costs and difficult to ensure the accuracy of the test results.
By sending a preset control command at the first terminal, the second terminal is instructed to perform attribution detection on the installation channel of the test application to be tested, and generate attribution detection results. The first terminal receives these results and generates attribution test results based on the expected detection results.
Improve the efficiency and accuracy of attribution scheme testing, reducing human error and communication costs during the testing process.
Smart Images

Figure CN120234233A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an attribution testing method, apparatus, electronic device, storage medium, and system. Background Art
[0002] Pre-installation means pre-loading an application program on a device that a manufacturer or operator is about to ship, so that users who purchase the device can use the application program. Pre-installation attribution is an important part of pre-installation. When performing pre-installation attribution, it is necessary to accurately identify which channel the installation of the application program comes from to further determine the effect of pre-installation.
[0003] In the pre-installation cooperation process, attribution scheme testing is an important link. In the past, it was often tested in a purely manual manner. The specific method is described as follows: The tester completes the installation of the pre-installed application program; the tester manually resets the device's unique identification code (Identity Document, ID) on the settings page, activates the pre-installed application program, and completes the attribution. The application program records the attribution information; the tester finds the detailed information entry of the application program, for example, by quickly clicking on the application version number multiple times to obtain the attribution information of the application program; the tester provides a screenshot of the attribution information to the business side of the application program for verifying whether the attribution information meets the expectations.
[0004] However, the attribution scheme testing in the prior art is cumbersome and error-prone, and has a relatively high testing communication cost. Summary of the Invention
[0005] Embodiments of the present disclosure provide an attribution testing method, apparatus, electronic device, storage medium, and system to improve the efficiency of attribution scheme testing and the accuracy of the attribution scheme testing results.
[0006] In a first aspect, embodiments of the present disclosure provide an attribution testing method, which is applied to a first terminal. The method includes:
[0007] Sending a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result, and the application to be tested is installed on the second terminal;
[0008] Receiving the attribution detection result returned by the second terminal in response to the preset control instruction;
[0009] Generating an attribution testing result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
[0010] Second aspect, embodiments of the present disclosure further provide an attribution testing method, which is applied to a second terminal on which a to-be-tested application is installed. The method includes:
[0011] In response to a preset control instruction sent by a first terminal, perform attribution detection on the installation channel of the to-be-tested application and generate an attribution detection result;
[0012] Send the attribution detection result to the first terminal, and the attribution detection result is used for the first terminal to generate an attribution test result.
[0013] Third aspect, embodiments of the present disclosure further provide an attribution testing device, which is configured in a first terminal. The device includes:
[0014] A control instruction sending module, configured to send a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the to-be-tested application and generate an attribution detection result, and the to-be-tested application is installed on the second terminal;
[0015] An attribution detection result receiving module, configured to receive the attribution detection result returned by the second terminal in response to the preset control instruction;
[0016] A test result generating module, configured to generate an attribution test result of the to-be-tested application based on the attribution detection result and the expected detection result of the to-be-tested application.
[0017] Fourth aspect, embodiments of the present disclosure further provide an attribution testing device, which is configured in a second terminal on which a to-be-tested application is installed. The device includes:
[0018] A detection result generating module, configured to perform attribution detection on the installation channel of the to-be-tested application and generate an attribution detection result in response to a preset control instruction sent by a first terminal;
[0019] An attribution detection result sending module, configured to send the attribution detection result to the first terminal, and the attribution detection result is used for the first terminal to generate an attribution test result.
[0020] Fifth aspect, embodiments of the present disclosure further provide an electronic device, including:
[0021] One or more processors;
[0022] A memory, configured to store one or more programs,
[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the attribution testing method as described in the embodiments of the present disclosure.
[0024] Sixthly, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the attribution testing method as described in the embodiment of the present disclosure is implemented.
[0025] The attribution testing method, device, electronic device, storage medium and system provided by the embodiments of the present disclosure send a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result, and the application to be tested is installed on the second terminal; receive the attribution detection result returned by the second terminal in response to the preset control instruction; generate an attribution testing result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested. And / or, in response to a preset control instruction sent by a first terminal, perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result; send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution testing result. By using the above technical solutions, the embodiments of the present disclosure can improve the efficiency of testing the attribution scheme and the accuracy of the testing result of the attribution scheme by controlling the second terminal to test the attribution scheme adopted by the application to be tested through the first terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In combination with the drawings and referring to the following specific embodiments, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original components and elements are not necessarily drawn to scale.
[0027] Figure 1 It is a flowchart of an attribution testing method provided by an embodiment of the present disclosure;
[0028] Figure 2 It is a flowchart of another attribution testing method provided by an embodiment of the present disclosure;
[0029] Figure 3 It is a flowchart of yet another attribution testing method provided by an embodiment of the present disclosure;
[0030] Figure 4 It is a flowchart of the fourth attribution testing method provided by an embodiment of the present disclosure;
[0031] Figure 5 It is an architecture diagram of a pre-installed attribution testing system provided by an embodiment of the present disclosure;
[0032] Figure 6 It is a structural block diagram of an attribution testing device provided by an embodiment of the present disclosure;
[0033] Figure 7Block diagram of another attribution testing device provided by an embodiment of the present disclosure;
[0034] Figure 8 Schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;
[0035] Figure 9 Schematic structural diagram of an attribution testing system provided by an embodiment of the present disclosure. Detailed implementation manners
[0036] Embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not used to limit the protection scope of the present disclosure.
[0037] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed in different orders and / or executed in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0038] As used herein, the term "including" and its variants are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0039] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.
[0040] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".
[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0042] It is understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to users and the authorization of users should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] For example, when responding to an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that executes the operations of the technical solutions of the present disclosure according to the prompt message.
[0044] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user may be, for example, in the form of a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0045] It is understood that the above process of notifying and obtaining user authorization is only illustrative and does not limit the implementation manner of the present disclosure, and other manners that meet relevant laws and regulations can also be applied to the implementation manner of the present disclosure.
[0046] It is understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of corresponding laws, regulations and related provisions.
[0047] Figure 1 It is a schematic flowchart of an attribution test method provided by an embodiment of the present disclosure. This method can be executed by an attribution test device, where the device can be implemented by software and / or hardware, and can be configured in an electronic device. Typically, it can be configured in a computer, such as configured in a first terminal. The attribution test method provided by the embodiments of the present disclosure is applicable to scenarios for conducting attribution scheme tests, especially applicable to scenarios for conducting attribution scheme tests on pre-installed applications. As Figure 1 shown, the attribution test method provided in this embodiment may include:
[0048] S101. Send a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result, and the application to be tested is installed on the second terminal.
[0049] Among them, the second terminal can be a terminal that has established a communication connection with the first terminal. Exemplarily, the first terminal can be a computer terminal. Taking the application to be tested as an Android application as an example, the Android Debug Bridge (ADB) can be configured on the first terminal, and the first terminal can execute the attribution test method provided in this embodiment through the configured ADB. The second terminal can be a mobile terminal, such as a mobile phone or a tablet computer, etc., and the application to be tested can be installed on the first terminal.
[0050] The application to be tested can be understood as an application program to be tested, such as an application program that needs to test the attribution scheme of its installation channel. The installation channel can be understood as the installation source, which can be used to characterize how the application to be tested is installed on the second terminal. The preset control instruction can be used to instruct the second terminal to perform attribution detection on the installed application to be tested for the installation channel and generate an attribution detection result. The attribution detection result can be understood as the result generated by performing attribution detection, and the attribution detection result can include the detected installation channel information of the application to be tested.
[0051] Specifically, the first terminal can send a preset control instruction to the second terminal to instruct the second terminal to use the configured attribution scheme to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result through the preset control instruction, which is convenient for subsequent attribution testing based on the attribution detection result generated by the second terminal. Among them, the attribution scheme can be a scheme for performing attribution detection on the installation channel of the application to be tested, and the specific content of the attribution scheme is not limited.
[0052] S102. Receive the attribution detection result returned by the second terminal in response to the preset control instruction.
[0053] Exemplarily, after the second terminal generates an attribution detection result in response to the preset control instruction sent by the first terminal, it can send the generated attribution detection result to the first terminal. Correspondingly, the first terminal can receive the attribution detection result sent by the second terminal.
[0054] In this embodiment, the sending method of the attribution detection result to the first terminal is not limited. For example, the attribution detection result can be sent to the first terminal by the application to be tested installed in the second terminal, the attribution test application installed in the second terminal, or the sending module of the second terminal itself, etc.
[0055] In some embodiments, the attribution detection result is sent by the second terminal through an attribution test application. Before sending the preset control instruction to the second terminal, it further includes: sending an application detection instruction to the second terminal and receiving the application detection result returned by the second terminal in response to the application detection instruction. The application detection instruction is used to instruct the second terminal to detect the installation status of the attribution test application; if the application detection result indicates that the attribution test application is in an installed state, sending a second start instruction to the second terminal, where the second start instruction is used to instruct the second terminal to start the attribution test application; if the application detection result indicates that the attribution test application is in an uninstalled state, sending a second installation instruction to the second terminal, and after the attribution test application is installed, sending a second start instruction to the second terminal, where the second installation instruction is used to instruct the second terminal to install the attribution test application.
[0056] Among them, the application detection instruction can be an instruction used to instruct the second terminal to detect the installation status of the attribution test application. The installation status of a certain application program (such as the attribution test application and / or the application to be tested, etc.) can be used to characterize whether the application program has been installed. Exemplarily, the installation status can include an installed state and an uninstalled state. The attribution test application can be an application used to assist in the attribution test, and the attribution test application can be installed on the second terminal.
[0057] The application detection result can be understood as the detection result obtained by detecting the installation status of the attribution test application, and the detection result can carry the installation status information of the attribution test application. The second start instruction can be an instruction used to instruct the second terminal to start the installed attribution test application. The second installation instruction can be an instruction used to instruct the second terminal to install the attribution test application.
[0058] In the above embodiments, the second terminal can assist in the attribution test through the attribution test application, such as collecting the generated attribution detection result through the attribution test application and sending it to the first terminal; providing a visual interface to the tester, such as implementing the user interface (UI) interaction of the test process and / or the display of the attribution test result; and / or, reporting the generated attribution test result, etc.
[0059] In order to avoid the situation of instructing the application to be tested to perform attribution detection when the attribution test application has not been installed, and reduce unnecessary operations on the second terminal side, before instructing the second terminal to perform attribution detection, it is possible to detect whether the attribution test application is installed in the second terminal, and in the case where the attribution test application is not installed, instruct the second terminal to complete the installation of the attribution test application.
[0060] Exemplarily, an application detection instruction may be sent to the second terminal to instruct the second terminal to detect the installation status of the attribution test application through this application detection instruction; and the application detection result returned by the second terminal in response to this application detection instruction may be received.
[0061] If the application detection result indicates that the attribution test application is in the installed state on the second terminal, a second start instruction is sent to the second terminal to instruct the second terminal to start the installed attribution test application through this second start instruction. And / or
[0062] If the application detection result indicates that the attribution test application is in the uninstalled state on the second terminal, a second installation instruction is sent to the second terminal to instruct the second terminal to install the attribution test application; and after the attribution test application is installed, such as in the case of receiving the installation completion information for the attribution test application sent by the second terminal, or, in the case where the new application detection result generated by controlling the second terminal to detect the installation status of the attribution test application again indicates that the attribution detection application is in the installed state, a second start instruction is sent to the second terminal to instruct the second terminal to start the installed attribution test application through this second start instruction.
[0063] S103. Generate the attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
[0064] Among them, the expected detection result can be understood as the detection result expected to be generated by the second terminal, such as the standard detection result. The attribution test result can be the test result generated by testing the attribution scheme adopted by the second terminal. Exemplarily, the attribution test result can be used to characterize whether the attribution detection result of the application to be tested matches the expected detection result, and / or, in the case where the attribution detection result of the application to be tested does not completely match the expected detection result, further indicate the result items that match the expected detection result and / or the result items that do not match the expected detection result in the attribution detection result of the application to be tested, and so on.
[0065] In this embodiment, after receiving the attribution detection result sent by the second terminal, the attribution test result of the application to be tested can be generated based on this attribution detection result and the expected detection result of the application to be tested. For example, the received attribution detection result is matched with the expected detection result of the application to be tested to determine whether each result item in this attribution detection result is correct, so as to obtain the matching result between the two as the attribution detection result of the application to be tested.
[0066] In some embodiments, after receiving the attribution detection result returned by the second terminal in response to the preset control instruction, the method further includes: sending an information acquisition instruction to the second terminal, and receiving the display position information returned by the second terminal in response to the information acquisition instruction, where the display position information is used to indicate the display position of the application under test in the second terminal; generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test includes: generating the attribution test result of the application under test based on the attribution detection result, the expected detection result of the application under test, and the display position information.
[0067] Wherein, the information acquisition instruction may be an instruction for acquiring the display position information of the application under test from the second terminal. The display position information of the application under test may be information related to the display position of the application under test in the second terminal. Exemplarily, the display position information may be the position information when the application icon of the application under test is displayed on the screen of the application under test, such as the page number and / or row and column numbers where the icon of the application under test is located on the desktop of the second terminal.
[0068] In the above embodiments, the attribution test result may further include the display position information of the application under test in the second terminal, so as to facilitate relevant personnel (such as testers and / or the business party of the application under test) to determine whether the display position of the application under test meets the expectation. Compared with the prior art solutions where it is impossible to collect the display position information of the application under test or testers need to obtain the display position information of the application under test by manually taking screenshots, it can improve the comprehensiveness of the attribution scheme test, reduce the manpower consumed by the attribution scheme test, and meet the diverse test result collection requirements.
[0069] Exemplarily, after receiving the attribution detection result returned by the second terminal in response to the preset control instruction, an information acquisition instruction may be sent to the second terminal, and through this information acquisition instruction, the display position information of the application under test in the second terminal is acquired from the second terminal, and the second terminal is received to return the display position information in response to this information acquisition instruction. Thus, the attribution test result of the application under test can be generated based on the attribution detection result, the expected detection result, and the display position information of the application under test. For example, the attribution detection result of the application under test may be matched with the expected detection result to obtain a matching result, and an attribution detection result including the matching result and the display position information of the application under test is generated.
[0070] In some embodiments, the attribution test screen of the second terminal is also carried in the attribution detection result. Before sending the preset control instruction to the second terminal, it further includes: sending a screen recording instruction to the second terminal, where the screen recording instruction is used to instruct the second terminal to perform screen recording to obtain the attribution test screen of the second terminal; before generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, it further includes: receiving the attribution test screen returned by the second terminal in response to the screen recording instruction.
[0071] In the above embodiments, the attribution test result of the application under test may also include the attribution test screen of the application under test. Thus, relevant personnel can review and deduce the test process of the application under test based on the attribution test screen of the application under test, so as to improve the attribution scheme of the application under test.
[0072] Exemplarily, before instructing the second terminal to perform attribution detection through the preset control instruction, a screen recording instruction may be sent to the second terminal to instruct the second terminal to perform screen recording through this screen recording instruction to obtain the attribution test screen of the second terminal, and the attribution test screen returned by the second terminal in response to this screen recording instruction may be received. For example, the second terminal may send the attribution test screen obtained by screen recording to the first terminal in real time during the screen recording process, and / or after the attribution detection is completed, such as after sending the attribution detection result and / or the display position information of the application under test to the first terminal, send the attribution test screen obtained by screen recording to the first terminal; correspondingly, the first terminal may receive the attribution test screen sent by the second terminal. Among them, the screen recording instruction may be an instruction for instructing the second terminal to perform screen recording.
[0073] In some embodiments, after generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, it further includes at least one of the following: sending a result display instruction carrying the attribution test result to the second terminal, where the result display instruction is used to instruct the second terminal to display the attribution test result; sending a reporting prompt instruction to the second terminal, where the reporting prompt instruction is used to instruct the second terminal to display a reporting prompt message, and the reporting prompt message is used to trigger the reporting of the attribution test result.
[0074] Among them, the result display instruction may be an instruction for instructing the second terminal to display the generated attribution test result. The reporting prompt instruction may be an instruction for instructing the second terminal to display the reporting prompt message. The reporting prompt message can be used to prompt the tester to report the generated attribution test result. For example, the tester can trigger this reporting prompt message to report the generated attribution test result with one key, and so on.
[0075] In the above embodiment, after generating the attribution test result, the generated attribution detection result can be sent to a second terminal, and the second terminal is used to display and / or report the attribution detection result, so that testers and / or the business party of the application to be tested can view it.
[0076] Exemplarily, after generating the attribution test result, a result display instruction carrying the attribution test result and / or a reporting prompt instruction carrying the attribution test result can be sent to the second terminal. The second terminal is instructed to display the generated attribution test result through the result display instruction and / or the second terminal is instructed to prompt the tester to report the generated attribution test result by displaying a reporting prompt message through the reporting prompt instruction.
[0077] It can be understood that the result display instruction and / or the reporting prompt instruction may not carry the generated attribution test result. For example, after generating the attribution test result, the attribution test result can be sent to the second terminal, and a result display instruction and / or a reporting prompt instruction can be sent to the second terminal, which can be specifically set according to needs.
[0078] The attribution test method provided in this embodiment sends a preset control instruction to a second terminal. The preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result. The application to be tested is installed on the second terminal; the attribution detection result returned by the second terminal in response to the preset control instruction is received; and an attribution test result of the application to be tested is generated based on the attribution detection result and the expected detection result of the application to be tested. By using the above technical solution in this embodiment, the first terminal controls the second terminal to test the attribution scheme adopted by the application to be tested, which can improve the efficiency of the attribution scheme test and the accuracy of the attribution scheme test result.
[0079] Figure 2 It is a schematic flowchart of another attribution test method provided by an embodiment of the present disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, the preset control instruction includes a first start instruction. Sending the preset control instruction to the second terminal includes: sending a first start instruction to the second terminal, where the first start instruction is used to instruct the second terminal to start the application to be tested; displaying an attribution prompt message, and / or sending an operation prompt instruction to the second terminal, where the operation prompt instruction is used to instruct the second terminal to display an attribution prompt message, and the attribution prompt message is used to prompt the tester to perform an attribution operation, and the application to be tested generates an attribution detection result based on the attribution operation.
[0080] Correspondingly, as Figure 2 shown, the attribution test method provided in this embodiment may include:
[0081] S201. Send a first start instruction to the second terminal, where the first start instruction is used to instruct the second terminal to start the application to be tested.
[0082] Among them, the first start instruction may be an instruction used to instruct the second terminal to start the installed application to be tested.
[0083] In this embodiment, the first terminal can control the second terminal to start the application to be tested to test the attribution scheme adopted by the application to be tested. For example, the first terminal can send a first start instruction to the second terminal, and through this first start instruction, instruct the second terminal to start the installed application to be tested in the second terminal.
[0084] In some embodiments, the second terminal can be controlled to perform environment detection, and when the environment detection is successful, the first start instruction is sent to the second terminal, avoiding the situation of sending the first start instruction to the second terminal when the environment of the second terminal is not suitable for attribution testing. At this time, optionally, before sending the first start instruction to the second terminal, it further includes: sending an environment detection instruction to the second terminal, where the environment detection instruction is used to instruct the attribution test application to perform environment detection on the second terminal and generate an environment detection result, the attribution test application is installed on the second terminal, and the environment detection includes network environment detection and / or installation status detection of the application to be tested; receiving the environment detection result returned by the second terminal in response to the environment detection instruction; and sending the first start instruction to the second terminal includes: if the environment detection result indicates successful detection, then send the first start instruction to the second terminal.
[0085] Among them, the environment detection instruction may be an instruction used to instruct the second terminal to perform environment detection and generate an environment detection result. This environment detection may include, for example, network environment detection and / or installation status detection of the application to be tested. Network environment detection can be understood as detecting the network environment of the second terminal, such as detecting whether the second terminal is connected to the network and / or whether the network connected by the second terminal meets the requirements. The installation status detection of the application to be tested may be to detect the installation status of the application to be tested.
[0086] Exemplarily, an environment detection instruction can be sent to the second terminal, and through this environment detection instruction, instruct the attribution test application installed in the second terminal to perform environment detection on the second terminal, receive the environment detection result returned by the attribution test application, and when the environment detection result indicates successful detection, send the first start instruction to the second terminal.
[0087] In the above embodiments, when the environmental detection result indicates a detection failure, the first start instruction may not be sent to the second terminal, and for the failure items indicated in the environmental detection result (such as network environment detection failure and / or the application under test being in an uninstalled state, etc.), targeted processing may be performed.
[0088] Taking the failure item indicated in the environmental detection result that the application under test is in an uninstalled state as an example, the second terminal may be controlled to install the application under test.
[0089] In some embodiments, the second terminal may be controlled to install a preset version of the application under test. For example, an installation instruction carrying the preset version information may be sent to the second terminal, and through this installation instruction, the second terminal is instructed to install the application under test whose application version corresponds to the preset version information.
[0090] In other embodiments, the second terminal may be controlled to install the application under test with a version corresponding to the terminal information of the second terminal. For example, the target version information of the application under test may be determined according to the terminal information of the second terminal, and an installation instruction carrying the target version information may be sent to the second terminal. Through this installation instruction, the second terminal is instructed to install the application under test whose application version corresponds to the target version information. At this time, optionally, the environmental detection includes detecting the installation state of the application under test. The attribution test method provided in this embodiment further includes: if the environmental detection result indicates that the application under test is in an uninstalled state, then based on the terminal information of the second terminal, determine the target version information of the application under test, and send a first installation instruction carrying the target version information to the second terminal. The first installation instruction is used to instruct the second terminal to install the application under test whose application version corresponds to the target version information. Among them, the terminal information of the second terminal may be, for example, the configuration information of the second terminal, such as the hardware configuration information and / or system configuration information of the second terminal, etc. The target version information may be the installation version information of the application under test determined based on the terminal information of the second terminal. The first installation instruction may be an installation instruction carrying the target version information, and the first installation instruction can be used to instruct the second terminal to install the application under test whose application version corresponds to the target version information.
[0091] In this embodiment, it is possible to support the testing of the attribution scheme adopted for the application under test in different test scenarios. The different test scenarios may include, for example, a new installation scenario, a reinstallation scenario, and / or an update scenario, etc., to meet the different test requirements of relevant personnel. At this time, optionally, the attribution test result corresponds to the target test scenario. Before sending the environment detection instruction to the second terminal, it further includes: sending a scenario display instruction to the second terminal, where the scenario display instruction is used to instruct the second terminal to display the scenario identifiers of at least one candidate test scenario; receiving the target scenario identifier returned by the second terminal in response to the scenario display instruction, where the target scenario identifier is the scenario identifier of the target test scenario, and the target test scenario is the candidate test scenario selected by the tester from the at least one candidate test scenario.
[0092] Among them, the scenario display instruction may be an instruction used to instruct the second terminal to display the scenario identifiers of at least one candidate test scenario. The candidate test scenario is a test scenario for the tester to select. The scenario identifier of the candidate test scenario can be used for the tester to trigger and select the required test scenario. The target scenario identifier may be the scenario identifier selected by the tester. The target test scenario may be the candidate test scenario corresponding to the target scenario identifier.
[0093] Exemplarily, a scenario display instruction can be sent to the second terminal, and through this scenario display instruction, the second terminal is instructed to display the scenario identifiers of at least one candidate test scenario for the tester to select, and the target scenario identifier selected by the tester returned by the second terminal can be received. Based on this target scenario identifier, the target test scenario is determined to test the attribution scheme of the application under test in this target test scenario.
[0094] S202. Display attribution prompt information, and / or send an operation prompt instruction to the second terminal. The operation prompt instruction is used to instruct the second terminal to display attribution prompt information, and the attribution prompt information is used to prompt the tester to perform an attribution operation. The application under test generates an attribution detection result based on the attribution operation.
[0095] Among them, the attribution prompt information may be information used to prompt the tester to perform an attribution operation, such as the execution guidance information of the attribution operation. The attribution operation may be an operation that the tester needs to perform during the attribution test, and the number of attribution operations may be one or more. Exemplarily, the attribution prompt information can be used to guide the tester to perform the attribution operation. For example, different attribution operations may correspond to different attribution prompt information, and when the attribution operations to be performed are different, the displayed attribution prompt information may be different.
[0096] In this embodiment, the first terminal can display and / or control the second terminal to display attribution prompt information, and prompt the tester to perform an attribution operation through the attribution prompt information, so as to complete the attribution detection of the application to be tested, thereby reducing the occurrence of misoperations during the attribution test and further improving the efficiency and accuracy of the attribution test.
[0097] Specifically, after the application to be tested is started successfully, the first terminal can display the attribution prompt information, and / or send an operation prompt instruction to the second terminal, and indicate the second terminal to display the attribution prompt information through the operation prompt instruction, so as to prompt the tester to perform an attribution operation through the attribution prompt information.
[0098] S203. Receive the attribution detection result returned by the second terminal in response to the preset control instruction, where the preset control instruction includes a first start instruction.
[0099] S204. Generate an attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
[0100] The attribution test solution provided in this embodiment can reduce the occurrence of misoperations during the attribution test and further improve the efficiency and accuracy of the attribution test by prompting the tester to perform an attribution operation through the attribution prompt information.
[0101] Figure 3 It is a schematic flowchart of an attribution test method provided by an embodiment of the present disclosure. This method can be executed by an attribution test device, where the device can be implemented by software and / or hardware, and can be configured in an electronic device. Typically, it can be configured in a mobile phone or a tablet computer, such as configured in the second terminal installed with the application to be tested. The attribution test method provided by the embodiments of the present disclosure is applicable to scenarios for testing attribution solutions, especially applicable to scenarios for testing attribution solutions for pre-installed applications. As Figure 3 shown, the attribution test method provided in this embodiment may include:
[0102] S301. In response to a preset control instruction sent by the first terminal, perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result.
[0103] Exemplarily, in the case of receiving a preset control instruction sent by the first terminal, it can respond to the preset control instruction, perform attribution detection on the installation channel of the installed application to be tested, and generate an attribution detection result. For example, it can control the application to be tested to perform attribution detection on the installation channel by using the attribution solution configured by the application to be tested, and generate an attribution detection result.
[0104] S302. Send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result.
[0105] In this embodiment, after generating the attribution detection result, the attribution detection result can be sent to the first terminal for the first terminal to generate an attribution test result of the application to be tested based on the generated attribution detection result.
[0106] In some embodiments, the attribution detection result is sent to the first terminal by the attribution test application. Before responding to the preset control instruction sent by the first terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result, it further includes: responding to the installation detection instruction sent by the first terminal, detecting the installation state of the attribution test application, generating an application detection result, and sending the application detection result to the first terminal; responding to the second installation instruction sent by the first terminal when the attribution test application is in an uninstalled state, installing the attribution test application; responding to the second start instruction sent by the first terminal when the attribution test application is in an installed state or after the attribution test application is installed, starting the attribution test application.
[0107] In the above embodiment, when the second terminal receives the installation detection instruction sent by the first terminal, it can respond to the installation detection instruction, detect the installation state of the attribution test application, generate an application detection result, and send the application detection result to the first terminal.
[0108] Correspondingly, the first terminal can receive the application detection result sent by the second terminal. When the application detection result indicates that the attribution test application is in an uninstalled state, send a second installation instruction to the second terminal, instruct the second terminal to install the attribution test application through the second installation instruction, and send a second start instruction to the second terminal after the attribution test application is installed; and / or, when the application detection result indicates that the attribution test application is in an installed state, send a second start instruction to the second terminal.
[0109] Thus, when the second terminal receives the second installation instruction sent by the first terminal, it can respond to the second installation instruction and install the attribution test application. And / or, when receiving the second start instruction sent by the first terminal, respond to the second start instruction and start the installed attribution test application in the second terminal.
[0110] In some embodiments, the second terminal may collect the attribution test screen of its own end and send it to the first terminal, so that the first terminal can generate an attribution test result including the attribution test screen, further improving the comprehensiveness of the generated attribution test result. For example, in the case of receiving a screen recording instruction sent by the first terminal, it may perform screen recording in response to the screen recording instruction to obtain the attribution test screen, and may send the obtained attribution test screen to the first terminal in real time, periodically, or before the first terminal generates the attribution test result. At this time, optionally, the attribution detection result also carries the attribution test screen of the second terminal. The attribution test method provided in this embodiment further includes: performing screen recording in response to the screen recording instruction sent by the first terminal to obtain the attribution test screen, and sending the attribution test screen to the first terminal.
[0111] In some embodiments, the second terminal may obtain the display position information of the application to be tested on its own end and send it to the first terminal, so that the first terminal can generate an attribution test result including the display position information, further improving the comprehensiveness of the generated attribution test result. Exemplarily, in the case of receiving an information acquisition instruction sent by the first terminal, it may respond to the information acquisition instruction to obtain the display position information of the application to be tested on its own end. For example, in the case where the application icon of the application to be tested is displayed on the screen, a screenshot is taken, such as taking a screenshot of the window or page where the application icon of the application to be tested is located, and using the screenshot obtained as the display position information of the application to be tested on its own end, and sending the display position information to the first terminal. At this time, optionally, after sending the attribution detection result to the first terminal, it further includes: responding to the information acquisition instruction sent by the first terminal to obtain the display position information of the application to be tested in the second terminal, and sending the display position information to the first terminal.
[0112] In some embodiments, the second terminal may display the attribution test result generated by the first terminal to the tester for the tester to view. For example, in the case of receiving a result display instruction sent by the first terminal, it may, through the attribution test application, respond to the result display instruction to obtain the attribution test result carried in the result display instruction, and display the attribution test result. At this time, optionally, after sending the attribution detection result to the first terminal, it further includes: through the attribution test application, responding to the result display instruction sent by the first terminal to display the attribution test result carried in the result display instruction.
[0113] In some embodiments, the second terminal may report the attribution test results generated by the first terminal. For example, the attribution test application installed in the second terminal may report the attribution test results to a database and / or a server (such as an attribution platform) for the business party of the application under test to view. Exemplarily, in response to the reporting prompt instruction sent by the first terminal, the attribution test application installed in the first terminal may respond to the reporting prompt instruction to display a reporting prompt message, which is used to prompt the tester to report the generated attribution test results. And when the attribution test application detects that the tester triggers the reporting prompt message, it may report the attribution test results generated by the first terminal. At this time, optionally, after sending the attribution detection result to the first terminal, it further includes: responding to the reporting prompt instruction sent by the first terminal through the attribution test application to display a reporting prompt message, and the reporting prompt message is used to trigger the reporting of the attribution test results.
[0114] The attribution test method provided in this embodiment responds to a preset control instruction sent by the first terminal, performs attribution detection on the installation channel of the application under test, and generates an attribution detection result; and sends the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result. By using the above technical solution, this embodiment performs attribution detection and generates an attribution detection result in response to the control of the first terminal during the attribution test process, which can improve the efficiency of the attribution scheme test and the accuracy of the attribution scheme test result.
[0115] Figure 4 It is a flowchart of another attribution test method provided by an embodiment of the present disclosure. The solution in this embodiment may be combined with one or more optional solutions in the above embodiments. Optionally, the preset control instruction includes a first start instruction, and the step of responding to the preset control instruction sent by the first terminal, performing attribution detection on the installation channel of the application under test, and generating an attribution detection result includes: responding to the first start instruction sent by the first terminal to start the application under test; responding to the operation prompt instruction sent by the first terminal to display an attribution prompt message, and the attribution prompt message is used to prompt the tester to perform an attribution operation; and generating an attribution detection result by the application under test in response to the attribution operation of the tester.
[0116] Optionally, the step of sending the attribution detection result to the first terminal includes: sending a result acquisition request carrying a preset signature to the application under test through an attribution test application, where the result acquisition request is used to request the attribution detection result generated by the application under test; when the preset signature matches the target signature of the application under test, the application under test sends the attribution detection result to the attribution test application; the attribution test application receives the attribution detection result sent by the application under test and sends the attribution detection result to the first terminal.
[0117] Correspondingly, as Figure 4 shown, the attribution test method provided in this embodiment may include:
[0118] S401. In response to a first start instruction sent by a first terminal, start an application under test.
[0119] In this embodiment, when the second terminal receives the first start instruction sent by the first terminal, it may respond to the first start instruction and start the application under test, so as to perform attribution detection through the application under test subsequently.
[0120] In some embodiments, the attribution test application installed in the second terminal may perform an environment detection on the second terminal. Optionally, the second terminal is further installed with an attribution test application. Before responding to the first start instruction sent by the first terminal and starting the application under test, it further includes: performing an environment detection in response to an environment detection instruction sent by the first terminal through the attribution test application and generating an environment detection result, where the environment detection includes a network environment detection and / or an installation status detection of the application under test; sending the environment detection result to the first terminal through the attribution test application.
[0121] Exemplarily, when receiving the environment detection instruction sent by the first terminal, the attribution test application installed in the second terminal may respond to the environment detection instruction, perform an environment detection on the second terminal, such as performing a network environment detection on the second terminal and / or an installation status detection on the application under test, generate an environment detection result, and send the environment detection result to the first terminal.
[0122] In the above-described embodiment, after the first terminal receives the environment detection result sent by the attribution test application installed in the second terminal, subsequent processing can be performed based on this environment detection result. Exemplarily, if the environment detection result indicates that the application to be tested is in an uninstalled state, that is, the application to be tested has not been installed in the second terminal, the target version information of the application to be tested can be determined according to the terminal information of the second terminal, and a first installation instruction carrying the target version information is sent to the second terminal, and the second terminal is instructed to install the application to be tested whose application version corresponds to the target version information through this first installation instruction.
[0123] Thus, after the second terminal receives the first installation instruction sent by the first terminal, the first installation instruction can be parsed to obtain the target version information carried in the first installation instruction, and the application to be tested whose application version corresponds to the target version information is installed. At this time, optionally, after the environment detection result is sent to the first terminal through the attribution test application, it further includes: in response to the first installation instruction sent by the first terminal when the environment detection result indicates that the application to be tested is in an uninstalled state, installing the application to be tested whose application version corresponds to the target version information carried in the first installation instruction.
[0124] In some embodiments, the attribution test application installed in the second terminal can also display the scene identifiers of at least one candidate test scene to the tester for the tester to select the scene for this test (i.e., the target test scene). At this time, optionally, the attribution test result corresponds to the target test scene. Before the environment detection is performed by the attribution test application in response to the environment detection instruction sent by the first terminal, it further includes: displaying the scene identifiers of at least one candidate test scene by the attribution test application in response to the scene display instruction sent by the first terminal; in response to the selection operation of the tester for the target test scene among the at least one candidate test scenes, sending the target scene identifier to the first terminal, where the target scene identifier is the scene identifier of the target test scene.
[0125] Among them, the selection operation can be a triggering operation for selecting a certain candidate test scene, such as an operation for triggering the scene identifier of a certain candidate test scene, etc.
[0126] Exemplarily, after receiving the scenario display instruction sent by the first terminal, the attribution test application can, in response to the scenario display instruction, display the scenario identifiers of at least one candidate test scenario. Thus, the tester can trigger the selection of the scenario identifier of the candidate test scenario to be tested this time. Correspondingly, when the attribution test application detects that the tester triggers the scenario identifier of a certain candidate test scenario, it can determine the scenario identifier triggered by the tester as the scenario identifier of the target test scenario (i.e., the target scenario identifier), determine that it has received the selection operation for the target test scenario, and in response to this selection operation, send the scenario identifier of the target test scenario to the first terminal.
[0127] S402. In response to the operation prompt instruction sent by the first terminal, display attribution prompt information, where the attribution prompt information is used to prompt the tester to perform an attribution operation.
[0128] In this embodiment, when the second terminal receives the operation prompt instruction sent by the first terminal, it can, in response to the operation prompt instruction, display attribution prompt information, such as by using the application under test to display the attribution prompt information, and use this attribution prompt information to prompt the tester to perform an attribution operation.
[0129] S403. Through the application under test, in response to the attribution operation of the tester, generate an attribution detection result.
[0130] In this embodiment, the tester can perform an attribution operation according to the prompt of the attribution prompt information. Thus, the application under test installed in the second terminal can, in response to the attribution operation performed by the tester, perform attribution detection using the attribution scheme configured in the application under test and generate an attribution detection result.
[0131] S404. Through the attribution test application, send a result acquisition request carrying a preset signature to the application under test, where the result acquisition request is used to request to obtain the attribution detection result generated by the application under test.
[0132] In this embodiment, after the application under test installed in the second terminal generates an attribution test result, the attribution test application installed in the second terminal can obtain the attribution test result generated by the application under test to send the attribution test result generated by the application under test to the first terminal.
[0133] Exemplarily, a Content Provider component can be configured in the application to be tested as a data source. In this content provider component, access permission control of the content provider component can be identified through a preset field. For example, access permission control of the content provider component can be identified through a permission field, and the level of this field can be set to signature, that is, only applications with the same signature can access this data source to prevent third-party applications from accessing and enhance data security.
[0134] Therefore, when the attribution test application obtains the generated attribution detection result from the application to be tested, it can generate a result acquisition request carrying a preset signature and send the result acquisition request to the application to be tested installed in the second terminal.
[0135] S405. When the preset signature matches the target signature of the application to be tested, the application to be tested sends the attribution detection result to the attribution test application.
[0136] Exemplarily, after receiving the result acquisition request sent by the attribution test application, the application to be tested installed in the second terminal can parse the result acquisition request to obtain the preset signature carried in the result acquisition request, and determine whether the preset signature is the same as the target signature configured in the content provider component, that is, determine whether the preset signature matches the target signature. If the preset signature is the same as the target signature, the generated attribution detection result is sent to the attribution test application.
[0137] In addition, if the preset signature is different from the target signature, the generated attribution detection result may not be sent to the attribution test application. For example, a signature prompt message can be sent to the attribution test application to prompt that the preset signature of the attribution test application does not match the target signature of the application to be tested.
[0138] S406. The attribution test application receives the attribution detection result sent by the application to be tested and sends the attribution detection result to the first terminal. The attribution detection result is used for the first terminal to generate an attribution test result.
[0139] Exemplarily, the attribution test application installed in the second terminal can receive the attribution detection result sent by the application to be tested and send the attribution detection result to the first terminal for the first terminal to generate an attribution test result based on the attribution detection result.
[0140] Figure 5 The following is an architecture diagram of a pre-installed attribution test system provided by an embodiment of the present disclosure. Taking pre-installed attribution testing as an example, such as Figure 5As shown in the figure, an ADB script can be configured in the first terminal, and a pre-installed application (i.e., the application to be tested) and an auxiliary application (i.e., the attribution test application) can be installed in the second terminal. Among them, ADB is a set of command-line debugging tools for users to debug devices. After the tester connects the computer (i.e., the first terminal) and the mobile device (i.e., the second terminal), the ADB tool can be used to complete functions such as page jumping (such as switching the content displayed on the mobile device), screenshotting, and screen recording, so as to solve the problems of test errors caused by non-standard attribution test processes in the prior art, the single dimension of attribution results, the inability to verify the accuracy of pre-installation from more dimensions, and / or the high communication cost in the attribution test process and the lack of archive management of test results.
[0141] Taking the pre-installation attribution test as an example, the attribution test method provided by the embodiments of the present disclosure will be exemplarily described as follows:
[0142] As Figure 5 shown, the pre-installation attribution test system as a whole can be divided into three components: The ADB script, the product of which can be a Java Archive (JAR) package, can be responsible for executing ADB commands, and its main functions include environment detection (such as controlling the mobile device to perform environment detection), automated test processes, pre-installation decisions (such as determining target version information), collection of pre-installation results (such as attribution detection results), visual collection of pre-installation (such as displaying location information and / or attribution test screens), etc. The auxiliary application, the product of which can be a traditional Android application package (APK), provides a visual interface for the tester, including UI interaction of the test process and display of test results (i.e., attribution test results), as well as collection of some device information (such as attribution detection results), and at the same time uploads the test results (such as attribution test results) to the background database. The pre-installation platform (i.e., the server) is responsible for the automated construction of test suites (such as pre-installed applications, auxiliary applications, and ADB scripts) and the display and archiving of test results.
[0143] Exemplarily, the overall process of the attribution test method provided by the embodiments of the present disclosure mainly can include four main stages: environment detection, pre-installation information collection, information verification (such as verifying the attribution detection results to generate attribution test results), and information archiving. The specific process execution sequence is described as follows:
[0144] A1. The computer executes the ADB script, and the ADB script detects whether the auxiliary application is installed in the mobile device. If not, it automatically controls the mobile device to complete the installation of the auxiliary application.
[0145] A2. The ADB script controls the mobile device to open the auxiliary application and start automatic screen recording.
[0146] A3. The tester selects the scenario to be tested (e.g., the ADB script controls the mobile device to display the scenario identifiers of at least one candidate test scenario for the tester to select).
[0147] A4. The ADB script controls the auxiliary application to perform an environmental detection on the mobile device. In the case where it is detected that the pre-installed application is not installed on the mobile device, a pre-installation decision is made to determine the target version information of the pre-installed application, and the mobile device is controlled to install the pre-installed application based on the target version information.
[0148] A5. The ADB script automatically opens the pre-installed application, guides the tester to complete the guidance process (i.e., prompts the tester to perform an attribution operation through the displayed attribution prompt information) and collects the attribution result (i.e., the attribution detection result).
[0149] A6. The ADB script obtains screenshot files such as the location of the pre-installed application (i.e., the display location information), etc., and generates a test result (i.e., the attribution test result).
[0150] A7. The ADB script automatically controls the auxiliary application to display the test result, including the attribution result and the test page (such as the screenshot file of the display location information).
[0151] A8. The ADB script controls the auxiliary application to guide the tester to upload the currently generated test result.
[0152] Among them, the collection and transmission of pre-installation attribution information (i.e., the attribution detection result) can be carried out in the following way: Configure a content provider in the pre-installed application as the data source, where the permission field represents the access permission control of the provider, and the level is set to signature, that is, only applications with the same signature can access this data source, which can avoid third-party access and enhance data security. The auxiliary application can return the required information when querying by accessing the content provider. This information can include but is not limited to the channel number of the pre-installed cooperation, the sub-channel number of the pre-installed cooperation, the first installation time of the pre-installed application, and / or the pre-installed version number of the pre-installed application, etc., and can be specifically set according to requirements.
[0153] The ADB script can access and add data of the auxiliary application through the ADB command adb content, that is, realize data synchronization with the auxiliary application:
[0154] Access data: adb shell content query--uri{provider_name};
[0155] Add data: abd shell content insert--uri{provider_name}--bind{data}.
[0156] Accordingly, the embodiments of the present disclosure propose a complete pre-installation result test solution, which integrates functions such as pre-installation result collection, result verification, and test archiving, effectively improving the efficiency of pre-installation result testing, etc. It can also achieve data transmission between the script side and the application side through client development technologies such as ADB and content provider, reducing the failure of attribution testing caused by misoperations, providing more diverse test result collection requirements, providing functions such as screenshot and screen recording collection of key pages, and providing a test result reporting function to support the business party of the pre-installed application to view the test results in real time, greatly reducing the communication cost.
[0157] The attribution testing method provided in this embodiment displays attribution prompt information and controls access permissions through signatures, which can reduce the occurrence of misoperations during the attribution testing process and improve the efficiency, accuracy of the attribution testing, and the security of data acquisition.
[0158] Figure 6 It is a structural block diagram of an attribution testing device provided in the embodiments of the present disclosure. The device can be implemented by software and / or hardware and can be configured in an electronic device. Typically, it can be configured in a computer, such as configured in a first terminal, and can be used to perform attribution scheme testing by executing the attribution testing method, such as performing attribution scheme testing on pre-installed applications. As Figure 6 shown, the attribution testing device provided in this embodiment may include: a control instruction sending module 601, an attribution detection result receiving module 602, and a test result generating module 603. Among them,
[0159] The control instruction sending module 601 is configured to send a preset control instruction to a second terminal, and the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result. The application to be tested is installed on the second terminal;
[0160] The attribution detection result receiving module 602 is configured to receive the attribution detection result returned by the second terminal in response to the preset control instruction;
[0161] The test result generating module 603 is configured to generate an attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
[0162] The attribution testing device provided in this embodiment sends a preset control instruction to a second terminal through a control instruction sending module. The preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result. The application under test is installed on the second terminal. The attribution detection result receiving module receives the attribution detection result returned by the second terminal in response to the preset control instruction. The test result generating module generates an attribution test result for the application under test based on the attribution detection result and the expected detection result of the application under test. By using the above technical solution, this embodiment can improve the efficiency of attribution scheme testing and the accuracy of attribution scheme test results by controlling the second terminal to test the attribution scheme adopted by the application under test through the first terminal.
[0163] Optionally, the preset control instruction includes a first start instruction. The control instruction sending module 601 includes: a start instruction sending unit, configured to send a first start instruction to the second terminal. The first start instruction is used to instruct the second terminal to start the application under test; a prompt information display unit, configured to display attribution prompt information and / or send an operation prompt instruction to the second terminal. The operation prompt instruction is used to instruct the second terminal to display attribution prompt information. The attribution prompt information is used to prompt a tester to perform an attribution operation, and the application under test generates an attribution detection result based on the attribution operation.
[0164] Further, the attribution testing device provided in this embodiment may further include: a detection instruction sending module, configured to send an environment detection instruction to the second terminal before sending the first start instruction to the second terminal. The environment detection instruction is used to instruct an attribution testing application to perform environment detection on the second terminal and generate an environment detection result. The attribution testing application is installed on the second terminal. The environment detection includes network environment detection and / or installation status detection of the application under test; an environment detection result receiving module, configured to receive the environment detection result returned by the second terminal in response to the environment detection instruction; the start instruction sending unit may be configured to: if the environment detection result indicates successful detection, send the first start instruction to the second terminal.
[0165] Optionally, the environment detection includes installation status detection of the application under test. The attribution testing device provided in this embodiment may further include: a first installation instruction sending module, configured to, when the environment detection result indicates that the application under test is in an uninstalled state, determine target version information of the application under test based on the terminal information of the second terminal, and send a first installation instruction carrying the target version information to the second terminal. The first installation instruction is used to instruct the second terminal to install the application under test with an application version corresponding to the target version information.
[0166] Optionally, the attribution test result corresponds to the target test scenario. The attribution test apparatus provided in this embodiment may further include: a scenario display instruction sending module, configured to send a scenario display instruction to the second terminal before sending the environment detection instruction to the second terminal, where the scenario display instruction is used to instruct the second terminal to display scenario identifiers of at least one candidate test scenario; a scenario identifier receiving module, configured to receive a target scenario identifier returned by the second terminal in response to the scenario display instruction, where the target scenario identifier is a scenario identifier of a target test scenario, and the target test scenario is a candidate test scenario selected by a tester from the at least one candidate test scenario.
[0167] Further, the attribution test apparatus provided in this embodiment may further include: an information acquisition instruction sending module, configured to send an information acquisition instruction to the second terminal after receiving the attribution detection result returned by the second terminal in response to the preset control instruction, and receive the display position information returned by the second terminal in response to the information acquisition instruction, where the display position information is used to indicate the display position of the application under test in the second terminal; the test result generation module 603 may be configured to: generate an attribution test result of the application under test based on the attribution detection result, the expected detection result of the application under test, and the display position information.
[0168] Further, the attribution test apparatus provided in this embodiment may further include: a result display instruction sending module, configured to send a result display instruction carrying the attribution test result to the second terminal after generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, where the result display instruction is used to instruct the second terminal to display the attribution test result; a reporting prompt instruction sending module, configured to send a reporting prompt instruction to the second terminal after generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, where the reporting prompt instruction is used to instruct the second terminal to display a reporting prompt message, and the reporting prompt message is used to trigger reporting of the attribution test result.
[0169] Optionally, the attribution detection result is sent by the second terminal through an attribution test application. The attribution test device provided in this embodiment may further include: an application detection instruction sending module, configured to send an application detection instruction to the second terminal before sending the preset control instruction to the second terminal, and receive an application detection result returned by the second terminal in response to the application detection instruction, where the application detection instruction is used to instruct the second terminal to perform an installation status detection on the attribution test application; a start instruction sending module, configured to send a second start instruction to the second terminal when the application detection result indicates that the attribution test application is in an installed state, where the second start instruction is used to instruct the second terminal to start the attribution test application; a second installation instruction sending module, configured to send a second installation instruction to the second terminal when the application detection result indicates that the attribution test application is in an uninstalled state, and send a second start instruction to the second terminal after the attribution test application is installed, where the second installation instruction is used to instruct the second terminal to install the attribution test application.
[0170] Optionally, the attribution test screen of the second terminal is further carried in the attribution detection result. The attribution test device provided in this embodiment may further include: a screen recording instruction sending module, configured to send a screen recording instruction to the second terminal before sending the preset control instruction to the second terminal, where the screen recording instruction is used to instruct the second terminal to perform screen recording to obtain the attribution test screen of the second terminal; a screen image receiving module, configured to receive the attribution test screen returned by the second terminal in response to the screen recording instruction before generating the attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
[0171] The attribution test device provided in the embodiments of the present disclosure can execute the attribution test method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the attribution test method. For technical details not described in detail in this embodiment, reference may be made to the attribution test method provided in any embodiment of the present disclosure.
[0172] Figure 7 It is a structural block diagram of an attribution test device provided in an embodiment of the present disclosure. This device can be implemented by software and / or hardware, and can be configured in an electronic device. Typically, it can be configured in a mobile phone or a tablet computer. For example, it can be configured in a second terminal installed with an application to be tested, and can be used to perform an attribution scheme test by executing the attribution test method, such as performing an attribution scheme test on a pre-installed application. As Figure 7 shown, the attribution test device provided in this embodiment may include: a detection result generation module 701 and an attribution detection result sending module 702, where
[0173] A detection result generation module 701, configured to perform attribution detection on the installation channel of the application under test in response to a preset control instruction sent by a first terminal, and generate an attribution detection result;
[0174] An attribution detection result sending module 702, configured to send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result.
[0175] The attribution test device provided in this embodiment, through the detection result generation module, in response to a preset control instruction sent by the first terminal, performs attribution detection on the installation channel of the application under test and generates an attribution detection result; through the attribution detection result sending module, the attribution detection result is sent to the first terminal, and the attribution detection result is used for the first terminal to generate an attribution test result. By using the above technical solution, in the attribution test process, attribution detection is performed in response to the control of the first terminal and an attribution detection result is generated, which can improve the efficiency of the attribution scheme test and the accuracy of the attribution scheme test result.
[0176] Optionally, the preset control instruction includes a first start instruction, and the detection result generation module 701 may include: an application start unit, configured to start the application under test in response to a first start instruction sent by the first terminal; a prompt information display unit, configured to display attribution prompt information in response to an operation prompt instruction sent by the first terminal, where the attribution prompt information is used to prompt a tester to perform an attribution operation; a detection result generation unit, configured to generate an attribution detection result through the application under test in response to the attribution operation of the tester.
[0177] Optionally, the second terminal is further installed with an attribution test application, and the attribution test device provided in this embodiment may further include: an environment detection module, configured to perform environment detection through the attribution test application in response to an environment detection instruction sent by the first terminal before starting the application under test in response to the first start instruction sent by the first terminal, and generate an environment detection result, where the environment detection includes network environment detection and / or installation status detection of the application under test; an environment attribution detection result sending module, configured to send the environment detection result to the first terminal through the attribution test application.
[0178] Further, the attribution test device provided in this embodiment may further include: an application under test installation module, configured to install an application under test whose application version corresponds to the target version information carried in the first installation instruction in response to a first installation instruction sent by the first terminal when the environment detection result indicates that the application under test is in an uninstalled state after the environment detection result is sent to the first terminal through the attribution test application.
[0179] Optionally, the attribution test result corresponds to a target test scenario. The attribution test apparatus provided in this embodiment may further include: a scenario identifier display module, configured to display the scenario identifiers of at least one candidate test scenario in response to a scenario display instruction sent by the first terminal through the attribution test application before the environment detection is performed by the attribution test application in response to an environment detection instruction sent by the first terminal; a scenario identifier sending module, configured to send a target scenario identifier to the first terminal in response to a selection operation of a tester on a target test scenario among the at least one candidate test scenarios, where the target scenario identifier is the scenario identifier of the target test scenario.
[0180] Further, the attribution test apparatus provided in this embodiment may further include: a location information acquisition module, configured to, after sending the attribution detection result to the first terminal, acquire the display location information of the application under test in the second terminal in response to an information acquisition instruction sent by the first terminal, and send the display location information to the first terminal; a result display module, configured to, after sending the attribution detection result to the first terminal, display the attribution test result carried in the result display instruction through the attribution test application in response to a result display instruction sent by the first terminal; a reporting prompt module, configured to, after sending the attribution detection result to the first terminal, display a reporting prompt message through the attribution test application in response to a reporting prompt instruction sent by the first terminal, where the reporting prompt message is used to trigger the reporting of the attribution test result.
[0181] Optionally, the attribution detection result sending module 702 includes: a result acquisition unit, configured to send a result acquisition request carrying a preset signature to the application under test through the attribution test application, where the result acquisition request is used to request to acquire the attribution detection result generated by the application under test; a first result sending unit, configured to send the attribution detection result to the attribution test application when the preset signature matches the target signature of the application under test; a second result sending unit, configured to receive the attribution detection result sent by the application under test through the attribution test application and send the attribution detection result to the first terminal.
[0182] Optionally, the attribution detection result is sent by the attribution test application to the first terminal. The attribution test device provided in this embodiment may further include: a status detection module, configured to, before performing attribution detection on the installation channel of the application under test and generating an attribution detection result in response to a preset control instruction sent by the first terminal, perform an installation status detection on the attribution test application in response to an installation detection instruction sent by the first terminal, generate an application detection result, and send the application detection result to the first terminal; an attribution test application installation module, configured to install the attribution test application in response to a second installation instruction sent by the first terminal when the attribution test application is in an uninstalled state; and an attribution test application startup module, configured to start the attribution test application in response to a second startup instruction sent by the first terminal when the attribution test application is in an installed state or when the attribution test application is installed.
[0183] Optionally, the attribution detection result further carries an attribution test screen of the second terminal. The attribution test device provided in this embodiment may further include: a screen recording module, configured to perform screen recording in response to a screen recording instruction sent by the first terminal, obtain an attribution test screen, and send the attribution test screen to the first terminal.
[0184] The attribution test device provided in an embodiment of the present disclosure may execute the attribution test method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the attribution test method. Technical details not described in detail in this embodiment may be referred to the attribution test method provided in any embodiment of the present disclosure.
[0185] Next, refer to Figure 8 , which shows a schematic structural diagram of an electronic device (such as a terminal device) 800 suitable for implementing an embodiment of the present disclosure. The terminal device in an embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.
[0186] As Figure 8As shown, the electronic device 800 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 801, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0187] Generally, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or wirelessly to exchange data. Although Figure 8 an electronic device 800 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.
[0188] Specifically, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above functions defined in the method of the embodiment of the present disclosure are executed.
[0189] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can 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 disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0190] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0191] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; or it can exist separately without being assembled into the electronic device.
[0192] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: send a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result, and the application under test is installed on the second terminal; receive the attribution detection result returned by the second terminal in response to the preset control instruction; and generate an attribution test result for the application under test based on the attribution detection result and the expected detection result of the application under test. Or
[0193] In response to a preset control instruction sent by a first terminal, perform attribution detection on the installation channel of the application under test and generate an attribution detection result; and send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result.
[0194] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0195] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0196] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of a module does not constitute a limitation on the unit itself.
[0197] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and the like.
[0198] In the context of the present 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. 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, 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.
[0199] Figure 9 FIG. is a schematic structural diagram of an attribution test system provided for an embodiment of the present disclosure. The attribution test system provided for the embodiments of the present disclosure is applicable to scenarios for conducting attribution scheme tests, and is particularly applicable to scenarios for conducting attribution scheme tests on pre-installed applications. As Figure 9 shown, the attribution test system provided for this embodiment may include a first terminal 90 and a second terminal 91, where a to-be-tested application is installed on the second terminal 91, and among them,
[0200] the first terminal 90 sends a preset control instruction to the second terminal 91;
[0201] the second terminal 91, in response to the preset control instruction sent by the first terminal 90, conducts attribution detection on the installation channel of the to-be-tested application, generates an attribution detection result, and sends the attribution detection result to the first terminal 90;
[0202] The first terminal 90 receives the attribution detection result sent by the second terminal 91, and generates an attribution test result for the application under test based on the attribution detection result and the expected detection result of the application under test.
[0203] In the attribution test system provided in this embodiment, a preset control instruction is sent from the first terminal to the second terminal; in response to the preset control instruction sent by the first terminal, the second terminal performs attribution detection on the installation channel of the application under test, generates an attribution detection result, and sends the attribution detection result to the first terminal; the first terminal receives the attribution detection result sent by the second terminal, and generates an attribution test result for the application under test based on the attribution detection result and the expected detection result of the application under test. By using the above technical solution in this embodiment, the first terminal controls the second terminal to test the attribution scheme adopted by the application under test, which can improve the efficiency of the attribution scheme test and the accuracy of the attribution scheme test result.
[0204] According to one or more embodiments of the present disclosure, Example 1 provides an attribution test method applied to a first terminal. The method includes:
[0205] Sending a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result, and the application under test is installed on the second terminal;
[0206] Receiving the attribution detection result returned by the second terminal in response to the preset control instruction;
[0207] Generating an attribution test result for the application under test based on the attribution detection result and the expected detection result of the application under test.
[0208] According to one or more embodiments of the present disclosure, in Example 2, according to the method described in Example 1, the preset control instruction includes a first start instruction. The sending the preset control instruction to the second terminal includes:
[0209] Sending a first start instruction to the second terminal, where the first start instruction is used to instruct the second terminal to start the application under test;
[0210] Displaying attribution prompt information, and / or sending an operation prompt instruction to the second terminal, where the operation prompt instruction is used to instruct the second terminal to display the attribution prompt information, and the attribution prompt information is used to prompt a tester to perform an attribution operation, and the application under test generates an attribution detection result based on the attribution operation.
[0211] According to one or more embodiments of the present disclosure, in Example 3, according to the method described in Example 2, before sending the first start instruction to the second terminal, it further includes:
[0212] Send an environment detection instruction to a second terminal, where the environment detection instruction is used to instruct an attribution test application to perform environment detection on the second terminal and generate an environment detection result. The attribution test application is installed on the second terminal, and the environment detection includes network environment detection and / or installation status detection of the application to be tested;
[0213] Receive the environment detection result returned by the second terminal in response to the environment detection instruction;
[0214] The sending of the first start instruction to the second terminal includes:
[0215] If the environment detection result indicates successful detection, send a first start instruction to the second terminal.
[0216] According to one or more embodiments of the present disclosure, in Example 4, based on the method described in Example 3, where the environment detection includes installation status detection of the application to be tested, the method further includes:
[0217] If the environment detection result indicates that the application to be tested is in an uninstalled state, determine target version information of the application to be tested based on the terminal information of the second terminal, and send a first installation instruction carrying the target version information to the second terminal. The first installation instruction is used to instruct the second terminal to install the application to be tested whose application version corresponds to the target version information.
[0218] According to one or more embodiments of the present disclosure, in Example 5, based on the method described in Example 3, where the attribution test result corresponds to a target test scenario, before sending the environment detection instruction to the second terminal, it further includes:
[0219] Send a scenario display instruction to the second terminal, where the scenario display instruction is used to instruct the second terminal to display scenario identifiers of at least one candidate test scenario;
[0220] Receive a target scenario identifier returned by the second terminal in response to the scenario display instruction. The target scenario identifier is a scenario identifier of a target test scenario, and the target test scenario is a candidate test scenario selected by a tester from the at least one candidate test scenario.
[0221] According to one or more embodiments of the present disclosure, in Example 6, based on the method described in Example 1, after receiving the attribution detection result returned by the second terminal in response to the preset control instruction, it further includes:
[0222] Send an information acquisition instruction to the second terminal, and receive the display position information returned by the second terminal in response to the information acquisition instruction, where the display position information is used to indicate the display position of the application under test in the second terminal;
[0223] Generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test includes:
[0224] Generate the attribution test result of the application under test based on the attribution detection result, the expected detection result of the application under test, and the display position information.
[0225] According to one or more embodiments of the present disclosure, Example 7 According to the method described in Example 1, after generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, at least one of the following is further included:
[0226] Send a result display instruction carrying the attribution test result to the second terminal, where the result display instruction is used to instruct the second terminal to display the attribution test result;
[0227] Send a reporting prompt instruction to the second terminal, where the reporting prompt instruction is used to instruct the second terminal to display a reporting prompt message, and the reporting prompt message is used to trigger reporting the attribution test result.
[0228] According to one or more embodiments of the present disclosure, Example 8 According to the method described in any one of Examples 1-7, the attribution detection result is sent by the second terminal through an attribution test application. Before sending the preset control instruction to the second terminal, it further includes:
[0229] Send an application detection instruction to the second terminal, and receive the application detection result returned by the second terminal in response to the application detection instruction, where the application detection instruction is used to instruct the second terminal to perform an installation status detection on the attribution test application;
[0230] If the application detection result indicates that the attribution test application is in an installed state, send a second start instruction to the second terminal, where the second start instruction is used to instruct the second terminal to start the attribution test application;
[0231] If the application detection result indicates that the attribution test application is in an uninstalled state, send a second installation instruction to the second terminal, and after the attribution test application is installed, send a second start instruction to the second terminal, where the second installation instruction is used to instruct the second terminal to install the attribution test application.
[0232] According to one or more embodiments of the present disclosure, Example 9 Based on the method according to any one of Examples 1-7, the attribution detection result further carries the attribution test screen of the second terminal. Before sending the preset control instruction to the second terminal, it further includes:
[0233] Send a screen recording instruction to the second terminal, where the screen recording instruction is used to instruct the second terminal to perform screen recording to obtain the attribution test screen of the second terminal;
[0234] Before generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, it further includes:
[0235] Receive the attribution test screen returned by the second terminal in response to the screen recording instruction.
[0236] According to one or more embodiments of the present disclosure, Example 10 provides an attribution test method applied to a second terminal. The second terminal installs an application under test. The method includes:
[0237] In response to a preset control instruction sent by the first terminal, perform attribution detection on the installation channel of the application under test and generate an attribution detection result;
[0238] Send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result.
[0239] According to one or more embodiments of the present disclosure, Example 11 Based on the method according to Example 10, the preset control instruction includes a first start instruction. Responding to the preset control instruction sent by the first terminal, performing attribution detection on the installation channel of the application under test and generating an attribution detection result includes:
[0240] In response to the first start instruction sent by the first terminal, start the application under test;
[0241] In response to the operation prompt instruction sent by the first terminal, display attribution prompt information, where the attribution prompt information is used to prompt the tester to perform an attribution operation;
[0242] Generate an attribution detection result through the application under test in response to the attribution operation of the tester.
[0243] According to one or more embodiments of the present disclosure, Example 12 Based on the method according to Example 11, the second terminal further installs an attribution test application. Before responding to the first start instruction sent by the first terminal and starting the application under test, it further includes:
[0244] The attribution test application performs environment detection in response to an environment detection instruction sent by a first terminal and generates an environment detection result. The environment detection includes network environment detection and / or installation status detection of the application to be tested.
[0245] The attribution test application sends the environment detection result to the first terminal.
[0246] According to one or more embodiments of the present disclosure, Example 13 According to the method described in Example 12, after the attribution test application sends the environment detection result to the first terminal, it further includes:
[0247] In response to a first installation instruction sent by the first terminal when the environment detection result indicates that the application to be tested is in an uninstalled state, install a to-be-tested application whose application version corresponds to the target version information carried in the first installation instruction.
[0248] According to one or more embodiments of the present disclosure, Example 14 According to the method described in Example 12, the attribution test result corresponds to a target test scenario. Before the attribution test application performs environment detection in response to an environment detection instruction sent by a first terminal, it further includes:
[0249] The attribution test application displays the scenario identifiers of at least one candidate test scenario in response to a scenario display instruction sent by the first terminal.
[0250] In response to a selection operation by a tester for a target test scenario among the at least one candidate test scenario, send the target scenario identifier to the first terminal, where the target scenario identifier is the scenario identifier of the target test scenario.
[0251] According to one or more embodiments of the present disclosure, Example 15 According to the method described in Example 10, after sending the attribution detection result to the first terminal, it further includes at least one of the following:
[0252] In response to an information acquisition instruction sent by the first terminal, acquire the display position information of the application to be tested in the second terminal and send the display position information to the first terminal.
[0253] The attribution test application displays the attribution test result carried in the result display instruction in response to a result display instruction sent by the first terminal.
[0254] The attribution test application displays a reporting prompt message in response to a reporting prompt instruction sent by the first terminal, where the reporting prompt message is used to trigger reporting of the attribution test result.
[0255] According to one or more embodiments of the present disclosure, Example 16 According to the method described in any one of Examples 10-15, the sending the attribution detection result to the first terminal includes:
[0256] Sending a result acquisition request carrying a preset signature to the application under test through an attribution test application, where the result acquisition request is used to request to obtain the attribution detection result generated by the application under test;
[0257] When the preset signature matches the target signature of the application under test through the application under test, sending the attribution detection result to the attribution test application;
[0258] Receiving, by the attribution test application, the attribution detection result sent by the application under test and sending the attribution detection result to the first terminal.
[0259] According to one or more embodiments of the present disclosure, Example 17 According to the method described in any one of Examples 10-15, before the attribution detection result is sent by the attribution test application to the first terminal and in response to a preset control instruction sent by the first terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result, it further includes:
[0260] Responding to the installation detection instruction sent by the first terminal, performing an installation state detection on the attribution test application, generating an application detection result, and sending the application detection result to the first terminal;
[0261] Responding to the second installation instruction sent by the first terminal when the attribution test application is in an uninstalled state, installing the attribution test application;
[0262] Responding to the second start instruction sent by the first terminal when the attribution test application is in an installed state or when the attribution test application is installed, starting the attribution test application.
[0263] According to one or more embodiments of the present disclosure, Example 18 According to the method described in any one of Examples 10-15, the attribution detection result further carries the attribution test screen of the second terminal, and the method further includes:
[0264] Responding to the screen recording instruction sent by the first terminal to perform screen recording, obtaining the attribution test screen, and sending the attribution test screen to the first terminal.
[0265] According to one or more embodiments of the present disclosure, Example 19 provides an attribution test device configured in a first terminal, and the device includes:
[0266] A control instruction sending module, configured to send a preset control instruction to a second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result, and the application under test is installed on the second terminal;
[0267] An attribution detection result receiving module, configured to receive the attribution detection result returned by the second terminal in response to the preset control instruction;
[0268] A test result generating module, configured to generate an attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test.
[0269] According to one or more embodiments of the present disclosure, Example 20 provides an attribution test device, configured on a second terminal, where the second terminal installs an application under test, and the device includes:
[0270] A detection result generating module, configured to perform attribution detection on the installation channel of the application under test and generate an attribution detection result in response to a preset control instruction sent by a first terminal;
[0271] An attribution detection result sending module, configured to send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result.
[0272] According to one or more embodiments of the present disclosure, Example 21 provides an electronic device, including:
[0273] One or more processors;
[0274] A memory, configured to store one or more programs,
[0275] When the one or more programs are executed by the one or more processors, the one or more processors implement the attribution test method according to any one of Examples 1-18.
[0276] According to one or more embodiments of the present disclosure, Example 22 provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the attribution test method according to any one of Examples 1-18 is implemented.
[0277] According to one or more embodiments of the present disclosure, Example 23 provides an attribution test system, including a first terminal and a second terminal, where the second terminal installs an application under test, and wherein,
[0278] The first terminal sends a preset control instruction to the second terminal;
[0279] The second terminal responds to a preset control instruction sent by the first terminal, performs attribution detection on the installation channel of the application to be tested, generates an attribution detection result, and sends the attribution detection result to the first terminal;
[0280] The first terminal receives the attribution detection result sent by the second terminal, and generates an attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
[0281] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0282] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although a number of specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0283] Although the subject matter has been described in language specific to structural features and / or methodological act logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. An attribution test method, characterized in that Applied to a first terminal, the method includes: Sending a preset control instruction to a second terminal, the preset control instruction being used to instruct the second terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result, and the application under test is installed on the second terminal; Receiving the attribution detection result returned by the second terminal in response to the preset control instruction; Generating an attribution test result for the application under test based on the attribution detection result and the expected detection result of the application under test.
2. The method according to claim 1, wherein The preset control instruction includes a first start instruction, and sending the preset control instruction to the second terminal includes: Sending a first start instruction to the second terminal, the first start instruction being used to instruct the second terminal to start the application under test; Displaying an attribution prompt message, and / or sending an operation prompt instruction to the second terminal, the operation prompt instruction being used to instruct the second terminal to display an attribution prompt message, and the attribution prompt message being used to prompt a tester to perform an attribution operation, and the application under test generates an attribution detection result based on the attribution operation.
3. The method according to claim 2, wherein Before sending the first start instruction to the second terminal, it further includes: Sending an environment detection instruction to the second terminal, the environment detection instruction being used to instruct an attribution test application to perform environment detection on the second terminal and generate an environment detection result, and the attribution test application is installed on the second terminal, and the environment detection includes network environment detection and / or installation state detection of the application under test; Receiving the environment detection result returned by the second terminal in response to the environment detection instruction; Sending the first start instruction to the second terminal includes: If the environment detection result indicates successful detection, then sending a first start instruction to the second terminal.
4. The method according to claim 3, characterized in that, The environment detection includes installation state detection of the application under test, and the method further includes: If the environment detection result indicates that the application under test is in an uninstalled state, then determining target version information of the application under test based on the terminal information of the second terminal, and sending a first installation instruction carrying the target version information to the second terminal, the first installation instruction being used to instruct the second terminal to install the application under test whose application version corresponds to the target version information.
5. The method according to claim 3, characterized in that The attribution test result corresponds to a target test scenario. Before sending the environment detection instruction to the second terminal, it further includes: Sending a scenario display instruction to the second terminal, the scenario display instruction being used to instruct the second terminal to display scenario identifiers of at least one candidate test scenario; Receiving a target scenario identifier returned by the second terminal in response to the scenario display instruction, the target scenario identifier being a scenario identifier of a target test scenario, and the target test scenario being a candidate test scenario selected by the tester from the at least one candidate test scenario.
6. The method according to claim 1, wherein , after receiving the attribution detection result returned by the second terminal in response to the preset control instruction, it further includes: Send an information acquisition instruction to the second terminal, and receive the display position information returned by the second terminal in response to the information acquisition instruction, where the display position information is used to indicate the display position of the application under test in the second terminal; Generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test includes: Generating the attribution test result of the application under test based on the attribution detection result, the expected detection result of the application under test, and the display position information.
7. The method according to claim 1, characterized in that, After generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, at least one of the following is further included: Send a result display instruction carrying the attribution test result to the second terminal, where the result display instruction is used to instruct the second terminal to display the attribution test result; Send a reporting prompt instruction to the second terminal, where the reporting prompt instruction is used to instruct the second terminal to display a reporting prompt message, and the reporting prompt message is used to trigger the reporting of the attribution test result.
8. The method according to any one of claims 1-7, characterized in that, The attribution detection result is sent by the second terminal through an attribution test application. Before sending the preset control instruction to the second terminal, the following is further included: Send an application detection instruction to the second terminal, and receive the application detection result returned by the second terminal in response to the application detection instruction, where the application detection instruction is used to instruct the second terminal to perform an installation status detection on the attribution test application; If the application detection result indicates that the attribution test application is in an installed state, send a second start instruction to the second terminal, where the second start instruction is used to instruct the second terminal to start the attribution test application; If the application detection result indicates that the attribution test application is in an uninstalled state, send a second installation instruction to the second terminal, and after the attribution test application is installed, send a second start instruction to the second terminal, where the second installation instruction is used to instruct the second terminal to install the attribution test application.
9. The method according to any one of claims 1-7, characterized in that, The attribution test screen of the second terminal is also carried in the attribution detection result. Before sending the preset control instruction to the second terminal, the following is further included: Send a screen recording instruction to the second terminal, where the screen recording instruction is used to instruct the second terminal to perform screen recording to obtain the attribution test screen of the second terminal; Before generating the attribution test result of the application under test based on the attribution detection result and the expected detection result of the application under test, the following is further included: Receive the attribution test screen returned by the second terminal in response to the screen recording instruction.
10. A method for attribution testing, characterized in that, Applied to a second terminal where an application under test is installed, the method includes: In response to a preset control instruction sent by the first terminal, perform attribution detection on the installation channel of the application under test and generate an attribution detection result; Send the attribution detection result to the first terminal, where the attribution detection result is used for the first terminal to generate an attribution test result.
11. The method according to claim 10, characterized in that The preset control instruction includes a first start instruction. Responding to the preset control instruction sent by the first terminal to perform attribution detection on the installation channel of the application under test and generate an attribution detection result includes: Responding to the first start instruction sent by the first terminal to start the application under test; Responding to the operation prompt instruction sent by the first terminal to display an attribution prompt message, where the attribution prompt message is used to prompt the tester to perform an attribution operation; Generating an attribution detection result through the application under test in response to the attribution operation of the tester.
12. The method according to claim 11, wherein The second terminal is also installed with an attribution test application. Before responding to the first start instruction sent by the first terminal to start the application under test, it further includes: Performing environment detection through the attribution test application in response to the environment detection instruction sent by the first terminal and generating an environment detection result, where the environment detection includes network environment detection and / or installation status detection of the application under test; Sending the environment detection result to the first terminal through the attribution test application.
13. The method according to claim 12, characterized in that, After sending the environment detection result to the first terminal through the attribution test application, it further includes: Responding to the first installation instruction sent by the first terminal when the environment detection result indicates that the application under test is in an uninstalled state, and installing the application under test whose application version corresponds to the target version information carried in the first installation instruction.
14. The method according to claim 12, characterized in that, The attribution test result corresponds to the target test scenario. Before performing environment detection through the attribution test application in response to the environment detection instruction sent by the first terminal, it further includes: Displaying the scenario identifiers of at least one candidate test scenario through the attribution test application in response to the scenario display instruction sent by the first terminal; Responding to the selection operation of the tester for the target test scenario among the at least one candidate test scenarios, and sending the target scenario identifier to the first terminal, where the target scenario identifier is the scenario identifier of the target test scenario.
15. The method according to claim 10, wherein After sending the attribution detection result to the first terminal, it further includes at least one of the following: Responding to the information acquisition instruction sent by the first terminal, acquiring the display position information of the application under test in the second terminal, and sending the display position information to the first terminal; Displaying the attribution test result carried in the result display instruction through the attribution test application in response to the result display instruction sent by the first terminal; Displaying a reporting prompt message through the attribution test application in response to the reporting prompt instruction sent by the first terminal, where the reporting prompt message is used to trigger reporting of the attribution test result.
16. The method according to any one of claims 10-15, characterized in that, Sending the attribution detection result to the first terminal includes: Sending a result acquisition request carrying a preset signature to the application under test through the attribution test application, where the result acquisition request is used to request to acquire the attribution detection result generated by the application under test; Sending the attribution detection result to the attribution test application through the application under test when the preset signature matches the target signature of the application under test. Receive the attribution detection result sent by the application to be tested through the attribution test application and send the attribution detection result to the first terminal.
17. The method according to any one of claims 10-15, characterized in that, Before the attribution detection result is sent by the attribution test application to the first terminal and in response to a preset control instruction sent by the first terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result, it further includes: In response to the installation detection instruction sent by the first terminal, perform an installation status detection on the attribution test application, generate an application detection result, and send the application detection result to the first terminal; In response to the second installation instruction sent by the first terminal when the attribution test application is in an uninstalled state, install the attribution test application; In response to the second start instruction sent by the first terminal when the attribution test application is in an installed state or after the attribution test application is installed, start the attribution test application.
18. The method according to any one of claims 10-15, characterized in that, The attribution test screen of the second terminal is also carried in the attribution detection result, and the method further includes: In response to the screen recording instruction sent by the first terminal, perform screen recording to obtain the attribution test screen, and send the attribution test screen to the first terminal.
19. An attribution test device, characterized in that, Configured on the first terminal, the device includes: A control instruction sending module, configured to send a preset control instruction to the second terminal, where the preset control instruction is used to instruct the second terminal to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result, and the application to be tested is installed on the second terminal; An attribution detection result receiving module, configured to receive the attribution detection result returned by the second terminal in response to the preset control instruction; A test result generating module, configured to generate an attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.
20. An attribution test device, characterized in that, Configured on the second terminal, the second terminal installs the application to be tested, and the device includes: A detection result generating module, configured to perform attribution detection on the installation channel of the application to be tested and generate an attribution detection result in response to a preset control instruction sent by the first terminal; An attribution detection result sending module, configured to send the attribution detection result to the first terminal, and the attribution detection result is used for the first terminal to generate an attribution test result.
21. An electronic device, characterized in that, Includes: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the attribution test method according to any one of claims 1-18.
22. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the processor to implement the attribution test method according to any one of claims 1-18 when executed.
23. An attribution test system, characterized in that, Includes a first terminal and a second terminal, and the second terminal installs the application to be tested, wherein, The first terminal sends a preset control instruction to the second terminal; The second terminal performs attribution detection on the installation channel of the application to be tested in response to a preset control instruction sent by the first terminal, generates an attribution detection result, and sends the attribution detection result to the first terminal; The first terminal receives the attribution detection result sent by the second terminal, and generates an attribution test result of the application to be tested based on the attribution detection result and the expected detection result of the application to be tested.