Software adaptation detection method and device, equipment and medium

By performing software adaptation detection in a simulated operating environment, the problem of difficulty and incomplete detection during the software adaptation detection process is solved, and a more comprehensive adaptability detection and more efficient detection process are achieved.

CN119292958AActive Publication Date: 2025-01-10北京长擎量子技术有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411412039.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-10
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

There are problems in the software adaptation detection process, which is difficult to provide comprehensive compatibility and incomplete detection, especially because operating system manufacturers face multiple software types, it is difficult for them to provide comprehensive compatible adaptation support.

Method used

By generating a simulated operating environment corresponding to the operating system that is expected to be adapted to by the software to be tested, and in this environment, the software to be tested is detected based on the execution conditions and detection matters of each detection stage in the object detection workflow, and an adaptation report is generated. Improve the comprehensiveness and efficiency of testing.

Benefits of technology

It effectively improves the comprehensiveness of software adaptation detection, lowers the threshold for adaptation detection, improves the detection efficiency of developers, and improves the accuracy and targetedness of detection through custom workflows and tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292958A_ABST
    Figure CN119292958A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software detection, and discloses a software adaptation detection method, device and equipment and a medium, the method comprises the steps that to-be-detected software expected to be subjected to adaptation detection by a user and a target detection workflow are obtained, and the target detection workflow comprises execution conditions and detection items corresponding to multiple detection stages; calling a preset component to generate a simulation running environment, wherein the simulation running environment is a running environment corresponding to an operating system which the to-be-tested software expects to adapt to; and based on the simulation operation environment, according to the execution conditions and the detection items corresponding to the detection stages in the target detection workflow, carrying out adaptability detection on the to-be-detected software, and generating an adaptation report of the to-be-detected software. The comprehensiveness of suitability detection can be greatly improved, the suitability detection threshold can be effectively reduced, and the suitability detection efficiency of developers is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software detection, and in particular to a software adaptation detection method, device, equipment and medium. Background Art

[0002] The operation of application software relies on the operating system. When a new operating system platform or application software is released, it is often adapted to multiple mainstream software or system platforms so that its own products can gain a broader user market.

[0003] For software release, it is usually based on the adaptation platform provided by the system manufacturer, which may be a community or an independent platform service, to carry out adaptation certification. So that when the software manufacturer releases the software, the manufacturer can assure users that the software and system have been verified and can run stably.

[0004] In the process of software adaptation testing, the system manufacturer generally provides solutions + cloud server resources. After the software manufacturer and the system manufacturer reach an adaptation intention, the system resources are allocated to the software manufacturer. The software manufacturer runs and debugs its own software on the system environment, and verifies and modifies the business it is concerned about. After meeting the conditions, submit the test report. Then the adaptation mutual authentication certificate can be issued.

[0005] For business software developers, it is difficult for software developers to have knowledge about the underlying calls of software operation. Operating system manufacturers face many software developers with diverse product types. Even through community mutual assistance, it is difficult to provide support to meet the compatibility and adaptation of all software. Many reasons lead to problems such as difficulty and incompleteness 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, the method comprising:

[0008] Obtain 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;

[0009] Calling 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;

[0010] Based on the simulated operating environment, the adaptability of the software to be tested is tested according to the execution conditions and test items corresponding to each test stage in the target detection workflow, and an adaptation report of the software to be tested is generated.

[0011] This method generates a simulated operating environment corresponding to the operating system that the software to be tested is expected to adapt to, and in this environment, detects various items of the software to be tested based on the execution conditions and detection items corresponding to each detection stage in the target detection workflow, thereby obtaining the overall adaptation status of the software to be tested and the operating system. This can effectively improve the comprehensiveness of adaptability testing, effectively lower the threshold for adaptability testing, and improve the adaptability testing efficiency of developers.

[0012] In an optional implementation, the object detection workflow is obtained as follows:

[0013] Get the user's workflow selection instructions;

[0014] Determine a first detection workflow in a detection workflow library based on the workflow selection instruction, wherein the detection workflow library includes: detection workflows under a general type and detection workflows under a specific type;

