Cross-platform interaction compatibility test method and terminal

By constructing the device input model library to inject input feature parameters concurrently, and combining genetic algorithms to optimize the input combination, the insufficient coverage and synchronization errors in multi-platform operation synchronization and compatibility testing are solved, and comprehensive and accurate testing of cross-platform operation is achieved.

CN120256311APending Publication Date: 2025-07-04FUJIAN TQ DIGITAL
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510424610.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-07
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The prior art is difficult to effectively simulate the differences in the input characteristics of multi-platform operations, resulting in insufficient coverage of cross-platform operations synchronization and compatibility testing, and is prone to causing synchronization errors.

Method used

Build a device input model library, collect and store input feature parameters of hardware devices, simulate multi-device operation scenarios by concurrent injection of input feature parameters, monitor synchronization in real time and generate conflict detection reports, use genetic algorithms to optimize high-risk input combinations, and update the device input model library.

Benefits of technology

It realizes comprehensive and accurate testing of cross-platform operations, improves test coverage, can accurately capture synchronization problems and optimize operation synchronization, and improves the accuracy and reliability of tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256311A_ABST
    Figure CN120256311A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-platform interaction compatibility test method and a terminal. The method comprises the following steps: constructing an equipment input model library and storing input characteristic parameters of hardware equipment; the method comprises the following steps: concurrently injecting input characteristic parameters in a cross-platform online scene, monitoring synchronism of input operation and synchronization abnormity when display parameters change, and generating a conflict detection report; and based on the conflict detection report, analyzing the high-risk input combination, optimizing the high-risk input combination by adopting a genetic algorithm, and updating the equipment input model library. According to the method, the input feature parameters are concurrently injected in the cross-platform online scene, the complexity of cross-platform operation can be accurately reproduced, and the test coverage rate is greatly increased; synchronism of input operation and synchronization abnormity during display parameter change are monitored in real time, so that the synchronization problem caused by operation characteristic difference between devices can be accurately captured in the test process; the conflict detection report is generated, conflict characteristics of input operation can be clearly identified, synchronization errors can be displayed, and the operation synchronization problem can be analyzed and optimized conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data synchronization, and particularly to a cross-platform interaction compatibility testing method and a terminal. Background Art

[0002] With the popularization of multi-platform applications and cross-platform online games, the differences in operation input characteristics of different devices (such as PCs, mobile terminals, and game consoles) are significant, resulting in great challenges in cross-platform operation synchronization and compatibility testing. Existing testing methods mostly adopt linear static input mapping, which is difficult to truly simulate various input characteristics such as touch screen sliding, mouse fine-tuning, and joystick operations, leading to distorted operation characteristics and insufficient test coverage. Moreover, in multi-platform online operations, differences in device characteristics and operation competition are likely to cause synchronization errors, such as skill delays and position desynchronization caused by frame rate differences. Summary of the Invention

[0003] The technical problem to be solved by the present invention is: to provide a cross-platform interaction compatibility testing method and a terminal, so as to solve the problem that it is difficult to cover the differences in multi-platform operation input characteristics.

[0004] To solve the above technical problem, the technical solution adopted by the present invention is: A cross-platform interaction compatibility testing method, comprising the steps of: S1. Construct a device input model library and store the input characteristic parameters of hardware devices; S2. Inject the input characteristic parameters concurrently in a cross-platform online testing system, simulate a multi-device concurrent operation scenario, monitor the synchronization of input operations of each client in real time, and the synchronization anomalies when the display parameters are dynamically adjusted, and generate a conflict detection report; S3. Based on the conflict detection report, analyze high-risk input combinations, optimize the high-risk input combinations by using a genetic algorithm, and update the device input model library.

