Automatic testing method for mobile terminal player

An automated system for mobile device player testing addresses manual port allocation and human intervention issues, enhancing compatibility and reducing defects by integrating real-time monitoring and reusable test cases.

CN119961166APending Publication Date: 2025-05-09BEIJING QIERBULAITE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510080814.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

Existing mobile device app testing, particularly for video players, faces challenges such as manual port allocation issues, low automation levels, and high human intervention, especially on iOS platforms, with fragmented scripts and limited compatibility across different environments.

Method used

An automated system for mobile device player testing that allocates ports, supports iOS testing, and integrates real-time monitoring and reporting, enabling seamless automation and reduced human intervention.

Benefits of technology

The system reduces human effort and time required for testing, enhances compatibility across platforms, and lowers the risk of missed defects by providing consistent, reusable test cases.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention belongs to the technical field of player testing, and discloses an automatic testing method for a mobile terminal player, which comprises the following steps of: 1, before a system is started and runs, connecting a mobile phone with a computer through a data line, distributing a specified port for the mobile phone, and installing a jump apk for equipment; when the system runs, the test system can distribute a specified port for the connected equipment and start the service of the corresponding equipment, and after an APP needing to be tested is uploaded, the test system can automatically trigger automatic testing, collect performance index data and feed back the performance index data to a user for real-time checking. When a user needs to use a large amount of data to verify the index data of the mobile terminal player, the test system can achieve the verification purpose through automatic testing, the defect that a large amount of manual intervention is needed for testing in manual testing is overcome, and for optimization demand points of the player, after function testing is completed, the test system can automatically test the index data of the mobile terminal player. And the stability can be further verified through automatic testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of player testing, and in particular relates to an automatic testing method for a mobile terminal player. Background Art

[0002] With the development and progress of the Internet, the number of mobile devices has also increased rapidly, and they have become an important tool for communication and information acquisition in our daily lives. In order to provide users with better information and services, the APP running on mobile devices must have good performance, and then can it bring a good experience to users. For example, when playing videos, the CPU and memory usage cannot be too high, the battery cannot overheat, the power consumption and traffic are within the normal range, and normal network video playback should have few pauses and the video screen display should be fast. In order to meet these indicators, not only is it necessary to play the video stream with a suitable bit rate according to the characteristics of the user's device, but the player itself must also be able to adapt to changes in various network scenarios and changes in video streams.

[0003] Currently, testing of player apps generally requires manually starting multiple appium services through commands, which is prone to problems when allocating ports. It is a challenge for testers who are not familiar with commands, and this solution is not suitable for automated testing of iOS apps. In addition, the existing scripts are scattered, the functions are independent of each other, the degree of automation is low, and a lot of manual intervention is required during the automated execution process. Manual monitoring can only be removed after the task is started and stably executed. Therefore, it is necessary to develop an integrated system that is scalable and can view the progress and results of task execution in real time to perform automated detection tasks. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides an automated testing method for a mobile player, which has the advantages of automatic port allocation and automated detection.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for automatically testing a mobile player, comprising the following steps:

[0006] Step 1: Before the system starts running, connect the mobile phone to the computer via a data cable, assign a designated port to the mobile phone, and install the jump apk for the device;

[0007] Step 2: When the system starts, the appium service of the specified port is automatically started;

[0008] Step 3: The system provides the user with a page of available devices, on which the user can upload the test APP;

[0009] Step 4: The system provides a function to automatically obtain a video connection of a specified domain name, obtain test data, and transfer the obtained test data to the mobile phone to be tested;

[0010] Step 5: The system provides a function to automatically obtain the live broadcast room connection of the specified domain name, obtain the test data, and transfer the obtained test data to the mobile phone to be tested;

[0011] Step 6: After uploading the APP, upload the test script and start the automated test;

[0012] Step 7: After the automated test is started, the system can automatically start the function of collecting CPU and memory;

[0013] Step 8: After the test task is started, the user can view the progress of the task and the status of the device in real time.

[0014] Preferably, one end of the data cable described in step one is a USB interface, and the other end of the data cable is a combination of a Type-C interface and a Lightning interface.