[0015] 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;

[0016] The first detection workflow is updated based on the configuration information of the specific detection item to obtain a 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, the user selects the detection workflow in the workflow library to be detected, so that the user can select the detection workflow that best suits his or her own software industry type, and can select a specific type of workflow based on the user's actual situation. When the user selects a detection workflow of a specific type, the user can customize the specific stages of the detection process, thereby improving the accuracy of the subsequent detection process.

[0018] In an optional embodiment, the method further includes:

[0019] 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.

[0020] In this implementation, when the user selects a detection workflow under the general type, the corresponding detection workflow is directly used in the subsequent adaptation detection process, which can ensure that the user can quickly and efficiently execute a detection process that is relatively suitable for the software to be tested.

[0021] In an optional implementation, the configuration information of the specific detection items includes: specific detection features and corresponding specific detection indicators and specific detection tools;

[0022] The adaptability test of the software to be tested is performed according to the execution conditions and test items corresponding to each test stage in the target detection workflow, including:

[0023] Initiate each detection phase according to the execution conditions of each detection phase;

[0024] 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;

[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 tool and the specific detection index.

[0026] This implementation method can ensure the efficient execution of routine detection items by simulating the local detection tools in the running environment to perform corresponding detections on the general detection stage. At the same time, for detection items in a specific detection stage, the detection of corresponding detection items is performed by calling the detection tools provided by the user. This can further ensure the degree of customization of the user during detection, so that more targeted adaptability detection can be obtained for specific types of software to be tested.

[0027] In an optional implementation, the detecting items of the current detection phase based on the local detection tool in the simulation running environment includes:

[0028] Determine the common detection features and common detection indicators of the detection items corresponding to the current detection stage;

[0029] 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;

[0030] The detecting the specific detection feature based on the specific detection tool and the specific detection index includes:

[0031] The specific detection tool is used to determine whether the actual detection state of the specific detection feature meets the specific detection index.

[0032] In this implementation manner, the accuracy of the adaptability test can be ensured by comparing the actual test status and the corresponding index under the corresponding test feature in each test stage to determine whether each test item is qualified.

[0033] In an optional implementation, the generating the adaptation report of the software to be tested includes:

[0034] Determine the unqualified detection items of the software to be tested, and call the solution strategy corresponding to the unqualified detection items in the historical strategy library;

[0035] An adaptation report of the software to be tested is generated based on the solution strategy.

[0036] This implementation method can help users better handle the adaptability issues of the software to be tested and improve the user's adaptation adjustment efficiency by calling the solution strategies for unqualified detection items in the historical strategy library and generating corresponding adaptation reports.

[0037] In an optional implementation manner, the generating the adaptation report of the software to be tested further includes:

[0038] 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;

[0039] 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.

[0040] In this embodiment, the overall compatibility of the software under test and the corresponding operating system is determined through all qualified and unqualified items in the entire detection process, and added to the adaptation report of the software under test, so that users can understand the global compatibility of the software under test and the corresponding operating system.

[0041] In a second aspect, the present invention provides a software adaptation detection device, the device comprising:

[0042] 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;

[0043] 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;

[0044] 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.

[0045] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the software adaptation detection method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0046] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the software adaptation detection method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 is a flowchart of a software adaptation detection method according to an embodiment of the present invention;

[0049] Figure 2 is a flowchart of another software adaptation detection method according to an embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of an acquisition process of a target detection workflow according to an embodiment of the present invention;

[0051] Figure 4 is an example diagram of an adaptation detection tool architecture according to an embodiment of the present invention;

[0052] Figure 5 is an example diagram of an operation flow 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 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0056] The operation of application software relies on the operating system. When a new operating system platform or application software is released, it is often adapted to multiple mainstream software or system platforms so that its own products can gain a broader user market.

[0057] For software release, it is usually based on the adaptation platform provided by the system manufacturer, which may be a community or an independent platform service, to carry out adaptation certification. So that when the software manufacturer releases the software, the manufacturer can assure users that the software and system have been verified and can run stably.

