A test case platform management method, device and related medium
By obtaining and uploading the directory and editing data of the test case platform, online collaborative editing and maintenance of test cases is realized, which solves the problem of inability to perform online collaborative editing in the existing technology and improves work efficiency and data consistency.
Patent Information
- Application Number
- CN202311454735.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-11-03
AI Technical Summary
In the existing technology, test cases cannot be collaboratively edited and maintained online, resulting in challenges in collaboration, management, and sharing.
By obtaining the directory data on the test case platform and the user's editing instruction data, edit the use case, generate the use case editing data, and upload it to the cloud for real-time synchronization to achieve use case test management and report output.
It realizes online collaborative editing and maintenance of test cases, improves work efficiency and user experience, ensures real-time synchronization and consistency of data, and reduces the risk of data loss and conflicts.
Smart Images

Figure CN117472764B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of test platforms, and in particular to a test case platform management method, device and related media. Background Art
[0002] Currently, test engineers generally use mind maps (such as xmind) to write and manage test cases. However, this method has obvious disadvantages: first, the test case files need to be maintained locally, which leads to challenges in collaboration, management, and sharing; second, although online mind map editing tools exist, they cannot be seamlessly integrated with existing workflow systems. Therefore, there is an urgent need for a method that can collaboratively edit and maintain test cases online. Summary of the invention
[0003] The embodiments of the present invention provide a test case platform management method, device and related media, aiming to solve the problem in the prior art that test cases cannot be collaboratively edited and maintained online.
[0004] In a first aspect, an embodiment of the present invention provides a test case platform management method, comprising:
[0005] Respectively obtain the directory data on the test case platform and the user's editing instruction data;
[0006] Using the directory data and the editing instruction data respectively to edit the test case on the test case platform to obtain the test case editing data;
[0007] Reusing the use case editing data according to user instructions to obtain use case reuse data;
[0008] Upload the use case reuse data to the cloud for real-time synchronization to obtain the use case cloud data;
[0009] Perform test management on the use case cloud data, and output a test report based on the results of the test management.
[0010] In a second aspect, an embodiment of the present invention provides a test case platform management device, including:
[0011] A data acquisition unit, used to respectively acquire directory data on the test case platform and user editing instruction data;
[0012] A case editing unit, used to edit the case on the test case platform using the directory data and the editing instruction data to obtain the case editing data;
[0013] A use case reuse unit, used to reuse the use case editing data according to a user instruction to obtain use case reuse data;
[0014] A use case uploading unit, used to upload the use case reuse data to the cloud for real-time synchronization to obtain use case cloud data;
[0015] The use case output unit is used to perform use case test management on the use case cloud data and output a use case test report according to the result of the use case test management.
[0016] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the test case platform management method of the first aspect when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the test case platform management method of the first aspect is implemented.
[0018] An embodiment of the present invention provides a test case platform management method, including respectively obtaining directory data on the test case platform and user editing instruction data; respectively using the directory data and editing instruction data to edit the test case on the test case platform to obtain the use case editing data; reusing the use case editing data according to the user instruction to obtain the use case reuse data; uploading the use case reuse data to the cloud for real-time synchronization to obtain the use case cloud data; performing use case test management on the use case cloud data, and outputting a use case test report according to the result of the use case test management. The present invention reuses the use case editing data to obtain the use case reuse data, and uploads the use case reuse data to the cloud for real-time synchronization, thereby realizing online collaborative editing and maintenance of test cases.
[0019] The embodiment of the present invention also provides a test case platform management device, computer equipment and storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0021] Figure 1 A flow chart of a test case platform management method provided by an embodiment of the present invention;
[0022] Figure 2 A test case platform management method provided by an embodiment of the present invention is provided. Figure 1 ;
[0023] Figure 3 A test case platform management method provided by an embodiment of the present invention is provided. Figure 2 ;
[0024] Figure 4 A schematic block diagram of a test case platform management device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.
[0026] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0027] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0028] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0029] See below Figure 1 , Figure 1 A flow chart of a test case platform management method provided by an embodiment of the present invention specifically includes: steps S101 to S105.
[0030] S101, respectively obtaining directory data on the test case platform and user editing instruction data;
[0031] S102, respectively using the directory data and the editing instruction data to edit the test case on the test case platform to obtain the test case editing data;
[0032] S103, reusing the use case editing data according to a user instruction to obtain use case reuse data;
[0033] S104, uploading the use case reuse data to the cloud for real-time synchronization to obtain use case cloud data;
[0034] S105. Perform use case test management on the use case cloud data, and output a use case test report according to the result of the use case test management.
[0035] Combination Figure 2 As shown, in step S101, in the test case platform, the acquisition of directory data involves a multi-level structure. When the user defines the tree structure of the directory structure on the platform, the system will record the user's click, expand, close and other operations in the directory structure. These operations will be parsed into data requests, and the backend system will dynamically generate corresponding directory data according to the user's operation request and return it to the front-end interface. These data are usually returned in JSON format, including information such as directory name, directory ID, parent directory ID, whether there are subdirectories, etc. The front end can build a corresponding directory structure by parsing these data and display it to the user. When the user performs editing operations on the test case platform, such as adding new use cases, modifying use case content, deleting use cases, etc., these operations will trigger the front-end interface to generate corresponding editing instructions. These instructions are usually sent to the backend server in the form of data packets. The server-side program will parse these data packets and extract the type of editing instructions (add, modify, delete, etc.), the object of the operation (use case ID, directory ID, etc.) and the specific operation data. The server side performs corresponding operations according to the received instructions, such as updating the use case information in the database, modifying the directory structure, etc. At the same time, the server will feedback the results of the operation, such as editing success, editing failure and other information, and return it to the front-end interface to inform the user of the results of the operation.
[0036] In one embodiment, the step S101 includes:
[0037] Using the front-end asynchronous request of the test case platform, a request is sent to the back-end of the test case platform to obtain the directory data;
[0038] Utilizing the state management library of the back end of the test case platform to save the directory data;
[0039] Saving the user's editing instruction data into the state management library;
[0040] When the user editing instruction changes, the editing instruction data is pushed to the back end of the test case platform through a real-time communication protocol.
[0041] In this embodiment, at the front end of the test case platform, an asynchronous request technology (such as AJAX or Fetch API) is used to send a request to the back end to obtain the directory data. This request usually contains a specific API endpoint (Endpoint), and the back end will process this request, query the database to obtain the corresponding directory data, and return the data to the front end in JSON format. The state management library (such as Redux, Vuex, etc.) of the back end is used to save the obtained directory data. The directory data is stored in a tree structure, which is convenient for the access and rendering of the front-end components. The state management library can help the front-end components share data between different pages and can respond to user operations and page interactions. When the user performs an editing operation on the test case platform, the front end will save the user's editing instruction data (such as adding a case, deleting a case, modifying a case, etc.) to the state management library. These instruction data are organized in a specific format, including information such as instruction type, case ID, directory ID, etc. The state management library will update these data in real time to ensure that the front end always maintains the latest editing status. The front end establishes a persistent connection with the back end through a real-time communication protocol (such as WebSocket). When the user's editing instruction changes, the front end will use WebSocket to push the editing instruction data to the back end. After receiving the instruction, the backend will parse and execute the corresponding operation to ensure that the data in the backend database and the front-end status management library are synchronized.
[0042] Specifically, by using WebSocket real-time communication, editing instructions can be quickly and accurately synchronized to the back-end database, maintaining the consistency of front-end and back-end data and avoiding data inconsistency or loss. When editing test cases, users can see other users' operations in real time, enabling collaborative editing and improving user work efficiency and experience. Using the front-end state management library to save directory data reduces frequent requests to the back-end, increases page loading speed, and reduces server pressure. By establishing a persistent connection through WebSocket, communication can be maintained in the case of unstable network, improving the stability and reliability of the system. In the case of network disconnection, the front-end can continue to save the user's editing instruction data to the state management library, and synchronize the data to the back-end when the network is restored, supporting offline editing.
[0043] In step S102, the directory data obtained from the back end is presented on the interface of the test case platform using the front-end rendering engine. The user can browse the directory structure on the interface and select a specific directory or subdirectory to edit the use case. The tree structure of the directory data provides intuitive navigation, allowing the user to quickly locate the location that needs to be edited. When the user performs editing operations on the interface, such as adding, modifying, and deleting use cases, these operations will be converted into editing instruction data. The editing instruction data is saved in real time by the front end and sent to the back end when necessary to ensure that every step of the user's editing operation can be recorded. When the user completes the editing, the front end will integrate the user's editing operations with the corresponding directory structure data to form the use case editing data. This data includes information such as the content of the use case, the directory to which it belongs, and the editing time. The generation of the use case editing data depends on the processing and integration of the editing instruction data by the front end.
[0044] Furthermore, all editing instructions are recorded to form a detailed operation history. This operation history not only helps users trace editing operations, but also provides detailed data for project management, making it convenient for project leaders to monitor project progress. Since the editing instruction data is saved in real time, if a user edits a use case incorrectly, the administrator can accurately find the error location based on the instruction history, roll back or repair it, and prevent erroneous data from entering the system. The present invention also introduces automated editing suggestions based on the user's editing history and current editing context; through machine learning algorithms, the system can provide users with possible editing suggestions to help users edit use cases more efficiently. It is also possible to implement intelligent content formatting and verification when users edit use case content. For example, automatically complete use case templates, check the legality of use case content, etc., to improve the standardization and accuracy of use cases. It is also possible to implement a version control system for use case data to record each edited version. This can not only help users trace back historical versions, but also restore the system to a specific version when necessary to deal with emergencies.
[0045] In one embodiment, the step S102 includes:
[0046] When the backend of the test case platform receives the editing instruction data and the directory data, the test case editing operation is performed in the cloud to obtain the editing standby data; wherein the test case editing operation includes adding, modifying and deleting;
[0047] The edited standby data is updated in the cloud to obtain the use case edited data;
[0048] The use case editing data is pushed to the front end of the test case platform using a real-time communication protocol.
[0049] Furthermore, when a user edits a test case, the user's test case editing data is pushed to other users using the front end of the test case platform;
[0050] The message events of the real-time communication protocol are monitored by the front end of the test case platform, and the use case editing data of other users is pushed to the front end of the test case platform.
[0051] In this embodiment, when the back end of the test case platform receives the user's editing instruction data and directory data, these editing instructions include basic functions such as adding, modifying, undoing and restoring, adjusting node positions, selecting and deleting, as well as additional functions such as adding notes, adding links, adding pictures, marking priorities, adding tags, and subsequently upgraded annotation information. The back end performs the use case editing operation in the cloud according to these instructions and generates editing standby data. These standby data include information such as the content, directory structure, and editing time of the use case, which is a real-time response to the user's editing operation. The back end updates the editing standby data to the cloud database. This process ensures that the user's editing operation is saved and can be restored at any time. The use case editing data in the database contains all the content edited by the user and provides a comprehensive record of the use case. Using the real-time communication protocol, the edited use case data is pushed to the front end of the test case platform. This real-time push ensures that all collaborators can immediately see the latest use case editing results, realizing real-time collaborative editing.
[0052] Furthermore, when a user edits a use case, the edited data will be pushed to other online users by the front end, which ensures that when multiple people edit the use case at the same time, everyone can see the operations of others and achieve collaborative work. The front end of the test case platform will continue to listen to the message events of the real-time communication protocol. When the edited data of other users is pushed to the front end, the front end can respond in real time and present the edited operations of other users on the interface. This ensures that the editing status of all online users remains synchronized. No matter where the user is, he can see the editing results of other collaborators in real time, which improves the efficiency of multi-person collaborative editing and avoids conflicts and confusion. The generation of editing backup data and the update of the cloud database provide a reliable backup for the use case and avoid the risk of data loss. At the same time, users can restore to any historical editing state at any time. The front end listens to the real-time communication protocol, which can instantly discover the operations of other users and provide users with real-time monitoring and notification functions, which is very useful for situations that require rapid response to teamwork.
[0053] In addition, the present invention can also implement smarter conflict resolution strategies, such as automatically merging similar operations, manually selecting merge conflicts, etc., to adapt to more complex editing scenarios. Use machine learning technology to analyze the user's editing operations to predict and recommend possible next edits, and provide smarter editing suggestions. Implement offline editing functions, so that users can still edit use cases when they are out of network. Once the network is reconnected, the edited data will be synchronized with the cloud. Track the user's editing behavior, analyze the user's editing habits and preferences, and provide a more personalized collaboration experience for the team.
[0054] For the offline editing function, the front-end application detects the user's network connection status when it starts. If the network connection is normal, the application runs normally and connects to the cloud database; if the network connection is abnormal, the application enters the offline editing mode. When the application enters the offline editing mode, the front-end application loads the saved use case data from the local storage. This data usually exists in the form of a local database or local cache to ensure that the user can access the previously saved use case information when offline. The user can add, modify, and delete use cases in the offline editing mode. These operations will be performed in the local database to ensure that the user's editing operations are saved in real time on the local device. When the user reconnects to the Internet, the front-end application will detect the restoration of the network connection. At this time, the application will trigger the synchronization mechanism to synchronize the edited data in the local storage with the cloud database. The front-end application will synchronize the addition, modification, and deletion operations in the local storage to the cloud database. This synchronization process usually uses a network request to send the local edited data to the back-end server, and then the back-end server updates this data to the cloud database. After receiving the edited data sent by the front-end application, the cloud database will add, modify, and delete the corresponding use cases. In this way, the data in the cloud database is consistent with the changes made by the user during local offline editing. After receiving the confirmation message from the cloud database, the front-end application changes the user's editing status from "Synchronizing" to "Synchronized". The user can continue to edit online, and the previous offline editing operations have been successfully synchronized to the cloud database. Through this offline editing mode, users can edit use cases without a network connection, ensuring the continuity of work. Once the network connection is restored, the user's editing data will be automatically synchronized to the cloud, ensuring the integrity and consistency of the data. This mechanism not only improves the user experience, but also ensures that the user's editing work will not be affected by network problems.
[0055] For tracking user editing behaviors, the front-end application will record various user editing behaviors, including but not limited to adding use cases, modifying use cases, deleting use cases, undoing operations, redoing operations, etc. These editing behaviors will be converted into data and stored in the back-end. The front-end application transmits the collected user editing behavior data to the back-end server through a real-time communication protocol. The back-end server stores these data in the database for further analysis. The back-end server will analyze the collected user editing behavior data. The analysis may include but is not limited to the following aspects: analyzing the user's daily, weekly or monthly editing frequency to understand the user's activity; analyzing the functions that users often use, such as undo, redo, shortcut keys, etc., and the length of time users use different functions; analyzing the use case structure of the user in the mind map, such as what level of directory structure the user prefers to create, at which level the user prefers to create use cases, etc.; analyzing the average time spent on different operations to find out the operations that users may encounter difficulties in order to improve the user experience; analyzing the user's path in the editing process, such as how the user jumps from one use case to another. Analyzing these paths can reveal the user's thinking process. By analyzing the obtained data, a user's editing preference and habit model is established. This model can include information such as the user's favorite functions, shortcut keys used, and editing time periods. Based on the user's editing preferences and habit model, the front-end application can provide personalized recommendations and suggestions. For example, it can recommend use case templates that the user may be interested in, recommend shortcut key settings that suit the user's editing habits, or provide specific function prompts during the time period when the user often edits. Users can provide feedback through the interface to let the system know whether their editing habits and needs have been accurately captured; based on user feedback, the system can make corresponding adjustments.
[0056] In one embodiment, the step S102 further includes:
[0057] Utilize the backend of the test case platform to parse the imported use case file and convert the use case file into use case data;
[0058] Converting the node information and the level information in the test case data into the test case data structure information of the test case platform;
[0059] Storing the test case data structure information in a database of the test case platform;
[0060] The test case data structure information in the database of the test case platform is edited to obtain the test case editing data.
[0061] In this embodiment, the back end of the test case platform is responsible for parsing the imported use case file, which can be a file of various formats, such as XMind, Excel, etc. The back end will analyze the file structure and extract node information, hierarchical relationships and other metadata. The parsed node information and hierarchical information are converted into a standard data structure inside the test case platform, including the title, description, preconditions, steps, expected results and other information of the use case. At the same time, the hierarchical relationship of the nodes is mapped to the organizational structure of the test case, ensuring the correct presentation of the use case on the platform. The converted test case data structure information is stored in the database of the test case platform. This step ensures that the imported use case can be preserved for a long time, which is convenient for subsequent editing, reuse and management. Users can edit the imported use cases on the test case platform, including operations such as modifying the use case content, adding new use cases, and deleting use cases. Each edit will generate use case editing data to record the user's operation. These data include information such as the identification of the edited use case, the content of the edit, and the editing time.
[0062] Specifically, by parsing use case files of different formats, the test case platform provides diversity, allowing users to easily import use cases from various sources and avoid format compatibility issues. The parsed use case data is converted into a unified data structure and stored in the database, ensuring that the data format of all use cases is consistent and simplifying the complexity of management and query. The record of use case editing data enables each user's editing operation to be tracked and form a historical version. In this way, users can trace back to the previous editing status at any time, which improves the flexibility of use case management. Multi-person teams can collaborate in editing in the same use case library. By recording the use case editing data, duplicate editing and conflict issues are avoided, and the team's collaboration efficiency is enhanced.
[0063] In addition, the present invention can use natural language processing (NLP) and machine learning technology, and the system can automatically identify key information in the use case file, reduce manual intervention, improve the automation and accuracy of use case management, and provide a more intelligent collaboration experience for the team. The specific steps are as follows:
[0064] Text data collection and cleaning: Extract raw text data from use case files and perform text cleaning, including removing HTML tags and special characters, and performing stemming and punctuation processing;
[0065] Text Embedding: Convert the cleaned text into vector representation and use pre-trained word embedding models (such as Word2Vec and BERT) to map words into high-dimensional vector space, preserving lexical semantic information.
[0066] Named Entity Recognition (NER): Use named entity recognizers in NLP technology, such as BERT-NER or CRF (conditional random field), to extract entity information from text, such as product names, functional modules, action keywords, etc.
[0067] Information Extraction: Use pattern matching, dependency syntax analysis and other techniques to extract key information from the text, such as preconditions, steps, expected results, etc., to form structured data;
[0068] Entity Linking: Link the extracted named entities to the knowledge graph or external database to enrich the entity information;
[0069] Supervised learning model training: Using labeled use case data, supervised learning algorithms (such as deep learning neural networks, support vector machines, etc.) are used for model training to map text information to a predefined label space for automatic classification of key information.
[0070] Model optimization and evaluation: Optimize the trained model, including hyperparameter tuning, regularization, etc., and use cross-validation and other methods to evaluate performance to ensure the accuracy and generalization ability of the model;
[0071] Deployment and integration: Deploy the trained model to the online system and integrate it with the test case management system through the API interface;
[0072] Real-time prediction and post-processing: When a new use case file is uploaded, the system calls the model through the API to perform real-time prediction, obtain key information, and perform post-processing to ensure the consistency and accuracy of the information.
[0073] Combination Figure 3 As shown, in one embodiment, the use case editing data includes undo and redo instructions, expand use case instructions, specify level directory instructions, insert node instructions, adjust node instructions and shortcut function instructions.
[0074] In this embodiment, the undo command is used to cancel the previous operation and restore to the previous state. The redo command is used to restore the undone operation and return to the previous state. These two commands allow the user to flexibly adjust the operation history during the editing process, which improves the security and fault tolerance of editing. The expand use case command allows the user to expand one or more use cases and display their detailed content. This is very useful for complex structures in large use case libraries, allowing users to focus on specific use cases, improving the readability and editing efficiency of use cases. Users can move use cases or nodes to specific hierarchical directories by specifying hierarchical directory commands. This operation can help users reorganize the structure of the use case library to make it more hierarchical and improve the organization and manageability of use cases. The insert node command allows users to insert a new node at a specific location, which can be a new use case or directory. The insert node command allows users to dynamically expand the content of the use case library, providing space for new ideas or new needs. Users can adjust the position of the node by adjusting the node command, including moving up, down, left and right, etc. This adjustment allows users to more finely control the organizational structure of the use case to conform to specific logic or processes. The present invention also provides shortcut function commands (such as Figure 3 ), such as a series of shortcut keys or mouse operations, such as copy, paste, delete, add notes, add links, etc. These shortcut function commands greatly improve the user's editing efficiency and reduce the learning cost, allowing users to focus more on the content of the use case rather than the details of the operation.
[0075] Specifically, users can undo and redo operations at any time as needed, making the editing process of use cases safer and more reliable. The Expand Use Case command allows users to focus on the details of a specific use case, improving the readability and comprehensibility of the use case. The Specify Hierarchy Directory and Insert Node commands allow users to reorganize the structure of the use case library to make it clearer and more hierarchical. The Adjust Node command allows users to fine-tune the position of the use case to ensure that the organizational structure of the use case meets specific logical requirements. The Quick Function Command provides a variety of quick operation methods, and users do not need to frequently switch toolbars or menus, greatly improving editing efficiency.
[0076] Furthermore, based on the user's operation history and use case content, the system can also intelligently recommend operations such as undo, redo, and adjust to provide a smarter operation experience. Allow users to customize shortcut keys to meet the habits and needs of different users and improve the user's personalized experience. When multiple users are editing at the same time, the system can intelligently merge operations to avoid conflicts and ensure data consistency.
[0077] In step S103, the reuse of use case editing data refers to the reuse of existing use case editing data in an intelligent manner according to the user's specific instructions, rather than rewriting the use case from scratch. This process involves in-depth analysis of the structure, content and relevance in the existing use case library, and intelligent matching and adjustment based on the user's instructions. Using advanced search algorithms and data mining techniques, the use cases related to the requirements in the existing use case library are quickly retrieved according to the user's instructions, which includes identifying the use case title, keywords, tags, associated modules and other information to ensure that the matched use cases are highly relevant to the user's requirements. During the reuse process, the system will intelligently adjust the structure of the use case, including hierarchical relationships, sequences, and associations, etc., to ensure that the reused use case can seamlessly fit the new requirements while retaining the original logic and coherence of the use case. During the reuse process, the system can reuse multiple use case editing data (i.e., use case file data) at the same time, and the system will intelligently extract the content related to the new requirements in the existing use case, including text, charts, attachments, etc. Finally, a copy of the test case (i.e., use case reuse data, the same below) can be obtained. This process requires advanced natural language processing (NLP) technology to ensure that the extracted content meets the user's expectations and needs. The system will also intelligently establish the relationship between the new use case and the existing use case, including logical relationships, dependencies, reference relationships, etc., to ensure that the new use case can have a good structure and association in the entire use case library.
[0078] Furthermore, through intelligent matching and intelligent structural adjustment, the use case reuse process becomes efficient and fast. The test team can quickly find relevant use cases without having to write them from scratch, which greatly improves the efficiency of test case writing. Due to the intelligence of reused data, the test team does not need to invest a lot of time and manpower to write new use cases, which reduces the manpower cost of test case writing and improves the economic benefits of the test project. The intelligent processing of reused data ensures the quality of the use cases. The reused use cases are strictly matched and adjusted, follow the best practices of test case writing, and improve the quality and reliability of the use cases. In order to further improve the accuracy of reuse, machine learning algorithms and artificial intelligence technologies can be used to intelligently select the most relevant use cases for reuse based on the user's historical choices and preferences. Considering the user's operating context, combined with the user's current test tasks and needs, intelligently select use cases that meet the current context for reuse to provide more personalized services.
[0079] In one embodiment, the step S103 includes:
[0080] Parse the user instruction and confirm the reused source use case information data;
[0081] Creating a source use case node according to the source use case information data, and processing additional information of the source use case node to obtain use case reuse data;
[0082] The use case reuse data is returned to the front end of the test case platform.
[0083] In this embodiment, first, the user instructions will be parsed by an advanced natural language processing (NLP) algorithm. This parsing is not just a simple text segmentation, but a semantic analysis based on deep learning, which can understand the user's instruction intention. Through the intelligent parsing of user instructions, the system can accurately capture user needs. After parsing, the system confirms the source use case information data that meets the conditions in the existing use case library according to the conditions and requirements provided in the user instructions. This step involves complex data retrieval and matching algorithms to ensure that the selected use case fully meets user needs. The confirmed source use case information data will be converted into a source use case node, which contains information such as the title, steps, and expected results of the use case. The creation process of this node is not just a simple data copy, but also includes the reconstruction of the use case structure and the adjustment of logic to adapt to new test requirements. In addition to basic information, the source use case node also contains additional information, such as hyperlinks, notes, tags, etc. During the processing, the system will intelligently parse this additional information and determine which information needs to be retained and which information needs to be adjusted or cleared according to the context of the new requirements. After completing the processing of the source use case node, the system obtains the use case reuse data. This is a highly customized and intelligent data structure that contains use case information that fully matches user needs, while also retaining relevant information about the source use case to maintain the consistency and relevance of the overall use case library. Ultimately, the generated use case reuse data will be returned to the front end of the test case platform. The front end can display, edit, or perform other operations based on this data to meet user needs.
[0084] Specifically, by using advanced natural language processing and data mining technologies, user instructions can be accurately parsed and source use case information can be accurately confirmed, ensuring the high intelligence of reused data. In the process of processing source use case nodes, the system intelligently processes additional information to ensure the consistency of the structure and relevance of use case reuse data with the source use case, thereby improving the overall quality of the use case library. It is also possible to consider the processing of multiple data types (text, images, sounds, etc.), so that the system can handle more diverse user needs and provide more comprehensive use case reuse services. Based on the user's historical behavior and preferences, an intelligent recommendation algorithm is developed to provide users with higher-quality use case reuse suggestions and improve user experience.
[0085] In step S104, after the system generates the use case reuse data, the use case reuse data will be encrypted and compressed to ensure the security of the data, and then uploaded to the cloud server in real time through a secure network channel. After the cloud server receives the use case reuse data, it will perform real-time data synchronization operations. Whenever the user performs a use case reuse operation, the data on the cloud will be updated in time, ensuring that the data obtained by the user on different terminals is always consistent. In the process of achieving real-time synchronization, the system will control the data version. Each time new use case reuse data is uploaded, the system will record the version number of the data and compare it with the existing data on the cloud. If there is a conflict, the system will automatically handle the conflict according to the preset resolution strategy, such as merging, overwriting, etc., to ensure the integrity of the data. During the upload and synchronization process, the system will use data verification algorithms, such as hash verification, to ensure the integrity of the data. If an error or loss occurs in the data during transmission, the system can detect it in time and retransmit or repair the data to ensure the accuracy and integrity of the data.
[0086] Furthermore, through real-time synchronization, users can access the latest use case reuse data anytime and anywhere, which improves the flexibility and response speed of work. Real-time synchronization ensures the consistency of use case data between different users and different terminals, avoids data conflicts and confusion, and provides a stable foundation for collaborative work. Measures such as data encryption and compression before uploading and security verification during transmission ensure the security of data transmission and prevent the risks of information leakage and malicious tampering of data. Through version control and conflict resolution strategies, the system can clearly present the operation changes and conflict handling methods during the synchronization process to the user, improving the transparency of the system and user experience. The present invention can also use distributed computing technology to achieve more efficient data synchronization and processing, and improve the performance and fault tolerance of the system. Blockchain technology can also be introduced to achieve decentralized storage and non-tamperability of data, further improving the security and credibility of data.
[0087] In step S105, the cloud use case data will be introduced into an efficient test management system. The test management system has a test case execution scheduling function, which can schedule the execution of test cases on demand to ensure comprehensive coverage of different test scenarios (such as including demand-related products, research and development, test personnel information and test time span and test status, etc.), and the execution status, execution time, execution results and other information of the test cases will be recorded in the management system. The cloud test management system has powerful data analysis and mining functions, which can conduct in-depth analysis of the execution results of the test cases to find out potential problems and bottlenecks. Through data mining technology, the system can automatically identify the error types with higher frequency and provide the team with accurate improvement directions. Based on big data analysis and artificial intelligence technology, the system can generate intelligent decision support reports. That is, the use case cloud data is tested and managed, the test results of each use case are marked in real time, and the use case test report is output after the test is completed according to the test results and the displayed execution data. These reports will provide intelligent suggestions on test case quality, test progress, risk assessment, etc., to help the test team make wise decisions. During the testing process, if a problem is found, the system can automatically track the defect, automatically associate the problem with the corresponding test case, and perform automatic verification after the problem is solved to ensure that the problem is effectively resolved.
[0088] Specifically, through big data analysis, the test management system can provide strong support for decision-making, make decisions more objective and scientific, and reduce the risk of decision-making. The present invention can improve the efficiency of test case execution through automated scheduling and intelligent analysis, while ensuring the coverage and depth of test cases and product quality. By continuously analyzing test data, the team can understand the problems and bottlenecks in the system, provide directions for continuous improvement, and promote continuous iteration and optimization of products. The cloud-based test management system can also provide real-time test progress and quality reports, so that the team can respond to problems quickly, make adjustments and optimizations in a timely manner, and ensure the smooth progress of the project.
[0089] Combination Figure 4 As shown, Figure 4 A schematic block diagram of a test case platform management device provided by an embodiment of the present invention, a test case platform management device 400, including:
[0090] The data acquisition unit 401 is used to respectively acquire the directory data on the test case platform and the user's editing instruction data;
[0091] A case editing unit 402, used to edit the case on the test case platform using the directory data and the editing instruction data to obtain case editing data;
[0092] A use case reuse unit 403, configured to reuse the use case edit data according to a user instruction to obtain use case reuse data;
[0093] A use case uploading unit 404 is used to upload the use case reuse data to the cloud for real-time synchronization to obtain use case cloud data;
[0094] The use case output unit 405 is used to perform use case test management on the use case cloud data and output a use case test report according to the result of the use case test management.
[0095] In this embodiment, the data acquisition unit 401 respectively acquires the directory data on the test case platform and the user's editing instruction data; the use case editing unit 402 respectively uses the directory data and the editing instruction data to edit the use case on the test case platform to obtain the use case editing data; the use case reuse unit 403 reuses the use case editing data according to the user instruction to obtain the use case reuse data; the use case upload unit 404 uploads the use case reuse data to the cloud for real-time synchronization to obtain the use case cloud data; the use case output unit 405 performs use case test management on the use case cloud data, and outputs the use case test report according to the result of the use case test management.
[0096] In one embodiment, the data acquisition unit 401 includes:
[0097] A request unit, used to send a request to the back end of the test case platform to obtain the directory data by using the front end asynchronous request of the test case platform;
[0098] A saving unit, used to save the directory data by using the state management library of the back end of the test case platform;
[0099] A state unit, used to save the user's editing instruction data into the state management library;
[0100] The push unit is used to push the editing instruction data to the back end of the test case platform through a real-time communication protocol when the user editing instruction changes.
[0101] In one embodiment, the use case editing unit 402 includes:
[0102] An editing unit, configured to perform a test case editing operation in the cloud to obtain editing standby data after the back end of the test case platform receives the editing instruction data and the directory data; wherein the test case editing operation includes adding, modifying and deleting;
[0103] An updating unit, used for updating the edited standby data in a database in the cloud to obtain the use case edited data;
[0104] The communication unit is used to push the use case editing data to the front end of the test case platform using a real-time communication protocol.
[0105] Furthermore, the communication unit includes:
[0106] A synchronization unit, used to push the user's use case editing data to other users by using the front end of the test case platform when a user edits a use case;
[0107] The monitoring unit is used to monitor the message events of the real-time communication protocol through the front end of the test case platform, and push the use case editing data of other users to the front end of the test case platform.
[0108] In one embodiment, the use case editing unit 402 further includes:
[0109] An importing unit, used to parse the imported use case file using the back end of the test case platform, and convert the use case file into use case data;
[0110] A conversion unit, used to convert the node information and the level information in the test case data into the test case data structure information of the test case platform;
[0111] A storage unit, used to store the test case data structure information in a database of the test case platform;
[0112] The use case unit is used to edit the test case data structure information in the database of the test case platform to obtain the use case editing data.
[0113] In one embodiment, the use case editing data includes undo and redo instructions, expand use case instructions, specify level directory instructions, insert node instructions, adjust node instructions and shortcut function instructions.
[0114] In one embodiment, the use case multiplexing unit 403 includes:
[0115] A parsing unit, used to parse the user instruction and confirm the reused source use case information data;
[0116] A reuse unit, used to create a source use case node according to the source use case information data, and process additional information of the source use case node to obtain use case reuse data;
[0117] The use case reuse data is returned to the front end of the test case platform.
[0118] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0119] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0120] The embodiment of the present invention also provides a computer device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the computer device may also include various network interfaces, power supplies and other components.
[0121] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
[0122] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A test case platform management method, It is characterized in that include: Respectively obtain the directory data on the test case platform and the user's editing instruction data; Using the directory data and the editing instruction data respectively to edit the test case on the test case platform to obtain the test case editing data; Reusing the use case editing data according to user instructions to obtain use case reuse data; Upload the use case reuse data to the cloud for real-time synchronization to obtain the use case cloud data; Performing use case test management on the use case cloud data, and outputting a use case test report based on the results of the use case test management; The method of respectively using the directory data and the editing instruction data to edit the test case on the test case platform to obtain the test case editing data includes: When the backend of the test case platform receives the editing instruction data and the directory data, the test case editing operation is performed in the cloud to obtain the editing standby data; wherein the test case editing operation includes adding, modifying and deleting; The edited standby data is updated in the cloud to obtain the use case edited data; Pushing the use case editing data to the front end of the test case platform using a real-time communication protocol; When the front end of the test case platform is started, the network connection status of the user is detected. If the network connection is normal, the front end of the test case platform is kept running normally and connected to the cloud; if the network connection is abnormal, the front end of the test case platform is put into offline editing mode; when the front end of the test case platform enters offline editing mode, the front end of the test case platform is used to load the saved case editing data from the local storage; when the network connection returns to normal, the synchronization mechanism is triggered to synchronize the saved case editing data in the local storage with the cloud; The method of pushing the use case editing data to the front end of the test case platform by using a real-time communication protocol includes: When a user edits a test case, the user's test case editing data is pushed to other users using the front end of the test case platform; By monitoring the message events of the real-time communication protocol through the front end of the test case platform, the use case editing data of other users is pushed to the front end of the test case platform; The method of pushing the use case editing data to the front end of the test case platform using a real-time communication protocol also includes: When a user edits a test case, the user's editing behavior is recorded, and the user's editing behavior is transmitted to the back end of the test case platform through the real-time communication protocol, and the user's editing behavior is analyzed by the back end of the test case platform; the user's editing preference and habit model is established by using the analyzed data, and personalized recommendations and suggestions are provided based on the user's editing preference and habit model; The method of editing the test case on the test case platform using the directory data and the editing instruction data to obtain the test case editing data also includes: Utilize the backend of the test case platform to parse the imported use case file and convert the use case file into use case data; Converting the node information and the level information in the test case data into the test case data structure information of the test case platform; Storing the test case data structure information in a database of the test case platform; Performing case editing on the test case data structure information in the database of the test case platform to obtain the case editing data; The method of using the back end of the test case platform to parse the imported use case file and convert the use case file into use case data includes: Extracting the original text from the use case file and cleaning the original text; wherein the original text cleaning includes removing HTML tags and special characters, and performing stemming and punctuation processing; using a pre-trained word embedding model to map the words in the cleaned original text to a high-dimensional vector space while retaining lexical semantics; using a named entity recognizer in NLP technology to extract entity information from the cleaned original text to obtain the use case data.
2. The test case platform management method according to claim 1, It is characterized in that The step of respectively acquiring the directory data on the test case platform and the user's editing instruction data includes: Using the front-end asynchronous request of the test case platform, a request is sent to the back-end of the test case platform to obtain the directory data; Utilizing the state management library of the back end of the test case platform to save the directory data; Saving the user's editing instruction data into the state management library; When the user editing instruction changes, the editing instruction data is pushed to the back end of the test case platform through a real-time communication protocol.
3. The test case platform management method according to claim 1, It is characterized in that The use case editing data includes undo and redo instructions, expand use case instructions, specify level directory instructions, insert node instructions, adjust node instructions and shortcut function instructions.
4. The test case platform management method according to claim 1, It is characterized in that The reusing of the use case editing data according to the user instruction to obtain the use case reuse data includes: Parse the user instruction and confirm the reused source use case information data; Creating a source use case node according to the source use case information data, and processing additional information of the source use case node to obtain use case reuse data; The use case reuse data is returned to the front end of the test case platform.
5. A test case platform management device, It is characterized in that include: A data acquisition unit, used to respectively acquire directory data on the test case platform and user editing instruction data; A case editing unit, used to edit the case on the test case platform using the directory data and the editing instruction data to obtain the case editing data; The use case editing unit includes: An editing unit, configured to perform a test case editing operation in the cloud to obtain editing standby data after the back end of the test case platform receives the editing instruction data and the directory data; wherein the test case editing operation includes adding, modifying and deleting; An updating unit, used for updating the edited standby data in a database in the cloud to obtain the use case edited data; A communication unit, used to push the use case editing data to the front end of the test case platform using a real-time communication protocol; An offline unit is used to detect the user's network connection status when the front end of the test case platform is started. If the network connection is normal, the front end of the test case platform is kept running normally and connected to the cloud; if the network connection is abnormal, the front end of the test case platform enters an offline editing mode; when the front end of the test case platform enters the offline editing mode, the front end of the test case platform is used to load the saved case editing data from the local storage; when the network connection returns to normal, the synchronization mechanism is triggered to synchronize the saved case editing data in the local storage with the cloud; The communication unit comprises: A synchronization unit, used to push the user's use case editing data to other users by using the front end of the test case platform when a user edits a use case; A monitoring unit, used to monitor the message events of the real-time communication protocol through the front end of the test case platform, and push the use case editing data of other users to the front end of the test case platform; The communication unit further includes: A tracking unit, used for recording the user's editing behavior when a user edits a test case, transmitting the user's editing behavior to the back end of the test case platform through the real-time communication protocol, and analyzing the user's editing behavior using the back end of the test case platform; using the analyzed data to establish a user's editing preference and habit model, and providing personalized recommendations and suggestions based on the user's editing preference and habit model; The use case editing unit further includes: An importing unit, used to parse the imported use case file using the back end of the test case platform, and convert the use case file into use case data; A conversion unit, used to convert the node information and the level information in the test case data into the test case data structure information of the test case platform; A storage unit, used to store the test case data structure information in a database of the test case platform; A use case unit, used to edit the test case data structure information in the database of the test case platform to obtain the use case editing data; The introduction unit comprises: An entity unit is used to extract the original text from the use case file and clean the original text; wherein the original text cleaning includes removing HTML tags and special characters, and performing stemming and punctuation processing; using a pre-trained word embedding model to map the words in the cleaned original text to a high-dimensional vector space while retaining the lexical semantics; using a named entity recognizer in NLP technology to extract entity information from the cleaned original text to obtain the use case data; A use case reuse unit, used to reuse the use case editing data according to a user instruction to obtain use case reuse data; A use case uploading unit, used to upload the use case reuse data to the cloud for real-time synchronization to obtain use case cloud data; The use case output unit is used to perform use case test management on the use case cloud data and output a use case test report according to the result of the use case test management.
6. A computer device, It is characterized in that It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the test case platform management method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the test case platform management method according to any one of claims 1 to 4 is implemented.
