Search

CN-121996556-A - Application testing method and electronic equipment

CN121996556ACN 121996556 ACN121996556 ACN 121996556ACN-121996556-A

Abstract

The embodiment of the application relates to the technical field of computers, and provides an application testing method and electronic equipment. The electronic equipment can acquire the geometric data of the model and the geometric data of the collision box, calculate the relative distance between the model and the collision box, judge whether the relative distance between the model and the collision box is in a preset interval, and if not, display warning information for indicating the mismatch between the first model and the first collision box. Meanwhile, after the intelligent player is utilized to simulate the player behavior and traverse the first virtual scene of the first application, a first position set reached by the intelligent player in the first virtual scene is determined, the first position set is compared with the reachable positions of the player in the first virtual scene, and the position with connectivity problem in the scene is determined. By implementing the method provided by the application, the virtual objects in the virtual scene can be automatically tested, the test cost is reduced, and the test efficiency and the test precision are improved.

Inventors

  • FENG JIAN
  • GUAN SONG

Assignees

  • 深圳市创梦天地科技有限公司

Dates

Publication Date
20260508
Application Date
20260123

Claims (17)

  1. 1. An application testing method, characterized by being applied to an electronic device, the method comprising: Acquiring first geometric data of a first model in a first application and second geometric data of a first collision box configured for the first model; Calculating the relative distance between the first model and the first collision box according to the first geometric data and the second geometric data; and detecting that the relative distance between the first model and the first collision box is not in a preset interval, and displaying warning information for indicating the mismatch between the first model and the first collision box.
  2. 2. The method of claim 1, wherein said calculating the relative distance of said first model to said first crash box comprises: generating a first test bounding box according to the first geometric data, wherein the first test bounding box encloses the first model; And determining the relative distance between the first model and the first collision box according to the first test bounding box and the second geometric data.
  3. 3. The method of claim 2, wherein the relative distance of the first model from the first crash box comprises the distance of a plurality of vertices of the first test bounding box from the first crash box.
  4. 4. The method of claim 3, wherein the first test bounding box comprises a plurality of test bounding boxes that each enclose a different region of the first model.
  5. 5. The method of claim 1, wherein the relative distance of the first model from the first crash box comprises a distance of a plurality of vertices of the first model from the first crash box.
  6. 6. The method according to any one of claims 1-5, wherein the acquiring the first geometry data of the first model in the first application and the second geometry data of the first crash box configured for the first model specifically comprises: acquiring a first blueprint file, and determining the name of the first model according to the first blueprint file; And calling a reflection interface of the first application to acquire first geometric data of the first model and second geometric data of a first collision box according to the name of the first model.
  7. 7. The method of any of claims 1-5, further comprising, prior to said acquiring the first geometry data of the first model in the first application and the second geometry data of the first crash box configured for the first model: An operation of configuring the first crash box for the first model is detected.
  8. 8. The method of any of claims 1-7, wherein after said detecting that the relative distance of the first model to the first crash box is not within a preset interval, the method further comprises modifying the first crash box; wherein the modifying comprises one or more of modifying the shape and/or size of the first crash box, moving the position of the first crash box such that the distance between the center of the first crash box and the center of the first model is less than a preset threshold, and splitting the first crash box into a plurality of crash boxes.
  9. 9. The method of claim 8, further comprising, prior to said modifying said first crash box: displaying modification suggestions and modification controls for the first crash box; a user operation is detected on the modification control.
  10. 10. The method of any one of claims 1-9, wherein the method further comprises: After an intelligent player simulates player behavior and traverses a first virtual scene of a first application, determining a first position set, wherein the first position set comprises positions reached by the intelligent player in the first virtual scene, and the intelligent player is a player generated based on an artificial intelligent model; comparing the first position set with the second position set, and determining the position of connectivity abnormality in the first virtual scene; Wherein the first virtual scene comprises player reachable positions and player unreachable positions, the second position set is the set of player reachable positions in the first virtual scene, and the positions of connectivity anomalies comprise one or more of player reachable positions not reached by the intelligent player and player unreachable positions reached by the intelligent player.
  11. 11. The method of claim 10, wherein the smart player simulates player behavior and traverses a first virtual scene of a first application, comprising: and driving the intelligent player to simulate the first player behavior and traverse the first virtual scene of the first application by using a first test parameter, wherein the first test parameter comprises indication information for indicating to simulate the first player behavior.
  12. 12. The method of claim 11, wherein the method further comprises: driving the intelligent player to simulate a second player behavior and traverse a second virtual scene of the first application using a second test parameter, the second test parameter including indication information for indicating that the second player behavior is simulated.
  13. 13. The method of any of claims 10-12, further comprising, prior to the smart player simulating player behavior and traversing the first virtual scene of the first application: acquiring behavior data of a real player in the first virtual scene; Training the intelligent player by using the behavior data, wherein the trained intelligent player has the capability of simulating player behaviors and traversing the first virtual scene.
  14. 14. The method of any one of claims 10-13, wherein the method further comprises generating a first test report based on connectivity anomaly locations determined in the first virtual scene.
  15. 15. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to perform the steps of the method of any one of claims 1-14.
  16. 16. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the method according to any of claims 1-14.
  17. 17. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of claims 1-14.