[0058] In the process of software adaptation testing, the system manufacturer generally provides solutions + cloud server resources. After the software manufacturer and the system manufacturer reach an adaptation intention, the system resources are allocated to the software manufacturer. The software manufacturer runs and debugs its own software on the system environment, and verifies and modifies the business it is concerned about. After meeting the conditions, submit the test report. Then the adaptation mutual authentication certificate can be issued.

[0059] For business software developers, it is difficult for software developers to have knowledge about the underlying calls of software operation. Operating system manufacturers face many software developers with diverse product types. Even through community mutual assistance, it is difficult to provide support to meet the compatibility and adaptation of all software. Many reasons lead to problems such as difficulty and incompleteness in the process of software adaptation detection.

[0060] To this end, an embodiment of the present invention provides a software adaptation detection method, which generates a simulated operating environment corresponding to the operating system that the software to be tested is expected to adapt to, and in this environment, the software to be tested is tested for various items based on the execution conditions and detection items corresponding to each detection stage in the target detection workflow, thereby obtaining the overall adaptation status of the software to be tested and the operating system, which can effectively improve the comprehensiveness of the adaptability detection, and can effectively lower the threshold for adaptability detection, thereby improving the adaptability detection efficiency of developers.

[0061] According to an embodiment of the present invention, a software adaptation detection method embodiment 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 an order different from that shown here.

[0062] In this embodiment, a software adaptation detection method is provided, which can be used for the compatibility detection between the above-mentioned software and the operating system. Figure 1 is a flow chart of a software adaptation detection method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0063] Step S101, obtaining the software to be tested and the target detection workflow that the user expects to perform adaptation detection on, the target detection workflow including: execution conditions and detection items corresponding to multiple detection stages.

[0064] Operating system manufacturers can develop corresponding adaptation detection tools or detection platforms based on their own operating systems. The adaptation detection tools or platforms include detection workflows for corresponding software in multiple industries for software developers to choose from. Each detection workflow includes: the execution conditions of each detection stage when performing adaptability testing 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 performed in this detection stage. Specifically, there are also some components or tools for general monitoring items in the adaptation detection tools provided by operating system manufacturers, so that corresponding detection operations can be performed when executing each detection stage in the workflow.

[0065] When software developers develop new software that needs to be adapted to a certain operating system, they can upload their newly developed software to be tested for compatibility to the detection tool and select the detection workflow suitable for the corresponding software in their own industry. After obtaining the user's software to be tested and the target detection workflow selected by the user, the detection tool provided by the operating system manufacturer can execute the specific steps of the subsequent adaptability detection.

[0066] Step S102, calling a preset component 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.

[0067] In the process of adaptability testing, the main purpose is to verify the compatibility between the software to be tested and the operating system, so it is necessary to perform testing in the operating environment of the corresponding operating system. Pre-written components can be called to generate the corresponding simulation environment to simulate the actual operating environment of the operating system. Specifically, a simulated operating environment can be built through lightweight container components, such as Podman, which can build a simulation environment corresponding to the expected operating system under lower operating conditions, and can run the detection tools needed for testing the various detection stages of the software to be tested in this environment. These detection tools can be mainly used for operations such as running or status monitoring of various detection items, and operating system manufacturers can directly build them into the provided detection tools or detection platforms.

[0068] Step S103, based on the simulated operating environment, 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, and an adaptation report of the software to be tested is generated.

[0069] After the simulation operation environment is created, the simulation operation environment can be used to perform corresponding processing according to the execution conditions of each detection stage in the target detection workflow selected by the user.

[0070] For example, each detection stage may include a precondition. Taking stage n as an example, its precondition may be to execute stage n-1, and after the corresponding detection items are passed, execute stage n, and so on. The execution condition is mainly used to determine under what circumstances each detection stage is started.