[0005] To solve the above technical problem, another technical solution adopted by the present invention is: A cross-platform interaction compatibility testing terminal, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are completed: S1. Construct a device input model library and store the input characteristic parameters of hardware devices; S2. Inject the input characteristic parameters concurrently in a cross-platform online testing system, simulate a multi-device concurrent operation scenario, monitor the synchronization of input operations of each client in real time, and the synchronization anomalies when the display parameters are dynamically adjusted, and generate a conflict detection report; S3. Analyze the high-risk input combinations based on the conflict detection report, optimize the high-risk input combinations using a genetic algorithm, and update the device input model library.

[0006] The beneficial effects of the present invention are as follows: A cross-platform interaction compatibility testing method and a terminal are provided. By constructing a device input model library, it is possible to uniformly manage the input characteristic parameters of different hardware devices, such as degree curves, operation speeds, deflection angles, etc., thereby ensuring the comprehensiveness and accuracy of test inputs. At the same time, injecting input characteristic parameters concurrently in a cross-platform online scenario can accurately reproduce the complexity of cross-platform operations, such as the competition problem where touch screen sliding and mouse clicking occur simultaneously, greatly improving the test coverage. In addition, real-time monitoring of the synchronization of input operations and synchronization anomalies when display parameters change enables the test process to accurately capture synchronization problems caused by differences in operation characteristics between devices. Moreover, generating a conflict detection report can clearly identify the conflict characteristics of input operations and display synchronization errors, facilitating the analysis and optimization of operation synchronization problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 is a flowchart of a cross-platform interaction compatibility testing method in an embodiment of the present invention; Figure 2 is a specific flowchart of a cross-platform interaction compatibility testing method in an embodiment of the present invention; Figure 3 is a schematic diagram of a cross-platform interaction compatibility testing terminal in an embodiment of the present invention; Figure 4 is an architecture diagram of a cross-platform interaction compatibility testing terminal in an embodiment of the present invention; Reference Signs: 1. A cross-platform interaction compatibility testing terminal; 2. A memory; 3. A processor. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0008] To describe in detail the technical content, achieved objectives, and effects of the present invention, the following is described in conjunction with the embodiments and with reference to the accompanying drawings.

[0009] Please refer to Figure 1 and Figure 2 , a cross-platform interaction compatibility testing method, including the steps of: S1. Construct a device input model library and store the input characteristic parameters of hardware devices; S2. Inject the input characteristic parameters concurrently in a cross-platform online testing system, simulate a multi-device concurrent operation scenario, real-time monitor the synchronization of input operations of each client and synchronization anomalies when display parameters are dynamically adjusted, and generate a conflict detection report; S3. Based on the conflict detection report, analyze high-risk input combinations, optimize the high-risk input combinations using a genetic algorithm, and update the device input model library.

[0010] It can be understood that the concurrent injection operation is implemented through the virtual device driver layer and includes the following steps: a) Load the input characteristic parameters of the target device from the device input model library; b) Create a virtual input device instance, and map the sensitivity curve and operation speed parameters to the time series of input events; c) Through the input event distribution interface at the operating system level, synchronously inject the input event stream to the main client of the online test system and at least one cross-platform client.

[0011] Among them, the injection subject is the test system; the injection object is the online test environment; the injection purpose is to simulate the scenario of multi-device concurrency.

[0012] From the above description, the beneficial effects of the present invention are as follows: By constructing a device input model library, it is possible to uniformly manage the input characteristic parameters of different hardware devices, including sensitivity curves, operation speeds, deflection angles, etc., thus ensuring the comprehensiveness and accuracy of test inputs. That is, a mixed input signal is generated according to the actual device characteristics, enabling cross-platform online testing to truly simulate the scenario of multi-device concurrent operations, greatly improving the authenticity and diversity of input operations.

[0013] In addition, by concurrently injecting input characteristic parameters in a cross-platform online scenario, it is possible to accurately reproduce the complexity of cross-platform operations, such as the competition problem where touch screen sliding and mouse clicks occur simultaneously, greatly improving the test coverage rate; real-time monitoring of the synchronization of input operations and synchronization anomalies when display parameters change enables the test process to accurately capture synchronization problems caused by differences in operation characteristics between devices; generating a conflict detection report can clearly identify the conflict characteristics of input operations and display synchronization errors, facilitating the analysis and optimization of operation synchronization problems.