Description

Application testing method and electronic equipment Technical Field The present application relates to the field of computer technologies, and in particular, to an application testing method and an electronic device. Background With the development of computer technology, some applications may provide some virtual scenes, where a plurality of virtual objects may be included in the virtual scenes, each virtual object may include a model for providing a visual effect and a collision box for detecting physical interactions, a user may control a player in the application to act in the virtual scene and interact with each virtual object in the virtual scene, and if the model of the virtual object in the virtual scene does not match with the collision box, the user may be caused to control the player to act in the virtual scene, so that the user experience is seriously affected. Disclosure of Invention In a first aspect, the present application provides an application testing method, which is applied to an electronic device. First, the electronic device may obtain first geometry data of a first model in a first application and second geometry data of a first crash box configured for the first model. And then the electronic equipment can calculate the relative distance between the first model and the first collision box according to the first geometric data and the second geometric data, and after detecting that the relative distance between the first model and the first collision box is not in a preset interval, the electronic equipment displays warning information for indicating the mismatch between the first model and the first collision box. By implementing the method provided by the first aspect, the virtual objects in the virtual scene can be automatically tested, the test cost is reduced, and the test efficiency and the test precision are improved. In combination with the first aspect, in some embodiments, the method for calculating the relative distance between the first model and the first crash box specifically includes generating a first test bounding box according to the first geometric data, wherein the first test bounding box can enclose the first model, and then determining the relative distance between the first model and the first crash box according to the first test bounding box and the second geometric data. In combination with the first aspect, in some embodiments, the relative distance of the first model to the first crash box comprises a distance of a plurality of vertices of the first test bounding box to the first crash box. By implementing the embodiment, the first test bounding box is generated, and the originally complex first model can be simplified into a simple geometric structure to perform distance calculation, so that the calculated amount can be effectively reduced, and the test efficiency is improved. With reference to the first aspect, in some embodiments, the first test bounding box includes a plurality of test bounding boxes that respectively enclose different regions of the first model. Specifically, after the electronic device obtains the first geometric data of the first model, the structure of the first model may be first analyzed according to the first geometric data, and then the first model is divided into a plurality of regions, and a test bounding box is generated for each region. Therefore, aiming at some virtual objects with complex model structures in the first application, the electronic equipment can calculate the relative distance between the first model and the first collision box by utilizing a plurality of test bounding boxes, and then the accuracy of the test is improved under the state of maintaining low calculation amount. With reference to the first aspect, in some embodiments, the relative distance of the first model to the first crash box comprises a distance of a plurality of vertices of the first model to the first crash box. The electronic device may directly calculate a distance from the vertex of the first model to the first crash box surface according to the first geometric data, then determine whether the distance from the vertex of the first model to the first crash box surface is within a preset interval, and if not, determine that the first model and the first crash box are not matched near the vertex. In some embodiments, the electronic device can calculate and make a determination of the distance of each vertex of the first model to the first crash box surface. In other embodiments, the electronic device may calculate a distance from a portion of the vertices of the first model to the first crash box surface and determine that the portion of the vertices of the first model may be vertices of the first model that are predefined by the developer to be tested. With reference to the first aspect, in some embodiments, acquiring the first geometric data of the first model and the second geometric data of the first crash box configured for the fir