[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. When performing this detection stage, the simulation operation 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 the detection item and execute other detection stages.

[0072] The above examples are merely illustrative examples. In actual testing, there are many testing items and specific execution conditions involved. The illustrative examples provided here are only to assist in understanding the specific testing items. Specific testing items need to be executed in combination with the actual content of the testing workflow selected by the user.

[0073] According to the above specific execution process, each detection stage in the detection workflow is started in sequence 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 detection items are unqualified.

[0074] The software adaptation detection method provided in this embodiment generates a simulated operating environment corresponding to the operating system that the software to be tested is expected to adapt to, and in this environment, detects various items of the software to be tested based on the execution conditions and detection items corresponding to each detection stage in the target detection workflow, thereby obtaining the overall adaptation status of the software to be tested and the operating system. This can effectively improve the comprehensiveness of adaptability detection, effectively lower the threshold for adaptability detection, and improve the adaptability detection efficiency of developers.

[0075] According to an embodiment of the present invention, another software adaptation detection method embodiment is provided, which can be used for the compatibility detection between the above-mentioned software and the operating system. Figure 2 is a flow chart of another software adaptation detection method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0076] Step S201, obtaining the software to be tested and the target detection workflow that the user expects to perform adaptation detection on, the target detection workflow including: execution conditions and detection items corresponding to multiple detection stages.

[0077] Specifically, in step S201, the target detection workflow is obtained as follows: Figure 3 As shown, it is a flowchart of obtaining a target detection workflow according to an embodiment of the present invention, which is as follows:

[0078] Step S201 - 1 , obtaining a workflow selection instruction from a user.

[0079] It can be understood that operating system manufacturers can develop corresponding adaptation detection tools or detection platforms based on their own operating systems. The adaptation detection tools or platforms include detection workflows for corresponding software in multiple industries for software developers to choose from.

[0080] Step S201 - 2 : determining a first detection workflow in a detection workflow library based on the workflow selection instruction, wherein the detection workflow library includes: detection workflows of a general type and detection workflows of a specific type.

[0081] After obtaining the workflow selection instruction from the user, the detection workflow corresponding to the selection instruction, ie, the first detection workflow, may be determined in the detection workflow library in the detection adaptation tool or detection 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 by some common software industries. The operating system can set the detection workflows corresponding to the software in various industries under this type based on experience. For example, the corresponding detection workflow A can be set for the e-commerce industry, the corresponding detection workflow B can be set for the social industry, and the corresponding detection workflow C can be set for the game industry. These detection workflows all belong to the detection workflows under the general type.

[0083] The detection workflow library also includes: detection workflows under specific types. Detection workflows under specific types can be understood as detection workflows required for software adaptability corresponding to certain specific software industries, such as industrial software. For these industries, operating system manufacturers can customize detection workflows based on the actual software characteristics of software manufacturers, obtain specific workflows under corresponding specific types, and set them in the detection workflow library, so that these specific software industries can choose customized detection workflows when performing software adaptability testing.

[0084] Step S201 - 3 : if the first detection workflow is a detection workflow of a specific type, obtain configuration information of a specific detection item input by a user.

[0085] It can be understood that for the general type of detection workflow, the detection indicators and detection tools corresponding to each detection item are pre-built in the software adaptability detection platform or tool by the operating system manufacturer. For the detection workflow of a specific type, since the detection workflow is customized according to the characteristics of the industry, the specific configuration information of some detection stages, such as detection indicators and detection tools, needs to be set by the user, so that targeted detection effects can be obtained in the subsequent detection process. Therefore, it is necessary to obtain the specific configuration information for specific detection items such as input.

[0086] Furthermore, in the above step S203-3, the configuration information of the specific detection items includes: specific detection features and corresponding specific detection indicators and specific detection tools.

[0087] It can be understood that, for specific detection items, specific detection features are usually tested to determine whether their indicators are qualified. Through communication with specific software manufacturers, the execution conditions corresponding to certain specific detection items can be set in the customized detection workflow. However, the specific detection features and detection indicators can be customized by the user. At the same time, for some specific detection items, there may be no detection tools for the items in the simulation operation environment. Therefore, users also need to upload the corresponding specific detection tools so that they can call the relevant tools when executing specific detection items.

