Virtual testing system and use method thereof
The virtual testing system conducts multi-angle testing of design solutions before software and system development, which solves the problems of low efficiency and high cost of traditional manual testing, enables earlier discovery and adjustment of design problems, and ensures system stability and security. .
Patent Information
- Application Number
- PCT/CN2024/083431
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-25
- Filing Date
- 2024-03-23
- Publication Date
- 2024-10-03
AI Technical Summary
Traditional manual testing has low efficiency, high cost, and difficulty in fully covering system risks. Moreover, testing is usually performed after the software development is completed, and it is easy to miss problems in design or development due to personal negligence.
Provide a virtual test system, including a database module, information acquisition module, analysis module and virtual test module. Through virtual test logic, the design plan can be tested from multiple angles, multi-paths, multi-sequences and multi-levels, and software and system development can be carried out in advance. Conduct testing beforehand to ensure the integrity and risk prevention of the design plan.
It greatly speeds up the testing process, improves testing efficiency, reduces testing costs, enables problems in the design to be discovered and adjusted before development, and ensures the stability and security of the system.
Smart Images

Figure CN2024083431_03102024_PF_FP_ABST
Abstract
Description
A virtual test system and its use method
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 25, 2023, with application number 202310317132.6 and invention name “A virtual testing system and its use method”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates to the field of virtual testing technology, and in particular to a virtual testing system and a method for using the same. Background Art
[0003] With the continuous advancement of science and technology, the scale and complexity of software and systems have greatly increased, and the related testing workload has also increased dramatically. Traditional manual testing usually requires testing after software and system development is complete. It requires high professional skills of testers, is complex and repetitive, has high labor costs, is inefficient, and is prone to omissions due to personal reasons.
[0004] Existing testing is mostly code-based, using test cases. However, due to the complexity of actual system application scenarios, it is difficult to fully cover all test cases, conduct sufficient testing, and expose all risk points. However, real system problems, or those that are difficult to detect, often stem from vulnerabilities in design and development solutions. Therefore, a method for analyzing and evaluating system and code design logic is needed to ensure the integrity of business logic and mitigate system risks across various business scenarios.
[0005] Summary of the Invention
[0006] The purpose of the present invention is to provide a virtual testing system and its use method. By applying virtual technology to the testing process, the design scheme can be virtually tested before the software and system development is completed. The design scheme can be virtual tested from multiple angles, multiple paths, multiple sequences, and multiple levels through the virtual testing logic required by the design scheme and application scenario, which can greatly speed up the testing process, improve testing efficiency, and reduce testing costs.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] In a first aspect, the present invention provides a virtual testing system, comprising: a database module, an information acquisition module, an analysis module, and a virtual testing module.
[0009] The information acquisition module is used to obtain the design scheme to be tested and its application scenario;
[0010] The database module is used to store a virtual test database, which includes virtual test models and virtual test logic for different design solutions. The virtual test model is used to select virtual test logic suitable for a design solution based on the design solution. The elements of the virtual test model include at least one of the following: target, user, scenario, interface system environment and interface conditions, data organization, process, link, control, intervention, evaluation, prediction, mutual influence, and interaction. The virtual test logic is used to perform virtual testing on the design solution.
[0011] The analysis module is used to select a virtual test logic suitable for the design scheme according to the design scheme to be tested and the virtual test model;
[0012] The virtual test module is used to perform a virtual test on the design solution according to the selected virtual test logic to obtain a test result.
[0013] In some embodiments, the virtual test logic of the design scheme includes the virtual test logic of the functional modules and the virtual test logic of the overall system. The virtual test logic of the functional modules is used to perform virtual testing on each functional module of the software, including: at least one virtual test logic in the core operations, queries, classifications, fuzzy matching, functional module interface style layout, correctness and integrity of data display, data list paging, deletion, removal, addition, configuration, and linkage processes involved in each module; the virtual test logic of the overall system is used to perform virtual testing on the overall system of the software, including: at least one virtual test logic in the functional implementation of the entire software system, rationality / stability / scalability / reusability of the architecture, ease of use / aesthetics / consistency / friendliness of the user interface, applicability / security / performance optimization of the database, interface / input / output / independence of the module, complexity of the data structure and algorithm / time resource consumption / space resource consumption.
[0014] In some embodiments, the virtual testing system analyzes the various elements of the design scheme and their relationships with each other from the design scheme, establishes connections of different dimensions of the elements based on the relationships, and facilitates display according to the user's requirements. The elements of the design scheme include: links, nodes, data relationships, cause and effect, output, trigger, input, and output. At least one of the following.
[0015] In some embodiments, the virtual testing module is also used to set at least one evaluation item among logic, computing power, presentation, authority, security, efficiency, load, capacity, and time under the virtual test of virtual test logic according to the design scheme to be tested, set corresponding levels / scores according to the results of different items, and calculate the comprehensive level / score of the design scheme to be tested in the virtual test according to the weight of each evaluation item in the virtual test, so as to provide test results.
[0016] In some embodiments, the method for determining the test results includes: judging whether the comprehensive level / score is greater than a preset pass threshold to obtain a first judgment result; if the first judgment result is no, the test result is a test failure; if the first judgment result is yes, judging whether the level / score corresponding to each of the assessment items is higher than the single pass threshold corresponding to the assessment item to obtain a second judgment result; if the second judgment result is yes, the test result is a test pass; if the second judgment result is no, the test result is a test failure.
[0017] In some embodiments, the virtual testing system is also used to determine problem points and problem scenarios where errors are prone to occur based on the test results, and to prompt system risk points and risk scenarios based on the type, level, impact and difficulty of solving the error.
[0018] In some embodiments, the virtual test system further includes an adjustment module, which is used to determine the reason why the design scheme to be tested failed the test based on the test results, and to adjust and optimize the design scheme to be tested based on the reason.
[0019] In some embodiments, the virtual test system further includes a code acquisition module and a standard code library, wherein the standard code library includes standard codes suitable for different design schemes; the code acquisition module is configured to, when the standard code library includes standard codes for a first design scheme, directly acquire corresponding standard codes from the standard code library according to the first design scheme; and, when the standard code library does not include standard codes for the first design scheme, select the standard code most suitable for the first design scheme from the standard code library according to the first design scheme, and then, based on a difference between the first design scheme and the standard code most suitable for the first design scheme, modify the standard code most suitable for the first design scheme to obtain the standard code corresponding to the first design scheme;
[0020] The virtual test system also includes a code verification module, which is used to verify whether the standard code complies with the design plan, specifically determining whether the standard code complies with the design plan in terms of input, output, function, efficiency, and resource usage. If not, the user is prompted to adjust the standard code.
[0021] In some embodiments, the virtual testing system further includes a user interaction module, which is configured to obtain signals sent by one or more users and present feedback information to the users.
[0022] In a second aspect, the present invention provides a method for using the virtual test system, the method comprising:
[0023] Establishing a virtual test database, the virtual test database including virtual test models and virtual test logic for different design solutions, the virtual test model being used to select virtual test logic suitable for a design solution based on the design solution, the elements of the virtual test model including at least one of: objectives, users, scenarios, interface system environment and interface conditions, data organization, processes, links, controls, interventions, evaluations, predictions, mutual influences, and interactions, and the virtual test logic being used to perform virtual testing on the design solution;
[0024] Obtain the design scheme to be tested and its application scenario;
[0025] Selecting a virtual test logic suitable for the design scheme to be tested based on the design scheme to be tested and the virtual test model;
[0026] The design solution is virtually tested according to the selected virtual test logic to obtain a test result.
[0027] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0028] The present invention is used to provide a virtual testing system and a method for using the same. The virtual testing system includes: a database module, an information acquisition module, an analysis module, and a virtual testing module. The method for using the virtual testing system includes: establishing a virtual testing database, the virtual testing database including a virtual testing model; obtaining a design scheme to be tested and its application scenario; selecting a virtual testing logic suitable for the design scheme according to the design scheme to be tested and the virtual testing model; performing a virtual test on the design scheme according to the selected virtual testing logic to obtain a test result. A virtual testing system and a method for using the same of the present invention apply virtual technology to the testing process, and perform a virtual test on the design scheme before the software and system development is completed. The design scheme is subjected to multi-angle, multi-path, multi-sequence, and multi-level virtual testing through the virtual testing logic required by the design scheme and the application scenario, which can greatly speed up the testing process, improve testing efficiency, and reduce testing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] FIG1 is a flow chart of a method for using a virtual test system provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0032] The purpose of the present invention is to provide a virtual testing system and a method for using the same. By applying virtual technology to the testing process, the design scheme can be virtually tested before the software and system development is completed. The design scheme can be virtually tested from multiple angles, multiple paths, multiple sequences, and multiple levels through the virtual testing logic required by the design scheme and application scenario. The design scheme can be adjusted and optimized based on the test results. The corresponding standard code can also be obtained from the standard code library based on the determined design scheme, and it can be verified whether the standard code conforms to the design scheme. This can greatly speed up the testing process, improve testing efficiency, and reduce testing costs.
[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] Example 1:
[0035] This embodiment is used to provide a virtual testing system, which includes: a database module, an information acquisition module, an analysis module and a virtual testing module.
[0036] The information acquisition module is used to obtain the design scheme to be tested and its application scenario.
[0037] The database module is used to store a virtual test database, which includes a virtual test model and virtual test logic for different design schemes. The virtual test model is used to select virtual test logic suitable for the design scheme based on the design scheme. The elements of the virtual test model include: at least one of the following: goals, users, scenarios, interface system environment and interface conditions, data organization, processes, links, controls, interventions, evaluations, predictions, mutual influences, and interactions. The virtual test logic is used to perform virtual testing on the design scheme.
[0038] The analysis module is used to select a virtual test logic suitable for the design scheme to be tested according to the design scheme to be tested and the virtual test model.
[0039] The virtual test module is used to perform virtual testing on the design scheme to be tested according to the selected virtual test logic and obtain the test results.
[0040] In this embodiment, the information acquisition module is used to obtain the design scheme to be tested and its application scenario, wherein the design scheme may include: goals, requirements, functions, structure, development environment, interface system environment and interface conditions, data organization, process, links, control, intervention, input, output, data indicators, configuration, prediction, mutual influence, interaction, etc., and the application scenario may include: time of occurrence, place, user, functional requirements, frequency of occurrence, input range, output range, etc.
[0041] The data acquisition method of the information acquisition module may include: (1) the user fills in a given template to obtain the design scheme to be tested and its application scenario; (2) obtaining a design document and performing semantic recognition on the design document to fill in a given template to obtain the design scheme to be tested and its application scenario; (3) obtaining a design document and manually filling in a given template based on the design document to obtain the design scheme to be tested and its application scenario; (4) obtaining a design document, digitizing the design document, and then organizing the information according to a multi-level template to obtain the design scheme to be tested and its application scenario. Of course, this embodiment can also adopt other suitable methods for obtaining data, as long as the purpose of obtaining the design scheme to be tested and its application scenario can be achieved.
[0042] In this embodiment, the virtual test database includes virtual test models and virtual test logics of different design solutions.
[0043] The virtual test model is used to select virtual test logic suitable for the design scheme based on the design scheme, or the virtual test model is used to select virtual test logic suitable for the design scheme based on the design scheme and its application scenario. The elements of the virtual test model include: goals, users, scenarios, interface system environment and interface conditions, data organization, processes, links, controls, interventions, evaluations, predictions, mutual influences, and interactions, and may also include other elements related to the characteristics of the design scheme.
[0044] Virtual test logic includes virtual test logic corresponding to at least one of input, output, function, efficiency, and resource usage. It is necessary to comprehensively consider multiple dimensions such as the application scenario, the structure of the software or system product, and the quality requirements, and select appropriate virtual test logic to conduct virtual testing on the design solution. Different weights or priorities can also be set for the selected virtual test logic. Weights or priorities can be used for comprehensive scoring. A design solution may need to select multiple virtual test logics. By setting different weights or priorities for each selected virtual test logic, after testing the design solution using the selected virtual test logic, the comprehensive test score of the design solution can be calculated based on the test score and weight or priority of each selected virtual test logic, and the design solution can be evaluated based on the comprehensive test score to determine whether it has passed the test.
[0045] Specifically, the virtual test logic of the design scheme may include the virtual test logic of the functional modules and the virtual test logic of the overall system. The virtual test logic of the functional modules is mainly used to perform virtual testing on the various functional modules of the software, and may include: virtual test logics such as core operations, queries, classifications, fuzzy matching, functional module interface style layout, correctness and integrity of data display, data list paging, deletion, removal, addition, configuration, linkage process, etc. involved in each module, and may also include other virtual test logics related to the virtual testing of functional modules. The virtual test logic of the overall system is mainly used to perform virtual testing on the overall system of the software, and may include: virtual test logics such as the functional implementation of the entire software system, rationality / stability / scalability / reusability of the architecture, ease of use / aesthetics / consistency / friendliness of the user interface, applicability / security / performance optimization of the database, interface / input / output / independence of the module, complexity of the data structure and algorithm / time resource consumption / space resource consumption, and may also include other virtual test logics related to the virtual testing of the overall system.
[0046] The virtual testing logic of the rationality of the architecture may include: whether the architecture is suitable for the "functional requirements" and "non-functional requirements" of the software, whether it just meets customer needs instead of adopting the most advanced structure at any cost, etc.
[0047] The virtual testing logic of the architecture stability may include: determining whether the architecture is based on stable and unchanging requirements through demand analysis, whether the architecture needs to be modified when the requirements change, etc.
[0048] The virtual test logic of the architecture scalability may include: whether the time cost / space cost / work cost of software extension functions meet the requirements, whether the time cost / space cost / work cost of developing a new version meets the requirements, etc.
[0049] The virtual test logic of architecture reusability may include: whether the universality / reusability / difficulty / cost / workload of the software architecture meets the requirements, etc.
[0050] The usability of a user interface refers to the degree of harmony between the user interface and the software's functions. The software's functions need to be presented through the user interface, and the user interface must be appropriate for the software's functions. Virtual testing logic for user interface usability can include: whether all elements in the user interface (such as menus, toolbars, etc.) are error-free and non-misleading; whether all interface elements provide sufficient and necessary prompts; whether the interface structure clearly reflects the workflow so that users can operate step by step; and for complex user interfaces, whether an interface "wizard" is provided to promptly let users know their position in the interface structure. For example, for web-based application software, displaying the "current location" on the user interface prevents users from getting lost; and when the mouse moves over an icon button on the toolbar, a function prompt should appear next to the icon.
[0051] The virtual testing logic for the aesthetics of a user interface can include: whether the layout of the user interface is reasonable, whether the layout of the user interface is consistent with the workflow, whether the layout of the user interface is neat and beautiful, whether the interface elements are aligned horizontally or vertically / the spacing between rows and columns is consistent, whether the size of the form is appropriate, whether the various controls are overcrowded / too loose, whether the blank space and dividing lines between forms and controls are reasonable, whether the color is selected according to the importance of the object, whether important objects are represented by eye-catching colors, whether the use of colors is consistent, and whether there is excessive reliance on color when expressing information. For example, if error messages are represented in red and normal messages are represented in green, then red and green should never be used interchangeably; if the purpose is not to display realistic graphics and images, the number of colors on a single screen frame should be limited, as it is difficult for people to remember multiple colors simultaneously when observing a screen.
[0052] Virtual testing logic for user interface consistency can include: whether similar interface elements have the same visual experience and the same operating methods, whether the user interfaces of the same type of software have a certain degree of similarity, etc. For example, command buttons are the most common interface elements, and all command buttons have the same shape, color, and mouse response; similar functions provided by the software all operate in the same way.
[0053] The virtual testing logic for user interface friendliness can include: timely prompts for software status, timely feedback on operation information, and whether the error handling of various errors is user-friendly. For example, after the user performs a certain operation, does the user interface provide feedback? If there is no response at all, the user will feel confused and uneasy because he does not know whether he made a mistake or the software caused the system to freeze. For operations such as downloading files, the interface should display a "percentage" or related numbers to indicate the progress of the download, otherwise people will not know how long to wait. If certain transaction processing cannot provide data such as progress, then at least a prompt message such as "Processing, please wait..." should be given. Provide a function to verify input data, and when the user enters incorrect data, promptly remind the user to correct the data. For menu items and command buttons that should not be used in certain situations, "disable" (block) them to prevent the function from being used incorrectly. Provide an Undo function to undo unexpected operations. Before performing destructive operations such as deleting files, the user's confirmation should be obtained.
[0054] The virtual test logic of database applicability may include: whether the database system selection meets functional requirements / industry standards, whether the unique functions of the database system are applied, etc.
[0055] The virtual test logic of database security can include: whether the user's login method is safe, whether the user's access to the database is safe, whether there are other ways to operate the database, whether the user account password is encrypted and ensured that the plain text password does not appear anywhere, whether each user's database operation permissions are appropriate, etc.
[0056] Virtual testing logic for database performance optimization can include: whether the database's data redundancy, data structure clarity, performance, and scalability meet requirements; whether the database's environmental parameters meet requirements; and whether the database configuration matches the actual data storage. For example, when installing a database system, you must specify a "block size" (the number of bytes designed for a single physical read or write operation). When creating a table, you also specify a certain amount of space for the table, known as the "tablespace." If the "block size" and "tablespace" do not match the actual data storage, disk fragmentation will occur, reducing the performance of physical database operations.
[0057] Virtual testing logic for module interfaces can include determining whether the module interface's functionality is appropriate, whether executing module functions or communicating with the module requires invoking public interfaces, and so on. For example, if a module is a C++ object, then the module's public interface corresponds to the object's public functions. If the module is a COM object, then the module's public interface is the COM object's interface. A COM object can have multiple interfaces, each of which is essentially a collection of functions.
[0058] In this embodiment, the virtual test database is established based on various product manuals, industry specifications, textbooks, papers, books, data analysis reports, test reports, inspection reports, approval documents, relevant laws and regulations, relevant guidelines, relevant policies, relevant systems, relevant catalogs, and relevant literature. It can also be established based on probabilistic inference of existing data, or through various weights / various levels / various rankings that require manual setting, or based on information reorganization / information analysis / big data analysis, or through artificial intelligence deep learning, or through data mining analysis, or through data statistical analysis / artificial intelligence deep learning followed by manual setting. The virtual test database can also be established through a combination of the above methods. The virtual test models and virtual test logic of different design schemes in the virtual test database of this embodiment can also be continuously updated and adjusted during use. The updates and adjustments can be completed manually or automatically through data statistical analysis / artificial intelligence deep learning.
[0059] In this embodiment, the analysis module is used to select the virtual test logic suitable for the design scheme to be tested based on the design scheme to be tested and the virtual test model, that is, taking the design scheme to be tested as input, the virtual test model is used to determine the virtual test logic suitable for the design scheme to be tested.
[0060] A design plan includes various elements. The values of these elements are input into the virtual test model to obtain virtual test logic suitable for the design plan. Elements of a design plan may include: goals, requirements, functions, structure, development environment, interface system environment and interface conditions, data organization, processes, links, controls, interventions, inputs, outputs, data indicators, configurations, predictions, mutual influences, and interactions. Element values can be numeric or character. Element values can be fixed, variable, or within a range. Changes in element values may alter the selected virtual test logic suitable for the design plan.
[0061] Specifically, the input objects, output objects corresponding to different design schemes, and the calculation / judgment / logical relationship between the input objects and the output objects, the factors affecting the calculation / judgment / logical relationship and various settings / configurations, the input and output symbols, form, time, trigger conditions, stop conditions, scope, users, permissions, and management mechanisms, the equipment, network, storage, computing power, etc. required to complete the above-mentioned business are different, so the design schemes are different, and the selected virtual test logic is naturally different. The correspondence between the design scheme and the virtual test logic can be manually completed through documents, system functions, operation pages, etc. to screen / match the virtual test logic, adjust / develop the virtual test logic according to the design scheme, or it can be completed through artificial intelligence to complete the above-mentioned screening / matching / adjustment and other tasks.
[0062] In this embodiment, the virtual test module is used to perform a virtual test on the design solution to be tested according to the selected virtual test logic to obtain a test result.
[0063] The virtual testing module is also used to set at least one evaluation item among logic, computing power, presentation, authority, security, efficiency, load, capacity, and time under the virtual test of the virtual test logic according to the design scheme to be tested, and perform virtual testing on the design scheme to be tested according to the selected virtual test logic to obtain the results of each evaluation item, set corresponding levels / scores according to the results of different evaluation items, and calculate the comprehensive level / score of the design scheme to be tested in the virtual test according to the weight of each evaluation item in the virtual test, so as to provide test results.
[0064] Among them, logic can be that the input and output meet expectations, and this expectation can be set manually or through other calculation methods; computing power / load / capacity can be set through experience, simulation operation or participation in the arrangement of design documents; presentation can be determined based on user needs / design documents or conventional interaction forms; authority / time can be determined based on product design, organizational structure, business processes, security systems, etc.; security / efficiency can be determined based on business needs, user needs or design documents.
[0065] For each assessment item, set different levels / scores corresponding to different results. For example, if the assessment item is time, you could set a time less than 0.1s to 10 points, a time between 0.1-0.2s to 8 points, a time between 0.2-0.5s to 5 points, a time between 0.5-1s to 3 points, and a time over 1s to 0 points. This way, based on the time results and specific settings, you can determine the level / score for the time assessment item. By combining the levels / scores and weights of different assessment items, you can determine the overall level / score of the virtual test.
[0066] The formula for calculating the comprehensive level / score includes:
[0067] Where F is the comprehensive level / score of the design scheme to be tested; n is the total number of evaluation items; p i represents the i-th evaluation item; T(p i ) is the weight of the i-th evaluation item; S(p i ) is the level / score corresponding to the result of the i-th assessment item.
[0068] This embodiment can further give the test result of the virtual test based on the comprehensive level / score of the design scheme to be tested in the virtual test. For example, a pass threshold of the virtual test can be set. If the comprehensive level / score of the design scheme to be tested is greater than the preset pass threshold, the test result of the design scheme to be tested is a pass. A single pass threshold of a certain evaluation item of the design scheme can also be set. If the level / score corresponding to the result of the evaluation item is lower than the single pass threshold of the evaluation item, the test result of the design scheme to be tested is a fail. The test results also include the results of each evaluation item. The virtual test is divided into different evaluation items. Each evaluation item will determine the corresponding level / score based on its own results. The level / score of the evaluation item can be used to determine whether the evaluation item is prone to problems. For example: if the level / score of the safety evaluation item is only 2 points, it means that the safety of the design scheme is not very good and may cause safety risks.
[0069] Specifically, the method for determining the test result includes: judging whether the comprehensive level / score is greater than a preset pass threshold, obtaining a first judgment result, if the first judgment result is no, the test result is a test failure, if the first judgment result is yes, then judging whether the level / score corresponding to each evaluation item is higher than the single pass threshold corresponding to the evaluation item, obtaining a second judgment result, if the second judgment result is yes, that is, the level / score corresponding to all evaluation items is higher than the single pass threshold corresponding to the evaluation item, then the test result is a test pass; if the second judgment result is no, that is, the level / score corresponding to at least one evaluation item is not higher than the single pass threshold corresponding to the evaluation item, then the test result is a test failure, thereby being able to comprehensively obtain the level / score corresponding to the single evaluation item and the comprehensive level / score, and only when the comprehensive level / score is greater than the preset pass threshold and the level / score corresponding to all evaluation items is higher than the single pass threshold corresponding to the evaluation item, is the test considered to have passed, which greatly improves the rigor of the test and ensures the effectiveness of the design scheme that has passed the test. Among them, each assessment item corresponds to a single passing threshold. For each assessment item, the level / score corresponding to the assessment item is compared with the single passing threshold corresponding to the assessment item. The single passing thresholds corresponding to each assessment item can be the same or different.
[0070] The virtual testing system of this embodiment can also indicate system risk points and risk scenarios based on test results. Specifically, the virtual testing system of this embodiment is used to identify error-prone problem points and problem scenarios based on the virtual test results, namely the level / score of each assessment item. Based on the error type, level, impact, and difficulty of resolution, the system indicates relevant system risk points and risk scenarios, helping users better understand the design solution.
[0071] The virtual testing system of this embodiment may also include an adjustment module. The adjustment module is used to determine the reason why the design failed the test based on the test results of the design to be tested, and to adjust and optimize the design based on the reason. For example, if the autonomous driving software fails the virtual test, and the test results indicate that it failed the safety test and resource utilization test, the autonomous driving software design needs to be adjusted and optimized, and the relevant parts (i.e., those related to safety and resource utilization) need to be improved, and retested until the test passes.
[0072] When virtual testing identifies issues or risks, users are informed of the issues and their specific manifestations, allowing them to request improvements or optimizations to the design. Similarly, the design can be adjusted and optimized based on the levels or scores of each assessment item. For example, if the test results show a low safety score, adjustments and optimizations to the design's safety may be necessary; if the time score is high, time optimization may not be necessary.
[0073] The virtual testing system provided in this embodiment can perform virtual testing on the design scheme before the software and system development is completed. The design scheme can be virtual tested from multiple angles, multiple paths, multiple sequences, and multiple levels through the virtual testing logic required by the design scheme and application scenario. The design scheme can also be adjusted and optimized based on the test results, which greatly speeds up the testing process, improves testing efficiency, and reduces testing costs.
[0074] For example, a user who wants to develop autonomous driving software can first conduct a design process to arrive at a design plan. The design plan may include objectives, requirements, functions, structure, development environment, interface design, input, output, data indicators, configuration, etc. The design plan can then be virtually tested using the virtual testing system of this embodiment. Specifically, based on the design plan and virtual testing model, appropriate virtual testing logic is selected. This virtual testing logic may include core operations, querying, classification, fuzzy matching, functional module interface layout, data display integrity, data list paging, deletion, removal, addition, configuration, linkage flow, functional implementation of the entire software system, architectural rationality, stability, scalability, and reusability, user interface usability, aesthetics, consistency, and user friendliness, database applicability, security, and performance optimization, module interfaces, inputs, outputs, and independence, and data structure and algorithm complexity, time and space resource consumption. The design plan is then virtually tested based on the selected virtual testing logic to obtain test results.
[0075] After testing the design scheme, the virtual testing system of this embodiment can also test the code, database, interface, system environment, input data, etc., which can specifically refer to the combination of virtual testing and conventional testing, or the application of virtual testing methods to further test the actual situation of the product, or the continued testing of specific contents such as actual code and database after completing the testing of the design scheme. It can include: functional testing of roles, functions, permissions, organization, processes, steps, links, settings, and configurations; testing of data addition, deletion, modification, query, verification, validation, and logical calculation; testing of data classification / clustering, screening, exclusion, combination, statistics, arrangement, model algorithm, system, database, storage, prediction, judgment, input, output, processing, analysis, presentation, processing, design, combination, query, screening, exclusion, model processing, data mining, statistics, regression, virtualization, prediction, verification, review, etc.
[0076] The virtual test system of this embodiment also includes a code acquisition module and a standard code library. The standard code library includes standard codes suitable for different design schemes. The code acquisition module is used to directly obtain the corresponding standard code from the standard code library according to the first design scheme when the standard code library includes the standard code of the first design scheme; when the standard code library does not include the standard code of the first design scheme, select the standard code that is most suitable for the first design scheme from the standard code library according to the first design scheme; and then, based on the difference between the first design scheme and the standard code that is most suitable for the first design scheme, modify the standard code that is most suitable for the first design scheme to obtain the standard code corresponding to the first design scheme.
[0077] The standard code library of this embodiment includes several standard codes, each of which has a corresponding design solution. Therefore, when a design solution is proposed, the library is first searched for a standard code that fully matches the proposed solution. If a standard code exists, it is used directly. If not, the closest standard code is found. Then, based on the differences between the design solution corresponding to the closest standard code and the current design solution, the closest standard code is modified.
[0078] Specifically, the standard code library may include complete standard codes corresponding to different design solutions, or it may include standard codes corresponding to different functional modules. When the standard code library includes complete standard codes corresponding to different design solutions, the corresponding standard codes are directly obtained from the standard code library according to the design solution. When the standard code library includes standard codes corresponding to different functional modules, the standard code suitable for each functional module in the design solution is selected from the standard code library, and the standard codes of each functional module are then integrated to obtain a complete standard code suitable for the design solution.
[0079] The multiple standard codes suitable for different design schemes / different functional modules stored in the standard code library of this embodiment can be manually set by experts, or obtained through data statistics / data analysis, or obtained through information reorganization / big data analysis, or obtained through artificial intelligence deep learning / optimization, and can be continuously accumulated and optimized during use.
[0080] If the design scheme has a corresponding standard code, the corresponding standard code can be directly obtained from the standard code library; if the design scheme does not have a corresponding standard code, the most suitable standard code can be selected from the standard code library through analysis and comparison based on the design scheme, and then the difference between the design scheme and the existing most suitable standard code can be considered. The most suitable standard code can be appropriately modified to make the modified standard code suitable for the design scheme. The modification can be done manually by professionals or automatically by the system through self-learning relying on artificial intelligence.
[0081] The virtual testing system of this embodiment also includes a code verification module, which is used to verify whether the standard code complies with the design plan. The verification process includes: generating a system / product through the standard code, applying the system / product to test whether it complies with the design plan, and specifically determining whether the standard code complies with the design plan in terms of input, output, function, efficiency, and resource usage. If not, the user is prompted to adjust the standard code.
[0082] For standard codes directly obtained from the standard code library, or standard codes obtained by combining standard codes of different functional modules obtained from the standard code library, or standard codes modified from standard codes obtained from the standard code library, or standard codes written by users themselves, the code verification module can be used to verify whether the standard codes comply with the design plan and whether they are consistent with the design plan in terms of input, output, function, efficiency, resource usage, etc. If they do not comply, the user can be prompted to make adjustments.
[0083] The virtual testing system of this embodiment can also analyze the various elements of the design plan and their relationships with each other from the design plan, establish connections of different dimensions of the elements based on the relationships, and facilitate display according to the user's requirements. The elements of the design plan include: at least one of: links, nodes, data relationships, cause and effect, output, trigger, input, and output.
[0084] Elements are connected through their relationships, and these relationships can be expanded to form a multi-dimensional, multi-level system. This system can be conveniently presented to users from different dimensions, making it easier for them to accept, understand, and apply it, and to grasp the relationships and influences between different elements. During the analysis process, relevant elements and relationships can be recorded / annotated, and corresponding relationships can be established. This can be done by labeling elements and relationships for ease of use, or by using the elements and relationships themselves as labels. By connecting different elements and relationships, a knowledge / information system of different dimensions and levels can be established.
[0085] The virtual testing system of this embodiment also includes a user interaction module, which is used to obtain signals sent by one or more users and present feedback information to the users. Specifically, the user interaction module obtains signals sent by users and presents feedback information to the users. The feedback information includes information requested by the user, which may be test results, design plans, standard codes, relevant content of virtual testing logic, elements / interrelationships, or other information that can be presented to the user during the use of the virtual testing system. Based on this, the user interaction module may include an information acquisition device and an information presentation device. The information acquisition device is used to obtain signals sent by users to the virtual testing system, and the information presentation device is used by the virtual testing system to present feedback information to the users.
[0086] In this embodiment, the user can send signals to the virtual test system through voice, gestures, movements, expressions, sight, smell, body temperature, body indicators / parameters / reactions, brain waves, neural substances, etc., or send signals to the virtual test system by operating a tablet computer, mobile phone, mouse, keyboard, smart handle, remote control, smart wearable device, etc., or send signals to the virtual test system in other suitable ways. Therefore, the information acquisition device may include at least one of a voice acquisition device, a gesture acquisition device, a limb movement acquisition device, an expression acquisition device, a body signal acquisition device, a smart wearable device, a tablet computer, a mobile phone, a mouse, a keyboard, a smart handle, and a remote control, and may also include other devices suitable for obtaining signals sent by the user.
[0087] The information presentation device may be at least one of a display screen, smart glasses, headphones, speakers, hearing aids, and brain-computer interfaces, or other suitable devices.
[0088] In this embodiment, the user interaction module is preferably an AR / VR glasses, a human-machine interface, a keyboard, a mouse, a tablet computer, a mobile phone, a smart controller, a remote control, a naked-eye 3D device, a 3D projection device, a display screen, a headset, or a wearable device. The human-machine interface may be a brain-computer interface or other types of human-machine interfaces. The user interaction module may also include a device for scanning, receiving, or intervening in brain waves or neural information / bioelectric signals.
[0089] In the virtual testing system of this embodiment, the user interaction module can present feedback information to the user based on at least one of visual signals, auditory signals, tactile signals, olfactory signals, taste signals, mouthfeel signals, temperature signals, humidity signals, and human-machine interface signals, using various combinations of at least one of the following forms: points, lines, graphics, images, planes, curved surfaces, three-dimensional graphics, three-dimensional images, marks, symbols, codes, text, colors, sounds, touch, smell, temperature, and formulas. A coordinate system can be established within the established virtual space / system, using spatial position, visual signals, auditory signals, tactile signals, olfactory signals, taste signals, mouthfeel signals, temperature signals, humidity signals, and human-machine interface signals to form multi-dimensional information coordinates, thereby displaying relevant information to the user.
[0090] Users can also interact with other users through the user interaction module, or perform at least one of the following operations on the displayed content, elements, relationships or their collections: marking, inserting, querying, extracting, comparing, translating, analyzing, copying, merging, backing off, converting, connecting, calculating, sorting, forwarding, deleting, ascending, designing, searching, replacing, counting, drilling down, deducing, adding, modifying, annotating, and converting.
[0091] The user interaction module can also display feedback information to the user through auditory perception signals and tactile perception signals.
[0092] An auditory perception signal refers to information represented by at least one of the characteristics of a sound, such as frequency, rhythm, melody, interval, direction, distance, size, pitch, duration, and timbre, allowing the user to perceive the information through the signal. For example, spatial orientation information can be conveyed to the user through sound. Since the transmission characteristics of a sound source transmitting sound waves to a specific direction can be expressed as a function data set, this function data set representing the sound wave transmission characteristics can be used to process the audio signal so that the audio signal reflects the transmission characteristics of the sound source transmitting sound waves to that direction. When this processed audio signal is converted into sound through a playback device, the sound exhibits the transmission characteristics of the sound source transmitting sound waves to that direction, allowing the user to perceive the virtual spatial orientation of the sound source. The specific orientation may include the direction, position, and pitch of the sound.
[0093] A tactile perception signal refers to information represented by the location of contact on the user's body, as well as at least one of the contact type, shape, contact area, motion, temperature, and pressure, so that the user can perceive the information through the signal. Different information can be represented by contacting different locations on the user's body. For example, different locations of the user's head, hands, fingers, palms, backs of hands, forearms, upper arms, chest, back, legs, feet, etc. can represent different orientation information or other various information. In addition to representing information by the location of contact on the user's body, a tactile perception signal can also represent information by at least one of the contact type, shape, contact area, motion, temperature, and pressure on the user's body. The motion of contacting the user's body can include: tapping, sliding, turning, clicking, pressing, etc.
[0094] The virtual testing system of this embodiment can also use a virtual space to display feedback information. For example, the design plan's goals, requirements, functions, structure, development environment, interface design, input, output, data indicators, configuration, etc. can be represented by different points, and their relationships / connections can be represented by lines. Marks / text / symbols can also be included to represent other information. Clicking and selecting can specifically display the virtual test logic corresponding to the information. Different colors can also be used to represent different information. For example, a high score in a certain dimension can be represented by green, while a low score can be represented by red. Users can choose the information to be displayed according to their own needs, such as only displaying the interface design without the specific structure. Users can also perform various operations, such as modification and addition. Modifications can be changes to content, such as text / images, or changes to relationships, such as removing the line between a requirement and an application scenario and replacing it with another application scenario. Operations can also be performed on the collection of content / elements / relationships in the virtual space. For example, directly deleting / moving a requirement will also delete / move the inputs / outputs under the requirement.
[0095] The virtual testing system of this embodiment can also present the design solution, application scenario, and virtual test logic in one or more presentation sequences, hierarchies, and dimensions, allowing the user to select the sequence, hierarchy, or dimension in which the feedback information is presented to the user. For example, in the virtual space displaying virtual test simulation results, the user can select different sequences, hierarchies, and dimensions to present the simulation results.
[0096] Of course, the above feedback information can be directly displayed in detail, or only a part can be displayed in detail, and the other part can be displayed as a title or label. When the user sends a signal of wanting to see through the user interaction module, it will be displayed in detail, reducing the complexity of the displayed content. The signal sent by the user through the user interaction module can be that the user looks at the title of the relevant content for a certain period of time, indicating that the user wants to see the content of the title. The user interaction module obtains the signal sent by the user based on eye tracking, and the virtual test system gives feedback information, that is, the content under the title. At the same time, the related content related to the content under the title through elements and mutual relationships can also be displayed. When displaying, different signals can be used to reflect different elements or mutual relationships. For example, different elements can be displayed through different sounds, images, colors, and brain waves.
[0097] The virtual testing system of this embodiment may also include a permissions management module for managing the access permissions of different users to prevent privacy leaks or disclosures. Different access permissions can be set for different users and / or different design solutions. Access permissions may include reading, copying, viewing, converting, analyzing, calculating, processing, comparing, editing, and storing content information. Access permissions can be set manually or through artificial intelligence analysis.
[0098] The virtual test system of this embodiment may also not include a database module. In this case, the virtual test database can be deployed on a network server or a cloud server, and the information acquisition module obtains the information in the virtual test database from the network server or the cloud server for use by the virtual test system. Alternatively, a virtual test database provided by other service providers may be used, and this embodiment does not impose any restrictions on this.
[0099] Example 2:
[0100] This embodiment provides a method for using the virtual test system according to Embodiment 1. As shown in FIG1 , the method includes:
[0101] S1: Establishing a virtual test database, the virtual test database including virtual test models and virtual test logic for different design solutions. The virtual test model is used to select virtual test logic suitable for a design solution based on the design solution. Elements of the virtual test model include at least one of: objectives, users, scenarios, interface system environment and interface conditions, data organization, processes, links, controls, interventions, evaluations, predictions, mutual influences, and interactions. The virtual test logic is used to perform virtual testing on the design solution.
[0102] S2: Obtain the design scheme to be tested and its application scenario;
[0103] S3: Selecting a virtual test logic suitable for the design scheme according to the design scheme to be tested and the virtual test model;
[0104] S4: Performing a virtual test on the design solution according to the selected virtual test logic to obtain a test result.
[0105] The method of using the virtual test system may further include:
[0106] Adjust and optimize the design scheme based on the virtual test results of the design scheme;
[0107] Obtain the corresponding standard code from the standard code library according to the design plan;
[0108] Verify that standard codes comply with design plans.
[0109] This embodiment provides a method for using a virtual test system, which includes: a database module, an information acquisition module, an analysis module, and a virtual test module. The method for using the virtual test system includes: establishing a virtual test database; obtaining a design scheme to be tested and its application scenario; selecting a virtual test logic suitable for the design scheme to be tested based on the design scheme to be tested and the virtual test model; and performing a virtual test on the design scheme to be tested based on the selected virtual test logic to obtain a test result. This embodiment applies virtual technology to the testing process. Before the software and system development is completed, the design scheme is virtually tested. The design scheme is virtual tested from multiple angles, multiple paths, multiple sequences, and multiple levels using the virtual test logic required by the design scheme and the application scenario. The design scheme is adjusted and optimized based on the test results. The corresponding standard code can also be obtained from the standard code library based on the determined design scheme, and the standard code can be verified to see whether it complies with the design scheme. This can speed up the testing process, improve testing efficiency, and reduce testing costs.
[0110] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0111] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only intended to help understand the method and core concept of the present invention. At the same time, those skilled in the art will find that the specific implementation methods and application scopes may vary based on the concept of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims
1. A virtual testing system, It is characterized in that The virtual test system includes: a database module, an information acquisition module, an analysis module and a virtual test module. The information acquisition module is used to obtain the design scheme to be tested and its application scenario; The database module is used to store a virtual test database, the virtual test database includes a virtual test model and virtual test logics of different design schemes, the virtual test model is used to select a virtual test logic suitable for the design scheme according to the design scheme, the elements of the virtual test model include: at least one of the following: target, user, scenario, interface system environment and interface condition, data organization, process, link, control, intervention, evaluation, prediction, mutual influence, and interaction, and the virtual test logic is used to perform virtual testing on the design scheme; The analysis module is used to select a virtual test logic suitable for the design scheme according to the design scheme to be tested and the virtual test model; The virtual test module is used to perform a virtual test on the design solution according to the selected virtual test logic to obtain a test result.
2. The virtual test system according to claim 1, Features: The virtual test logic of the design scheme includes the virtual test logic of the functional modules and the virtual test logic of the overall system. The virtual test logic of the functional modules is used to perform virtual testing on each functional module of the software, including: at least one virtual test logic of the core operations, query, classification, fuzzy matching, functional module interface style layout, correctness and integrity of data display, data list paging, deletion, removal, addition, configuration, and linkage process involved in each module; the virtual test logic of the overall system is used to perform virtual testing on the overall system of the software, including: at least one virtual test logic of the functional implementation of the entire software system, rationality / stability / scalability / reusability of the architecture, ease of use / aesthetics / consistency / friendliness of the user interface, applicability / security / performance optimization of the database, interface / input / output / independence of the module, complexity of the data structure and algorithm / time resource consumption / space resource consumption.
3. The virtual test system according to claim 1, Features: The virtual testing system analyzes the various elements of the design scheme and their relationships from the design scheme, and establishes connections of different dimensions of the elements based on the relationships, so as to display them according to the user's requirements. The elements of the design scheme include at least one of: links, nodes, data relationships, cause and effect, output, trigger, input, and output.
4. The virtual testing system according to claim 1, Features: The virtual testing module is also used to set at least one evaluation item among logic, computing power, presentation, authority, security, efficiency, load, capacity, and time under the virtual test of the virtual testing logic according to the design scheme to be tested, set corresponding levels / scores according to the results of different items, and calculate the comprehensive level / score of the design scheme to be tested in the virtual test according to the weight of each evaluation item in the virtual test, so as to give the test results.
5. The virtual test system according to claim 4, Features: The method for determining the test result includes: judging whether the comprehensive level / score is greater than a preset pass threshold to obtain a first judgment result; if the first judgment result is no, the test result is a test failure; if the first judgment result is yes, judging whether the level / score corresponding to each of the assessment items is higher than the single pass threshold corresponding to the assessment item to obtain a second judgment result; if the second judgment result is yes, the test result is a test pass; if the second judgment result is no, the test result is a test failure.
6. The virtual testing system according to claim 1, Features: The virtual test system is also used to determine problem points and problem scenarios that are prone to errors based on the test results, and to prompt system risk points and risk scenarios based on the type, level, impact and difficulty of solving the error.
7. The virtual testing system according to claim 1, Features: The virtual test system also includes an adjustment module, which is used to determine the reason why the design scheme to be tested fails the test according to the test results, and to adjust and optimize the design scheme to be tested in a targeted manner based on the reason.
8. The virtual testing system according to claim 1, Features: The virtual test system further includes a code acquisition module and a standard code library, wherein the standard code library includes standard codes suitable for different design schemes; the code acquisition module is used to directly acquire the corresponding standard code from the standard code library according to the first design scheme when the standard code library includes the standard code of the first design scheme, and to select the standard code most suitable for the first design scheme from the standard code library according to the first design scheme when the standard code library does not include the standard code of the first design scheme, and then modify the standard code most suitable for the first design scheme based on the difference between the first design scheme and the standard code most suitable for the first design scheme to obtain the standard code corresponding to the first design scheme; The virtual test system also includes a code verification module, which is used to verify whether the standard code complies with the design plan, specifically to determine whether the standard code complies with the design plan in terms of input, output, function, efficiency, and resource occupancy. If not, the user is prompted to adjust the standard code.
9. The virtual testing system according to claim 1, Features: The virtual test system further comprises a user interaction module, which is used to obtain signals sent by one or more users and present feedback information to the users.
10. A method for using the virtual test system according to claim 1, It is characterized in that The method comprises: Establishing a virtual test database, the virtual test database includes a virtual test model and virtual test logics of different design schemes, the virtual test model is used to select a virtual test logic suitable for the design scheme according to the design scheme, the elements of the virtual test model include: at least one of the following: target, user, scenario, interface system environment and interface condition, data organization, process, link, control, intervention, evaluation, prediction, mutual influence, and interaction, and the virtual test logic is used to perform virtual testing on the design scheme; Obtain the design solutions to be tested and their application scenarios; Selecting a virtual test logic suitable for the design scheme according to the design scheme to be tested and the virtual test model; The design scheme is virtually tested according to the selected virtual test logic to obtain a test result.
Citation Information
Patent Citations
Multiplexing-oriented embedded software testing method and system
CN102650966A
Keyword-driven airborne software automatic test method and system
CN106598848A
Automatic test system simulation verification method based on digital twinning
CN113688039A
Method and system for implementing automated test and retest procedures in a virtual test environment
US10678666B1
Method for virtual tests for an autonomous vehicle
US20190042679A1
Cited By
Virtual test-oriented mapping method from logic model to three-dimensional scene model
CN120893184A