[0015] Preferably, the jump apk in step 1 has different versions, and the jump apk can be installed in Android version and iOS version according to the operating system used by the mobile device.

[0016] Preferably, the system described in step three is compatible with multiple operating environments, and the system can open Android version and iOS version of the test APP.

[0017] Preferably, the video connection described in step 4 can be customized to be added and deleted, so as to facilitate adjustment of the video detection sample of the test app.

[0018] Preferably, the live broadcast room connection described in step four can be customized to add and delete, thereby facilitating the adjustment of the live broadcast detection sample.

[0019] Preferably, the system described in step 4 and step 5 can regularly delete the test data, and the regular deletion interval of the system is three months.

[0020] Preferably, the test script described in step six can be modified and adjusted, and the test script is applicable to different mobile terminal operating systems.

[0021] Preferably, the mobile phone described in step one is capable of transmitting data, and the mobile phone is in a powered-on state.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] When the system is running, the test system can allocate designated ports for connected devices and start the services of corresponding devices. When the APP to be tested is uploaded, the test system will automatically trigger automated testing, collect performance indicator data, and feed it back to the user for real-time viewing. When the user needs to use a large amount of data to verify the indicator data of the mobile player, the test system can achieve the verification purpose through automated testing, making up for the shortcomings of manual testing that requires a lot of manual intervention to conduct testing. For the optimization needs of the player, after the functional test is completed, the test system can further verify its stability through automated testing, saving some of the manpower required for testing, thereby reducing the manpower and time costs occupied by testing work, effectively shortening the test cycle of the mobile player, and due to the reusability of automated test cases, the test steps and test results are consistent. For usage scenarios that require multiple calls to the player, automated testing can also reduce the missed detection rate. Moreover, this solution can be used for daily regression, and can convert daily regression cases into automated regression cases, reducing the risk of bugs after the mobile player goes online. DETAILED DESCRIPTION

[0024] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.

[0025] The embodiment of the present invention provides a method for automatic testing of a mobile player, comprising the following steps:

[0026] Step 1: Before the system starts running, connect the mobile phone to the computer via a data cable, assign a designated port to the mobile phone, and install the jump apk for the device;

[0027] Step 2: When the system starts, the appium service of the specified port is automatically started;

[0028] Step 3: The system provides the user with a page of available devices, on which the user can upload the test APP;

[0029] Step 4: The system provides a function to automatically obtain a video connection of a specified domain name, obtain test data, and transfer the obtained test data to the mobile phone to be tested;

[0030] Step 5: The system provides a function to automatically obtain the live broadcast room connection of the specified domain name, obtain the test data, and transfer the obtained test data to the mobile phone to be tested;

[0031] Step 6: After uploading the APP, upload the test script and start the automated test;

[0032] Step 7: After the automated test is started, the system can automatically start the function of collecting CPU and memory;

[0033] Step 8: After the test task is started, the user can view the progress of the task and the status of the device in real time.

[0034] When a large amount of data is needed to verify indicator data, this goal can be achieved through automated testing to make up for the shortcomings of manual testing. For the optimization requirements of the player, after the functional testing is completed, its stability can be further verified through automated testing, saving some manpower, thereby reducing manpower and time costs and shortening the testing cycle. This solution can be used for daily regression, converting daily regression cases into automated regression cases to reduce the risk of bugs after going online. Due to the reusability of automated test cases, the test steps and results are consistent. For scenarios where the player is called in multiple places, automated testing can reduce the missed detection rate.

[0035] Among them, one end of the data cable in step one is a USB interface, and the other end of the data cable is a combination of a Type-C interface and a Lightning interface.

[0036] The multi-interface design of the data cable allows users to select the corresponding interface for access according to the different charging ports between different mobile devices, thereby ensuring compatibility with most mobile devices currently on the market. The data cable design can also power the test equipment during the test process, avoiding the situation where the test equipment cannot complete the test smoothly due to lack of power.

[0037] Among them, step one jumps to apk with different versions, and jumps to apk and can install Android version and iOS version according to the operating system used by the mobile terminal device.

