CN112631575A - Method, system and device for testing functions of image block and computer storage medium - Google Patents

Method, system and device for testing functions of image block and computer storage medium Download PDF

Info

Publication number
CN112631575A
CN112631575A CN202011622107.1A CN202011622107A CN112631575A CN 112631575 A CN112631575 A CN 112631575A CN 202011622107 A CN202011622107 A CN 202011622107A CN 112631575 A CN112631575 A CN 112631575A
Authority
CN
China
Prior art keywords
operation instruction
control
code
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011622107.1A
Other languages
Chinese (zh)
Inventor
李西峙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tatfook Network Tech Co Ltd
Original Assignee
Shenzhen Tatfook Network Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tatfook Network Tech Co Ltd filed Critical Shenzhen Tatfook Network Tech Co Ltd
Priority to CN202011622107.1A priority Critical patent/CN112631575A/en
Publication of CN112631575A publication Critical patent/CN112631575A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses a method, a system and a device for testing the functions of a graphic block and a computer storage medium, which are used for visually testing the functions of the graphic block in an actual scene. The method in the embodiment of the application comprises the following steps: displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene comprises at least one control object; acquiring a first operation instruction of a user; displaying a programming interface according to a first operation instruction, wherein the programming interface comprises a picture block accommodating area and an object control area, the content of the picture block accommodating area is provided with at least one picture block, the content of the object control area is provided with at least one control object, and the control object is used for demonstrating the functions of the picture block; acquiring a second operation instruction of the user, wherein the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area; determining a target operation code corresponding to the target image block according to the second operation instruction; and controlling the control object to execute corresponding action according to the target operation code, and displaying in the object control area.

Description

