Test method and device, computer equipment, medium and product
By outputting and sending the media data of the mobile game to be tested on the development side to the cloud desktop client on the test side, real-time synchronization of the game screen and target touch data is achieved, solving the problem of inefficient current mobile game testing methods and improving game testing and development efficiency.
Patent Information
- Application Number
- CN202311359350.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-04-25
AI Technical Summary
Existing mobile game testing methods require repeated compilation and installation, resulting in inefficient testing and development efficiency.
By outputting the media data of the game to be tested on the development side and sending it to the cloud desktop client on the test side, real-time synchronization of the game screen and target touch data is achieved, and the need for separate installation and operation of the test side is avoided.
It improves the efficiency and development efficiency of game testing, and realizes real-time debugging of test games and fast acquisition of test results.
Smart Images

Figure CN119883874A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a testing method, a testing apparatus, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Before a game is officially launched, it needs to be tested extensively to reduce the probability of errors after the game is launched. Especially for mobile games, the development end and the testing end are completely independent. At present, most testing solutions for mobile games are to compile the game application package first, and then install the application package on the mobile phone for testing. If a problem is found, the game application package is recompiled and then installed on the mobile phone for testing. This testing method requires repeated compilation and repeated installation, which greatly reduces the efficiency of game testing and also reduces the efficiency of game development. Therefore, how to improve the efficiency of game testing has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a testing method, apparatus, computer equipment, medium, and product that can improve the efficiency of game testing, thereby facilitating improving the efficiency of game development.
[0004] On the one hand, an embodiment of the present application discloses a testing method, which comprises:
[0005] During the running of the game to be tested, media data of the game to be tested is output, and the media data is sent to a cloud desktop client of a test end, so that the cloud desktop client outputs the media data through the test end, and target touch data input for the media data output by the test end is obtained, wherein the media data includes a game screen, and the target touch data includes first touch data related to screen adjustment;
[0006] receiving the target touch data sent by the cloud desktop client, and determining a new game screen of the game to be tested according to first touch data included in the target touch data;
[0007] Outputting the new game screen, and sending the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end;
[0008] The screen analysis data corresponding to the new game screen is obtained, and a first test result of the game to be tested is determined according to the screen analysis data.
[0009] The present application discloses a testing device, which includes:
[0010] an output unit, configured to output media data of the game to be tested during the running of the game to be tested, and send the media data to a cloud desktop client of a test end, so that the cloud desktop client outputs the media data through the test end, and obtain target touch data input for the media data output by the test end, wherein the media data includes a game screen, and the target touch data includes first touch data related to screen adjustment;
[0011] a transceiver unit, configured to receive the target touch data sent by the cloud desktop client, and determine a new game screen of the game to be tested according to first touch data included in the target touch data;
[0012] The output unit is further used to output the new game screen and send the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end;
[0013] The acquisition unit is used to acquire the screen analysis data corresponding to the new game screen, and determine the first test result of the game to be tested according to the screen analysis data.
[0014] On the one hand, an embodiment of the present application discloses a computer device, which includes a processor suitable for implementing one or more computer programs; and a computer-readable storage medium, wherein the computer-readable storage medium stores one or more computer programs, and the one or more computer programs are suitable for being loaded by the processor and executed in accordance with the above-mentioned test method.
[0015] In one aspect, the present application discloses a computer-readable storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by a processor and executing the above-mentioned test method.
[0016] In one aspect, the present application discloses a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned test method.
[0017] In an embodiment of the present application, during the process of running the game to be tested at the development end, the media data of the game to be tested including the game screen is output, and the media data is sent to the cloud desktop client of the test end; the cloud desktop client outputs the media data through the test end, and obtains the target touch data input for the media data output by the test end, the target touch data includes the first touch data related to the screen adjustment, and sends the first touch data to the development end; the development end receives the first touch data, determines the new game screen of the game to be tested according to the first touch data, and outputs the new game screen. At the same time, the development end sends the new game screen to the cloud desktop client so that the cloud desktop client outputs the new game screen through the client. In this process, the data sent by the development end can allow the test end to perform the corresponding operation, and the returned operation is applied to the game to be tested, so as to realize the test of the game to be tested at the development end, without the need for the test end to be installed and run separately, thereby improving the efficiency of game testing. At the same time, the development end can also obtain the screen analysis data corresponding to the new game screen in real time, and determine the first test result of the game to be tested according to the screen analysis data, thereby realizing real-time debugging of the game to be tested, thereby improving the efficiency of game development. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a schematic diagram of a network architecture of a test system disclosed in an embodiment of the present application;
[0020] Figure 2 It is a flow chart of a testing method disclosed in an embodiment of the present application;
[0021] Figure 3 It is a display schematic diagram of a game screen disclosed in an embodiment of the present application;
[0022] Figure 4 It is a flow chart of another testing method disclosed in the embodiment of the present application;
[0023] Figure 5 This is a flowchart of processing media data output by a development end disclosed in an embodiment of the present application;
[0024] Figure 6 is a flowchart of processing touch data of a test end disclosed in an embodiment of the present application;
[0025] Figure 7This is a flowchart of processing media data input to a test end disclosed in an embodiment of the present application;
[0026] Figure 8 It is a processing flow chart of a vibration instruction of a development end disclosed in an embodiment of the present application;
[0027] Fig. 9 This is a process flow chart of real-time debugging at the development end disclosed in an embodiment of the present application;
[0028] Fig.10 is a structural schematic diagram of a testing device disclosed in an embodiment of the present application;
[0029] Fig.11 It is a structural schematic diagram of a computer device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] In order to improve the development efficiency and testing efficiency in game development, the embodiment of the present application provides a testing method, which is mainly used to test the game, including: ① In the process of running the game to be tested, output the media data of the game to be tested, and send the media data to the cloud desktop client of the test end, so that the cloud desktop client outputs the media data through the test end, and obtains the target touch data input for the media data output by the test end, the media data includes the game screen, and the target touch data includes the first touch data related to the screen adjustment. ② Receive the target touch data sent by the cloud desktop client, and determine the new game screen of the game to be tested according to the first touch data included in the target touch data. ③ Output the new game screen, and send the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end. ④ Obtain the screen analysis data corresponding to the new game screen, and determine the first test result of the game to be tested according to the screen analysis data. In this way, the game content running on the development end can be synchronized to the test end, and at the same time, the corresponding operation on the test end will also be sent to the corresponding position on the development end to adjust the game screen, so that real-time game development and testing can be achieved without the need for repeated installation processes, thereby improving the development and testing efficiency of the game.
[0032] In a possible implementation, the test method provided in the embodiment of the present application can also be implemented based on cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. Cloud storage is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of storage devices of various types in the network (storage devices are also called storage nodes) through application software or application interfaces to work together and provide data storage and business access functions to the outside world. In short, a database can be regarded as an electronic file cabinet-a place for storing electronic files. Users can add, query, update, delete, and other operations on the data in the file. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application program. In the embodiments of the present application, it may specifically involve one or more of cloud storage, cloud database, and big data in cloud technology. For example, the data generated by executing the data processing method (such as the screen analysis data corresponding to the game screen and the first test result, etc.) is stored in a cloud database.
[0033] In a possible implementation, the test method provided in the embodiment of the present application can also be implemented based on blockchain technology. Blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. It is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. In the embodiment of the present application, the data required to execute the test method can be stored in the form of blocks on the blockchain; the data generated by executing the test method can also be stored in the form of blocks on the blockchain.
[0034] See also Figure 1, is a schematic diagram of the architecture of a test system disclosed in an embodiment of the present application, and the test system may include a development terminal 101 and a test terminal 102, wherein a cloud desktop client 103 is installed in the test terminal 102. Among them, the development terminal 101 runs a development tool window and a game content window, the development tool window is used to receive game compilation instructions, and the game content window is used to display the game screen (including the initial game screen and the new game screen); the test terminal 102 displays a cloud desktop corresponding to the cloud desktop client 103, and the cloud desktop is mainly used to display the game screen sent by the development terminal 101 (including the initial game screen and the new game screen). The interaction process between the development terminal 101 and the test terminal 102 can be: the development terminal 101 sends the output information of the game to be tested (such as the game screen and the game audio, etc.) to the test terminal 101; the cloud desktop client 103 sends the input information of the test terminal 102 (such as touch data, input image data, and input sound data, etc.) to the development terminal 101, so as to realize the development and testing of the game to be tested on the development terminal 101 according to the input information.
[0035] In one embodiment, the development end 101 and the test end 102 include, but are not limited to: smart phones, tablet computers, smart wearable devices, smart voice interaction devices, smart home appliances, personal computers, vehicle-mounted terminals, smart cameras, virtual reality devices (such as AR (Augmented Reality) devices), etc., and this application does not limit this. The development end 101 and the test end 102 can establish a direct communication connection through wired communication, or can establish an indirect communication connection through wireless communication, and this embodiment of the application does not limit this. For example, in the scenario of mobile game testing, the development end 101 refers to a development device such as a computer with development functions, and the test end 102 refers to a user device such as a mobile phone, tablet or wearable device.
[0036] In the embodiment of the present application, in combination with the test system, the test method may include: in the process of the development end 101 running the game to be tested, outputting the media data including the game screen corresponding to the game to be tested, and sending the media data to the cloud desktop client 103 of the test end 102; the cloud desktop client 103 outputs the media data through the test end 102, and obtains the target touch data input for the media data output by the test end, the target touch data includes the first touch data related to the screen adjustment, and sends the first touch data to the development end 101; the development end 101 receives the first touch data, determines the new game screen of the game to be tested according to the first touch data, and outputs the new game screen, and at the same time, the development end 101 sends the new game screen to the cloud desktop client, so that the cloud desktop client 103 outputs the new game screen through the client 103. Since the game to be tested runs on the development end, each time the development end 101 and the test end 102 interact, the development end 101 can obtain the screen analysis data corresponding to the new game screen, and determine the first test result of the game to be tested according to the screen analysis data. Furthermore, the development end 101 can also modify or adjust the corresponding code of the game to be tested according to the first test result, detect and find problems of the game to be tested in real time, and solve them in time. In the above manner, the testing method provided by the embodiment of the present application can improve the efficiency of game development and testing.
[0037] The testing method proposed in the embodiments of the present application will be described in detail below.
[0038] See also Figure 2 , is a flow chart of a test method disclosed in an embodiment of the present application, the test method can be executed by a computer device, and the computer device can be Figure 1 The development end 101 shown, the testing method may specifically include but is not limited to the following steps:
[0039] S201: During the running of the game to be tested, media data of the game to be tested is output, and the media data is sent to a cloud desktop client of the test end, so that the cloud desktop client outputs the media data through the test end, and obtains target touch data input for the media data output by the test end, wherein the media data includes a game screen, and the target touch data includes first touch data related to screen adjustment.
[0040] On the development side, development tools are running on the development side. When the developer completes the writing of the game to be tested through the development tools, the media data of the game to be tested can be output when the game to be tested is run. The output media data can be in frames or milliseconds. The media data includes the game screen. The specific process of obtaining the game screen can include: responding to the image rendering instructions of the game to be tested, executing the image rendering operation to obtain the game screen. After obtaining the game screen, on the one hand, the game screen can be output in the game content window through a physical display device. Figure 3 As shown, 301 shows the game screen of the development end. On the other hand, the game screen is sent to the test end for display. Specifically, if the game screen is obtained by the virtual display device, the game screen is encoded by the virtual display device, and then the encoded screen encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the screen encoding data to obtain the game screen, and outputs the game screen in the display interface of the test end. The game screen of the test end is as shown in FIG. Figure 3 As shown in 302, it can be seen that the intuitive effect of adopting the test method provided by the embodiment of the present application is that the test end only displays the game screen of the development end. Unlike the traditional cloud desktop technology that copies the entire screen of one terminal to another terminal, the present application uses a virtual display driver to only capture the game screen and display it on the test end, without displaying other useless screens, which can be beneficial to the testing of the game.
[0041] In another possible implementation, the media data may also include game audio, and the specific process of obtaining the game audio may include: the development end responds to the audio rendering instruction of the game to be tested, and performs an audio rendering operation to obtain the game audio. After obtaining the game audio, on the one hand, the game audio can be output through a physical sound card device. On the other hand, the game audio is sent to the test end for output. Specifically, if the game audio is acquired by a virtual sound card device, the game audio is encoded by the virtual sound card device, and the encoded audio encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the audio encoding data to obtain the game audio, and outputs the game audio on the physical sound card device (such as a speaker) of the test end. Among them, the game audio can be the game background music set by the developer, or the game sound effect. If the current game is in a thunderstorm environment, the corresponding game audio may include rain and thunder. For another example, if the current game is a game of fighting monsters and upgrading, different background music can also be set at different levels.
[0042] It should be noted that, since the cloud desktop client has the function of transmitting images and sounds, the data sent to the cloud desktop client through the virtual display device can be successfully displayed.
[0043] In a possible implementation, after displaying the game screen, the test end can obtain the target touch data input by the tester for the media data output by the test end. The target touch data here includes first touch data related to the screen adjustment, and can also include second touch data related to the audio adjustment. The first touch data and the second touch data can be the same touch data, which indicates that the touch data is related to both the screen adjustment and the audio adjustment.
[0044] S202: Receive target touch data sent by the cloud desktop client, and determine a new game screen of the game to be tested according to first touch data included in the target touch data.
[0045] When the tester inputs the target touch data for the media data output by the test end, the target touch information can be processed by the cloud desktop client, and the target touch data has been converted into a specified platform type event (for example, if the test end is a mobile phone, the corresponding specified platform type event is a mobile phone platform type event), and then the target touch data is sent to the development end according to the agreed transmission protocol. The target touch data is generated after the tester operates on the touch screen of the test end. The operation of the touch screen includes sliding, clicking, and long pressing. In actual operation, the time required to complete each action is at least milliseconds. Therefore, the target touch data can be understood as data for a period of time.
[0046] In a possible implementation, when the target touch data includes the first touch data related to the screen adjustment, the development end sends the first touch data to the virtual touch device after receiving the first touch data, and simulates the first touch data into touch data from the physical touch device through the virtual touch device. The development end translates the simulated touch data from the physical touch device into an input event of the development end platform type, and determines the new game screen of the game to be tested according to the input event. The essence is to apply the operation of the test end to the game screen in the development end, so that the game screen changes. Among them, the first touch data can be a sliding operation to control the direction, or an aiming operation to aim at the target. The tester can control the target object in the game to be tested through these write operations. When an action occurs, the game screen will be adjusted accordingly, such as turning from the first direction to the second direction, from a small object to a large object, etc. Among them, the above-mentioned virtual touch device complies with the HID (Human Interface Device) specification, and can also communicate normally with the physical peripheral driver of the development end.
[0047] In another possible implementation, when the target touch data includes the second touch data related to the audio adjustment, after receiving the second touch data, the developer outputs new game audio if the second touch data triggers the time or condition of the sound effect setting. For example, if the second touch data is to operate the target object to move forward, the new game audio is the sound of footsteps; if the second touch data is to operate the target object to shoot, the new game audio is the sound of gunfire. The new game audio includes the newly triggered sound effects and the default sound effects set by the developer.
[0048] S203: Output a new game screen, and send the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end.
[0049] In a possible implementation, if the target touch data includes first touch data related to the screen adjustment, a new game screen is output. On the one hand, the new game screen is output in the game content window through the physical display device. On the other hand, the new game screen is sent to the test end for display, the new game screen is sent to the virtual display device, the new game screen is encoded through the virtual display device, and then the encoded new screen encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the new screen encoding data to obtain a new game screen, and outputs the new game screen in the display interface of the test end.
[0050] In one possible implementation, if the target touch data includes second touch data related to the screen audio, new game audio is output. On the one hand, the new game audio is output through a physical sound card device. On the other hand, the new game audio is sent to the test end for output. Specifically, the new game audio is sent to a virtual sound card device, and the virtual sound card device encodes the new game audio, and sends the encoded new audio encoding data to the cloud desktop client of the test end, so that the cloud desktop client decodes the new audio encoding data to obtain new game audio, and outputs the new game audio on the physical sound card of the test end. The whole process is the sending and receiving of real-time data between the development end and the test end, so as to achieve the effect of directly testing the game to be tested.
[0051] Optionally, the development end can also receive encoded media data sent by the cloud desktop client. The encoded media data is obtained by the cloud desktop client encoding the input media data. The input media data is the media data input by the cloud desktop client for the media data output by the test end. The input media data includes one or more of input sound data and input image data. The encoded media data is decoded using the rewritten media driver device to obtain the input media data, and the input media data is used for game processing in the game to be tested. Because the input data of the microphone and camera can be directly used by the game as raw data without the need for processing by the operating system, the input raw data (input sound data and input image data) can be directly obtained by rewriting the device driver.
[0052] For example, in some team collaboration games or singing games, testers are required to input their own voices. Therefore, for such games, the development end can also receive encoded audio data sent by the cloud desktop client. The encoded audio data is obtained by the cloud desktop client by encoding the input sound data. The input sound data is obtained by the cloud desktop client and input by the tester for the media data output by the test end. It is the waveform data of the audio input by the tester through the microphone device of the test end. The development end then uses the rewritten media driver device to decode the encoded audio data to obtain the corresponding input sound data. The input sound data is used for game processing of the game to be tested.
[0053] For another example, in some dress-up games or photo editing games, testers are required to input images. Therefore, for such games, the development end can also receive encoded image data sent by the cloud desktop client. The encoded image data is obtained by the cloud desktop client encoding the input image data. The input image data is obtained by the cloud desktop client and input by the test end for the media data output by the test end. The input image data is the original image input by the tester through the camera device of the test end. It can be a local image of the test end or a real-time image collected by the tester using the camera device. The development end then uses the rewritten media driver device to decode the encoded image data to obtain the corresponding input image data. The input image data is also used for game processing of the game to be tested.
[0054] Optionally, during the running of the game to be tested, if the vibration condition is met, a vibration instruction is issued. If the vibration instruction of the game to be tested is obtained by the virtual peripheral device, the vibration instruction is sent to the cloud desktop client through the agreed communication protocol, so that the cloud desktop client parses the vibration specification according to the vibration analysis protocol, and calls the vibration device of the test end to vibrate according to the vibration instruction. In this way, the effect of the game can be experienced on the test device in real time when developing the game. If the test end is a mobile phone, since the vibration of the mobile phone and the vibration principle on the development end (such as a computer) are not the same, the mobile phone itself comes with a vibration motor, and the vibration of the development end is generally reflected in the peripherals. Therefore, on the development end, the vibration instruction is usually interpreted by the game engine as a vibration instruction issued to peripherals such as a handle. If you want to send a vibration specification to the mobile phone, you can use a virtual peripheral device to implement it.
[0055] S204: Acquire screen analysis data corresponding to the new game screen, and determine a first test result of the game to be tested according to the screen analysis data.
[0056] In a possible implementation, when obtaining the screen analysis data corresponding to the new game screen, it can be obtained according to the set time, which can realize the breakpoint test of the game to be tested; it can also be that when the entire game test is completed, the complete screen analysis data of the entire game process is obtained, and the complete screen analysis data includes the screen analysis data corresponding to each new game screen. First, the screen analysis data corresponding to the new game screen is obtained, and then the first test result of the game to be tested is determined according to the screen analysis data. Specifically, the screen analysis data includes the position information of the obstacles in the game screen and the moving path information of the game object. According to the moving path information of the game object and the position information of the obstacle, the path detection result of the game object is determined, and the path detection result is used to indicate whether the moving path of the game object in the game screen is reasonable. For example, if the moving path of the game object directly passes through the position where the obstacle is located, the path detection result is unreasonable. The first test result of the game to be tested is determined according to the path detection result of the game object. If the path detection result of the game object is unreasonable, the first test result of the game to be tested is that the test fails. Then, the developer can modify the code of the unreasonable place, and then re-run the game to be tested to detect whether this problem has been fixed.
[0057] Optionally, the screen analysis data also includes the health value of the game object in the game screen and the injury status of the game object, and the first test result of the game to be tested is determined according to the health value of the game object and the injury status of the game object. If the health value of the game object and the injury status of the game object do not match, the first test result of the game to be tested is that the test fails. For example, if the game object is injured but the health value of the game object does not decrease, it means that the health value of the game object and the injury status of the game object do not match.
[0058] Adjustments can also be made for some game situations, for example, after the game object completes the challenge, the reward is not issued; for another example, the game object is stuck and cannot move while moving forward.
[0059] In another possible implementation, the development end can also obtain the output effect data corresponding to the new game audio, determine the second test result of the game to be tested according to the output effect data; and determine the target test result of the game to be tested according to the first test result and the second test result. If the first test result and the second test result are both passed, the target test result of the game to be tested is passed. Otherwise, the game to be tested can be continuously rewritten and run by the development end and the test end until the game has no problems in the test. Among them, the output effect data includes the sound output time and the game screen trigger time; the second test result of the game to be tested is determined according to the sound output time information and the game screen trigger time. For example, in a shooting game, the sound will appear when the game object makes a shooting action (game screen trigger time), but the sound will not appear until a period of time has passed (sound output time). At this time, the game screen trigger time and the sound output time are inconsistent, so the second test result of the game to be tested is not passed. Optionally, it can also be determined whether there is a problem with the sound effect. For example, when it should be a bird call, the output sound effect is a dog barking. This is obviously inconsistent with the actual situation, and the developer can adjust it.
[0060] In the embodiments of the present application, the testing method provided by the present application is explained with the development end as the execution subject, mainly explaining the receiving and sending process and the data processing process of the development end. By obtaining the output data of the test end, the test of the game to be tested is realized on the development end, eliminating the process of installing and starting the test end, and directly debugging and testing the game on the development end, which greatly improves the development efficiency and testing efficiency of the game.
[0061] See also Figure 4 , is a flowchart of another test method disclosed in an embodiment of the present application, which describes the test method in combination with a development end and a test end, wherein a cloud desktop client is installed in the test end, and the cloud desktop client can realize data transmission and reception between the development end and the test end. Specifically, it includes but is not limited to the following steps:
[0062] S401: The development end outputs media data of the game to be tested during the running of the game to be tested, wherein the media data may include the game screen, or the game screen and the game audio.
[0063] S402: Send media data to the cloud desktop client of the test end. The game screen is sent through the virtual display device, and the game audio is sent through the virtual sound card device. The data sent is a code stream, that is, picture encoding data and audio encoding data.
[0064] S403: The test end outputs media data. The output media data is still the game screen and game audio. In this process, the cloud desktop client needs to decode the picture encoding data and audio encoding data first to obtain the corresponding game screen and game audio.
[0065] Taking the media data including the game screen and the game audio as an example, the above steps S401-S403 can refer to Figure 5 , is a processing flow chart for media data output by the development end. The specific process is as follows: 1. The game to be tested running on the development end runs normally and sends image rendering instructions and audio rendering instructions to the operating system of the development end; 2. The operating system of the development end performs image rendering operations and audio rendering operations to obtain the corresponding game audio and game screen, and outputs the game screen in the game content window through the physical display device of the test end, and outputs the game audio through the physical sound card device of the test end; 3. If the game screen is obtained by the virtual display device and the game audio is obtained by the virtual sound card device, the game screen is encoded through the virtual display device to obtain the screen encoding data, and the game audio is encoded through the virtual sound card device to obtain the audio encoding data, and the screen encoding data and audio encoding data are sent to the test end. 4. The cloud desktop client on the test end parses the audio and video encoding data and sends it to the operating system of the test end for display and playback. In this process, the game to be tested debugged keeps the same system call as when it is running normally, so the behavior of the game will not change because it is running in the above cloud desktop environment. In this environment, the test game play can still get the same effect as playing the real game.
[0066] S404: The cloud desktop client of the test end obtains the target touch data input for the output media data. The target touch data may include first touch data related to picture adjustment and second touch data related to audio adjustment.
[0067] S405: The cloud desktop client of the test end sends the target touch data to the development end.
[0068] S406: The development end determines new media data of the game to be tested according to the target touch data. The new media data includes a new game screen and may also include new game audio. If the target touch data includes first touch data related to screen adjustment, the new media data is a new game screen; if the target touch data includes second touch data related to audio adjustment, the new media data is a new game audio.
[0069] Taking the target touch data including the first touch data and the second touch data as an example, the above steps S404-S406 can refer to Figure 6 , is a flow chart for processing touch data on the test end, and the specific process is as follows: 1. The cloud desktop client receives input information from the test mobile phone touch screen, including the first touch data and the second touch data; 2. The first touch data and the second touch data input information are converted into mobile phone platform type events, and sent to the development end through the network according to the agreed protocol; 3. After receiving the first touch data and the second touch data, the development end forwards them to the virtual touch device; 4. The virtual touch device simulates the received first touch data and the second touch data into HID data from a real physical device and throws it to the operating system; 5. The operating system translates the simulated data into a development end platform type event and sends it to the game. The game responds to the input event to achieve the purpose of the operation, thereby creating a new game screen and a new game audio. In the above process, the game running on the development end also responds as if it directly receives the input operation from the local touch screen hardware, which can achieve the purpose of directly testing the gameplay.
[0070] Among them, steps S401-S406 are necessary processes for any game test.
[0071] S407: The cloud desktop client of the test end obtains input media data, and encodes the input media data to obtain encoded media data. The input media data includes one or both of input image data and input audio data. The input image data is obtained through the camera of the test end, and the input audio data is obtained through the microphone of the test end. The input image data can be an image or a video, and can be saved locally on the test end or obtained in real time. The input audio data can be a recording saved locally on the test end or a voice collected in real time.
[0072] S408: The cloud desktop client of the test end sends the encoded media data to the development end. The encoded media data is determined according to the actual situation, and can be encoded input image data or encoded input audio data.
[0073] S409: The development end uses the rewritten media driver to decode the encoded media data to obtain input media data, and applies the input media data to the game to be tested.
[0074] Taking the input media data including input image data and input audio data as an example, the above steps S407-S409 can refer to Figure 7 , which is a processing flow chart for the input media data of the test end. The specific process is as follows: 1. The test end directly reads the input image data and input audio data from the microphone device and the camera. These data do not need to be processed by the operating system and are directly sent to the cloud desktop client; 2. The cloud desktop client encodes the image data and the input audio data respectively to obtain the encoded media data, and forwards the encoded media data to the development end through the network; 3. The development end uses the rewritten media driver device to decode the received encoded media data and restore it to the corresponding input image data and input audio data. The rewritten media driver device includes a rewritten microphone driver and a rewritten camera driver; 4. The debugging game directly reads the corresponding input image data and input audio data from the rewritten media driver device, and directly uses them for game processing.
[0075] Among them, steps S407-S409 are optional and only applicable to some games that need to capture images or sounds.
[0076] S410: If the vibration condition is triggered, the development end sends a vibration instruction to the cloud desktop client.
[0077] S411: The cloud desktop client calls the vibration device of the test end to vibrate according to the vibration instruction.
[0078] The above steps S410-S411 can be found in Figure 8 , is a processing flow chart for the vibration command of the development end. The specific process is as follows: 1. If the vibration condition is triggered, the vibration command of the debugging game on the development end is called by the operating system and finally received by the virtual peripheral in the form of HID data; 2. The virtual peripheral sends the vibration command to the cloud desktop client through the network according to the protocol customized with the cloud desktop client; 3. The vibration protocol processing module in the cloud desktop client parses the vibration command according to the predetermined protocol, and then makes a system call according to the vibration function call method on the test end; 4. The operating system on the test end receives the vibration call, which eventually causes the vibration-related hardware on the test end to work, and the test phone produces a vibration feeling. It can be seen that if the game to be tested meets the vibration condition at this time, it will directly cause the vibration of the test end. In this way, the vibration effect can be directly experienced on the test end in real time during game development and testing.
[0079] Through the above steps S401-S411, real-time debugging of most games at the development end can be achieved. Fig. 9 As shown in Figure 1, it is a schematic diagram of real-time debugging. Fig. 9 As shown, since the development tool and the game to be tested are both running on the development end at this time, when operating on the test end, debugging a test end game is exactly the same as debugging a game running on the development end. During real-time debugging, the development end sends the game performance to the test end in real time, and the test end also sends game control information to the development end in real time. On the development end side, the development end sends the game results of the game to be tested to the development tool in real time. After the development tool changes the information, it sends the debugging control to the game to be tested to rerun the game to be tested. The development tool and the game to be tested can be transmitted through cross-process transmission. In this way, developers can debug in real time at the first scene where problems occur during the test process, which will make it easier to find out the problems encountered when the game is running.
[0080] The method of the embodiment of the present application is described in detail above. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0081] See also Fig.10 , Fig.10 It is a structural schematic diagram of a testing device provided in an embodiment of the present application, and the testing device can be arranged in the computer device provided in an embodiment of the present application. Fig.10 The test device shown may be a computer program (including program code) running in a computer device, and the test device may be used to perform Figure 2 , Figure 4-Figure 9 Some or all of the steps in the method embodiment shown. Fig.10 , the test device may include the following units:
[0082] The output unit 1001 is used to output the media data of the game to be tested during the running of the game to be tested, and send the media data to the cloud desktop client of the test end, so that the cloud desktop client outputs the media data through the test end, and obtain the target touch data input for the media data output by the test end, wherein the media data includes the game screen, and the target touch data includes the first touch data related to the screen adjustment;
[0083] The transceiver unit 1002 is used to receive the target touch data sent by the cloud desktop client, and determine a new game screen of the game to be tested according to the first touch data included in the target touch data;
[0084] The output unit 1001 is further used to output the new game screen and send the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end;
[0085] The acquisition unit 1003 is used to acquire the screen analysis data corresponding to the new game screen, and determine the first test result of the game to be tested according to the screen analysis data.
[0086] In a possible implementation, the media data further includes game audio, the target touch data further includes second touch data related to audio adjustment, and the determination unit 1004 is configured to determine new game audio of the game to be tested according to the second touch data;
[0087] The output unit 1001 is further configured to output the new game audio and send the new game audio to the cloud desktop client, so that the cloud desktop client outputs the new game audio through the test end;
[0088] The acquisition unit 1003 is further configured to acquire output effect data corresponding to the new game audio, and determine a second test result of the game to be tested according to the output effect data;
[0089] The determination unit 1004 is further configured to determine a target test result of the game to be tested according to the first test result and the second test result.
[0090] In a possible implementation, when the output unit 1001 outputs the media data of the game to be tested and sends the media data to the cloud desktop client of the test end, it is specifically used to perform the following steps:
[0091] In response to the image rendering instruction of the game to be tested, an image rendering operation is performed to obtain the game screen, and the game screen is output in a game content window through a physical display device;
[0092] If the game screen is acquired by the virtual display device, encoding the game screen through the virtual display device;
[0093] The encoded picture encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the picture encoding data to obtain the game picture, and outputs the game picture in the display interface of the test end.
[0094] In a possible implementation, when the output unit 1001 outputs the media data of the game to be tested and sends the media data to the cloud desktop client of the test end, it is specifically used to perform the following steps:
[0095] In response to the audio rendering instruction of the game to be tested, an audio rendering operation is performed to obtain the game audio, and the game audio is output through a physical sound card device;
[0096] If the game audio is acquired by the virtual sound card device, encoding the game audio through the virtual sound card device;
[0097] The encoded audio encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the audio encoding data to obtain the game audio, and outputs the game audio on the physical sound card of the test end.
[0098] In a possible implementation, when the determining unit 1004 determines the new game screen of the game to be tested according to the first touch data included in the target touch data, it is specifically configured to perform the following steps:
[0099] sending first touch data included in the target touch data to a virtual touch device, and simulating the first touch data into touch data from a physical touch device through the virtual touch device;
[0100] The simulated touch data from the physical touch device is translated into an input event of a development-end platform type, and a new game screen of the game to be tested is determined according to the input event.
[0101] In a possible implementation, the transceiver unit 1002 is further configured to perform the following steps:
[0102] Receiving encoded media data sent by the cloud desktop client, where the encoded media data is obtained by the cloud desktop client by encoding input media data, where the input media data is input media data obtained by the cloud desktop client and input for the media data output by the test end, where the input media data includes one or more of input sound data and input image data;
[0103] The encoded media data is decoded using the rewritten media drive device to obtain the input media data, and the input media data is used for game processing of the game to be tested.
[0104] In a possible implementation, the transceiver unit 1002 is further configured to perform the following steps:
[0105] If the vibration instruction of the game to be tested is acquired by the virtual peripheral device, the vibration instruction is sent to the cloud desktop client, so that the cloud desktop client calls the vibration device of the test end to vibrate according to the vibration instruction.
[0106] According to another embodiment of the present application, Fig.10 The various units in the test device shown can be respectively or all merged into one or several other units to constitute, or some of the units (some) can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of a unit can also be realized by multiple units, or the function of multiple units can be realized by one unit. In other embodiments of the present application, the test device can also include other units. In practical applications, these functions can also be assisted by other units to be realized, and can be realized by the collaboration of multiple units.
[0107] According to another embodiment of the present application, the program can be executed by running on a general computing device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 2 , Figure 4-Figure 9 A computer program (including program code) for each step involved in part or all of the method shown in the figure is used to construct a computer program (including program code) for each step involved in part or all of the method shown in the figure. Fig.10 The test device shown in and the test method of the embodiment of the present application are implemented. The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into the above-mentioned computing device through the computer-readable storage medium and run therein.
[0108] In an embodiment of the present application, during the process of running the game to be tested at the development end, the media data of the game to be tested including the game screen is output, and the media data is sent to the cloud desktop client of the test end; the cloud desktop client outputs the media data through the test end, and obtains the target touch data input for the media data output by the test end, the target touch data includes the first touch data related to the screen adjustment, and sends the first touch data to the development end; the development end receives the first touch data, determines the new game screen of the game to be tested according to the first touch data, and outputs the new game screen. At the same time, the development end sends the new game screen to the cloud desktop client so that the cloud desktop client outputs the new game screen through the client. In this process, the data sent by the development end can allow the test end to perform the corresponding operation, and the returned operation is applied to the game to be tested, so as to realize the test of the game to be tested at the development end, without the need for the test end to be installed and run separately, thereby improving the efficiency of game testing. At the same time, the development end can also obtain the screen analysis data corresponding to the new game screen in real time, and determine the first test result of the game to be tested according to the screen analysis data, thereby realizing real-time debugging of the game to be tested, thereby improving the efficiency of game development.
[0109] Based on the above method and device embodiments, the present application embodiment provides a computer device. Fig.11 , Fig.11 is a schematic diagram of a computer device provided in an embodiment of the present application. The computer device may be Figure 1 A development end 101 is shown. Fig.11 The computer device shown includes at least a processor 1101, an input interface 1102, an output interface 1103, and a computer-readable storage medium 1104. The processor 1101, the input interface 1102, the output interface 1103, and the computer-readable storage medium 1104 may be connected via a bus or other means.
[0110] The computer-readable storage medium 1104 may be stored in a memory of a computer device. The computer-readable storage medium 1104 is used to store a computer program. The computer program includes computer instructions. The processor 1101 is used to execute the program instructions stored in the computer-readable storage medium 1104. The processor 1101 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device, which is suitable for implementing one or more computer instructions, and is specifically suitable for loading and executing one or more computer instructions to implement a corresponding method flow or a corresponding function.
[0111] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the computer device. In addition, one or more computer instructions suitable for being loaded and executed by the processor are also stored in the storage space. These computer instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-VolatileMemory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0112] In some embodiments, the processor 1101 may load and execute one or more computer instructions stored in the computer-readable storage medium 1104 to implement the above-mentioned Figure 2 as well as Figure 4In a specific implementation, the computer instructions in the computer-readable storage medium 1104 are loaded by the processor 1101 and execute the following steps:
[0113] During the running of the game to be tested, media data of the game to be tested is output, and the media data is sent to a cloud desktop client of a test end, so that the cloud desktop client outputs the media data through the test end, and target touch data input for the media data output by the test end is obtained, wherein the media data includes a game screen, and the target touch data includes first touch data related to screen adjustment;
[0114] receiving the target touch data sent by the cloud desktop client, and determining a new game screen of the game to be tested according to first touch data included in the target touch data;
[0115] Outputting the new game screen, and sending the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end;
[0116] The screen analysis data corresponding to the new game screen is obtained, and a first test result of the game to be tested is determined according to the screen analysis data.
[0117] In a possible implementation, the media data further includes game audio, the target touch data further includes second touch data related to audio adjustment, and the computer instructions in the computer-readable storage medium 1104 are further used by the processor 1101 to load and execute the following steps:
[0118] determining new game audio of the game to be tested according to the second touch data;
[0119] Outputting the new game audio, and sending the new game audio to the cloud desktop client, so that the cloud desktop client outputs the new game audio through the test end;
[0120] Obtaining output effect data corresponding to the new game audio, and determining a second test result of the game to be tested according to the output effect data;
[0121] A target test result of the game to be tested is determined according to the first test result and the second test result.
[0122] In a possible implementation, when the computer instructions in the computer-readable storage medium 1104 are loaded and executed by the processor 1101 to output the media data of the game to be tested, and send the media data to the cloud desktop client of the test end, the computer instructions are specifically used to perform the following steps:
[0123] In response to the image rendering instruction of the game to be tested, an image rendering operation is performed to obtain the game screen, and the game screen is output in a game content window through a physical display device;
[0124] If the game screen is acquired by the virtual display device, encoding the game screen through the virtual display device;
[0125] The encoded picture encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the picture encoding data to obtain the game picture, and outputs the game picture in the display interface of the test end.
[0126] In a possible implementation, when the computer instructions in the computer-readable storage medium 1104 are loaded and executed by the processor 1101 to output the media data of the game to be tested, and send the media data to the cloud desktop client of the test end, the computer instructions are specifically used to perform the following steps:
[0127] In response to the audio rendering instruction of the game to be tested, an audio rendering operation is performed to obtain the game audio, and the game audio is output through a physical sound card device;
[0128] If the game audio is acquired by the virtual sound card device, encoding the game audio through the virtual sound card device;
[0129] The encoded audio encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the audio encoding data to obtain the game audio, and outputs the game audio on the physical sound card of the test end.
[0130] In a possible implementation, when the computer instructions in the computer-readable storage medium 1104 are loaded and executed by the processor 1101 to determine the new game screen of the game to be tested according to the first touch data included in the target touch data, the computer instructions are specifically used to perform the following steps:
[0131] sending first touch data included in the target touch data to a virtual touch device, and simulating the first touch data into touch data from a physical touch device through the virtual touch device;
[0132] The simulated touch data from the physical touch device is translated into an input event of a development-end platform type, and a new game screen of the game to be tested is determined according to the input event.
[0133] In one possible implementation, the computer instructions in the computer-readable storage medium 1104 are further used by the processor 1101 to load and execute the following steps:
[0134] Receiving encoded media data sent by the cloud desktop client, where the encoded media data is obtained by the cloud desktop client by encoding input media data, where the input media data is input media data obtained by the cloud desktop client and input for the media data output by the test end, where the input media data includes one or more of input sound data and input image data;
[0135] The encoded media data is decoded using the rewritten media drive device to obtain the input media data, and the input media data is used for game processing of the game to be tested.
[0136] In one possible implementation, the computer instructions in the computer-readable storage medium 1104 are further used by the processor 1101 to load and execute the following steps:
[0137] If the vibration instruction of the game to be tested is acquired by the virtual peripheral device, the vibration instruction is sent to the cloud desktop client, so that the cloud desktop client calls the vibration device of the test end to vibrate according to the vibration instruction.
[0138] In an embodiment of the present application, during the process of running the game to be tested at the development end, the media data of the game to be tested including the game screen is output, and the media data is sent to the cloud desktop client of the test end; the cloud desktop client outputs the media data through the test end, and obtains the target touch data input for the media data output by the test end, the target touch data includes the first touch data related to the screen adjustment, and sends the first touch data to the development end; the development end receives the first touch data, determines the new game screen of the game to be tested according to the first touch data, and outputs the new game screen. At the same time, the development end sends the new game screen to the cloud desktop client so that the cloud desktop client outputs the new game screen through the client. In this process, the data sent by the development end can allow the test end to perform the corresponding operation, and the returned operation is applied to the game to be tested, so as to realize the test of the game to be tested at the development end, without the need for the test end to be installed and run separately, thereby improving the efficiency of game testing. At the same time, the development end can also obtain the screen analysis data corresponding to the new game screen in real time, and determine the first test result of the game to be tested according to the screen analysis data, thereby realizing real-time debugging of the game to be tested, thereby improving the efficiency of game development.
[0139] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the test method provided in the above-mentioned various optional modes.
[0140] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0141] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, and the division of the modules described above is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A testing method, characterized in that: The method comprises: During the running of the game to be tested, media data of the game to be tested is output, and the media data is sent to a cloud desktop client of a test end, so that the cloud desktop client outputs the media data through the test end, and target touch data input for the media data output by the test end is obtained, wherein the media data includes a game screen, and the target touch data includes first touch data related to screen adjustment; receiving the target touch data sent by the cloud desktop client, and determining a new game screen of the game to be tested according to first touch data included in the target touch data; Outputting the new game screen, and sending the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end; The screen analysis data corresponding to the new game screen is obtained, and a first test result of the game to be tested is determined according to the screen analysis data.
2. The method according to claim 1, characterized in that The media data further includes game audio, the target touch data further includes second touch data related to audio adjustment, and the method further includes: determining new game audio of the game to be tested according to the second touch data; Outputting the new game audio, and sending the new game audio to the cloud desktop client, so that the cloud desktop client outputs the new game audio through the test end; Obtaining output effect data corresponding to the new game audio, and determining a second test result of the game to be tested according to the output effect data; A target test result of the game to be tested is determined according to the first test result and the second test result.
3. The method according to claim 1, characterized in that The step of outputting the media data of the game to be tested and sending the media data to the cloud desktop client of the test end includes: In response to the image rendering instruction of the game to be tested, an image rendering operation is performed to obtain the game screen, and the game screen is output in a game content window through a physical display device; If the game screen is acquired by the virtual display device, encoding the game screen through the virtual display device; The encoded picture encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the picture encoding data to obtain the game picture, and outputs the game picture in the display interface of the test end.
4. The method according to claim 2, characterized in that: The step of outputting the media data of the game to be tested and sending the media data to the cloud desktop client of the test end includes: In response to the audio rendering instruction of the game to be tested, an audio rendering operation is performed to obtain the game audio, and the game audio is output through a physical sound card device; If the game audio is acquired by the virtual sound card device, encoding the game audio through the virtual sound card device; The encoded audio encoding data is sent to the cloud desktop client of the test end, so that the cloud desktop client decodes the audio encoding data to obtain the game audio, and outputs the game audio on the physical sound card of the test end.
5. The method according to any one of claims 1 to 4, characterized in that The determining a new game screen of the game to be tested according to the first touch data included in the target touch data includes: sending first touch data included in the target touch data to a virtual touch device, and simulating the first touch data into touch data from a physical touch device through the virtual touch device; The simulated touch data from the physical touch device is translated into an input event of a development-end platform type, and a new game screen of the game to be tested is determined according to the input event.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Receiving encoded media data sent by the cloud desktop client, where the encoded media data is obtained by the cloud desktop client by encoding input media data, where the input media data is input media data obtained by the cloud desktop client and input for the media data output by the test end, where the input media data includes one or more of input sound data and input image data; The encoded media data is decoded using the rewritten media drive device to obtain the input media data, and the input media data is used for game processing of the game to be tested.
7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If the vibration instruction of the game to be tested is acquired by the virtual peripheral device, the vibration instruction is sent to the cloud desktop client, so that the cloud desktop client calls the vibration device of the test end to vibrate according to the vibration instruction.
8. The method according to claim 1, characterized in that The screen analysis data includes position information of obstacles in the game screen and movement path information of game objects; and determining the first test result of the game to be tested according to the screen analysis data includes: Determine a path detection result of the game object according to the movement path information of the game object and the position information of the obstacle, wherein the path detection result is used to indicate whether the movement path of the game object in the game screen is reasonable; A first test result of the game to be tested is determined according to the path detection result of the game object.
9. A testing device, characterized in that: The device comprises: an output unit, configured to output media data of the game to be tested during the running of the game to be tested, and send the media data to a cloud desktop client of a test end, so that the cloud desktop client outputs the media data through the test end, and obtain target touch data input for the media data output by the test end, wherein the media data includes a game screen, and the target touch data includes first touch data related to screen adjustment; a transceiver unit, configured to receive the target touch data sent by the cloud desktop client, and determine a new game screen of the game to be tested according to first touch data included in the target touch data; The output unit is further used to output the new game screen and send the new game screen to the cloud desktop client, so that the cloud desktop client outputs the new game screen through the test end; The acquisition unit is used to acquire the screen analysis data corresponding to the new game screen, and determine the first test result of the game to be tested according to the screen analysis data.
10. A computer device, characterized in that: The computer device comprises: a processor adapted to implement one or more computer programs; and, A computer-readable storage medium storing one or more computer programs, wherein the one or more computer programs are suitable for being loaded by the processor and executing the testing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more computer programs, and the one or more computer programs are suitable for being loaded by a processor and executing the testing method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the test method according to any one of claims 1 to 8.