[0088] Step S201-4, based on the configuration information of the specific detection item, the first detection workflow is updated 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. The specific detection stage corresponds to the specific detection item.

[0089] After obtaining the configuration information of the specific detection items input by the user, these configuration information are filled into the corresponding detection stage, so as to realize the improvement and update of the selected workflow and obtain the target detection workflow for subsequent adaptability detection. Since the target detection workflow belongs to the detection workflow of a specific type, it means that in addition to the general detection stage, the detection workflow also includes a part of the detection stage customized for the user, that is, the specific detection stage, which is used to detect the specific detection items configured by the user.

[0090] Step S201 - 5 : 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.

[0091] If the user is using software from a common industry, such as the e-commerce software, gaming software, social software, etc. mentioned above, the user can select the appropriate detection workflow from the detection workflows under the general type. In this case, there is no need to configure specific detection items, and the detection workflow can be directly used as the target detection workflow for subsequent adaptability detection. Similarly, each detection stage in the detection workflow belongs to the general detection stage, that is, multiple detection stages set by operating system manufacturers for various industries based on historical experience.

[0092] Step S202: Call the 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 is expected to adapt to. For specific execution methods, refer to Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0093] Step S203, based on the simulated operating environment, the adaptability test is performed on the software to be tested according to the execution conditions and test items corresponding to each test stage in the target detection workflow.

[0094] Specifically, in step S203, the adaptability test of the software to be tested is performed according to the execution conditions and test items corresponding to each test stage in the target detection workflow, including:

[0095] Step S203-1, starting each detection stage according to the execution conditions of each detection stage.

[0096] It can be understood that the target detection workflow includes multiple detection stages, each of which has corresponding execution conditions, that is, under what circumstances the current detection stage is started. The adaptation 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, the detection items of the current detection stage are detected based on the local detection tool in the simulated operation environment.

[0098] For the detection phase, due to different actual situations of users, the types of detection workflows selected are also different. For detection workflows under specific types, there are both general detection phases and specific detection phases. For the general detection phase, the simulation running environment can directly call the local detection tool to execute the detection items of the corresponding phase.

[0099] Furthermore, in the above step S203-2, the detection items of the current detection phase are detected based on the local detection tool in the simulation operation environment, including:

[0100] Step S203-2-1, determine the common detection features and common detection indicators corresponding to the detection items in the current detection stage.

[0101] It can be understood that the detection workflow includes which features are detected in each detection stage and under what indicators they are qualified. For the general detection stage, it is the corresponding general detection features and general detection indicators.

[0102] Step S203-2-2, determining whether the actual detection status of the general detection feature meets the general detection index by simulating the local detection tool in the running environment.

[0103] The built-in local detection tool mentioned above can detect the common detection features, obtain their actual operating status in the simulated operating environment, and compare them 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, the features corresponding to the current detection stage are detected based on the specific detection tool and the specific detection index.

[0105] Similar to the detection process of the above-mentioned general detection stage, for a specific detection stage, the detection features corresponding to the detection stage are also detected.

[0106] Furthermore, in the above step S203-3, the specific detection feature is detected based on the specific detection tool and the specific detection index, including:

[0107] Determine through a specific detection tool whether the actual detection status of a specific detection feature meets the specific detection indicators.

[0108] It can be understood that for a specific detection stage, the corresponding detection items may be detected by the built-in detection tools in the adaptability detection platform or tool. In this case, the detection can be directly performed through the built-in detection tools, which is similar to the above-mentioned general detection stage. However, in some cases, due to the particularity of the detection items, there may be no relevant detection tools locally, so it is necessary to call a specific detection tool to determine whether the actual operating status of the corresponding specific detection feature meets the corresponding indicators, thereby determining whether the specific detection item is qualified.

[0109] For ease of understanding, some common detection stages in the detection workflow are provided, as shown in Table 1:

[0110]