Method, system and device for testing functions of image block and computer storage medium
Technical Field
The embodiment of the application relates to the field of computers, and an instrument relates to a method, a system and a device for testing the functions of an image block and a computer storage medium.
Background
The programming software in the prior art can provide a plurality of function functions, and a user can write a code program by using the function functions according to the needs of the user, and then test the corresponding functions of the code program by compiling and executing.
When a user uses each type of programming software, the most basic code rules of the programming software need to be learned in advance, otherwise, the functions realized by the common basic statements cannot be further known. In the prior art, a program learning software provides a block which is convenient for a user to learn, the block includes a code sentence and a corresponding code functional text analysis, and the user can learn the code sentence from the block. However, in the conventional learning method, a user can only learn a word theory from a learning code word or a code sentence on a block, and cannot intuitively test the function of the block in an actual scene.
Disclosure of Invention
The application provides a method for testing the functions of a picture block, which comprises the following steps:
displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene comprises at least one control object, and the control object has a virtual three-dimensional characteristic;
acquiring a first operation instruction of a user, wherein the first operation instruction is used for opening the programming interface;
displaying a programming interface according to the first operation instruction, wherein the programming interface comprises a picture block accommodating area and an object control area, the content of the picture block accommodating area is provided with at least one picture block, the content of the object control area is provided with at least one control object, and the control object is used for demonstrating the functions of the picture block;
acquiring a second operation instruction of the user, wherein the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area;
determining a target operation code corresponding to the target image block according to the second operation instruction;
and controlling the control object to execute corresponding action according to the target operation code, and displaying in the object control area.
Optionally, the displaying a programming interface according to the first operation instruction includes:
determining code type information in the first operation instruction, wherein the code type information represents a code type selected to be learned by a user;
and displaying an editing interface according to the code type information.
Optionally, after the displaying the programming interface according to the first operation instruction and before the acquiring the second operation instruction of the user, the method further includes:
and acquiring a third operation instruction of the user, and updating the control object in the object control area according to the third operation instruction.
Optionally, after the displaying a programming interface according to the first operation instruction, the method further includes:
and when the fact that the time that an indication cursor of a user stays on the image blocks in the image block accommodating area reaches a preset threshold value is detected, starting a code description interface corresponding to the image blocks.
Optionally, the determining, according to the second operation instruction, a target operation code corresponding to the target tile includes:
acquiring a function identifier and a parameter identifier carried in the target image block according to the second operation instruction;
and determining a target operation code according to the function identifier and the parameter identifier, wherein the target operation code comprises a three-dimensional moving target operation code, a time control target operation code, a scene view angle control target operation code, an animation control target operation code and a three-dimensional size control target operation code according to different function identifiers.
Optionally, the determining a target operation code according to the function identifier and the parameter identifier includes:
and determining a time control target operation code according to the time function identifier and the time parameter identifier.
Optionally, the controlling the control object to execute a corresponding action according to the target operation code, and displaying the corresponding action in the object control area includes:
determining a corresponding control object in the object control area according to the target operation code;
and controlling the control object to execute the operation corresponding to the target operation code.
A second aspect of the present application provides a tile functionality testing system, comprising:
the system comprises a first display unit, a second display unit and a third display unit, wherein the first display unit is used for displaying a three-dimensional virtual scene, the three-dimensional virtual scene comprises at least one control object, and the control object has a virtual three-dimensional characteristic;
the first obtaining unit is used for obtaining a first operation instruction of a user, and the first operation instruction is used for opening the programming interface;
the second display unit is used for displaying a programming interface according to the first operation instruction, the programming interface comprises a picture block accommodating area and an object control area, at least one picture block is arranged in the picture block accommodating area, at least one control object is arranged in the object control area, and the control object is used for demonstrating the functions of the picture block;
the second obtaining unit is used for obtaining a second operation instruction of the user, and the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area;
a first determining unit, configured to determine, according to the second operation instruction, a target operation code corresponding to the target tile;
and the execution unit is used for controlling the control object to execute corresponding actions according to the target operation code and displaying the corresponding actions in the object control area.
A third aspect of the present application provides a device for testing a function of a tile, comprising:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to execute the method of testing code of any of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having a program stored thereon, the program, when executed on a computer, performing the method of any one of the first aspect and the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
in the method for testing the block function, a three-dimensional virtual scene and a programming interface are displayed firstly, and the programming interface comprises a block accommodating area and an object control area. And acquiring a second operation instruction sent by the user, determining a target operation code corresponding to a target image block according to the second operation instruction, and finally executing a behavior corresponding to the target operation code on the control object in the object control area. The image blocks to be tested are directly selected from the image block accommodating area, the object can be controlled in the object control area to execute corresponding function demonstration, and the functions of the image blocks in an actual scene can be visually tested.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for testing the functions of blocks in the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a method for testing the functions of blocks in the present application;
FIG. 3 is a block diagram illustrating an exemplary embodiment of a functional test system for blocks;
FIG. 4 is a schematic structural diagram of an embodiment of a device for testing functions of blocks in the present application.
Detailed Description
In order to solve the problems in the prior art, the present application provides a method, a system, an apparatus, and a computer storage medium for testing the functions of a tile, which are helpful for a user to visually test the functions of the tile in an actual scene.
It should be noted that the method for testing the function of the graphic block provided in the embodiment of the present application may be applied to a terminal, a system, or a server, for example, the terminal may be a fixed terminal such as a smart phone or a computer, a tablet computer, a smart television, a smart watch, a portable computer terminal, or a desktop computer. For convenience of explanation, in the embodiment of the present application, a terminal is taken as a control object for example.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of a method for testing functions of a block, the method comprising:
101. displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene comprises at least one control object;
the terminal displays the three-dimensional virtual scene, and a user can perform various operations on a control object in the virtual scene.
The terminal may obtain the three-dimensional virtual scene from the local storage unit, or obtain the three-dimensional virtual scene from the cloud server, and may also obtain the three-dimensional virtual scene from the mobile storage medium, which is not limited herein. The three-dimensional virtual scene in the present application is configured with an XYZ coordinate system, and a user can specify an orientation using the XYZ coordinate system when operating the three-dimensional virtual scene. The three-dimensional virtual scene may include a plurality of three-dimensional virtual scenes, such as sky, ground, river, etc., which are not limited herein.
The three-dimensional virtual scene also comprises at least one control object, and the control object mentioned or discussed in the implementation of the present application refers to a control object in the three-dimensional virtual scene which is required to be controlled by a user through programming. In this embodiment, the control object may be a character object such as a virtual character, an animal, a plant, a vehicle, and a science fiction character, may also be a terrain object such as a wall, a ditch, a cliff, a suspension rope, a ladder, a boss, and may also be another virtual item object in the scene, and the specific details are not limited herein. The control objects have virtual three-dimensional features and the changes in the three-dimensional virtual scene of the control objects may be virtual three-dimensional changes, such as different features exhibited at different angles based on X, Y or rotation or movement of the Z-coordinate axis. The control objects can also have bones, the terminal can drive the control objects to move in three dimensions by controlling the positions of the bones, the bones can be composed of bone points and connecting lines connecting the bone points, and any one of the bone points is configured with a relative three-dimensional coordinate axis with the bone point as an origin.
102. Acquiring a first operation instruction of a user, wherein the first operation instruction is used for opening a programming interface;
when a user opens a programming interface, the terminal acquires a first operation instruction so as to perform programming control on an object in the three-dimensional virtual scene. In this embodiment, the control object may be selected first and then the programming interface is opened, or the control object may be selected after the programming interface is opened, for example, the programming interface may be opened by receiving a right mouse button double-click instruction of the user on the control object.
The first operation instruction set forth in the present embodiment is only illustrative, and in particular, other implementations are possible, and are not limited herein.
103. Displaying a programming interface according to the first operation instruction, wherein the programming interface comprises a picture block accommodating area and an object control area, the content of the picture block accommodating area is provided with at least one picture block, the content of the object control area is provided with at least one control object, and the control object is used for demonstrating the functions of the picture block;
and the terminal responds to the first operation instruction and displays a programming interface. In this embodiment, the programming interface includes an image block accommodating area and an object control area, and the image block accommodating area accommodates image blocks. Blocks referred to or discussed in this application are blocks used to generate a programming flow, and different blocks correspond to different code functions. In this embodiment, the graphic block may also carry a text description, and compared with directly displaying the character string code, the graphic block with the text description has better readability, and a user may directly know the function or use of the graphic block through the graphic block. The pattern blocks can also be displayed in the pattern block accommodating area in a classified mode.
In this embodiment, at least one control object is generated in the object control area, where the control object is a virtual model with operability, that is, the control object can perform corresponding operations according to codes corresponding to tiles. The control object can be replaced according to the requirements of the user.
104. Acquiring a second operation instruction of the user, wherein the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area;
and the user selects the image blocks on the image block accommodating area, a second operation instruction is correspondingly generated, and the selected image blocks are used as target image blocks. The user selects the image blocks on the image block accommodating area, the user can click and select the image blocks on the image block accommodating area by using a cursor, or the user can quickly select the image blocks on the image block accommodating area by using a shortcut key, and the selection is not limited here.
105. Determining a target operation code corresponding to the target image block according to the second operation instruction;
after the terminal acquires the target image block, the terminal performs confirmation analysis on the target image block and determines a target operation code corresponding to the target image block. The target operation code comprises a function identifier and a parameter identifier, the function identifier corresponds to the function keyword and determines the operation form of the control object, and the parameter identifier corresponds to the parameter value and determines the operation degree of the control object.
For example, the code function keyword is moveforward, which indicates that the control object runs forward, and the parameter value represents the distance of forward running. It should be noted that the terminal may set the parameter value as a default value, and the user may modify the default parameter value in a customized manner, so that the functional test degree of the target tile is changed.
Specifically, the target operation codes have different types, and include a three-dimensional moving target operation code, a time control target operation code, a scene view angle control target operation code, an animation control target operation code, a three-dimensional size control target operation code, and the like according to different function identifiers.
In one possible implementation manner, the target operation code may be determined according to the target block, a three-dimensional motion function identifier and a three-dimensional coordinate identifier carried in the block are obtained, the terminal obtains the three-dimensional motion function according to the three-dimensional motion function identifier, obtains three-dimensional motion coordinates according to the three-dimensional coordinate identifier, and finally determines the three-dimensional motion target operation code according to the three-dimensional motion function and the three-dimensional motion coordinates, for example, if a walk function and three-dimensional coordinates (4,5,6 ') are obtained according to the identifier carried in the target block, the target operation code is determined to be walk (4,5, 6'), that is, the terminal controls the control object in the three-dimensional virtual scene to walk to the position where the coordinates are X ═ 4, Y ═ 5, and Z ═ 6.
In another possible implementation manner, the target operation code may be determined according to the target tile, a time function identifier and a time parameter identifier carried in the tile are obtained, the time function and the time parameter are obtained according to the identifier carried in the target tile, and finally the time control code is determined according to the time function and the time parameter, for example, if the target tile carries a function wait and a time parameter (2), it is determined that the target operation code is wait (2), that is, wait for 2 seconds, and the terminal controls the control object in the three-dimensional virtual scene to wait for 2 seconds, where the specific wait may be to keep the current state of the control object unchanged, or to use a preconfigured wait action.
In another possible implementation manner, the determining of the target operation code according to the target tile may also be that a view function and a view parameter are obtained according to a view function identifier and a view parameter identifier carried in the target tile, and finally the determining of the scene view control target operation code according to the view function and the view parameter, for example, a camera function and a view parameter (12,45,90) are obtained according to the identifier carried in the target tile, and the terminal determines that the target operation code is a camera (12,45,90) according to the function and the view parameter, that is, the determining of the scene view control target operation code according to the view function identifier and the view parameter identifier, and the terminal may control the camera view in the scene to be converted to a distance of 12 unit length, an angle of 45 degrees, and an orientation of 90 degrees.
In another possible implementation manner, the target operation code is determined according to the target image block, and the animation control function and the animation control parameter may also be obtained according to an animation control function identifier and an animation control parameter identifier carried in the target image block; for example, a playMovie function and corresponding animation parameters ("myself",0, -1, true) are obtained according to a tag carried in a target tile, a target code is determined to be a playMovie ("myself",0, -1, true) according to the function tag and the animation parameters, that is, the terminal can obtain an animation with an animation name "myself" according to the target code, and play the animation "myself" from time 0 to time-1 in the three-dimensional virtual scene. In this application, the time sequence during playing of the animation may be a positive time sequence or a negative time sequence, which is specifically determined by a time parameter value in the function, the animation in this embodiment may be a pre-recorded animation, or a template animation that is pre-configured and related to a control object in the three-dimensional virtual scene, for example, when playing "myself", a pre-stored section of animation may be called to be directly played, or the control object in the three-dimensional virtual scene may be controlled to make a series of changes related to "myself".
In another possible implementation manner, the target operation code may be determined according to the target block, a three-dimensional size control function and a three-dimensional size parameter are obtained according to a three-dimensional size control function identifier and a three-dimensional size parameter identifier carried in the target block, for example, a scaleTo function and a parameter (50) are obtained according to an identifier carried in the target block, and finally, the target operation code is determined to be scaleTo (50), and the terminal controls the three-dimensional size of the control object in the three-dimensional virtual scene to be scaled down to 50% of the original size.
106. And controlling the control object to execute corresponding action according to the target operation code, and displaying in the object control area.
And the terminal operates the control object to execute corresponding operation according to the target operation code and displays the corresponding operation in the object control area.
For example, the target operation code determined according to the target tile is walk (4,5, 6), that is, the terminal walks to a position with coordinates X ═ 4, Y ═ 5, and Z ═ 6, and the terminal controls the control object in the three-dimensional virtual scene to walk to the position.
For example, if the target operation code determined according to the target tile is scaleTo (50), the three-dimensional size of the control object in the terminal control three-dimensional virtual scene is reduced to 50% of the original size in proportion.
In the method for testing the function of the graphic block, a three-dimensional virtual scene and a programming interface are displayed first, and the programming interface comprises a graphic block accommodating area and an object control area. And acquiring a second operation instruction sent by the user, determining a target operation code corresponding to the target image block according to the second operation instruction, and finally executing a behavior corresponding to the target operation code on the control object in the object control area. The image blocks to be tested are directly selected from the image block accommodating area, the object can be controlled in the object control area to execute corresponding function demonstration, and the user can directly test the functions of the image blocks, so that the user can quickly and intuitively test the functions of the image blocks in an actual scene.
Referring to fig. 2, fig. 2 is a schematic flow chart of a second embodiment of a method for testing functions of a block, the method comprising:
201. displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene comprises at least one control object, and the control object has a virtual three-dimensional characteristic;
202. acquiring a first operation instruction of a user, wherein the first operation instruction is used for opening the programming interface;
steps 201 and 202 in this embodiment are similar to steps 101 and 102 in the previous embodiment, and are not described again here.
203. Determining code type information in the first operation instruction, wherein the code type information represents a code type selected to be learned by a user;
when receiving a first operation instruction, the terminal first determines initial options set by a user in the first operation instruction, such as code type information, learning degree and the like. The code type information refers to the programming language type selected by the current user, and when the programming language type learned by the user is C \ C + +, the option can be set when or before the code module is clicked, so that the terminal can determine the programming language type selected by the user and open a corresponding interface for the user to operate.
In this embodiment, the terminal may set a default programming language, and when the user does not set other related options, the user may directly enter the default editing interface of the terminal.
204. Displaying an editing interface according to the code type information;
the terminal determines the programming language which the current user wants to test by acquiring the code type information in the first operation instruction, and displays an editing interface according to the code type information.
The programming interface comprises an image block accommodating area and an object control area, wherein at least one image block is arranged in the image block accommodating area, at least one control object is arranged in the object control area, and the control object is used for demonstrating the functions of the image block. And displaying an editing interface through the code type information, so that the corresponding type of the image blocks are displayed in the image block accommodating area according to the code type information. When a user wants to change the code type currently tested, the user can modify the code type through the terminal, and the contained image blocks in the image block containing area can also be changed into image blocks corresponding to the modified code type information.
In this embodiment, different types of codes generate corresponding code libraries, the code libraries are used for storing code function keywords of the code type, and the image blocks are associated with the code function keywords, so that after the user determines the code type information, the terminal acquires the image blocks corresponding to the code type information and displays the image blocks in the image block accommodating area. The obtained code types can be various, such as C \ C + +, Python, vbscript, javascript, installshield script, ActionScript and the like, and the protection scope of the application is not limited as long as the class attributes of the programming language are met.
In the embodiment, the modes of displaying the image blocks in the image block accommodating area are various, and after a user determines the type of the test code, the terminal can display the image blocks in a classified mode according to different difficulty degrees, namely entry level, middle level, high level and the like, so that the user can go deep from simple to progressive; or the image blocks can be classified and displayed according to different operation types, and are classified into a control type, a motion type, an appearance type and the like so as to be convenient to query and use.
205. Acquiring a third operation instruction of a user, and updating a control object in the object control area according to the third operation instruction;
the control object model may be of various kinds, for example: for the convenience of users to replace a certain control object, corresponding control object replacement options are set in the editing interface, so that the users can replace the control object according to the requirements of the users.
And when the user replaces the control object through the role model option, the terminal receives a third operation instruction and replaces the original control object with a new control object contained in the third operation instruction according to the third operation instruction.
206. When the fact that the time that an indication cursor of a user stays on the image blocks in the image block accommodating area reaches a preset threshold value is detected, a code description interface corresponding to the image blocks is started;
specifically, the terminal may preset a threshold, and when the terminal detects that the time that the indication cursor of the user stays on the tile in the tile accommodating area reaches the preset threshold, the terminal opens the code description interface corresponding to the tile.
For example, when a mouse of a user is located on a certain image block and reaches a preset time value, a code description interface is popped up according to a code corresponding to the image block, and the code description interface comprises a text analysis of the code and is used for performing text description on information such as functions and usages of the code. So that the user can understand the instruction codes of the tiles and the implemented functions in text form.
207. Acquiring a second operation instruction of the user, wherein the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area;
208. determining a target operation code corresponding to the target image block according to the second operation instruction;
steps 207 and 208 in this embodiment are similar to steps 104 and 105 in the previous embodiment, and are not described again here.
209. Determining a corresponding control object in the object control area according to the target operation code;
the execution object of the target operation code may be one or a plurality of objects, so after the terminal determines the target operation code, the terminal determines a corresponding control object in the object control area through the target operation code, and the control object performs a series of visual driving and display according to the operation code.
For example, the function of the target operation code is to move the first control object from the original coordinate position to the coordinate of 5 units located in the positive direction of the X axis of the second control object coordinate, and then the terminal determines the current first control object and the second control object according to the operation code, and then performs corresponding operations on the two control objects according to the target operation code.
210. And controlling the control object to execute the operation corresponding to the target operation code.
And after the terminal determines the control object according to the operation code, the terminal executes the operation corresponding to the target operation code on the control object. In the process of controlling the control object to execute the operation corresponding to the target operation code, the terminal first needs to determine the operation form of the target operation code. The operation form may be a mobile form, an appearance change form, an event trigger form, a sound trigger form, a time control form, etc., each operation form differs according to information of a specific code, and is not limited herein.
After the operation form corresponding to the current operation code is determined, the parameter value required by the operation form is acquired, the executed operation is determined according to the operation form and the parameter value, and the control object can be controlled to execute the corresponding operation, so that the control object completes the operation corresponding to the target operation code.
According to the method for testing the functions of the image blocks, the three-dimensional virtual scene and the programming interface are displayed firstly, the code type information is determined after the first operation instruction sent by the user is obtained, and the code type information is used for displaying the editing interface. The programming interface comprises an image block accommodating area and an object control area. And when detecting that the time that an indication cursor of a user stays on the image block in the image block accommodating area reaches a preset threshold value, starting a code description interface corresponding to the image block. And acquiring a second operation instruction sent by the user, determining a target operation code corresponding to the target image block according to the second operation instruction, and finally executing a behavior corresponding to the target operation code on the control object in the object control area. The image blocks to be tested are directly selected from the image block accommodating area, the object can be controlled in the object control area to execute corresponding function demonstration, and the user can directly test the functions of the image blocks, so that the user can quickly and intuitively test the functions of the image blocks in an actual scene.
Secondly, when the fact that the time that an indication cursor of a user stays on the image blocks in the image block accommodating area reaches a preset threshold value is detected, a code description interface corresponding to the image blocks is opened, and the user can learn the codes of the image blocks through the code description interface.
While the embodiments of the method of the present application have been described above, the block function test system, apparatus, and computer storage medium of the present application will be described with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a block functional test system according to the present application, the block functional test system including:
a first display unit 301, configured to display a three-dimensional virtual scene, where the three-dimensional virtual scene includes at least one control object, and the control object has a virtual three-dimensional feature;
a first obtaining unit 302, configured to obtain a first operation instruction of a user, where the first operation instruction is used to open the programming interface;
the second display unit 303 is configured to display a programming interface according to the first operation instruction, where the programming interface includes a tile accommodating area and an object control area, the tile accommodating area contains at least one tile, the object control area contains at least one control object, and the control object is used to demonstrate functions of the tile;
a second obtaining unit 304, configured to obtain a second operation instruction of the user, where the second operation instruction is used to determine a target tile selected by the user on the tile accommodating area;
a first determining unit 305, configured to determine a target operation code corresponding to the target tile according to the second operation instruction;
and the execution unit 306 is configured to control the control object to execute a corresponding action according to the target operation code, and display the control object in the object control area.
Optionally, the second display unit 303 is specifically configured to:
determining code type information in the first operation instruction, wherein the code type information represents a code type selected to be learned by a user;
and displaying an editing interface according to the code type information.
Optionally, the system further comprises:
and acquiring a third operation instruction of the user, and updating the control object in the object control area according to the third operation instruction.
Optionally, the system further comprises:
and when the fact that the time that an indication cursor of a user stays on the image blocks in the image block accommodating area reaches a preset threshold value is detected, starting a code description interface corresponding to the image blocks.
Optionally, the first determining unit 305 is specifically configured to:
acquiring a function identifier and a parameter identifier carried in the target image block according to the second operation instruction;
and determining a target operation code according to the function identifier and the parameter identifier, wherein the target operation code comprises a three-dimensional moving target operation code, a time control target operation code, a scene view angle control target operation code, an animation control target operation code and a three-dimensional size control target operation code according to different function identifiers.
Optionally, the execution unit 306 is specifically configured to:
determining a corresponding control object in the object control area according to the target operation code;
and controlling the control object to execute the operation corresponding to the target operation code.
The present application further provides a device for testing a function of a graphic block, comprising:
a processor 401, a memory 402, an input-output unit 403, and a bus 404;
the processor 401 is connected to the memory 402, the input/output unit 403, and the bus 404;
the memory 402 holds a program that the processor 401 calls to perform the tile functional test method as above.
The present application also provides a computer-readable storage medium having a program stored thereon, the program, when executed on a computer, performs the method for testing the function of the tile as described above.
The present application also provides a computer-readable storage medium having a program stored thereon, which, when run on a computer, causes the computer to perform any of the above-described tile function testing methods.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (10)

