A Software Adaptation Detection Method, Device, Equipment and Medium
By generating a simulated operating environment in software adaptation detection and testing based on the object detection workflow, the problem of difficulty and incomplete software adaptation detection is solved, and more efficient adaptation detection and more comprehensive adaptation evaluation are achieved.
Patent Information
- Application Number
- CN202411412039.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2044-10-10
AI Technical Summary
There are problems such as difficulty in testing and incomplete testing during the software adaptation detection process, especially business software developers find it difficult to have the knowledge of underlying calls of the operating system, resulting in inefficient adaptability detection.
By generating a simulated operation environment corresponding to the operating system that the software to be tested is expected to be adapted to, and in this environment, the software to be tested is subject to adaptability detection and generation of adaptation reports based on the execution conditions and detection matters of each detection stage in the object detection workflow.
It effectively improves the comprehensiveness of adaptive detection, lowers the detection threshold, improves the adaptive detection efficiency of developers, and ensures the overall adaptation of the software to be tested and the operating system.
Smart Images

Figure CN119292958B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software detection, and particularly to a software adaptation detection method, device, equipment and medium. Background Art
[0002] The operation of application software depends on the operating system. When a new operating system platform is released or an application software is released, it is often necessary to adapt to multiple mainstream software or system platforms in order to gain a broader user market for its own products.
[0003] For the release of software, generally, an adaptation platform provided by the system manufacturer, which may be a community or an independent platform service, is used for adaptation certification. So that when the software of the software manufacturer is released, the manufacturer can assure users that the software and the system have been verified to run stably.
[0004] In the process of software adaptation detection, generally, the system manufacturer provides a solution + cloud server resources. After the software manufacturer and the system manufacturer reach an adaptation intention, system resources are allocated to the software manufacturer, and the software manufacturer runs and debugs its own software in the system environment, and verifies and modifies the business it is concerned about. After meeting the conditions, a test report is submitted. Then an adaptation mutual recognition certificate can be issued.
[0005] For business software development manufacturers, the personnel developing software business are difficult to have knowledge about the underlying calls of software operation. And the operating system manufacturer faces many software development manufacturers with various product types. Even through the form of community mutual assistance, it is difficult to provide support for all software to achieve compatible adaptation. For various reasons, there are problems such as great detection difficulty and incomplete detection in the process of software adaptation detection. Summary of the Invention
[0006] In view of this, the present invention provides a software adaptation detection method, device, equipment and medium to solve the problems of great detection difficulty and incomplete detection in the process of software adaptation detection.
[0007] In a first aspect, the present invention provides a software adaptation detection method, and the method includes:
[0008] Obtain the software to be tested and the target detection workflow that the user expects to perform adaptation detection on, where the target detection workflow includes: execution conditions and detection items corresponding to multiple detection stages;
[0009] Call a preset component to generate a simulated operation environment, where the simulated operation environment is the operation environment corresponding to the operating system that the software to be tested expects to adapt to;
[0010] Based on the simulated operating environment, perform compatibility testing on the software to be tested according to the execution conditions and testing items corresponding to each detection stage in the target detection workflow, and generate a compatibility report for the software to be tested.
[0011] In this method, by generating a simulated operating environment corresponding to the operating system that the software to be tested is expected to be compatible with, and under this environment, performing various item detections on the software to be tested based on the execution conditions and testing items corresponding to each detection stage in the target detection workflow, the overall compatibility between the software to be tested and the operating system can be obtained, which can effectively improve the comprehensiveness of compatibility testing, and can effectively reduce the threshold of compatibility testing and improve the compatibility testing efficiency of developers.
[0012] In an alternative embodiment, the obtaining method of the target detection workflow is as follows:
[0013] Obtain the workflow selection instruction of the user;
[0014] Based on the workflow selection instruction, determine the first detection workflow in the detection workflow library. The detection workflow library includes: detection workflows under the general type and detection workflows under the specific type;
[0015] If the first detection workflow is a detection workflow under the specific type, obtain the configuration information of the specific detection items input by the user;
[0016] Update the first detection workflow based on the configuration information of the specific detection items to obtain the target detection workflow. The multiple detection stages in the target detection workflow under the specific type include: multiple general detection stages and at least one specific detection stage, and the specific detection stage corresponds to the specific detection item.
[0017] In this embodiment, by allowing the user to select a detection workflow in the detection workflow library to be tested, the user can select the detection workflow that is most suitable for their own software industry type, and can also select a workflow of a specific type in combination with the actual situation of the user. When the user selects a detection workflow of a specific type, the specific stages in the detection process can be customized, thereby improving the accuracy of the subsequent detection process.
[0018] In an alternative embodiment, the method further includes:
[0019] If the first detection workflow is a detection workflow under the general type, determine the first detection workflow as the target detection workflow, and all the multiple detection stages in the target detection workflow under the general type are general detection stages.
[0020] In this embodiment, when the user selects a detection workflow under the general type, the corresponding detection workflow is directly used for the subsequent adaptation detection process, which can ensure that the user can execute the detection process relatively suitable for the software to be tested quickly and efficiently.
[0021] In an optional embodiment, the configuration information of the specific detection item includes: specific detection features and corresponding specific detection indicators and specific detection tools;
[0022] The adaptability detection of the software to be tested according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow includes:
[0023] Start each detection stage according to the execution conditions of each detection stage;
[0024] When each detection stage is executed, if the current detection stage is a general detection stage, the detection items of the current detection stage are detected based on the local detection tools in the simulation running environment;
[0025] If the current detection stage is a specific detection stage, the features corresponding to the current detection stage are detected based on the specific detection tools and specific detection indicators.
[0026] In this embodiment, the corresponding detection of the general detection stage is performed by the local detection tools in the simulation running environment, which can ensure the efficient execution of routine detection items. At the same time, for the detection items of the specific detection stage, the detection of the corresponding detection items is performed by calling the detection tools provided by the user, which can further ensure the degree of customization during user detection, so that more targeted adaptability detection can be obtained for specific types of software to be tested.
[0027] In an optional embodiment, the detecting the detection items of the current detection stage based on the local detection tools in the simulation running environment includes:
[0028] Determine the general detection features and general detection indicators of the detection items corresponding to the current detection stage;
[0029] Determine whether the actual detection status of the general detection feature meets the general detection indicator through the local detection tools in the simulation running environment;
[0030] The detecting the specific detection feature based on the specific detection tool and the specific detection indicator includes:
[0031] Determine whether the actual detection status of the specific detection feature meets the specific detection indicator through the specific detection tool.
[0032] In this embodiment, by comparing the actual detection status and corresponding indicators under the detection features corresponding to each detection stage, it is possible to determine whether each detection item is qualified, ensuring the accuracy of the adaptability detection.
[0033] In an alternative embodiment, generating the adaptation report for the software to be tested includes:
[0034] Determine the unqualified detection items of the software to be tested, and call the solution strategies corresponding to the unqualified detection items in the historical strategy library;
[0035] Generate the adaptation report for the software to be tested based on the solution strategies.
[0036] In this embodiment, by calling the solution strategies for unqualified detection items in the historical strategy library and generating corresponding adaptation reports, it is possible to assist users in better handling the adaptability issues of the software to be tested and improving the user's adaptation adjustment efficiency.
[0037] In an alternative embodiment, generating the adaptation report for the software to be tested further includes:
[0038] Determine the qualified detection items of the software to be tested, and based on the qualified detection items and the unqualified detection items, determine the adaptability degree of the software to be tested and the corresponding operating system;
[0039] Add the adaptability degree of the software to be tested and the corresponding operating system to the adaptation report of the software to be tested.
[0040] In this embodiment, by determining the overall adaptability degree of the software to be tested and the corresponding operating system through all the qualified and unqualified items in the entire detection process and adding it to the adaptation report of the software to be tested, users can understand the global adaptation degree of the software to be tested and the corresponding operating system.
[0041] In a second aspect, the present invention provides a software adaptation detection device, which includes:
[0042] An information acquisition module, configured to acquire the software to be tested and the target detection workflow that the user expects to perform adaptation detection on, where the target detection workflow includes: execution conditions and detection items corresponding to multiple detection stages;
[0043] An environment generation module, configured to call preset components to generate a simulated operating environment, where the simulated operating environment is the operating environment corresponding to the operating system that the software to be tested expects to adapt to;
[0044] An adaptation detection module, configured to perform adaptation detection on the software to be tested based on the simulated operating environment according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow, and generate an adaptation report for the software to be tested.
[0045] In a third aspect, the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the software adaptation detection method according to the first aspect or any corresponding embodiment thereof.
[0046] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to perform the software adaptation detection method according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0048] Figure 1 is a schematic flowchart of a software adaptation detection method according to an embodiment of the present invention;
[0049] Figure 2 is a schematic flowchart of another software adaptation detection method according to an embodiment of the present invention;
[0050] Figure 3 is a schematic flowchart of obtaining a target detection workflow according to an embodiment of the present invention;
[0051] Figure 4 is an example diagram of the architecture of an adaptation detection tool according to an embodiment of the present invention;
[0052] Figure 5 is an example diagram of the operation process of an adaptation detection tool according to an embodiment of the present invention;
[0053] Figure 6 is a structural block diagram of a software adaptation detection device according to an embodiment of the present invention;
[0054] Figure 7 is a schematic hardware structure diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0055] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
[0056] The operation of application software relies on the operating system. When a new operating system platform is released or an application software is released, it is often necessary to adapt to multiple mainstream software or system platforms in order for its own products to gain a broader user market.
[0057] For the release of software, generally, it is necessary to perform adaptation certification based on the adaptation platform provided by the system manufacturer, which may be a community or an independent platform service. In this way, when the software manufacturer releases software, it can assure users that the software and the system have been verified to run stably.
[0058] In the process of software adaptation detection, generally, the system manufacturer provides a solution + cloud server resources. After the software manufacturer and the system manufacturer reach an adaptation intention, system resources are allocated to the software manufacturer. The software manufacturer runs and debugs its own software in the system environment, verifies and modifies the business it is concerned about. After meeting the conditions, a detection report is submitted. Then, an adaptation mutual recognition certificate can be issued.
[0059] For business software development manufacturers, it is difficult for the personnel developing software business to have knowledge about the underlying calls of software operation. And the operating system manufacturer faces many software development manufacturers with various product types. Even through the form of community mutual assistance, it is difficult to provide support for all software to achieve compatible adaptation. For various reasons, there are problems such as great detection difficulty and incomplete detection in the process of software adaptation detection.
[0060] Therefore, the embodiments of the present invention provide a software adaptation detection method. By generating a simulated operation environment corresponding to the operating system expected to be adapted by the software to be tested, and in this environment, detecting various matters of the software to be tested based on the execution conditions and detection matters corresponding to each detection stage in the target detection workflow, the overall adaptation situation between the software to be tested and the operating system can be obtained, which can effectively improve the comprehensiveness of adaptation detection, and can effectively reduce the threshold of adaptation detection and improve the adaptation detection efficiency of developers.
[0061] According to an embodiment of the present invention, an embodiment of a software adaptation detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0062] In this embodiment, a software adaptation detection method is provided, which can be used for the adaptation detection between the above-mentioned software and the operating system. Figure 1 It is a flowchart of a software adaptation detection method according to an embodiment of the present invention, as Figure 1 shown, and this process includes the following steps:
[0063] Step S101, obtain the software to be tested and the target detection workflow that the user expects to perform adaptation detection on. The target detection workflow includes: execution conditions and detection items corresponding to multiple detection stages.
[0064] The operating system manufacturer can develop corresponding adaptation detection tools or platforms according to its own operating system. In this adaptation detection tool or platform, there are detection workflows for corresponding software in multiple industries for software development manufacturers to choose from. Each detection workflow includes: the execution conditions of each detection stage when performing adaptation detection on the software to be tested, that is, under what conditions to start the corresponding detection stage, and the detection items of each detection stage, that is, what detection content is mainly executed in this detection stage. Specifically, there are also some components or tools for general monitoring items in the adaptation detection tool provided by the operating system manufacturer, so as to perform corresponding detection operations when executing each detection stage in the workflow.
[0065] When a software development manufacturer needs to adapt a newly developed software to a certain operating system, the software development manufacturer can upload the newly developed software to be tested for adaptation to this detection tool and select the detection workflow suitable for the corresponding software in its own industry. After obtaining the software to be tested by the user and the target detection workflow selected by the user, the detection tool provided by the operating system manufacturer can execute the specific steps of subsequent adaptation detection.
[0066] Step S102, call a preset component to generate a simulated operating environment, and the simulated operating environment is the operating environment corresponding to the operating system that the software to be tested expects to adapt to.
[0067] During the process of performing adaptability detection, it is mainly to test the compatibility between the software to be tested and the operating system. Therefore, it is necessary to perform the detection in the operating environment of the corresponding operating system. A pre-written component can be called to generate a corresponding simulation environment to simulate the actual operating environment of the operating system. Specifically, a lightweight container component such as Podman can be used to build a simulation operating environment, which can build a simulation environment corresponding to the expected adapted operating system under relatively low operating condition restrictions, and the detection tools required for detecting each detection stage of the software to be tested can be run in this environment. These detection tools can be mainly used for operations such as running or monitoring the status of each detection item, and the operating system manufacturer can directly build them into the provided detection tools or detection platforms.
[0068] Step S103: Based on the simulation operating environment, perform adaptability detection on the software to be tested according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow, and generate an adaptability report for the software to be tested.
[0069] After the creation of the simulation operating environment is completed, in this simulation operating environment, according to the execution conditions of each detection stage in the target detection workflow selected by the user, corresponding processing can be performed according to the corresponding execution conditions.
[0070] For example, each detection stage can include a precondition. Taking stage n as an example, its precondition can be to execute stage n - 1, and after the corresponding detection item passes, then execute stage n, and so on. The execution conditions are mainly used to determine when each detection stage starts.
[0071] Furthermore, each detection stage includes specific detection items. For example, the detection item corresponding to stage n is: whether the process exists after restart. During this detection stage, the simulation operating environment will perform the corresponding restart operation according to the built-in related tools, and determine whether the corresponding process exists, so as to obtain the detection result for this detection item, and then execute other detection stages.
[0072] The above example is only an exemplary example. In actual detection, there are many detection items and specific execution conditions involved. Here, it is only to assist in understanding the provided exemplary example. The specific detection items need to be executed in combination with the actual content in the detection workflow selected by the user.
[0073] According to the above specific execution process, each detection stage in the detection workflow is started in turn according to the execution conditions corresponding to each stage, so as to obtain the detection results of the detection items corresponding to each detection stage, that is, whether they are qualified. After the target detection workflow is executed, a specific detection report of the software to be tested will be output according to whether each detection item is qualified, that is, which detection items of the software to be tested are qualified and which are unqualified.
[0074] The software adaptation detection method provided in this embodiment generates a simulated operating environment corresponding to the operating system expected to be adapted by the software to be tested, and in this environment, based on the execution conditions and detection items corresponding to each detection stage in the target detection workflow, each item of the software to be tested is detected, so as to obtain the overall adaptation situation between the software to be tested and the operating system, which can effectively improve the comprehensiveness of the adaptation detection, and can effectively reduce the threshold of the adaptation detection and improve the adaptation detection efficiency of developers.
[0075] According to an embodiment of the present invention, another embodiment of the software adaptation detection method is provided, which can be used for the adaptation detection between the above-mentioned software and the operating system. Figure 2 It is a flowchart of another software adaptation detection method according to an embodiment of the present invention, as Figure 2 shown, this process includes the following steps:
[0076] Step S201, obtain the software to be tested and the target detection workflow that the user expects to perform adaptation detection on. The target detection workflow includes: the execution conditions and detection items corresponding to multiple detection stages.
[0077] Specifically, in step S201, the acquisition method of the target detection workflow is as Figure 3 shown, which is a flowchart for obtaining a target detection workflow according to an embodiment of the present invention, specifically as follows:
[0078] Step S201-1, obtain the workflow selection instruction of the user.
[0079] It can be understood that the operating system manufacturer can develop a corresponding adaptation detection tool or platform according to its own operating system. In this adaptation detection tool or platform, there are detection workflows for corresponding software in multiple industries for software development manufacturers to choose from.
[0080] Step S201-2, determine the first detection workflow in the detection workflow library based on the workflow selection instruction. The detection workflow library includes: detection workflows under the general type and detection workflows under the specific type.
[0081] After obtaining the workflow selection instruction of the user, the detection workflow corresponding to the selection instruction, that is, the first detection workflow, can be determined in the detection workflow library in the adaptation detection tool or platform.
[0082] Specifically, the detection workflow library includes: detection workflows under the general type. The detection workflows under the general type can be understood as the detection workflows corresponding to the software developed in some common software industries. The operating system provider can set the detection workflows corresponding to the software in various industries under this type according to experience. For example, a corresponding detection workflow A can be set for the e-commerce industry, a corresponding detection workflow B for the social industry, and a corresponding detection workflow C for the gaming industry, etc. These detection workflows all belong to the detection workflows under the general type.
[0083] The detection workflow library also includes: detection workflows under the specific type. The detection workflows under the specific type can be understood as the detection workflows required for software adaptation corresponding to certain specific software industries, such as industrial software. For these industries, the operating system manufacturer can customize the detection workflows in combination with the actual software characteristics of the software manufacturer to obtain the corresponding specific workflows under the specific type and set them in the detection workflow library, so that these specific software industries can select the customized detection workflows when performing software adaptation detection.
[0084] Step S201-3, if the first detection workflow is a detection workflow under the specific type, obtain the configuration information of the specific detection items input by the user.
[0085] It can be understood that for the detection workflows under the general type, the detection indicators and detection tools corresponding to each detection item inside are pre-built by the operating system manufacturer in the software adaptation detection platform or tool. For the detection workflows under the specific type, since this detection workflow is customized according to industry characteristics, for the specific configuration information in some detection stages, such as detection indicators, detection tools, etc., the user needs to set them by themselves, so as to obtain targeted detection effects in the subsequent detection process. Therefore, it is necessary to obtain the specific configuration information of the specific detection items input by the user.
[0086] Furthermore, in the above step S203-3, the configuration information of the specific detection items includes: specific detection features and the corresponding specific detection indicators and specific detection tools.
[0087] It can be understood that for a specific detection item, usually specific detection features are detected to determine whether its indicators are qualified. By communicating with a specific software vendor, the execution conditions corresponding to certain specific detection items can be set in the customized detection workflow. However, which specific features to detect and the detection indicators can be custom-set by the user. At the same time, for some specific detection items, there may be no detection tools for this item in the simulated operating environment. Therefore, the user also needs to upload the corresponding specific detection tools so that relevant tool calls can be made when executing specific detection items.
[0088] Step S201-4: Update the first detection workflow based on the configuration information of the specific detection item to obtain the target detection workflow. The multiple detection stages in the target detection workflow under a specific type include: multiple general detection stages and at least one specific detection stage, and the specific detection stage corresponds to the specific detection item.
[0089] After obtaining the configuration information of the specific detection item input by the user, fill these configuration information into the corresponding detection stage, so as to realize the perfect update of the selected workflow and obtain the target detection workflow for subsequent compatibility detection. Since this target detection workflow belongs to the detection workflow under a specific type, it means that in this detection workflow, in addition to the general detection stages, there is also a part of the detection stages customized for the user, that is, the specific detection stages, and these specific detection stages are used to detect the specific detection items configured by the user.
[0090] Step S201-5: If the first detection workflow is a detection workflow under the general type, determine the first detection workflow as the target detection workflow. The multiple detection stages in the target detection workflow under the general type are all general detection stages.
[0091] If the user's software belongs to common industries, such as the e-commerce software, game software, social software, etc. mentioned above, the user can select a suitable detection workflow in the detection workflow under the general type. In this case, there is no need to configure specific detection items, and this detection workflow can be directly used as the target detection workflow for subsequent compatibility detection. Similarly, each detection stage in this detection workflow belongs to the general detection stage, that is, multiple detection stages set by the operating system vendor according to historical experience for each industry.
[0092] Step S202: Call a preset component to generate a simulated operating environment. The simulated operating environment is the operating environment corresponding to the operating system that the software to be tested expects to adapt to. For the specific execution method, refer to Figure 1 Step S102 of the illustrated embodiment, which will not be elaborated here.
[0093] Step S203: Based on the simulation running environment, perform adaptability detection on the software to be tested according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow.
[0094] Specifically, in step S203, performing adaptability detection on the software to be tested according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow includes:
[0095] Step S203-1: Start each detection stage according to the execution conditions of each detection stage.
[0096] It can be understood that in the target detection workflow, there are multiple detection stages, and each detection stage has corresponding execution conditions, that is, under what circumstances to start the current detection stage. The adaptability detection platform or tool provided by the operating system manufacturer can start each detection stage based on the corresponding execution conditions.
[0097] Step S203-2: When executing each detection stage, if the current detection stage is a general detection stage, detect the detection items of the current detection stage based on the local detection tool in the simulation running environment.
[0098] For the detection stage, due to the different actual situations of users, the corresponding types of the selected detection workflow are also different. For a detection workflow under a specific type, it includes both a general detection stage and a specific detection stage. For the general detection stage, the simulation running environment can directly call the local detection tool to execute the detection items of the corresponding stage.
[0099] Further, in the above step S203-2, detecting the detection items of the current detection stage based on the local detection tool in the simulation running environment includes:
[0100] Step S203-2-1: Determine the general detection features and general detection indicators of the detection items corresponding to the current detection stage.
[0101] It can be understood that in the detection workflow, it includes what specific features are detected in each detection stage and under what indicators it is considered qualified. For the general detection stage, they are the corresponding general detection features and general detection indicators.
[0102] Step S203-2-2: Determine whether the actual detection status of the general detection features meets the general detection indicators through the local detection tool in the simulation running environment.
[0103] The built-in local detection tool mentioned above can detect the general detection features, obtain their actual running status in the simulation running environment, and compare it with the corresponding indicators to determine whether the detection item is qualified.
[0104] Step S203-3, if the current detection stage is a specific detection stage, detect the features corresponding to the current detection stage based on a specific detection tool and specific detection metrics.
[0105] Similar to the detection process of the above general detection stage, for a specific detection stage, it is also to detect the detection features corresponding to this detection stage.
[0106] Furthermore, in the above Step S203-3, detecting the specific detection features based on a specific detection tool and specific detection metrics includes:
[0107] Determine whether the actual detection status of the specific detection features meets the specific detection metrics through a specific detection tool.
[0108] It can be understood that for a specific detection stage, the corresponding detection items may be detected by the detection tools built into the adaptable detection platform or tool. In this case, direct detection can be performed through the built-in detection tool, which is similar to the above general detection stage. However, in some cases, due to the particularity of the detection items, there may be no relevant detection tools locally. Therefore, it is necessary to call a specific detection tool to determine whether the actual operating status of the corresponding specific detection features meets the corresponding metrics, so as to determine whether the specific detection item is qualified.
[0109] For ease of understanding, some general detection stages in the detection workflow are provided as shown in Table 1:
[0110]
[0111] Among them, the detection item number can be understood as the corresponding detection stage, and the detection content and passing metrics can be understood as the detection items and detection metrics mentioned in the above method embodiments. The detection items under these general detection stages can be directly detected by calling the relevant built-in interfaces or tools.
[0112] For some specific detection stages, their triggering conditions, subsequent corresponding execution actions, and relevant configuration information are often customized according to the software characteristics, specifically as follows:
[0113]
[0114] It can be understood that for a specific detection stage numbered 123, the precondition for its execution is that the detection items corresponding to the detection stage numbered 97 are qualified. After executing this detection stage, the detection stage corresponding to 134 is executed. At the same time, during this detection stage, the call command of a certain script is mainly executed, such as / opt / test / cmd1--test, so as to obtain the corresponding return value and compare it with the corresponding indicators to determine whether the detection items corresponding to this detection stage are qualified. The above general detection stage and specific detection stage are only for auxiliary understanding, and specific detection items need to be set according to the actual situation, which is not limited here.
[0115] Step S204, generate an adaptation report for the software to be tested.
[0116] Specifically, in step S204, it includes:
[0117] Step S204-1, determine the unqualified detection items of the software to be tested, and call the solution strategies corresponding to the unqualified detection items in the historical strategy library;
[0118] Step S204-2, generate an adaptation report for the software to be tested based on the solution strategies.
[0119] It can be understood that in the adaptation detection tool provided by the operating system manufacturer, solution strategies for some unqualified detection items can be provided. After completing the adaptation detection of the software to be tested, corresponding unqualified detection items can be queried in the historical strategy library to obtain the corresponding solution strategies.
[0120] In some cases, some unqualified detection items may be less common. Therefore, the corresponding detection strategies may not be available in the historical strategy library. However, the historical strategy library can be updated based on the actual solution situation to assist software manufacturers in processing unqualified detection items as efficiently as possible.
[0121] If the corresponding solution strategy is matched in the historical strategy library, the solution strategy corresponding to the unqualified detection item can be carried in the generated adaptation report.
[0122] Furthermore, in step S204, it also includes:
[0123] Determine the qualified detection items of the software to be tested, and determine the adaptation degree of the software to be tested and the corresponding operating system according to the qualified detection items and unqualified detection items;
[0124] Add the adaptation degree of the software to be tested and the corresponding operating system to the adaptation report of the software to be tested.
[0125] It can be understood that after the adaptability detection of the software to be tested is completed, the overall adaptability of the software to be tested and the corresponding operating system can be determined by comparing the specific qualified items and unqualified items. For example, if the vast majority of the detection items are qualified, it is considered that the adaptability is high, or if most of the relatively important detection items are qualified, it is considered that the adaptability is high. Specifically, it can be set according to the actual situation, and there is no limit here.
[0126] The software adaptability detection method provided by the embodiments of the present invention enables the user to select the most suitable detection workflow for their own software industry type by selecting the detection workflow in the workflow library to be detected. And the user can select a specific type of workflow according to the actual situation of the user. When the user selects the detection workflow under a specific type, the user can customize the specific stage in the detection process, thereby improving the accuracy of the subsequent detection process. And by using the local detection tool in the simulated running environment to perform corresponding detection on the general detection stage, the efficient execution of the routine detection items can be ensured. At the same time, for the detection items in the specific detection stage, by calling the detection tool provided by the user to perform the detection of the corresponding detection items, the degree of customization during the user's detection can be further ensured, so that a more targeted adaptability detection can be obtained for specific types of software to be tested, thereby obtaining the overall adaptability of the software to be tested and the operating system, effectively improving the comprehensiveness of the adaptability detection, and effectively reducing the threshold of the adaptability detection and improving the adaptability detection efficiency of developers.
[0127] To facilitate the understanding of the above embodiments of the invention, an adaptability detection tool is provided, as Figure 4 shown, which is an example diagram of the architecture of an adaptability detection tool according to an embodiment of the present invention.
[0128] The adaptability detection tool is mainly divided into the following six main parts:
[0129] 1. Lightweight container component, podman. The main function of this component is to build a simulated running environment with relatively low operating conditions for running the software to be tested and detection tools therein.
[0130] 2. Detection tool engine. It is the scheduling center of the entire detection tool and is responsible for the complete scheduling of the entire detection process.
[0131] 3. Workflow and configuration items. This determines the process of the detection process. The concerns, operating conditions, and metrics of software in different industries vary greatly, which is also a headache for operating system developers or those providing adaptation platforms. Since the business software field is diverse and complex, it is difficult to come up with a general and specific process to handle all adaptation processes. Therefore, in the form of workflow configuration, the adaptation process is extracted from the adaptation tool to enhance customizability. At the same time, according to different industries, the commonly used workflows in the corresponding industries can be selected, which can provide friendly usage conditions for the later business expansion and business information accumulation of the software.
[0132] 4. Industry detection metrics and detection features. This is a configuration interface reserved specifically for application software manufacturers. In order to further lower the usage threshold of business software manufacturers, it is only necessary to fill in the concerned metrics, the methods (tools) for detecting the metrics, the features of the detection metrics, and the criteria for passing or failing in tabular form. This module ensures that the detection tool can adapt to the adaptation requirements of different industry software and also guarantees the actual implementation of the tool.
[0133] 5. General / specific operating metric detection tools (set). Here are the tools for automatically detecting various metrics of the software during its operation, which are the main means of adaptation detection.
[0134] 6. Adaptation problem handling strategy library. This is a technical support function specifically designed to solve the lack of operating system adaptation-related technologies for application development software manufacturers. The technical knowledge and common problems related to software and operating system adaptation are sorted out to form a strategy library, which is continuously accumulated and called. This is a solution to effectively solve the two-way dilemma that operating system manufacturers do not have enough manpower to handle the adaptation technical support needs of numerous software developers and software developers are difficult to obtain the technical capabilities to solve problems in the adaptation process.
[0135] For the above adaptation detection tools, their specific operation processes are as Figure 5 shown in a flowchart of the operation process of an adaptation detection tool according to an embodiment of the present invention, mainly including the following processes:
[0136] 1. Before detection, the user uploads the software to be tested, a specific detection configuration table, a specific detection metric detection tool, and selects a suitable workflow.
[0137] 2. The detection tool starts the container and initializes the detection environment.
[0138] 3. The detection tool loads the configuration according to the workflow selected by the user, and checks the detection operations and tools corresponding to the inspection items.
[0139] 4. Perform various scheduling operations on the software according to the workflow.
[0140] 5. In different states of the software, use inspection tools to detect the software indicators according to the inspection items.
[0141] 6. According to whether the inspection indicators are qualified, summarize the inspection report, and record the corresponding operations and detailed inspection results of the unqualified inspection items for the future handlers to view in detail.
[0142] 7. According to the unpassed inspection items in the detection report, query the adaptation problem handling strategy library to obtain modification suggestions.
[0143] 8. Form a final report with the inspection report, analysis of unpassed problems, and corresponding problem handling suggestions and present it to the user.
[0144] In terms of usage effect, if users do not have specific application business indicators to pay attention to, they can directly use this software. This software is deployed in a Linux environment and uses lightweight container components instead of container engines like Docker that require daemon processes and start with root users, reducing the usage limitations of the tool on the target system. Users only need to put in their own software and click the detection button to obtain detection reports related to the adaptation of the target system, location analysis of the discovered problems, and corresponding modification suggestions, etc. R & D personnel can directly modify according to the problems without manually executing and verifying each test item one by one and finding the handling solutions by themselves. The above software adaptation detection tool addresses the three business pain points in the adaptation process, namely usage efficiency, business expandability, and technical threshold, by providing an automated test workflow, customizable application business detection indicators and detection features, and a built-in automatic location and modification suggestion strategy library for adaptation problems. It can effectively improve the comprehensiveness of adaptation detection, effectively reduce the adaptation detection threshold, and improve the adaptation detection efficiency of developers.
[0145] In this embodiment, a software adaptation detection device is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0146] This embodiment provides a software adaptation detection device, as Figure 6 shown, including:
[0147] An information acquisition module 401, configured to acquire the software to be tested for adaptation detection and the target detection workflow that the user expects, where the target detection workflow includes: execution conditions and detection items corresponding to multiple detection stages.
[0148] The environment generation module 402 is configured to call a preset component to generate a simulated operating environment, where the simulated operating environment is the operating environment corresponding to the operating system that the software to be tested is expected to adapt to.
[0149] The adaptation detection module 403 is configured to perform an adaptation detection on the software to be tested based on the simulated operating environment according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow, and generate an adaptation report for the software to be tested.
[0150] In some alternative embodiments, in the information acquisition module 401, the target detection workflow is obtained in the following manner:
[0151] Obtain the workflow selection instruction of the user;
[0152] Determine a first detection workflow in the detection workflow library based on the workflow selection instruction, where the detection workflow library includes: detection workflows under the general type and detection workflows under the specific type;
[0153] If the first detection workflow is a detection workflow under the specific type, obtain the configuration information of the specific detection items input by the user;
[0154] Update the first detection workflow based on the configuration information of the specific detection items to obtain the target detection workflow. The multiple detection stages in the target detection workflow under the specific type include: multiple general detection stages and at least one specific detection stage, and the specific detection stage corresponds to the specific detection item.
[0155] In some alternative embodiments, if the first detection workflow is a detection workflow under the general type, the information acquisition module 401 determines the first detection workflow as the target detection workflow, and the multiple detection stages in the target detection workflow under the general type are all general detection stages.
[0156] In some alternative embodiments, the configuration information of the specific detection items includes: specific detection features, corresponding specific detection indicators, and specific detection tools;
[0157] When the adaptation detection module 403 performs an adaptation detection on the software to be tested according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow, it includes:
[0158] Start each detection stage according to the execution conditions of each detection stage;
[0159] When executing each detection stage, if the current detection stage is a general detection stage, detect the detection items of the current detection stage based on the local detection tool in the simulated operating environment;
[0160] If the current detection stage is a specific detection stage, detect the features corresponding to the current detection stage based on a specific detection tool and specific detection metrics.
[0161] In some alternative embodiments, when the adaptation detection module 403 detects the detection items of the current detection stage based on the local detection tool in the simulation running environment, it includes:
[0162] Determine the general detection features and general detection metrics of the detection items corresponding to the current detection stage;
[0163] Determine whether the actual detection status of the general detection features conforms to the general detection metrics through the local detection tool in the simulation running environment;
[0164] Detect the specific detection features based on a specific detection tool and specific detection metrics, including:
[0165] Determine whether the actual detection status of the specific detection features conforms to the specific detection metrics through the specific detection tool.
[0166] In some alternative embodiments, when the adaptation detection module 403 generates an adaptation report for the software under test, it includes:
[0167] Determine the unqualified detection items of the software under test, and call the solution strategies corresponding to the unqualified detection items in the historical strategy library;
[0168] Generate an adaptation report for the software under test based on the solution strategies.
[0169] In some alternative embodiments, when the adaptation detection module 403 generates an adaptation report for the software under test, it further includes:
[0170] Determine the qualified detection items of the software under test, and determine the adaptation degree between the software under test and the corresponding operating system according to the qualified detection items and unqualified detection items;
[0171] Add the adaptation degree between the software under test and the corresponding operating system to the adaptation report of the software under test.
[0172] The further functional descriptions of the above-mentioned various modules and units are the same as those in the corresponding foregoing embodiments, and will not be elaborated herein.
[0173] The software adaptation detection device in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0174] An embodiment of the present invention further provides a computer device having the above-mentioned Figure 6 software adaptation detection device shown.
[0175] Please refer to Figure 7 , Figure 7 which is a schematic structural diagram of a computer device provided by an optional embodiment of the present invention. As Figure 7 shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system). Figure 7 In
[0176] this example, one processor 10 is taken as an example.
[0177] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above-mentioned hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field-programmable gate array, a general array logic, or any combination thereof.
[0178] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0179] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid state drive; the memory 20 may further include a combination of the above types of memory.
[0180] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 Taking connection via a bus as an example.
[0181] The input device 30 can receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the computer device, such as touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., LED) and a haptic feedback device (e.g., vibration motor), etc. The above display device includes but is not limited to liquid crystal display, light emitting diode, monitor and plasma display. In some alternative embodiments, the display device may be a touch screen.
[0182] The embodiments of the present invention also provide a computer-readable storage medium. The methods according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented by downloading via a network the original computer code stored in a remote storage medium or a non-transitory machine-readable storage medium and to be stored in a local storage medium, so that the methods described herein can be stored in such software processes on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium may further include a combination of the above types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor or the hardware, the methods shown in the above embodiments are implemented.
[0183] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A software adaptation detection method, characterized in that: The method comprises: The software to be tested and the target detection workflow that the user expects to perform adaptation detection on are obtained. The target detection workflow includes: execution conditions and detection items corresponding to multiple detection stages. The target detection workflow is obtained in the following manner: Get the user's workflow selection instructions; Based on the workflow selection instruction, a first detection workflow is determined in a detection workflow library, wherein the detection workflow library includes: detection workflows under a general type and detection workflows under a specific type, wherein the detection workflows under the specific type are detection workflows required for performing software adaptability corresponding to a specific software industry, and the operating system manufacturer customizes the detection workflow in combination with actual software characteristics of software manufacturers in the specific software industry to obtain the corresponding specific workflows under the specific type, and sets them in the detection workflow library, so that these specific software industries can select customized detection workflows when performing software adaptability testing; If the first detection workflow is a detection workflow of a specific type, obtaining configuration information of a specific detection item input by a user, wherein the configuration information of the specific detection item includes: a specific detection feature and a corresponding specific detection index and a specific detection tool; The first detection workflow is updated based on the configuration information of the specific detection item to obtain a target detection workflow, wherein the multiple detection stages in the target detection workflow under the specific type include: multiple general detection stages and at least one specific detection stage, and the specific detection stage corresponds to the specific detection item; Calling a preset lightweight container component podman to generate a simulated operating environment, where the simulated operating environment is an operating environment corresponding to the operating system to which the software to be tested is expected to adapt; Determine the common detection features and common detection indicators corresponding to the detection items in the current detection stage; Determining, by a local detection tool in the simulated operating environment, whether an actual detection state of the general detection feature meets the general detection indicator; Determining, by means of the specific detection tool, whether the actual detection state of the specific detection feature meets the specific detection index; Determine the unqualified inspection items of the software to be tested, generate an inspection report and an analysis of the unqualified problems, and retrieve the solution strategies corresponding to the unqualified inspection items in the historical strategy library according to the unqualified inspection items in the inspection report; An adaptation report of the software to be tested is generated based on the inspection report, analysis of failed issues, and solution strategies.
2. The method according to claim 1, characterized in that The method further comprises: If the first detection workflow is a detection workflow of a general type, the first detection workflow is determined as a target detection workflow, and multiple detection stages in the target detection workflow of the general type are all general detection stages.
3. The method according to claim 1, characterized in that The software to be tested is tested for adaptability according to the execution conditions and test items corresponding to each test stage in the target detection workflow, including: Initiate each detection phase according to the execution conditions of each detection phase; When executing each detection stage, if the current detection stage is a general detection stage, the detection items of the current detection stage are detected based on the local detection tool in the simulated operation environment; If the current detection stage is a specific detection stage, the features corresponding to the current detection stage are detected based on the specific detection tool and the specific detection index.
4. The method according to claim 1, characterized in that: The step of generating the adaptation report of the software to be tested further includes: Determine qualified inspection items of the software to be tested, and determine the compatibility of the software to be tested and the corresponding operating system according to the qualified inspection items and the unqualified inspection items; The compatibility between the software to be tested and the corresponding operating system is added to the compatibility report of the software to be tested.
5. A software adaptation detection device, characterized in that: Based on the method of claim 1, the device comprises: An information acquisition module is used to acquire the software to be tested and the target detection workflow that the user expects to perform adaptation detection on, wherein the target detection workflow includes: execution conditions and detection items corresponding to multiple detection stages; An environment generation module, used to call a preset component to generate a simulated operating environment, wherein the simulated operating environment is an operating environment corresponding to the operating system to which the software to be tested is expected to adapt; The adaptation detection module is used to perform adaptability detection on the software to be tested based on the simulated operating environment and according to the execution conditions and detection items corresponding to each detection stage in the target detection workflow, and generate an adaptation report for the software to be tested.
6. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the software adaptation detection method according to any one of claims 1 to 4 by executing the computer instructions.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the software adaptation detection method according to any one of claims 1 to 4.
Citation Information
Patent Citations
A method and apparatus for software compatibility testing
CN102279796A
Test case generation method and device, computer equipment and storage medium
CN112527630A