[0111] The detection item number can be understood as the corresponding detection stage, and the detection content and passing index can be understood as the detection items and detection indicators mentioned in the above method embodiment. The detection items under these general detection stages can be directly called through the built-in related interfaces or tools to perform detection.

[0112] For some specific detection stages, the trigger conditions, the corresponding execution actions and the related configuration information are often customized according to the software characteristics, which can be as follows:

[0113]

[0114] It can be understood that for the specific detection stage numbered 123, the precondition for its execution is that the detection items corresponding to the detection stage No. 97 are qualified, and after executing this detection stage, the detection stage corresponding to 134 is executed. At the same time, in this detection stage, the call command of a script is mainly executed, such as / opt / test / cmd1--test, so as to obtain the corresponding return value, and compare it with the corresponding indicator to determine whether the detection items corresponding to this detection stage are qualified. The above-mentioned general detection stage and specific detection stage are only used for auxiliary understanding. Specific detection items need to be set according to actual conditions and are 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, determining the unqualified detection items of the software to be tested, and calling the solution strategy 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 strategy.

[0119] It can be understood that in the adaptability detection tool provided by the operating system manufacturer, a solution strategy can be provided for certain unqualified detection items. After completing the adaptability detection of the software to be tested, the corresponding unqualified detection items can be queried in the historical strategy library to obtain the corresponding solution strategy.

[0120] In some cases, some unqualified detection items may not be common, so there may be no corresponding detection strategy in the historical policy library. However, the historical policy library can be updated based on the actual solution situation to assist software manufacturers in handling unqualified detection items as efficiently as possible.

[0121] If a 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 inspection items of the software to be tested, and determine the compatibility of the software to be tested and the corresponding operating system based on the qualified inspection items and unqualified inspection items;

[0124] The compatibility between the software under test and the corresponding operating system is added to the compatibility report of the software under test.

[0125] It can be understood that after the adaptability test 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 based on the comparison of specific qualified items and unqualified items. For example, if the vast majority of the test items are qualified, the adaptability is considered to be high, or if most of the relatively important test items are qualified, the adaptability is considered to be high. The specific setting can be made based on the actual situation and is not limited here.

[0126] The software adaptation detection method provided by the embodiment of the present invention allows the user to select the detection workflow in the workflow library to be detected, so that the user can select the detection workflow that best suits the type of software industry, and can select a specific type of workflow in combination with the user's actual situation, and can customize the specific stage of the detection process when the user selects the detection workflow type of the specific type, thereby improving the accuracy of the subsequent detection process. And by simulating the local detection tool in the running environment to perform corresponding detection on the general detection stage, the efficient execution of conventional detection matters can be guaranteed. At the same time, for the detection matters of the specific detection stage, the detection of the corresponding detection matters can be performed by calling the detection tool provided by the user, which can further ensure the degree of customization during the user's detection, so that a more targeted adaptability detection can be obtained for the specific type of software to be tested, thereby obtaining the overall adaptation of the software to be tested and the operating system, which can effectively improve the comprehensiveness of the adaptability detection, and can effectively reduce the threshold of adaptability detection, and improve the adaptability detection efficiency of developers.

[0127] In order to facilitate understanding of the above-mentioned embodiments of the invention, an adaptation detection tool is provided, such as Figure 4 , which is an example diagram of an adaptation detection tool architecture according to an embodiment of the present invention.

[0128] The adaptation detection tool is mainly divided into the following 6 main parts:

[0129] 1. Lightweight container component, potman. The main function of this component is to build a simulated operating environment with lower operating conditions to run the software to be tested and detection tools in it.

[0130] 2. Detection tool engine: It is the dispatching center of the entire detection tool and is responsible for the complete dispatching of the entire detection process.

[0131] 3. Workflow and configuration items. This determines the flow of the detection process. The focus, operating conditions, and indicators of software in different industries vary greatly. This is also a headache for operating system developers or those who provide adaptation platforms. Because the business software fields are different and complex, it is difficult to come up with a universal specific process to deal with all adaptation processes. Therefore, the adaptation process is extracted from the adaptation tool in the form of workflow configuration to enhance customizability. At the same time, according to different industries, you can choose the commonly used workflows in the corresponding industry, which can provide friendly usage conditions for the later business expansion and business information accumulation of the software.

[0132] 4. Industry detection indicators and detection characteristics. This is a configuration interface reserved for application software vendors. In order to further lower the threshold for business software vendors, you only need to fill in the indicators of interest, the method (tool) for detecting the indicator, the characteristics of the detection indicator, and the standard for whether it is qualified in a table. This module enables the detection tool to adapt to the adaptation needs of different industry software and also provides the final guarantee for the tool to be truly implemented.

[0133] 5. General / specific operating indicator detection tools (sets). This is a tool that automatically detects various indicators of the software when it is running, and is 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 an effective solution to the two-way dilemma that operating system manufacturers do not have enough manpower to cope with the adaptation technology support needs of numerous software developers and software developers have difficulty in obtaining the technical capabilities to solve problems in the adaptation process.

[0135] For the above-mentioned adaptation detection tool, its specific operation process is as follows: Figure 5 FIG. 1 is a flow chart showing an example of an operation process of an adaptation detection tool according to an embodiment of the present invention, which mainly includes the following processes:

[0136] 1. Before testing, the user uploads the software to be tested, the specific test configuration table, the specific test indicator testing tool, and selects the appropriate workflow.

[0137] 2. The detection tool starts the container and initializes the detection environment.

[0138] 3. The detection tool checks the detection operations and tools corresponding to the inspection items according to the workflow and loading configuration selected by the user.

[0139] 4. Perform various scheduling operations on the software according to the workflow.

[0140] 5. In different states of the software, use the inspection tool to test the software indicators according to the inspection items.

[0141] 6. Summarize the inspection report based on whether the inspection indicators are qualified, and record the corresponding operations and detailed inspection results of the unqualified inspection items for future detailed review by the processing personnel.

[0142] 7. Based on the inspection items that failed in the test report, query the adaptation problem handling strategy library to obtain modification suggestions.

[0143] 8. The inspection report, analysis of failed issues, and suggestions for handling corresponding issues are presented to the user in a final report.

[0144] In terms of usage effect, if users do not have special application business indicators, they can directly use the software. The software is deployed in the Linux environment and uses lightweight container components, rather than container engines such as Docker that require daemons and will be started by root users, reducing the use restrictions of the tool in the target system. Users only need to put in their own software and click on the test to obtain the target system adaptation-related test report, location analysis of the problems found, and corresponding modification suggestions. R&D personnel can modify directly according to the problem without manually executing and verifying each test item and finding solutions by themselves. The above software adaptation detection tool provides automated testing workflows, customizable application business detection indicators and detection features, and a built-in automatic location and modification suggestion strategy library for adaptation problems, corresponding to the three business pain points of the adaptation process: usage efficiency, business scalability, and technical threshold. It can effectively improve the comprehensiveness of adaptability detection, and can effectively lower the threshold for adaptability detection, and improve the efficiency of adaptability detection for developers.

[0145] In the present embodiment, a software adaptation detection device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0146] This embodiment provides a software adaptation detection device, such as Figure 6 As shown, including:

[0147] The information acquisition module 401 is used to acquire 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.

[0148] The environment generation module 402 is used to call a preset component 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.

[0149] The adaptation detection module 403 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.

[0150] In some optional implementations, in the information acquisition module 401, the object detection workflow is acquired in the following manner:

[0151] Get the user's workflow selection instructions;

[0152] Determine a first detection workflow in a detection workflow library based on the workflow selection instruction, wherein the detection workflow library includes: detection workflows under a general type and detection workflows under a specific type;

[0153] 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;

[0154] The first detection workflow is updated 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 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 optional implementations, if the first detection workflow is a general type detection workflow, the information acquisition module 401 determines the first detection workflow as a target detection workflow, and multiple detection stages in the general type target detection workflow are all general detection stages.

[0156] In some optional implementations, the configuration information of the specific detection items includes: specific detection features and corresponding specific detection indicators and specific detection tools;

[0157] The adaptation detection module 403, when 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:

[0158] Initiate each detection phase according to the execution conditions of each detection phase;

[0159] 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;

[0160] If the current detection stage is a specific detection stage, the features corresponding to the current detection stage are detected based on specific detection tools and specific detection indicators.

[0161] In some optional implementations, the adaptation detection module 403, when detecting the detection items of the current detection phase based on the local detection tool in the simulation operation environment, includes:

[0162] Determine the common detection features and common detection indicators corresponding to the detection items in the current detection stage;

[0163] Determine whether the actual detection status of the general detection feature meets the general detection index by simulating the local detection tool in the running environment;

[0164] Specific detection features are detected based on specific detection tools and specific detection indicators, including:

[0165] Determine through a specific detection tool whether the actual detection status of a specific detection feature meets the specific detection indicators.

[0166] In some optional implementations, the adaptation detection module 403, when generating the adaptation report of the software to be tested, includes:

[0167] Determine the unqualified detection items of the software to be tested, and call the corresponding solution strategies for the unqualified detection items in the historical strategy library;

[0168] Generate an adaptation report for the software under test based on the solution strategy.

[0169] In some optional implementations, the adaptation detection module 403, when generating the adaptation report of the software to be tested, further includes:

[0170] Determine the qualified inspection items of the software to be tested, and determine the compatibility of the software to be tested and the corresponding operating system based on the qualified inspection items and unqualified inspection items;

[0171] The compatibility between the software under test and the corresponding operating system is added to the compatibility report of the software under test.

[0172] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0173] The software adaptation detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0174] The embodiment of the present invention also provides a computer device having the above Figure 6 The software shown is adapted to the detection device.

[0175] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As 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. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the 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 group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0176] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0177] 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.

[0178] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0179] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0180] The computer device also 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 The example of connecting through bus is taken in the following.

[0181] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0182] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. 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. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0183] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A software adaptation detection method, characterized in that: The method comprises: Obtain 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; Calling 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; Based on the simulated operating environment, the adaptability of the software to be tested is tested according to the execution conditions and test items corresponding to each test stage in the target detection workflow, and an adaptation report of the software to be tested is generated.

2. The method according to claim 1, characterized in that: The target detection workflow is obtained as follows: Get the user's workflow selection instructions; Determine a first detection workflow in a detection workflow library based on the workflow selection instruction, wherein the detection workflow library includes: detection workflows under a general type and detection workflows under a specific type; 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; The first detection workflow is updated based on the configuration information of the specific detection item to obtain a 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.

3. The method according to claim 2, 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.

4. The method according to claim 3, characterized in that The configuration information of the specific detection items includes: specific detection features and corresponding specific detection indicators and specific detection tools; The adaptability test of the software to be tested is performed 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.

5. The method according to claim 4, characterized in that The detecting items of the current detection phase are detected by the local detection tool in the simulated operation environment, including: Determine the common detection features and common detection indicators of the detection items corresponding to 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; The detecting the specific detection feature based on the specific detection tool and the specific detection index includes: The specific detection tool is used to determine whether the actual detection state of the specific detection feature meets the specific detection index.

6. The method according to claim 1, characterized in that The generating the adaptation report of the software to be tested comprises: Determine the unqualified detection items of the software to be tested, and call the solution strategy corresponding to the unqualified detection items in the historical strategy library; An adaptation report of the software to be tested is generated based on the solution strategy.

7. The method according to claim 6, 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.

8. A software adaptation detection device, characterized in that: 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.

9. 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 7 by executing the computer instructions.

10. 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 7.

Citation Information

Patent Citations

  • A method and apparatus for software compatibility testing

    CN102279796A

  • Automatic test method, device and equipment and storage medium

    CN111274130A

  • Test case generation method and device, computer equipment and storage medium

    CN112527630A

  • Server general test method and system, terminal and storage medium

    CN114546738A

  • Spaceflight software simulation test method, device, equipment and medium

    CN118331861A