User experience testing method, device, system and electronic device for communication module
By automating the simulation of user scenarios on smart terminal devices and configuring noise, wireless interference, and jitter devices, the problems of high subjectivity and low efficiency in manual testing are solved, and efficient and accurate user experience testing of communication modules is achieved.
Patent Information
- Application Number
- CN202210443821.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-04-25
AI Technical Summary
In existing technologies, user experience testing of communication modules in smart terminal devices mainly relies on manual testing, which suffers from high subjectivity, high time costs, and low testing efficiency.
This paper provides a user experience testing method based on a communication module. The method connects an electronic device to the device under test and a scenario simulation device, and uses pre-set test cases to automatically simulate user scenarios. It configures noise, wireless interference and jitter devices to simulate real user environments and conducts automated testing.
It has achieved full automation of user experience testing for communication modules, improving the accuracy and efficiency of test results and reducing testing costs.
Smart Images

Figure CN114826439B_ABST
Abstract
Description
[Technical field]
[0001] The embodiments of the present application relate to the field of automatic testing technology, and in particular to a user experience testing method, device, system and electronic device based on a communication module. [Background technology]
[0002] Smart terminal devices such as mobile phones and tablets are making people's lives more convenient and efficient, and users are spending more and more time on smart devices. With the development of wireless communication networks, communication technologies such as Bluetooth BT, Wi-Fi, FM Radio, and Global Navigation Satellite System GNSS have become indispensable functions on smart terminal devices. The user experience of communication modules on smart terminal devices is currently mainly tested using manual testing methods. During manual testing, the test results are highly subjective, the time cost is high, and the test efficiency is low.
[0003] Therefore, providing an automated testing method that can be executed for a long time and can truly simulate user usage habits is an issue that urgently needs to be addressed. [Summary of the invention]
[0004] The embodiment of the present application provides a user experience testing method based on a communication module to realize automated testing of the user experience of the communication module, improve testing efficiency, and reduce testing costs.
[0005] In a first aspect, the present application provides a user experience testing method based on a communication module, which is applied to an electronic device, wherein the electronic device is respectively connected to at least one device to be tested and at least one scenario simulation device, the device to be tested includes at least one communication module, and the electronic device is pre-set with multiple test cases. The method includes: obtaining test requirement information, the test requirement information includes first requirement information, and the first requirement information is used to indicate a user scenario to be tested; determining a target test case according to the test requirement information and the preset multiple test cases; configuring the scenario simulation device according to the target test case so that the scenario simulation device simulates the user scenario to be tested; when the scenario simulation device simulates the user scenario to be tested, testing at least one communication module in the device to be tested according to the target test case.
[0006] The beneficial effect of the first aspect is that the user experience test of the communication module of the device under test is fully automated, and the real user environment can be simulated, thereby improving the accuracy of the test results.
[0007] In a possible implementation, the test requirement information also includes second requirement information, and the second requirement information is used to indicate the communication module to be tested; testing at least one communication module in the device to be tested according to the target test case includes: testing the communication module to be tested in the device to be tested according to the target test case.
[0008] In one possible implementation, the electronic device is also connected to at least one auxiliary test device, and the method further includes: configuring the auxiliary test device according to the target test case; testing the communication module to be tested in the device to be tested according to the target test case, including: testing the device to be tested based on the communication between the communication module to be tested and at least one of the auxiliary test devices according to the target test case.
[0009] In one possible implementation, the target test case includes a first configuration parameter, a second configuration parameter, and a third configuration parameter, the scenario simulation device includes a noise playing device, a wireless interference device, and a jitter device, the device to be tested is placed on the jitter device, and the scenario simulation device is configured according to the test case so that the scenario simulation device simulates the user scenario to be tested, including: configuring the noise playing device according to the first configuration parameter so that the noise playing device simulates the environmental noise in the user scenario to be tested; configuring the wireless interference device according to the second configuration parameter so that the wireless interference device simulates the wireless interference in the user scenario to be tested; configuring the jitter device according to the third configuration parameter so that the jitter device simulates the jitter state of using the device to be tested in the user scenario to be tested.
[0010] In a possible implementation, when one of the test cases corresponds to a user scenario to be tested under a communication module to be tested, the target test case is determined according to the test requirement information and the preset multiple test cases, including: when the test requirement information includes a user scenario to be tested under a communication module to be tested, the test case determined according to the communication module to be tested and the user scenario to be tested is used as the target test case; when the test requirement information includes multiple user scenarios to be tested under a communication module to be tested, or the same user scenario to be tested under multiple communication modules to be tested, or multiple user scenarios to be tested under multiple communication modules to be tested, the test case corresponding to each user scenario to be tested under each communication module to be tested is determined, and the determined multiple test cases are combined as the target test case.
[0011] In a possible implementation, each of the test cases is set with a first parameter value, and the first parameter value is used to indicate the frequency with which the test case is executed. When the target test case is composed of a plurality of test cases and the first requirement information indicates a random execution of a user scenario, testing at least one communication module in the device under test according to the target test case includes: determining the number of executions of each of the test cases according to the first parameter value of each of the test cases in the target test case; and testing at least one communication module in the device under test according to the number of executions of each of the test cases.
[0012] In one possible implementation, the method for generating the preset multiple test cases includes: obtaining user usage data of a communication module, the user usage data being used to indicate data of users of different occupations and age groups using various communication modules on various devices; parsing the user usage data to obtain user scenario information and user operation information corresponding to the communication module; and generating test cases in combination with the user scenario information and the user operation information.
[0013] In a second aspect, the present application provides a user experience testing device based on a communication module, which is applied to an electronic device, wherein the electronic device is respectively connected to at least one device to be tested and at least one scenario simulation device, the device to be tested includes at least one communication module, and the electronic device is pre-set with multiple test cases, and the device includes: a requirement acquisition module, used to obtain test requirement information, the test requirement information includes first requirement information, and the first requirement information is used to indicate the user scenario to be tested; a use case determination module, used to determine a target test case according to the test requirement information and the preset multiple test cases; a scenario configuration module, used to configure the scenario simulation device according to the target test case, so that the scenario simulation device simulates the user scenario to be tested; a test execution module, used to test at least one communication module in the device to be tested according to the target test case when the scenario simulation device simulates the user scenario to be tested.
[0014] In a possible implementation, the test requirement information also includes second requirement information, and the second requirement information is used to indicate the communication module to be tested; the test execution module is specifically used to test the communication module to be tested in the device to be tested according to the target test case.
[0015] In one possible implementation, the electronic device is also connected to at least one auxiliary test device, and the apparatus further includes: a test configuration module, used to configure the auxiliary test device according to the target test case; and a test execution module, specifically used to test the device under test based on the communication between the communication module under test and at least one of the auxiliary test devices according to the target test case.
[0016] In one possible implementation, the target test case includes a first configuration parameter, a second configuration parameter and a third configuration parameter, the scenario simulation device includes a noise playing device, a wireless interference device and a jitter device, the device to be tested is placed on the jitter device, and the scenario configuration module includes: a first configuration unit, used to configure the noise playing device according to the first configuration parameter, so that the noise playing device simulates the environmental noise in the user scenario to be tested; a second configuration unit, used to configure the wireless interference device according to the second configuration parameter, so that the wireless interference device simulates the wireless interference in the user scenario to be tested; a third configuration unit, used to configure the jitter device according to the third configuration parameter, so that the jitter device simulates the jitter state of using the device to be tested in the user scenario to be tested.
[0017] In a possible implementation, when one of the test cases corresponds to a user scenario to be tested under a communication module to be tested, the use case determination module includes: a single use case determination unit, which is used to, when the test requirement information includes a user scenario to be tested under a communication module to be tested, use the test case determined according to the communication module to be tested and the user scenario to be tested as the target test case; and a multiple use case determination unit, which is used to, when the test requirement information includes multiple user scenarios to be tested under a communication module to be tested, or the same user scenario to be tested under multiple communication modules to be tested, or multiple user scenarios to be tested under multiple communication modules to be tested, determine the test case corresponding to each user scenario to be tested under each communication module to be tested, and combine the multiple determined test cases as the target test case.
[0018] In one possible implementation, each of the test cases is set with a first parameter value, and the first parameter value is used to indicate the frequency value of the execution of the test case. When the target test case is composed of multiple test cases and the first requirement information indicates a random execution of a user scenario, the test execution module includes: a number determination unit, used to determine the number of executions of each of the test cases in the target test case according to the first parameter value of each of the test cases in the target test case; and a test execution unit, used to test at least one communication module in the device under test according to the number of executions of each of the test cases.
[0019] In a possible implementation, the device also includes: a use case generation module, used to generate the preset multiple test cases; the use case generation module includes: a data acquisition unit, used to acquire user usage data of the communication module, the user usage data is used to indicate data of users of different occupations and different age groups using various communication modules on various devices; a data parsing unit, used to parse the user usage data to obtain user scenario information and user operation information corresponding to the communication module; and a use case generation unit, used to generate a test case in combination with the user scenario information and the user operation information.
[0020] In a third aspect, the present application provides an electronic device comprising: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method provided in the first aspect.
[0021] In a fourth aspect, the present application provides a user experience testing system based on a communication module, comprising: the electronic device provided in the third aspect, and at least one device to be tested and at least one scenario simulation device connected to the electronic device, wherein the device to be tested includes at least one communication module.
[0022] In a possible implementation, the scene simulation device includes a noise playing device, a wireless interference device and a shaking device, and the device to be tested is placed on the shaking device.
[0023] In a possible implementation manner, the system further includes at least one auxiliary testing device connected to the electronic device.
[0024] In a possible implementation manner, the at least one communication module of the device under test includes at least one of a Wi-Fi module, a Bluetooth module, a FM radio module, and a global navigation satellite system module.
[0025] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method provided in the first aspect.
[0026] It should be understood that the second to fifth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
Brief Description of the Drawings
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A flow chart of a user experience testing method based on a communication module provided in an embodiment of the present application;
[0029] Figure 2 A flow chart of another user experience testing method based on a communication module provided in an embodiment of the present application;
[0030] Figure 3 A schematic diagram of a test case module provided in an embodiment of the present application;
[0031] Figure 4 A flow chart of another user experience testing method based on a communication module provided in an embodiment of the present application;
[0032] Figure 5 A schematic diagram of the structure of a user experience testing system provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of the structure of a user experience testing device based on a communication module provided in an embodiment of the present application;
[0034] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. [Specific implementation method]
[0035] In order to better understand the technical solution of this specification, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0036] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0037] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0038] To facilitate those skilled in the art to understand the technical solution of the present application, the technical terms involved in the present application are explained below.
[0039] (1)Wi-Fi: wireless fidelity.
[0040] (2) BT: Bluetooth.
[0041] (3)FM: Frequency Modulation, FM radio.
[0042] (4) GNSS: Global Navigation Satellite System.
[0043] (5)DUT: Device Under Test.
[0044] (6) PC: Personal Computer.
[0045] (7)APP:Application.
[0046] In the existing related technologies, the user experience of the communication module on the smart terminal device is mainly tested by manual testing method. However, the manual testing method has high subjectivity of the test results, high time cost and low test efficiency.
[0047] Based on the above problems, an embodiment of the present application provides a user experience testing method based on a communication module, which can simulate user scenarios according to test requirements to perform automated user experience testing, thereby reducing testing costs and increasing testing efficiency.
[0048] Figure 1 A flow chart of a user experience testing method based on a communication module provided in an embodiment of the present application is applied to an electronic device, wherein the electronic device is respectively connected to at least one device to be tested and at least one scenario simulation device, wherein the device to be tested includes at least one communication module, and the electronic device is pre-installed with multiple test cases, wherein the device to be tested may be a mobile phone, a tablet or other types of devices, and the device to be tested may include one or more communication modules, such as a wireless fidelity Wi-Fi module, a Bluetooth BT module, an FM radio module and a GNSS global navigation satellite system module. One or more, the scenario simulation device is used to simulate the state of the user scenario. Figure 1 As shown, the above user experience testing method may include:
[0049] Step 101: obtain test requirement information, where the test requirement information includes first requirement information, and the first requirement information is used to indicate a user scenario to be tested.
[0050] It should be noted that the method for the electronic device to obtain the test requirement information may be through the tester inputting the test requirement information or the tester selecting the test requirement information on the UI user interface, or it may be obtained after receiving the test requirement information transmitted from other interfaces, etc. The embodiments of the present application do not limit the method for obtaining the test requirement information.
[0051] It is understandable that the testable user scenarios may include multiple user scenarios, such as making a phone call, listening to music, watching videos, etc. Therefore, the user scenario to be used in this test can be determined by inputting or selecting the user scenario to be tested. The specific selected user scenario is not limited here.
[0052] Step 102: Determine a target test case according to the test requirement information and the plurality of preset test cases.
[0053] It should be noted that there are many methods for determining the corresponding target test case based on the test requirement information. For example, each test case pre-stored in the electronic device has a corresponding user scenario. Therefore, the corresponding test case can be directly selected as the target test case according to the first requirement information in the test requirement information. The corresponding test case number can also be obtained according to the test requirement information, and the target test case is determined according to the test case number. The embodiment of the present application does not limit the method for determining the target test case based on the test requirement information and the preset multiple test cases.
[0054] Step 103: configuring the scenario simulation device according to the target test case so that the scenario simulation device simulates the user scenario to be tested.
[0055] It should be noted that there are many methods for configuring the scene simulation device according to the target test case. For example, when the scene simulation device includes a noise playing device, the target test case may include the type and intensity information of the played noise. The noise playing device can be automatically configured according to the type and intensity information of the played noise to simulate the environmental noise in the corresponding user scene to be tested. In addition, there are many other configuration methods. Therefore, the embodiment of the present application does not limit the method for configuring the scene simulation device according to the target test case.
[0056] Step 104: When the scenario simulation device simulates the user scenario to be tested, at least one communication module in the device to be tested is tested according to the target test case.
[0057] It should be noted that after configuring the scene simulation device to simulate the user scene to be tested, there are many ways to perform user experience testing on the communication module of the device to be tested according to the target test case. For example, when the test requirement is to test the user listening to music scene, the scene simulation device simulates the environmental state of the listening scene, and the target test case calls a communication module in the device to be tested, such as the Bluetooth module to start testing. During the test, the connection speed, transmission rate, sound effect and other parameters of the Bluetooth module are tested by simulating the operating steps when the user uses it; for example, when testing the FM Radio module, the FM Radio function is turned on to test whether the sound is stuck, etc.; similarly, when testing other communication modules, a similar method is also used. Therefore, the embodiment of the present application does not limit the method of testing at least one communication module in the device to be tested by the target test case.
[0058] Through the above-mentioned user experience testing method based on the communication module, the user experience testing is fully automated, and can simulate the real user environment, thereby improving the accuracy of the test results.
[0059] In some embodiments, the device under test may include multiple communication modules, and only one or several of the communication modules need to be tested during the test. In order to further determine which one or several communication modules are to be tested, the test requirement information also includes second requirement information, and the second requirement information is used to indicate the communication module to be tested. After determining the communication module to be tested, the at least one communication module in the device under test is tested according to the target test case, which may include: testing the communication module to be tested in the device under test according to the target test case. For example, the testable communication module may include a variety of communication modules, such as a wireless fidelity Wi-Fi module, a Bluetooth BT module, an FM radio module, a GNSS module, etc., so the communication module to be tested in this test can be determined by inputting or selecting the communication module to be tested, and the specific selected communication module to be tested is not limited here.
[0060] In some embodiments, in order to test the short-range communication module in the device under test, it is also necessary to configure an auxiliary test device so that the short-range communication module can communicate with the auxiliary test device for testing. Therefore, the electronic device is also connected to at least one auxiliary test device. The testing method may also include: configuring the auxiliary test device according to the target test case. The testing of the communication module to be tested in the device under test according to the target test case may include: testing the device under test based on the communication between the communication module to be tested and at least one of the auxiliary test devices according to the target test case.
[0061] Figure 2A flow chart of another user experience testing method based on a communication module provided in an embodiment of the present application. Figure 2 As shown, the user experience testing method may include:
[0062] Step 201: obtaining test requirement information, the test requirement information including first requirement information and second requirement information, the first requirement information is used to indicate a user scenario to be tested, and the second requirement information is used to indicate a communication module to be tested;
[0063] Step 202: determining a target test case according to the test requirement information and the preset multiple test cases;
[0064] Step 203: configuring the scenario simulation device according to the target test case so that the scenario simulation device simulates the user scenario to be tested; configuring the auxiliary test device according to the target test case;
[0065] Step 204: When the scenario simulation device simulates the user scenario to be tested, the device to be tested is tested based on the communication between the communication module to be tested and at least one of the auxiliary test devices according to the target test case.
[0066] It should be noted that step 201 and step 202 can refer to Figure 1 The corresponding content introduction in the illustrated embodiment will not be repeated here. In step 203 and step 204, the auxiliary test equipment is used to assist the test case to test the communication module. For example, when the module to be tested is a Bluetooth module and the test scenario is when the user listens to music, the auxiliary test equipment can be a Bluetooth headset, which is used to establish a connection with the Bluetooth module and receive Bluetooth data sent by the Bluetooth module for testing. It can also include a sound detection device to detect the sound quality, etc. Since the auxiliary test equipment may or may not be present when testing different communication modules to be tested, and the type and quantity of the auxiliary test equipment are also set according to the test requirements, the embodiment of the present application does not limit the type and quantity of the auxiliary test equipment.
[0067] In some embodiments, in order to simulate the user scenario to be tested that is closer to the user usage scenario as much as possible, a variety of scenario simulation devices can be used, for example, including: a noise playing device, a wireless interference device and a shaking device. Among them, the noise playing device can be used to simulate the noise in various usage environments. In the embodiment of the present application, a Bluetooth speaker can be used in various positions in the laboratory to continuously play various noises, including human voices, vehicle sounds, etc., to simulate the noise in the environment. The wireless interference device can be used to simulate wireless interference in various usage environments. In the embodiment of the present application, different wireless jammers can be arranged in various positions in the laboratory to simulate interference in the environment. The shaking device can be used to simulate shaking in various usage environments. In the embodiment of the present application, the device to be tested DUT can be placed on a shaking platform, and the platform shakes the DUT in various ways to simulate the shaking of the DUT during user use.
[0068] Further, in order to configure the noise playing device, the wireless jamming device and the jitter device, the test case provided in the embodiment of the present application includes a first configuration parameter, a second configuration parameter and a third configuration parameter, which are used to configure the noise playing device, the wireless jamming device and the jitter device accordingly. Exemplarily, in step 103 or step 203, configuring the scenario simulation device according to the test case may include:
[0069] Step 301: configuring the noise playing device according to the first configuration parameter so that the noise playing device simulates the environmental noise in the user scenario to be tested;
[0070] Step 302: configuring the wireless interference device according to the second configuration parameter so that the wireless interference device simulates the wireless interference in the user scenario to be tested;
[0071] Step 303: configure the jitter device according to the third configuration parameter so that the jitter device simulates the jitter state of the device under test in the user scenario under test. The accuracy of the test result can be greatly improved by simulating the real user environment through the scenario simulation device.
[0072] In some embodiments, the device under test may include one or more communication modules, and the tester may need to perform user experience testing on one or more communication modules in the device under test. Multiple test cases are pre-installed in the electronic device, and each test case corresponds to a user scenario under a communication module. The multiple test cases include test cases for multiple communication modules under multiple user scenarios. When receiving test requirement information, the electronic device can determine the corresponding target test case according to the type and quantity of the communication modules to be tested and the user scenarios to be tested in the test requirement information.
[0073] Exemplarily, when the test requirement information includes only one user scenario to be tested under one communication module to be tested, a test case determined according to the communication module to be tested and the user scenario to be tested is used as a target test case.
[0074] When the test requirement information corresponds to more than one test case, for example, when the test requirement information includes multiple user scenarios to be tested under one communication module to be tested, or the same user scenario to be tested under multiple communication modules to be tested, or multiple user scenarios to be tested under multiple communication modules to be tested, determine the test cases corresponding to each user scenario to be tested under each communication module to be tested, and then combine the determined multiple test cases as target test cases.
[0075] Figure 3 A schematic diagram of a test case module provided in an embodiment of the present application, such as Figure 3 As shown, the multiple test cases preset in the electronic device can be stored in the form of multiple test case modules, and the test case modules include BT test modules, Wi-Fi test modules, FM test modules, GNSS test modules and combined test modules. A box under each test module represents a test case. In the figure, the BT test module, Wi-Fi test module, FM test module and GNSS test module all include single test cases corresponding to different scenarios, and the combined test module includes test cases formed by combining several test cases selected from the above single test cases, of which there are 2, 3 or more. When testing, if only one test case needs to be called, the corresponding one test case can be directly called according to the communication module to be tested and the user scenario to be tested. If several communication modules or several user scenarios are to be tested at the same time, for example, BT module scenario 1 and Wi-Fi module scenario 1 need to be tested at the same time, then the test case corresponding to BT module scenario 1 and the test case corresponding to Wi-Fi module scenario 1 are obtained and combined to form a BT scenario 1 + Wi-Fi scenario 1 test case, which is placed in the combined test module for testing.
[0076] In actual test scenarios, individual test cases can be randomly combined to form combined test cases. For ease of calling, the combined test cases can be placed in the combined test module in advance. When calling, the combined test cases can be called directly. Alternatively, based on the consideration of saving storage space, the test cases can be combined according to the requirements after obtaining the test requirement information. Both methods are possible and can be set according to the test requirements.
[0077] In some embodiments, the tester may need to conduct a long-term user experience test on the communication module, and needs to execute various user scenarios under the communication module during the test. For example, the test requirement information set by the tester may be 7 consecutive days of testing, the first requirement information is to randomly execute user scenarios, and the second requirement information is the BT module. After selecting the random execution of user scenarios, the test cases corresponding to the various user scenarios under the BT module will be randomly executed. In this case, how to randomly arrange the test times of each test case under the BT module will directly affect the test results. A better way is to run the test cases corresponding to each user scenario under the BT module according to the user's frequency of use.
[0078] Figure 4 A flowchart of another user experience testing method based on a communication module provided in an embodiment of the present application. In order to reasonably arrange the execution times of each test case in a random execution user scenario mode, each test case can be set with a first parameter value, and the first parameter value is used to indicate the frequency of execution of the test case. When the target test case is composed of multiple test cases and the first requirement information indicates a random execution user scenario, such as Figure 4 As shown, in Figure 1 Based on the illustrated embodiment, performing a user experience test on at least one communication module in the device under test according to the target test case in step 104 may include:
[0079] Step 401: determining the execution times of each test case according to the first parameter value of each test case in the target test case;
[0080] Step 402: Test at least one communication module in the device under test according to the execution times of each test case.
[0081] It should be noted that the first parameter value of each test case is set according to the frequency of occurrence of each user scenario in the user's usage habits. When the tester chooses to randomly execute the user scenario, the electronic device will calculate the number of executions of each test case according to the first parameter value of each test case in the target test case, and then execute each test case according to the calculated number of executions. In this way, the user's habit of randomly executing each user scenario can be simulated. The number of tests will be increased for scenarios with high usage frequency. Such random execution of user scenarios will be closer to the user's actual usage scenarios. Of course, the random execution of user scenarios is a mode in which an electronic device automatically sets the test duration and number of times for each test case. If the tester wants to test according to his own needs, the tester can also freely set the test duration or number of tests for each user scenario to simulate the usage scenarios in the user's habits.
[0082] Exemplarily, assuming that the Wi-Fi module under the test case module includes the Douyin browsing scenario (frequency 0.2), the song listening scenario (frequency 0.3), the video watching scenario (frequency 0.2), the game playing scenario (0.1 frequency), and the phone call scenario (0.2 frequency), when the Wi-Fi module needs to perform a 2-hour user experience test of randomly executing user scenarios, the above 5 user scenarios are repeatedly executed. When the test time is long enough to execute 10 scenarios, the Douyin browsing scenario is executed 2 times, the song listening scenario is executed 3 times, the video watching scenario is executed 2 times, the game playing scenario is executed 1 time, and the phone call scenario is executed 2 times. The user experience test of the communication module to be tested is performed according to the number of executions of each of the above user scenarios.
[0083] Furthermore, the test method of the test case will directly affect the test result. In order to better simulate the user usage status to perform user experience testing on the communication module, multiple test cases preset in the electronic device can be generated by the following method:
[0084] Step 501: Acquire user usage data of a communication module, where the user usage data is used to indicate data of users of different professions and age groups using various communication modules on various devices;
[0085] Step 502: parsing the user usage data to obtain user scenario information and user operation information corresponding to the communication module;
[0086] Step 503: Generate a test case by combining the user scenario information and the user operation information.
[0087] It should be noted that in order to generate test cases corresponding to each user scenario, it is necessary to first obtain user usage scenario information. You can select people of different occupations and age groups, and install an APP on their commonly used smart terminal devices that can obtain the user's communication module usage. After using it for a period of time, export the data, organize the user's common scenarios and usage frequency, and develop user experience test cases for each scenario.
[0088] Exemplarily, the steps of generating test cases may include: Step 1: Capture user logs through the APP, and then transmit the user logs to the backend server. The tester analyzes the user logs. The main analysis methods are as follows: (1) The type of Bluetooth device connected by the user can be obtained through the Bluetooth name information in the Bluetooth log, and the Bluetooth operation used by the user, such as listening to music and making phone calls, can be obtained by analyzing the protocol information in the Bluetooth log. (2) By analyzing the information in the Wi-Fi log, the type of Wi-Fi service used by the user can be obtained, such as Wi-Fi station, hotspot, P2P, etc.; (3) By analyzing the application layer log, the user's operation can be obtained, such as playing games, watching videos, etc. The upper layer logs and the lower layer logs are combined, and the short-range communication service is combined with the user's specific usage scenarios to analyze the user's usage information; (4) Through the location information, it is possible to obtain what operations the user often performs at a certain location. This information can be used for user environment simulation; Step 2: Organize the user usage scenario information according to the analysis into test cases; Step 3: After the test cases are organized, the cases can be written into automated scripts.
[0089] By adopting the above method of generating test cases, selecting people of different occupations and age groups, collecting user scenario data for analysis and generating test cases, it can help to accurately test common user scenarios.
[0090] In order to introduce the application scenarios of the user experience testing method based on the communication module provided in the embodiment of the present application, the user experience testing system of the communication module composed of an electronic device, a device to be tested, a scenario simulation device and an auxiliary test device will be introduced below.
[0091] Figure 5 A schematic diagram of a user experience testing system provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the devices under test include multiple smart phones. The electronic device can perform user experience testing on a single device under test or on the communication modules in multiple devices under test at the same time to save testing time. The electronic device uses a personal computer PC, and an automated script module is installed on the PC, that is, Figure 3The test case module shown; the scenario simulation device includes a wireless interference device, a noise playback device and a jitter device set under each device under test. In order to make the device under test closer to the state of user use, the device under test is installed with music, video, game, call and other commonly used user applications APP. Auxiliary test equipment includes Wi-Fi auxiliary equipment, BT auxiliary equipment, FM auxiliary equipment, etc.; Wi-Fi auxiliary equipment can include routers, auxiliary machines and TVs, etc., for auxiliary testing of Wi-Fi modules; BT auxiliary equipment can include Bluetooth headsets, Bluetooth speakers and car-mounted, etc., for auxiliary testing of BT modules; FM auxiliary equipment can include wired headsets, for auxiliary testing of FM modules. For GNSS modules, auxiliary test equipment is not required, and a navigation app can be installed on the device under test for testing. The PC connects multiple Bluetooth auxiliary devices through a hub, and the PC connects Wi-Fi auxiliary devices through connectors respectively. The PC can control these devices. The PC also connects multiple devices under test through a USB splitter and controls them.
[0092] It is understandable that the scenarios commonly used by users will be different for different forms of devices under test. For example: for mobile phones, the scenarios commonly used by users are to connect to Wi-Fi and Bluetooth devices to watch short videos, listen to music, make calls, play games, watch videos, etc.; for car-mounted devices, the scenarios commonly used by users are to connect to mobile phones or tablets via Bluetooth to listen to music, make calls, and navigate, etc.; for Bluetooth headsets, the scenarios commonly used are to connect to mobile phones or tablets via Bluetooth to listen to music, make calls, etc. Therefore, for different devices under test, Figure 5 The "Wi-Fi auxiliary device" and "Bluetooth auxiliary device" in the test may be different. In addition, the supported functions may also be different for different devices under test. If the device under test does not support a certain function, Figure 5 The relevant auxiliary test equipment can be removed, and the relevant devices in the scenario simulation equipment can be removed.
[0093] To sum up, the number of devices to be tested can be set according to the test requirements, the type and number of auxiliary test devices can be configured accordingly according to the type and number of communication modules to be tested, and the type and number of scenario simulation devices can be configured according to the requirements of the user scenario to be tested. The user experience testing system can test a single communication module in the device to be tested, and can also test multiple communication modules at the same time.
[0094] Exemplarily, the test process of the user experience test of the communication module based on the user experience test system is described below. The test steps may include: Step 1, the tester starts the scene simulation device and the auxiliary test device according to the test requirements, places the device to be tested, etc., and completes the initial preparation work, such as powering on the device, etc.; Step 2, the tester selects the communication module to be tested and the user scenario to be tested, and the PC sends the test task. Here, the tester selects the user scenario to be tested and can choose to execute randomly, sequentially or select user scenarios to perform the test according to the requirements. For example, if the tester chooses to execute the user scenario randomly, it will start to execute randomly according to the frequency of user scenario use; Step 3, start to automatically execute the test task and monitor whether there is an abnormality. 1. If an abnormality occurs, collect the test log and notify the tester. (1) If the tester chooses not to intervene or does not respond for a long time, the abnormal module will be automatically restarted and the test task will continue to be executed; (2) If the tester chooses to intervene, wait for the tester to operate, and this round of testing ends. 2. If there is no abnormality in the test, the test result is output after the test task is completed, the device to be tested, the scene simulation device and the auxiliary test device are reset, and the test ends. Furthermore, step 4 can be added to verify the test results. The verification method can include: 1. Verification through the return value of the device interface under test, that is, by obtaining the return value of the underlying interface to determine whether the function is normal, such as determining whether it is normal through the data returned by the Android interface; 2. Verification through UI interface information: by obtaining the interface control information, to determine whether the interface meets expectations. After an exception occurs, the exception log is automatically saved to remind the tester to check. If the tester chooses to ignore it, the exception module is automatically restarted and the test is automatically restarted, saving test time.
[0095] The user experience testing system and method described above realize full automation of user experience testing, and can simulate the actual user usage environment, thereby improving the accuracy of the test results.
[0096] The present application also provides a user experience testing device based on a communication module. Figure 6 A schematic diagram of the structure of a user experience testing device based on a communication module provided in an embodiment of the present application, wherein the user experience testing device is applied to an electronic device, wherein the electronic device is respectively connected to at least one device to be tested and at least one scenario simulation device, wherein the device to be tested includes at least one communication module, and the electronic device is pre-set with multiple test cases, such as Figure 6As shown, the user experience testing device may include: a requirement acquisition module 601, a use case determination module 602, a scenario configuration module 603 and a test execution module 604; wherein the requirement acquisition module 601 is used to obtain test requirement information, the test requirement information includes first requirement information, and the first requirement information is used to indicate the user scenario to be tested; the use case determination module 602 is used to determine the target test case according to the test requirement information and the preset multiple test cases; the scenario configuration module 603 is used to configure the scenario simulation device according to the target test case so that the scenario simulation device simulates the user scenario to be tested; the test execution module 604 is used to test at least one communication module in the device to be tested according to the target test case when the scenario simulation device simulates the user scenario to be tested.
[0097] In a possible implementation, the test requirement information also includes second requirement information, and the second requirement information is used to indicate the communication module to be tested; the test execution module is specifically used to test the communication module to be tested in the device to be tested according to the target test case.
[0098] In one possible implementation, the electronic device is also connected to at least one auxiliary test device, and the apparatus further includes: a test configuration module, used to configure the auxiliary test device according to the target test case; and a test execution module, specifically used to test the device under test based on the communication between the communication module under test and at least one of the auxiliary test devices according to the target test case.
[0099] In one possible implementation, the target test case includes a first configuration parameter, a second configuration parameter and a third configuration parameter, the scenario simulation device includes a noise playing device, a wireless interference device and a jitter device, the device to be tested is placed on the jitter device, and the scenario configuration module includes: a first configuration unit, used to configure the noise playing device according to the first configuration parameter, so that the noise playing device simulates the environmental noise in the user scenario to be tested; a second configuration unit, used to configure the wireless interference device according to the second configuration parameter, so that the wireless interference device simulates the wireless interference in the user scenario to be tested; a third configuration unit, used to configure the jitter device according to the third configuration parameter, so that the jitter device simulates the jitter state of using the device to be tested in the user scenario to be tested.
[0100] In a possible implementation, when one of the test cases corresponds to a user scenario to be tested under a communication module to be tested, the use case determination module includes: a single use case determination unit, which is used to, when the test requirement information includes a user scenario to be tested under a communication module to be tested, use the test case determined according to the communication module to be tested and the user scenario to be tested as the target test case; and a multiple use case determination unit, which is used to, when the test requirement information includes multiple user scenarios to be tested under a communication module to be tested, or the same user scenario to be tested under multiple communication modules to be tested, or multiple user scenarios to be tested under multiple communication modules to be tested, determine the test case corresponding to each user scenario to be tested under each communication module to be tested, and combine the multiple determined test cases as the target test case.
[0101] In one possible implementation, each of the test cases is set with a first parameter value, and the first parameter value is used to indicate the frequency value of the execution of the test case. When the target test case is composed of multiple test cases and the first requirement information indicates a random execution of a user scenario, the test execution module includes: a number determination unit, used to determine the number of executions of each of the test cases in the target test case according to the first parameter value of each of the test cases in the target test case; and a test execution unit, used to test at least one communication module in the device under test according to the number of executions of each of the test cases.
[0102] In a possible implementation, the user experience testing device also includes: a use case generation module, used to generate the preset multiple test cases; the use case generation module includes: a data acquisition unit, used to acquire user usage data of the communication module, the user usage data is used to indicate data of users of different occupations and different age groups using various communication modules on various devices; a data parsing unit, used to parse the user usage data to obtain user scenario information and user operation information corresponding to the communication module; a use case generation unit, used to generate a test case in combination with the user scenario information and the user operation information.
[0103] The user experience testing method of the communication module may be performed by the following devices: a chip or a chip module; the user experience testing device of the communication module may be, for example, a chip or a chip module.
[0104] Regarding the various modules / submodules / units included in the various devices and products described in the above embodiments, they can be software modules / submodules / units, or hardware modules / submodules / units, or they can be partially software modules / submodules / units and partially hardware modules / submodules / units. For example, for various devices and products applied to or integrated in a chip, the various modules / submodules / units included therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / submodules / units can be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / submodules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / submodules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / submodules / units can be located in the same component (such as a chip, a circuit module, etc.) or in different components of the chip module, or at least some of the modules / submodules / units can be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / submodules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / submodules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / submodules / units can be located in the same component (such as a chip, a circuit module, etc.) or in different components of the chip module, or at least some of the modules / submodules / unit can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / sub-modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / sub-modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / sub-modules / units can be located in the same component (for example, a chip, circuit module, etc.) or in different components in the terminal, or, at least some of the modules / sub-modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / sub-modules / units can be implemented in the form of hardware such as circuits.
[0105] Figure 6 The user experience testing device of the communication module provided in the embodiment shown can be used to perform the Figure 1 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0106] The present application also provides an electronic device, Figure 7 A schematic diagram of the structure of an electronic device is provided for an embodiment of the present application. The electronic device may be a device for applying the user experience testing method provided by an embodiment of the present application, such as Figure 7 As shown, the electronic device may include: at least one processor; and at least one memory in communication with the processor, wherein: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following Figure 1-Figure 5 The illustrated embodiment provides a method for testing user experience.
[0107] For example, Figure 71 shows a schematic diagram of the structure of the electronic device 100. Figure 7 As shown, the electronic device 100 may include components such as a processor 110, a memory 120, and a peripheral device 130. It is understood that the structure of the electronic device 100 illustrated in the embodiment of the present application does not constitute a limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware. These components may communicate via one or more buses 140 or signal lines, and the bus may be divided into an address bus, a data bus, a control bus, etc.
[0108] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
[0109] The peripheral device 130 may include a display, an output component, an input component, and the like.
[0110] The memory 120 is used to store the codes and data included in the system of the electronic device 100, such as the codes corresponding to the application program and the operating system. The memory 120 may include a memory, an external memory, and a register. The memory may be used to store the codes corresponding to the operating system and the running application program. The external memory and the register may be used to store the data generated by the running application program during operation. The external memory may also be used to store the codes corresponding to other non-running applications. The processor 110 may transfer the codes or data stored in the external memory to the memory to implement the functions defined by the codes. For example, the processor 110 may transfer the codes corresponding to the operating system to the memory when the electronic device 100 is turned on, so as to implement various functions of the operating system on the electronic device 100; the processor 110 may also transfer the codes corresponding to other applications to the memory according to user needs, so as to implement various functions of the application on the electronic device 100.
[0111] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figure 1-Figure 4 The illustrated embodiment provides a method for testing user experience.
[0112] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: 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 this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0113] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0114] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0115] Computer program code for performing the operations of the present specification may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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., via the Internet using an Internet service provider).
[0116] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0117] In the description of the embodiments of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0118] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0119] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.
[0120] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0121] It should be noted that the terminals involved in the embodiments of the present application may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.
[0122] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0123] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0124] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0125] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A user experience testing method based on a communication module, characterized in that: Applied to an electronic device, the electronic device is respectively connected to at least one device to be tested and at least one scenario simulation device, the device to be tested includes at least one communication module, and the electronic device is pre-set with multiple test cases, the method includes: Obtaining test requirement information, where the test requirement information includes first requirement information, where the first requirement information is used to indicate a user scenario to be tested, where the user scenario to be tested includes a combination of one or more of environmental noise, wireless interference, and a jitter state; Determining a target test case according to the test requirement information and the preset multiple test cases; The scenario simulation device is configured according to the target test case so that the scenario simulation device simulates the user scenario to be tested, wherein the scenario simulation device includes a noise playing device, a wireless interference device and a jitter device, the noise playing device is used to simulate environmental noise, the wireless interference device is used to simulate wireless interference, the device to be tested is placed on the jitter device, and the jitter device is used to simulate a jitter state; When the scenario simulation device simulates the user scenario to be tested, at least one communication module in the device to be tested is tested according to the target test case.
2. The method according to claim 1, characterized in that The test requirement information further includes second requirement information, where the second requirement information is used to indicate the communication module to be tested; The testing of at least one communication module in the device under test according to the target test case includes: The communication module to be tested in the device to be tested is tested according to the target test case.
3. The method according to claim 2, characterized in that The electronic device is also connected to at least one auxiliary testing device, and the method further comprises: Configuring the auxiliary test equipment according to the target test case; Testing the communication module to be tested in the device to be tested according to the target test case includes: The device under test is tested based on the communication between the communication module under test and at least one of the auxiliary test devices according to the target test case.
4. The method according to claim 1, characterized in that: The target test case includes a first configuration parameter, a second configuration parameter, and a third configuration parameter, and configuring the scenario simulation device according to the test case so that the scenario simulation device simulates the user scenario to be tested includes: Configuring the noise playing device according to the first configuration parameter so that the noise playing device simulates the environmental noise in the user scenario to be tested; Configuring the wireless interference device according to the second configuration parameter so that the wireless interference device simulates the wireless interference in the user scenario to be tested; The shaking device is configured according to the third configuration parameter, so that the shaking device simulates a shaking state of using the device under test in the user scenario under test.
5. The method according to claim 2, characterized in that: When one of the test cases corresponds to a user scenario to be tested under a communication module to be tested, determining a target test case according to the test requirement information and the preset multiple test cases includes: When the test requirement information includes a user scenario to be tested under a communication module to be tested, a test case determined according to the communication module to be tested and the user scenario to be tested is used as a target test case; When the test requirement information includes multiple user scenarios to be tested under one communication module to be tested, or the same user scenario to be tested under multiple communication modules to be tested, or multiple user scenarios to be tested under multiple communication modules to be tested, determine the test cases corresponding to each user scenario to be tested under each communication module to be tested, and combine the determined multiple test cases as target test cases.
6. The method according to claim 1, characterized in that Each of the test cases is provided with a first parameter value, and the first parameter value is used to indicate the frequency at which the test case is executed. When the target test case is composed of a plurality of test cases and the first requirement information indicates a random execution of a user scenario, the testing of at least one communication module in the device under test according to the target test case includes: Determining the number of executions of each of the test cases in the target test case according to the first parameter value of each of the test cases; At least one communication module in the device under test is tested according to the execution times of each test case.
7. The method according to claim 1, characterized in that The method for generating the preset multiple test cases includes: Acquire user usage data of the communication module, where the user usage data is used to indicate data of users of different occupations and age groups using various communication modules on various devices; Parsing the user usage data to obtain user scenario information and user operation information corresponding to the communication module; A test case is generated by combining the user scenario information and the user operation information.
8. A user experience testing device based on a communication module, characterized in that: Applied to an electronic device, the electronic device is respectively connected to at least one device to be tested and at least one scenario simulation device, the device to be tested includes at least one communication module, the electronic device is pre-set with multiple test cases, and the device includes: A requirement acquisition module, used to obtain test requirement information, wherein the test requirement information includes first requirement information, and the first requirement information is used to indicate a user scenario to be tested, wherein the user scenario to be tested includes a combination of one or more of environmental noise, wireless interference, and jitter state; A test case determination module, used to determine a target test case according to the test requirement information and the preset multiple test cases; A scenario configuration module, configured to configure the scenario simulation device according to the target test case so that the scenario simulation device simulates the user scenario to be tested, wherein the scenario simulation device includes a noise playing device, a wireless interference device and a jitter device, the noise playing device is used to simulate environmental noise, the wireless interference device is used to simulate wireless interference, the device to be tested is placed on the jitter device, and the jitter device is used to simulate a jitter state; The test execution module is used to test at least one communication module in the device to be tested according to the target test case when the scenario simulation device simulates the user scenario to be tested.
9. The device according to claim 8, characterized in that The test requirement information further includes second requirement information, where the second requirement information is used to indicate the communication module to be tested; The test execution module is specifically configured to test the communication module to be tested in the device to be tested according to the target test case.
10. The device according to claim 9, characterized in that The electronic device is also connected to at least one auxiliary testing device, and the device further comprises: A test configuration module, used to configure the auxiliary test equipment according to the target test case; The test execution module is specifically configured to perform a test on the device under test based on the communication between the communication module under test and at least one of the auxiliary test devices according to the target test case.
11. The device according to claim 8, characterized in that The target test case includes a first configuration parameter, a second configuration parameter and a third configuration parameter, and the scenario configuration module includes: A first configuration unit, configured to configure the noise playing device according to the first configuration parameter, so that the noise playing device simulates the environmental noise in the user scenario to be tested; A second configuration unit, configured to configure the wireless interference device according to the second configuration parameter, so that the wireless interference device simulates the wireless interference in the user scenario to be tested; The third configuration unit is used to configure the jitter device according to the third configuration parameter, so that the jitter device simulates the jitter state of using the device under test in the user scenario under test.
12. The device according to claim 9, characterized in that When one of the test cases corresponds to a user scenario to be tested under a communication module to be tested, the case determination module includes: A single test case determination unit, configured to, when the test requirement information includes a user scenario to be tested under a communication module to be tested, use a test case determined according to the communication module to be tested and the user scenario to be tested as a target test case; A multi-use case determination unit is used to determine the test cases corresponding to each user scenario to be tested under each communication module to be tested when the test requirement information includes multiple user scenarios to be tested under one communication module to be tested, or the same user scenario to be tested under multiple communication modules to be tested, or multiple user scenarios to be tested under multiple communication modules to be tested, and combine the multiple determined test cases as target test cases.
13. The device according to claim 8, characterized in that Each of the test cases is provided with a first parameter value, and the first parameter value is used to indicate a frequency value of execution of the test case. When the target test case is composed of a plurality of test cases and the first requirement information indicates a random execution of a user scenario, the test execution module includes: A times determination unit, used to determine the execution times of each of the test cases in the target test case according to the first parameter value of each of the test cases; The test execution unit is used to test at least one communication module in the device under test according to the execution times of each test case.
14. The device according to claim 8, characterized in that The device further comprises: a use case generation module, which is used to generate the preset multiple test cases; the use case generation module comprises: A data acquisition unit, used to acquire user usage data of the communication module, wherein the user usage data is used to indicate data of users of different occupations and different age groups using various communication modules on various devices; A data parsing unit, used for parsing the user usage data to obtain user scenario information and user operation information corresponding to the communication module; A use case generation unit is used to generate a test case by combining the user scenario information and the user operation information.
15. An electronic device, characterized in that: include: at least one processor; and at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 7 by calling the program instructions.
16. A user experience testing system based on a communication module, characterized in that: It comprises the electronic device as described in claim 15, and at least one device to be tested and at least one scene simulation device connected to the electronic device, the device to be tested comprises at least one communication module, the scene simulation device comprises a noise playing device, a wireless interference device and a jitter device, and the device to be tested is placed on the jitter device.
17. The system according to claim 16, characterized in that Also included is at least one auxiliary testing device connected to the electronic device.
18. The system according to claim 16, characterized in that The at least one communication module of the device under test includes at least one of a Wi-Fi module, a Bluetooth module, an FM radio module and a global navigation satellite system module.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method according to any one of claims 1 to 7.