1. A method for testing a function of a block, comprising:
displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene comprises at least one control object, and the control object has a virtual three-dimensional characteristic;
acquiring a first operation instruction of a user, wherein the first operation instruction is used for opening the programming interface;
displaying a programming interface according to the first operation instruction, wherein the programming interface comprises a picture block accommodating area and an object control area, the content of the picture block accommodating area is provided with at least one picture block, the content of the object control area is provided with at least one control object, and the control object is used for demonstrating the functions of the picture block;
acquiring a second operation instruction of the user, wherein the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area;
determining a target operation code corresponding to the target image block according to the second operation instruction;
and controlling the control object to execute corresponding action according to the target operation code, and displaying in the object control area.
2. The method for testing functions of a graphic block according to claim 1, wherein displaying a programming interface according to the first operation instruction comprises:
determining code type information in the first operation instruction, wherein the code type information represents a code type selected to be learned by a user;
and displaying an editing interface according to the code type information.
3. The method for testing functions of tiles according to claim 1, wherein after the displaying of the programming interface according to the first operation instruction and before the obtaining of the second operation instruction of the user, the method further comprises:
and acquiring a third operation instruction of the user, and updating the control object in the object control area according to the third operation instruction.
4. The method for testing tile functions of claim 1, wherein after the displaying a programming interface according to the first operating instruction, the method further comprises:
and when the fact that the time that an indication cursor of a user stays on the image blocks in the image block accommodating area reaches a preset threshold value is detected, starting a code description interface corresponding to the image blocks.
5. The tile function testing method according to any one of claims 1 to 4, wherein the determining a target operation code corresponding to the target tile according to the second operation instruction includes:
acquiring a function identifier and a parameter identifier carried in the target image block according to the second operation instruction;
and determining a target operation code according to the function identifier and the parameter identifier, wherein the target operation code comprises a three-dimensional moving target operation code, a time control target operation code, a scene view angle control target operation code, an animation control target operation code and a three-dimensional size control target operation code according to different function identifiers.
6. The method for testing the functions of the blocks according to claim 5, wherein the function identifier is a time function identifier, the parameter identifier is a time parameter identifier, and the determining the target operation code according to the function identifier and the parameter identifier comprises:
and determining a time control target operation code according to the time function identifier and the time parameter identifier.
7. The tile function testing method according to any one of claims 1 to 4, wherein the controlling the control object to perform a corresponding action according to the target operation code and displaying the action in the object control area comprises:
determining a corresponding control object in the object control area according to the target operation code;
and controlling the control object to execute the operation corresponding to the target operation code.
8. A system for testing the functionality of a tile, comprising:
the system comprises a first display unit, a second display unit and a third display unit, wherein the first display unit is used for displaying a three-dimensional virtual scene, the three-dimensional virtual scene comprises at least one control object, and the control object has a virtual three-dimensional characteristic;
the first obtaining unit is used for obtaining a first operation instruction of a user, and the first operation instruction is used for opening the programming interface;
the second display unit is used for displaying a programming interface according to the first operation instruction, the programming interface comprises a picture block accommodating area and an object control area, at least one picture block is arranged in the picture block accommodating area, at least one control object is arranged in the object control area, and the control object is used for demonstrating the functions of the picture block;
the second obtaining unit is used for obtaining a second operation instruction of the user, and the second operation instruction is used for determining a target image block selected by the user on the image block accommodating area;
a first determining unit, configured to determine, according to the second operation instruction, a target operation code corresponding to the target tile;
and the execution unit is used for controlling the control object to execute corresponding actions according to the target operation code and displaying the corresponding actions in the object control area.
9. A device for testing the function of a block, the device comprising:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to perform the tile functional test method of any of claims 1-7.
10. A computer-readable storage medium having a program stored thereon, which when executed on a computer performs the method of any one of claims 1 to 7.
CN202011622107.1A 2020-12-30 2020-12-30 Method, system and device for testing functions of image block and computer storage medium Pending CN112631575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011622107.1A CN112631575A (en) 2020-12-30 2020-12-30 Method, system and device for testing functions of image block and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011622107.1A CN112631575A (en) 2020-12-30 2020-12-30 Method, system and device for testing functions of image block and computer storage medium