[0014] Compared with the prior art, the present invention can comprehensively simulate the real operation characteristics of different devices by introducing a device input model library and a mixed signal injection mechanism, avoiding the problem of inconsistent operations brought by the traditional static mapping model. By real-time monitoring of synchronization and display anomalies, it effectively solves the problems of multi-device operation conflicts and insufficient cross-platform compatibility, significantly improving the accuracy and reliability of cross-platform online testing.

[0015] In some embodiments, the step S1 further includes: Collect input feature parameters of at least two of the touch screen device, keyboard and mouse device, and gamepad device, record at least one of the sensitivity curve, operation speed, deflection angle, and input response characteristics, and store them in the input feature parameter library.

[0016] It can be understood that traditional test methods often use linear static input mapping and lack the description of dynamic characteristics, resulting in errors in cross-platform operation synchronization testing. Through the acquisition and modeling of non-linear characteristic curves, the present invention can truly reflect the characteristic changes of the device in different operation scenarios, thereby enhancing the reliability of operation simulation and the representativeness of test results. Specifically, in the above method, by collecting the input feature parameters of the touch screen device, keyboard and mouse device, and gamepad device, and storing at least one of the sensitivity curve, operation speed, deflection angle, and input response characteristics, a device input model library with high precision and comprehensiveness is constructed. By comprehensively collecting the operation characteristics of multiple hardware devices, the differences in operation characteristics between devices can be truly reflected, effectively improving the accuracy and integrity of test data.

[0017] In some embodiments, the process of monitoring input operation synchronization in step S2 includes: Collect the operation response time, character position, and skill trigger timestamp of each client, calculate the synchronization deviation value of the cross-platform client, and mark it as synchronization abnormal if the deviation value exceeds the preset threshold.

[0018] As can be seen from the above description, by monitoring input operation synchronization, the time difference and synchronization deviation of operation responses during multi-platform online connection can be comprehensively analyzed. By collecting the operation response time, character position, and skill trigger timestamp of each client, the synchronization deviation value between platforms can be accurately calculated. If the deviation value exceeds the preset threshold, it is marked as synchronization abnormal to ensure that synchronization problems between multi-platform operations can be detected in a timely manner. That is, in this embodiment, by calculating the operation response time difference and synchronization deviation value in real time during the online operation process, the inconsistent phenomena of operation responses on different platforms can be quickly identified. Compared with the prior art, traditional methods often rely on single-platform operation detection and lack the comparative analysis of operation response times of multiple devices, which easily leads to the neglect of synchronization problems.

[0019] For example, when conducting a multi-player online test on the PC and mobile devices simultaneously, the difference in operation response time between the mouse fine-tuning on the PC side and the touch screen sliding operation on the mobile device side may cause the character positions to be out of sync. Through the method of the present invention, the time deviation between the PC and mobile devices can be quickly calculated. If the difference exceeds the preset threshold, a synchronization abnormal report will be automatically generated, which helps developers quickly locate the problem source and optimize the synchronization mechanism.

[0020] In some embodiments, the synchronization abnormality when monitoring the change of display parameters in step S2 includes: Using a dynamic environment parameter switching engine, traverse the resolution and frame rate combinations, monitor the operation synchronization and the update status of the rendering pipeline during the change of the display parameters, and record the display parameter adjustment log and the operation response difference.

[0021] As can be seen from the above description, through the dynamic environment parameter switching engine, it is possible to automatically traverse different resolution and frame rate combinations, adjust the environment parameters in cross-platform operation tests, so that the test scenarios cover more display combinations, improving the comprehensiveness and accuracy of the tests. During the change of the display parameters, it is possible to monitor the operation synchronization and the update status of the rendering pipeline, effectively discovering synchronization anomalies and rendering errors caused by the switching of the display parameters. Also, by recording the operation response difference and the display parameter adjustment log in real time when the display parameters change, the present invention can accurately analyze the operation response imbalance problem caused by the change of the display parameters.

[0022] For example, in the online test of a cross-platform shooting game, when the resolution of the PC side is switched from 1080p to 4K and the frame rate drops from 240Hz to 60Hz, the operation response time increases significantly, resulting in the loss of synchronization with the mobile side. Through the dynamic parameter switching engine of the present invention, it is possible to monitor the response delay and the rendering update status during the change of the display parameters in real time, generate a display parameter adjustment log and an operation synchronization report, which helps to quickly analyze and locate synchronization failures.

[0023] Specifically, the synchronization anomaly is calculated by a conflict detection algorithm, and the process is as follows: Compare the key game states (such as the character position, the skill release timestamp) of the clients on different platforms. If the deviation value exceeds the threshold, it is marked as a synchronization error: \Delta t = |t_{\text{PC}} - t_{\text{Mobile}}|>\tau \quad (\tau =100\text{ms}) Parameter explanation: \Delta t: Time difference, representing the difference between two time measurement values |t_{\text{PC}}: Time measurement value on the computer (PC).

[0024] t_{\text{Mobile}}: Time measurement value on the mobile device.

[0025] |.|: Absolute value symbol, ensuring that the time difference is a non-negative number, regardless of which device's time is earlier or later.

[0026] \tau: Threshold, which is 100 milliseconds in this example and can be selected according to the actual application situation, preferably in the range of 50 - 100 milliseconds, and is used as the standard for judging whether the time difference is acceptable.

[0027] >: The greater than symbol, indicating that the time difference must exceed a threshold to meet this condition.

[0028] Its meaning is that if the time difference between the computer and the mobile device is greater than 100 milliseconds, then a time delay that needs attention is considered to exist. This condition may be used in scenarios such as synchronization operations, network communications, system response time testing, etc., to ensure that the time synchronization between different devices is within an acceptable range.

[0029] In some embodiments, the step S3 further includes: Performing crossover and mutation operations on the high-risk input combinations based on a genetic algorithm to generate improved input combinations, evaluating the optimization results, and updating the input feature parameter library and the high-risk input combination library according to the optimization results.

[0030] As can be seen from the above description, by using a genetic algorithm to optimize the high-risk input combinations, the efficiency and accuracy of test case generation are significantly improved. Through crossover and mutation operations, diverse high-risk input combinations can be generated to ensure that potential synchronization errors and operation conflicts can be triggered in complex operation scenarios. In the genetic algorithm, through fitness evaluation and screening, the input combinations with high-risk triggering characteristics are retained to ensure that the generated test cases can effectively expose cross-platform synchronization defects.

[0031] Specifically, the steps of the genetic algorithm include: 1. Initializing the population: Randomly generating a set of initial test cases (input combinations), such as different deflection angles of the handle rocker, different sliding speeds of the touch screen, etc.

[0032] 2. Evaluating fitness: Evaluating each test case and calculating its fitness value. The fitness value can be determined according to factors such as the probability of the test case triggering potential conflicts and the boundary conditions covered.

[0033] 3. Selection: Selecting the test cases with better performance according to the fitness value as the parents of the next generation.

[0034] 4. Crossover: Performing crossover operations on the selected parent test cases to generate new offspring test cases. For example, combining the deflection angle of the handle rocker in one test case with the sliding speed of the touch screen in another test case.

[0035] 5. Mutation: Performing mutation operations on the offspring test cases to introduce random changes to increase diversity. For example, randomly changing the deflection angle of the handle rocker or the sliding speed of the touch screen.

[0036] 6. Iteration: Repeat the above steps until a predetermined number of iterations is reached or test cases with a high enough risk are found.

[0037] That is, the present invention can automatically generate high-risk input combinations using a genetic algorithm, avoiding the problems of insufficient test coverage and single operation characteristics. Automated test case generation not only improves test efficiency but also quickly identifies synchronization errors caused by complex operations in a multi-device online scenario, effectively improving the accuracy and integrity of cross-platform compatibility verification.

[0038] Please refer to Figure 3 , a cross-platform interactive compatibility test terminal 1, including a memory 2, a processor 3, and a computer program stored on the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, the steps in the cross-platform interactive compatibility test method are completed.

[0039] Please refer to Figure 4 , specifically, the terminal consists of the following modules: Device input model library: Stores input characteristic parameters of touchscreens, gamepads, and keyboards and mice.

[0040] Test control center: Schedules test cases and injects mixed signals.

[0041] Dynamic adaptation engine: Controls dynamic switching of resolution, frame rate, and network parameters.

[0042] Conflict detection module: Compares the states of multi-platform clients and outputs a report.

[0043] Feedback optimization module: Receives the output of the conflict detection module, analyzes the test results, and feeds back optimization suggestions to the device input model library and the dynamic adaptation engine.

[0044] The relationship of their functions is as follows: The test control center calls the device input model library to generate signals and adjusts the environmental parameters through the dynamic adaptation engine. The dynamic adaptation engine and the device input model library inject the signals into the game client. The conflict detection module compares the states of multi-platform clients and outputs the test results. The feedback optimization module receives the output of the conflict detection module, analyzes the test results, and feeds back optimization suggestions to the device input model library and the dynamic adaptation engine. The feedback optimization module updates the test case generation strategy of the test control center.

[0045] In summary, the present invention provides a cross-platform interaction compatibility testing method and a terminal. By constructing a device input model library, injecting mixed signals, real-time monitoring operation synchronization, and synchronizing anomalies when displaying parameter changes, optimizing high-risk input combinations based on the genetic algorithm, and automatically generating test cases, the automation and efficiency of multi-platform online operation synchronization and compatibility testing are realized. The specific beneficial effects are as follows: By constructing a device input model library, the input characteristic parameters of different hardware devices are uniformly managed, including sensitivity curves, operation speeds, deflection angles, etc., and mixed input signals are generated, realizing the true restoration of the operation characteristics of multiple devices and solving the problem of operation characteristic distortion caused by traditional linear static input mapping. In a cross-platform online scenario, injecting mixed input signals into multiple clients (such as PC, mobile, and host) concurrently can truly simulate the scenario of concurrent operation of multiple devices, significantly improving the test coverage and the authenticity of input operations.

[0046] In terms of operation synchronization monitoring, by real-time collecting operation response times, character positions, and skill trigger timestamps, accurately calculating the synchronization deviation value between platforms, and judging synchronization anomalies through thresholds, synchronization errors caused by operation differences between different devices can be effectively identified. The dynamic environment parameter switching engine can traverse different combinations of resolutions and frame rates, detect synchronization anomalies and rendering pipeline update errors when displaying parameter changes, which helps to discover compatibility problems caused by multi-device display switching.

[0047] The present invention further uses the genetic algorithm to optimize high-risk input combinations. By initializing the population, fitness evaluation, crossover, and mutation operations, diverse high-risk test cases are generated, which can automatically screen and optimize operation combinations, significantly reducing the time for manually designing test cases, and improving test efficiency and accuracy. At the same time, a test report is generated to summarize the conflict detection results and synchronization analysis, and the feedback optimization mechanism further adjusts the input characteristic library and test strategy to achieve closed-loop optimization.

[0048] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent transformation made using the specifications and drawings of the present invention, or directly or indirectly applied in the related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A cross-platform interaction compatibility testing method, characterized in that: Including the steps: S1. Construct a device input model library and store the input characteristic parameters of hardware devices; S2. Inject the input characteristic parameters concurrently in a cross-platform online test system, simulate the multi-device concurrent operation scenario, monitor the synchronization of the input operations of each client in real time and the synchronization anomalies during the dynamic adjustment of display parameters, and generate a conflict detection report; S3. Based on the conflict detection report, analyze high-risk input combinations, optimize the high-risk input combinations using a genetic algorithm, and update the device input model library.

2. The cross-platform interaction compatibility testing method according to claim 1, wherein The step S1 further includes: Collect the input characteristic parameters of at least two of a touch screen device, a keyboard and mouse device, and a handle device, record at least one of a sensitivity curve, an operation speed, a deflection angle, and an input response characteristic, and store them in an input characteristic parameter library.

3. The cross-platform interaction compatibility testing method according to claim 1 or 2, characterized in that The process of monitoring the synchronization of input operations in the step S2 includes: Collect the operation response time, character position, and skill trigger timestamp of each client, calculate the synchronization deviation value of cross-platform clients, and mark it as a synchronization anomaly if the deviation value exceeds a preset threshold.

4. The cross-platform interaction compatibility testing method according to claim 3, characterized in that, The synchronization anomalies during the monitoring of the change of display parameters in the step S2 include: Use a dynamic environment parameter switching engine to traverse the resolution and frame rate combinations, monitor the operation synchronization and the update status of the rendering pipeline during the change of the display parameters, and record the display parameter adjustment log and the operation response difference.

5. The cross-platform interaction compatibility testing method according to claim 1, wherein The step S3 further includes: Perform crossover and mutation operations on high-risk input combinations based on a genetic algorithm, generate improved input combinations, evaluate the optimization results, and update the input characteristic parameter library and the high-risk input combination library according to the optimization results.

6. A cross-platform interaction compatibility testing terminal, characterized in that: Including a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, the following steps are completed: S1. Construct a device input model library and store the input characteristic parameters of hardware devices; S2. Inject the input characteristic parameters concurrently in a cross-platform online test system, simulate the multi-device concurrent operation scenario, monitor the synchronization of the input operations of each client in real time and the synchronization anomalies during the dynamic adjustment of display parameters, and generate a conflict detection report; S3. Based on the conflict detection report, analyze high-risk input combinations, optimize the high-risk input combinations using a genetic algorithm, and update the device input model library.

7. The cross-platform interaction compatibility test terminal according to claim 6, characterized in that The step S1 further includes: Collect the input characteristic parameters of at least two of a touch screen device, a keyboard and mouse device, and a handle device, record at least one of a sensitivity curve, an operation speed, a deflection angle, and an input response characteristic, and store them in an input characteristic parameter library.

8. The cross-platform interaction compatibility test terminal according to claim 6 or 7, characterized in that The process of monitoring the synchronization of input operations in the step S2 includes: Collect the operation response time, character position, and skill trigger timestamp of each client, calculate the synchronization deviation value of cross-platform clients, and mark it as a synchronization anomaly if the deviation value exceeds a preset threshold.

9. The cross-platform interactive compatibility test terminal according to claim 8, wherein The synchronization anomalies during the monitoring of the change of display parameters in the step S2 include: Use a dynamic environment parameter switching engine to traverse the resolution and frame rate combinations, monitor the operation synchronization and the update status of the rendering pipeline during the change of the display parameters, and record the display parameter adjustment log and the operation response difference.

10. The cross-platform interaction compatibility test terminal according to any one of claims 6, characterized in that The step S3 further includes: Performing crossover and mutation operations on the high-risk input combinations based on a genetic algorithm to generate improved input combinations, evaluating the optimization results, and updating the input feature parameter library and the high-risk input combination library according to the optimization results.

Citation Information

Cited By

  • Power grid system file segmentation encryption transmission method and system

    CN121077813A

  • A power grid system file segmentation encryption transmission method and system

    CN121077813B