[0038] The multiple versions of apk design enable the test system to select different versions of jump apk for installation based on the operating system of the access device, avoiding compatibility issues where applications in different environments cannot run incompatiblely in Android and iOS environments.

[0039] Among them, the system in step three is compatible with multiple operating environments, and the system can open the Android version and iOS version of the test APP.

[0040] The system's compatibility design allows users to test player test apps on different mobile operating systems, solving the problem of difficult automated testing of iOS apps.

[0041] Among them, the video connection in step 4 can be customized to add and delete, so as to facilitate the adjustment of the video detection samples of the test app.

[0042] The custom addition and deletion design of video connections makes it easy for users to expand or reduce the test scenarios of the test app, thereby obtaining more or more targeted video detection data.

[0043] Among them, the live broadcast room connection in step four can be customized to add and delete, so as to facilitate the adjustment of the live broadcast detection sample.

[0044] The custom addition and deletion design of the live broadcast room connection makes it easy for users to delete invalid live broadcast room connections, avoiding the test system from selecting invalid live broadcast room connections for testing, thereby improving the reliability of live broadcast detection data.

[0045] Among them, the system in step 4 and step 5 can regularly delete the test data, and the regular deletion interval of the system is three months.

[0046] The system's test data periodic deletion function can prevent a large amount of old test data from occupying server storage space and avoid ineffective occupation of server resources.

[0047] Among them, the test script in step six can be modified and adjusted, and the test script is applicable to different mobile operating systems.

[0048] The test script can detect apps in different operating environments, and users can modify the test script to adjust the detection content of the app.

[0049] Among them, the mobile phone in step one is capable of transmitting data and the mobile phone is in the power-on state.

[0050] The phone must be turned on when connected to the computer to proceed to the next detection task.

[0051] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0052] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A mobile player automated testing method, characterized in that: The following steps are involved: Step 1: Before the system starts running, connect the mobile phone to the computer via a data cable, assign a designated port to the mobile phone, and install the jump apk for the device; Step 2: When the system starts, the appium service of the specified port is automatically started; Step 3: The system provides the user with a page of available devices, on which the user can upload the test APP; Step 4: The system provides a function to automatically obtain a video connection of a specified domain name, obtain test data, and transfer the obtained test data to the mobile phone to be tested; Step 5: The system provides a function to automatically obtain the live broadcast room connection of the specified domain name, obtain the test data, and transfer the obtained test data to the mobile phone to be tested; Step 6: After uploading the APP, upload the test script and start the automated test; Step 7: After the automated test is started, the system can automatically start the function of collecting CPU and memory; Step 8: After the test task is started, the user can view the progress of the task and the status of the device in real time.

2. The method for automatically testing a mobile player according to claim 1, characterized in that: One end of the data cable described in step 1 is a USB interface, and the other end of the data cable is a combination of a Type-C interface and a Lightning interface.

3. The method for automated testing of a mobile player according to claim 1, characterized in that: The jump apk in step 1 has different versions, and the jump apk can be installed in Android version and iOS version according to the operating system used by the mobile device.

4. The method for automatically testing a mobile player according to claim 1, wherein: The system described in step three is compatible with multiple operating environments, and the system can open the test APP of Android version and iOS version.

5. The method for automatic testing of a mobile player according to claim 1, characterized in that: The video connection described in step 4 can be customized to add and delete, so as to facilitate the adjustment of the video detection samples of the test app.

6. A mobile player automated testing method according to claim 1, characterized in that: The live broadcast room connection described in step 4 can be customized to add and delete, so as to facilitate the adjustment of the live broadcast detection sample.

7. The method for automatic testing of a mobile player according to claim 1, characterized in that: The system described in step 4 and step 5 can regularly delete the test data, and the regular deletion interval of the system is three months.

8. The method for automatic testing of a mobile player according to claim 1, characterized in that: The test script described in step six can be modified and adjusted, and the test script is applicable to different mobile operating systems.

9. The method for automatic testing of a mobile player according to claim 1, characterized in that: The mobile phone described in step 1 is capable of transmitting data, and the mobile phone is in a powered-on state.