Publications (1)

Publication Number Publication Date
CN112631575A true CN112631575A (en) 2021-04-09

Family

ID=75287394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011622107.1A Pending CN112631575A (en) 2020-12-30 2020-12-30 Method, system and device for testing functions of image block and computer storage medium

Country Status (1)

Country Link
CN (1) CN112631575A (en)

Similar Documents

Publication Publication Date Title
CN109544663B (en) Virtual scene recognition and interaction key position matching method and device of application program
RU2506630C2 (en) Rendering teaching animations on user interface display
CN110090444B (en) Game behavior record creating method and device, storage medium and electronic equipment
EP2950274B1 (en) Method and system for generating motion sequence of animation, and computer-readable recording medium
CN110075519B (en) Information processing method and device in virtual reality, storage medium and electronic equipment
CN112306481A (en) Code display method, system, device and storage medium for graphical programming scene
US20030202014A1 (en) Graphical user interface development tool
CN111803960A (en) Method and equipment for starting preset process
CN114119829A (en) Material processing method and device of virtual scene, electronic equipment and storage medium
CN112612463A (en) Graphical programming control method, system and device
CN112965773A (en) Method, apparatus, device and storage medium for information display
CN115129224B (en) Mobile control method, device, storage medium and electronic equipment
CN112631575A (en) Method, system and device for testing functions of image block and computer storage medium
CN113117329B (en) Display control method and device in game, storage medium and electronic equipment
CN112328155B (en) Input device control method and device and electronic device
US20220358258A1 (en) Computer-aided design methods and systems
CN112363711A (en) Code prompting method and device and computer readable storage medium
JPH1166351A (en) Method and device for controlling object operation inside three-dimensional virtual space and recording medium recording object operation control program
Saha et al. A mixed reality platform based on Linux X-Windowing system
CN113094282B (en) Program block running method, device, equipment and storage medium
CN114020164B (en) Stylus control method and device, electronic equipment and storage medium
CN110604918B (en) Interface element adjustment method and device, storage medium and electronic equipment
CN112817508B (en) Method, device and equipment for managing gesture control instruction of resource material
US20220366810A1 (en) Application onboarding tutorial system
KR102560619B1 (en) Electronic device providing no-code tool service and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination