Industrial software compatibility adaptation verification method and system based on AI dynamic environment simulation
Through the AI dynamic environment simulation method, the compatibility test matrix and orthogonal analysis method are used to construct a verification test combination, which solves the problem of low verification efficiency of industrial software under multiple test objects and realizes efficient and accurate compatibility adaptation verification.
Patent Information
- Application Number
- CN202511250231.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-03
- Publication Date
- 2025-10-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When faced with multiple test objects, the existing industrial software compatibility adaptation verification method cannot effectively combine test items and obtain judgment criteria under different operating environments, resulting in low verification efficiency and lack of rationality.
By adopting a method based on AI dynamic environment simulation, through compatibility test matrix analysis, orthogonal analysis method and simulated environment test method, a verification test combination is constructed to obtain parameter test ratio and test judgment area, thereby realizing efficient compatibility adaptation verification.
It improves the efficiency and rationality of industrial software verification under multiple test items, ensures that compatibility can be accurately determined in different environments, and improves the comprehensiveness and accuracy of verification.
Smart Images

Figure CN120780608A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial software compatibility and adaptation, and specifically to an industrial software compatibility and adaptation verification method and system based on AI dynamic environment simulation. Background Art
[0002] Industrial software compatibility and adaptation verification is a systematic test to ensure that industrial software can run stably in different hardware, operating systems, databases and industry application scenarios; by testing the compatibility of industrial software with underlying software and hardware, upstream and downstream systems, it solves problems such as interface adaptation and data format compatibility, and forms a systematic solution to promote large-scale application; the implementation scope of industrial software compatibility and adaptation verification includes vertical software stack adaptation, horizontal tool chain adaptation and industry application adaptation.
[0003] Existing methods for industrial software compatibility and adaptation verification usually analyze the performance and compatibility of the system based on the response time of the actual operation of the equipment, and identify the existing hidden dangers to improve the compatibility and adaptability of the industrial software. Although this improved method can improve model adaptation based on response time, thereby improving system interactivity and flexibility, when there are many objects to be tested in the industrial software, it is impossible to effectively combine all test items of the objects to be tested under different operating environments and obtain the judgment criteria for compatibility and adaptation verification. As a result, when the industrial software is verified for compatibility and adaptation, the overall verification efficiency is too slow due to the large number of test items and there is a lack of judgment on the rationality of the verification, resulting in the problem of being unable to achieve efficient verification. For example, in the patent application with publication number CN118642871A, a method based on The industrial software compatibility adaptation method and device for the intermediate business model, this solution is to identify and adjust the abstract level of the intermediate business model by analyzing the response time of the equipment during operation, to ensure efficient model adaptation, and to improve system interoperability and flexibility. Other improvements for industrial software compatibility adaptation verification are usually improvements in software delivery scripts, which still cannot solve the problem that when there are many objects under test in the industrial software, all test items of the objects under test cannot be effectively combined under different operating environments and the judgment criteria for compatibility adaptation verification cannot be obtained. As a result, when the industrial software is compatible and adapted, the overall verification efficiency is too slow due to the large number of test items and there is a lack of judgment on the rationality of the verification, resulting in the inability to achieve efficient verification. In view of this, it is necessary to improve the existing industrial software compatibility adaptation verification method. Summary of the Invention
[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent. By proposing an industrial software compatibility adaptation verification method and system based on AI dynamic environment simulation, it is used to solve the problem in the existing industrial software compatibility adaptation verification method that when there are many test objects in the industrial software, it is impossible to effectively combine all test items of the test objects under different operating environments and obtain the judgment criteria for compatibility adaptation verification. As a result, when the compatibility adaptation verification of the industrial software is performed, the overall verification efficiency is too slow due to the large number of test items and there is a lack of judgment on the rationality of the verification, resulting in the inability to achieve efficient verification.
[0005] To achieve the above objectives, in a first aspect, the present application provides an industrial software compatibility adaptation verification method based on AI dynamic environment simulation, comprising the following steps: Analyze industrial software based on the existing compatibility test matrix and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; use the orthogonal analysis method to process the software compatibility matrix and obtain the verification test combination based on the processing results; Use AI to simulate the operating environment of industrial software, and test all verification test combinations based on the simulated operating environment. Based on the test results, obtain the parameter test ratio corresponding to each verification test combination in each operating environment, and obtain the test judgment area corresponding to each verification test combination based on the parameter test ratio. When performing compatibility adaptation verification on industrial software, compatibility analysis is performed on the verification results based on the test judgment area.
[0006] Furthermore, the industrial software is analyzed based on the existing compatibility test matrix, and the software compatibility matrix corresponding to the industrial software is obtained based on the analysis results; the software compatibility matrix is processed using the orthogonal analysis method, and the verification test combination is obtained based on the processing results, including: The tested objects, test items, and version differences in the industrial software are obtained, and the compatibility test matrix constructed after the acquisition is recorded as the software compatibility matrix. The tested objects include the browser types, operating systems, device resolutions, and printer models that are allowed to carry the industrial software. The test items include the functional support, display effects, and data interaction corresponding to each test object. The version differences include the differences in browser type support for HTML5 and the system's compatibility with the driver. The software compatibility matrix was converted into the corresponding orthogonal array using AI based on the SAS orthogonal array database and recorded as the compatible orthogonal array.
[0007] Further analyzing the industrial software based on the existing compatibility test matrix and obtaining the software compatibility matrix corresponding to the industrial software based on the analysis results; processing the software compatibility matrix using the orthogonal analysis method and obtaining the verification test combination based on the processing results also include: Use AI to learn the orthogonal analysis method, and use the AI after learning the orthogonal analysis method to process the compatible orthogonal table. Based on the processing results, multiple parameter combinations in the compatible orthogonal table are obtained and recorded as verification test combinations YC1 to verification test combinations YC n .
[0008] Furthermore, AI is used to simulate the operating environment of the industrial software, and all verification test combinations are tested based on the simulated operating environment. Based on the test results, the parameter test ratio corresponding to each verification test combination in each operating environment is obtained, and based on the parameter test ratio, the test judgment area corresponding to each verification test combination is obtained, including: Based on the operating environment of the industrial software, AI is used to obtain scenarios corresponding to all operating environments and record them as simulated operating scenarios. The operating environment includes the hardware configuration, software configuration, and network environment when the industrial software is running. The simulation environment test method is used to analyze all verification test combinations in each simulation operation scenario in turn, and the test judgment area of all verification test combinations corresponding to each simulation operation scenario is obtained based on the analysis results.
[0009] Furthermore, the simulated environment test method includes: Based on the simulated operation scenario being analyzed, the operating environment of the industrial software is adjusted to the environment corresponding to the simulated operation scenario; for any verification test combination α: the parameters other than the verification test combination α in the compatible orthogonal table are recorded as non-test parameters, and the parameters in the verification test combination α in the compatible orthogonal table are recorded as environmental test parameters; When conducting simulated environment testing, keep all non-test parameters unchanged; The test standard of the test item corresponding to each environmental test parameter is obtained, and the parameter test ratio of the verification test combination α is obtained using a balanced test analysis method, wherein the parameter test ratio includes a balanced ratio and an extreme ratio.
[0010] Furthermore, the simulated environment testing method also includes: Establish a plane rectangular coordinate system, denoted as a scaled integrated coordinate system, wherein the X-axis and Y-axis of the scaled integrated coordinate system are both constant axes; denote the number of environmental test parameters as Q, establish a regular Q-polygon with the coordinate origin as the center in the scaled integrated coordinate system, and correspond each vertex of the regular Q-polygon to an environmental test parameter, wherein the distance between each vertex of the regular Q-polygon and the coordinate origin is 1; For any environmental test parameter β and the vertex γ corresponding to the environmental test parameter β: the points on the line connecting the vertex γ and the coordinate origin whose distance from the coordinate origin is the balanced ratio and extreme ratio of the environmental test parameter β are recorded as the balanced ratio point and the extreme ratio point respectively; Obtain all the balanced proportion points and extreme proportion points within the regular Q-polygon, and record the Q-polygon formed by all the balanced proportion points as the balanced test shape of the simulated operation scenario, and record the Q-polygon formed by all the extreme proportion points as the extreme test shape of the simulated operation scenario; The closed area formed by the balanced test shape and the extreme test shape is recorded as the test judgment area.
[0011] Furthermore, the balanced test analysis method includes: For any environmental test parameter: when the environmental test parameter contains only one test item, the balanced ratio of the test items corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter; when the environmental test parameter contains multiple test items, the average value of the balanced ratios of all test items corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter.
[0012] Furthermore, a method for obtaining the balancing ratio is as follows: establishing a plane rectangular coordinate system, recorded as a balancing test coordinate system, wherein the X-axis of the balancing test coordinate system is a constant axis, the unit of the Y-axis is the unit corresponding to the test standard of the test item, and the maximum value corresponding to the test standard of the test item is recorded as Y1; performing k tests on the test item in sequence, and after each test, using the number of tests performed as the horizontal coordinate and the parameter corresponding to the test standard in the test result as the vertical coordinate to perform punctuation in the balancing test coordinate system, and recording the line segment and curve obtained by fitting the k punctuation points corresponding to the k tests as a balancing test line and a balancing test curve, respectively; The vertical coordinate of the midpoint of the balanced test line divided by the value of Y1 is recorded as the balanced ratio of the test item, and the vertical coordinate of the highest point in the balanced test curve divided by the value of Y1 is recorded as the extreme ratio of the test item.
[0013] Furthermore, when performing compatibility adaptation verification on industrial software, compatibility analysis of the verification results based on the test judgment area includes: When performing compatibility and adaptation verification on industrial software, obtain the corresponding simulated operating environment based on the real-time operating environment of the industrial software and record it as the real-time control environment; Based on the simulation environment testing method, the extreme test shapes corresponding to all verification test combinations in the real-time operating environment of the industrial software are obtained and recorded as the real-time test shapes of the verification test combinations; For any verification test combination: when the real-time test shape of the verification test combination is completely within the extreme test shape of the verification test combination in the real-time control environment, the verification test combination is recorded as a fully compatible combination; When the real-time test shape of the verification test combination has an area that is not within the extreme test shape of the verification test combination in the real-time control environment, the environmental test parameters corresponding to the vertices in the real-time test shape of the verification test combination that are not within the extreme test shape of the verification test combination in the real-time control environment are recorded as compatible abnormal parameters, and the verification test combination is recorded as an incompatible combination; When all verification test combinations are fully compatible combinations, the compatibility analysis results of the industrial software are recorded as completed compatibility verification; when there are incompatible combinations, the compatibility analysis results of the industrial software are recorded as incomplete compatibility verification, and all compatibility exception parameters are reported.
[0014] Secondly, this application also provides an industrial software compatibility adaptation verification system based on AI dynamic environment simulation, including a verification combination acquisition module, a multi-environment combination analysis module, and a compatibility verification analysis module; The verification combination acquisition module is used to analyze the industrial software based on the existing compatibility test matrix and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; use the orthogonal analysis method to process the software compatibility matrix and obtain the verification test combination based on the processing results; The multi-environment combination analysis module is used to simulate the operating environment of industrial software using AI and test all verification test combinations based on the simulated operating environment. Based on the test results, the parameter test ratio corresponding to each verification test combination in each operating environment is obtained, and the test judgment area corresponding to each verification test combination is obtained based on the parameter test ratio. The compatibility verification analysis module is used to perform compatibility analysis on the verification results based on the test judgment area when performing compatibility adaptation verification on industrial software.
[0015] Beneficial effects of the present invention: The present application first analyzes the industrial software based on the existing compatibility test matrix, and obtains the software compatibility matrix corresponding to the industrial software based on the analysis results; uses the orthogonal analysis method to process the software compatibility matrix, and obtains the verification test combination based on the processing results. The advantage of this is that by using the compatibility test matrix and the orthogonal analysis method, the test items of the test objects in the industrial software can be effectively combined, so that the obtained verification test combination can fully reflect the compatibility status of the industrial software during actual operation, which is conducive to testing the test items corresponding to the verification test combination in subsequent analysis, and obtaining the judgment criteria for compatibility adaptation verification of the industrial software in each operating environment, thereby improving the compatibility adaptation verification efficiency of the industrial software when there are many test items; This application also uses AI to simulate the operating environment of industrial software, and tests all verification test combinations based on the simulated operating environment; obtains the parameter test ratio corresponding to each verification test combination in each operating environment based on the test results, and obtains the test judgment area corresponding to each verification test combination based on the parameter test ratio; finally, when performing compatibility adaptation verification on industrial software, the verification results are analyzed for compatibility based on the test judgment area. The advantage of this is that by simulating the operating environment, the test judgment areas corresponding to all test combinations in each simulated operating scenario are obtained, and efficient compatibility analysis can be performed based on the test judgment area and the real-time operating environment when performing compatibility adaptation verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a principle block diagram of the system of the present invention; Figure 2 is a flow chart of the steps of the method of the present invention; Figure 3 is a schematic diagram of the balanced test coordinate system of the present invention; Figure 4 A schematic diagram of obtaining the test judgment area of the present invention; Figure 5 Schematic diagram of the structure of the electronic device of the present invention. DETAILED DESCRIPTION
[0017] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0018] Example 1, please refer to Figure 1 As shown, the present application provides an industrial software compatibility adaptation verification system based on AI dynamic environment simulation, including a verification combination acquisition module, a multi-environment combination analysis module, and a compatibility verification analysis module; The verification combination acquisition module is used to analyze the industrial software based on the existing compatibility test matrix and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; use the orthogonal analysis method to process the software compatibility matrix and obtain the verification test combination based on the processing results; The verification combination acquisition module includes a verification combination acquisition unit, which is configured with a verification combination acquisition strategy. The verification combination acquisition strategy includes: Based on the definition of the International Organization for Standardization and the existing compatibility test matrix, the tested objects, test items, and version differences in industrial software are obtained, and the compatibility test matrix constructed after acquisition is recorded as the software compatibility matrix. The tested objects include the browser types, operating systems, device resolutions, and printer models allowed to carry industrial software. The test items include the functional support, display effects, and data interaction corresponding to each test object. The version differences include the differences in browser type support for HTML5 and the system's compatibility with the driver. During the specific implementation process, browser types may include Chrome and Firefox, operating systems may include Windows and macOS, and device resolution and printer model may be obtained based on the resolution of the device screen and the brand model of the printer actually used; test items may be determined based on the actually selected object to be tested and the device that can test the object to be tested, so as to ensure that each test item can be accurately tested during the actual test, and the test results can accurately reflect the actual operating status of the object to be tested, so as to improve the accuracy of the compatibility test.
[0019] Use AI to convert the software compatibility matrix into the corresponding orthogonal table based on the SAS orthogonal table database and record it as the compatible orthogonal table; In practice, orthogonal analysis is a mathematical statistics method based on orthogonal array design. It efficiently finds the optimal parameter combination for a multi-factor system through selected representative experiments. The core advantages of orthogonal analysis lie in its ability to replace comprehensive experiments with partial experiments, its mathematical properties guarantee coverage, and its ability to quantify the impact of analytical factors. In practical applications, the resulting compatible orthogonal array can be processed using orthogonal analysis methods that AI can learn, resulting in validated test combinations and comprehensive data testing. Use AI to learn the orthogonal analysis method, and use the AI after learning the orthogonal analysis method to process the compatible orthogonal table. Based on the processing results, multiple parameter combinations in the compatible orthogonal table are obtained and recorded as verification test combinations YC1 to verification test combinations YC n ; The multi-environment combination analysis module is used to use AI to simulate the operating environment of industrial software, and test all verification test combinations based on the simulated operating environment; based on the test results, the parameter test ratio corresponding to each verification test combination in each operating environment is obtained, and based on the parameter test ratio, the test judgment area corresponding to each verification test combination is obtained.
[0020] The multi-environment combination analysis module includes a multi-environment combination analysis unit. The multi-environment combination analysis unit is configured with a multi-environment combination analysis strategy. The multi-environment combination analysis strategy includes: Based on the operating environment of the industrial software, AI is used to obtain scenarios corresponding to all operating environments and record them as simulated operating scenarios. The operating environment includes the hardware configuration, software configuration, and network environment when the industrial software is running. During implementation, the operating environment may also include the actual scenario environment, such as the temperature and humidity of the room where the equipment running the industrial software is located. When the scenario environment has a significant impact on the operation of the industrial software, the scenario environment may be added when obtaining the simulated operating environment to improve the comprehensiveness of the data analysis. Use the simulation environment test method to analyze all verification test combinations in each simulation operation scenario in turn, and obtain the test judgment area of all verification test combinations corresponding to each simulation operation scenario based on the analysis results; The simulation environment testing method includes: adjusting the operating environment of the industrial software to the environment corresponding to the simulation operating scenario based on the simulated operating scenario being analyzed; for any verification test combination α: recording the parameters other than the verification test combination α in the compatible orthogonal table as non-test parameters, and recording the parameters within the verification test combination α in the compatible orthogonal table as environmental test parameters; When conducting simulated environment testing, keep all non-test parameters unchanged; The test standard of the test item corresponding to each environmental test parameter is obtained, and the parameter test ratio of the verification test combination α is obtained using a balanced test analysis method, wherein the parameter test ratio includes a balanced ratio and an extreme ratio.
[0021] The balanced test analysis method includes: for any environmental test parameter: when the environmental test parameter contains only one test item, the balanced ratio of the test item corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter; when the environmental test parameter contains multiple test items, the average value of the balanced ratios of all test items corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter.
[0022] The method for obtaining the balancing ratio is as follows: establishing a plane rectangular coordinate system, recorded as the balancing test coordinate system, wherein the X-axis of the balancing test coordinate system is a constant axis, the unit of the Y-axis is the unit corresponding to the test standard of the test item, and the maximum value corresponding to the test standard of the test item is recorded as Y1; performing k tests on the test item in sequence, and after each test, using the number of tests performed as the horizontal coordinate and the parameter corresponding to the test standard in the test result as the vertical coordinate to perform punctuation in the balancing test coordinate system, and recording the line segment and curve obtained by fitting the k punctuation points corresponding to the k tests as the balancing test line and the balancing test curve, respectively; In the specific implementation process, the value of k can be set according to the number of times the test item can be tested during the actual analysis and the data stability of the test item. When the test results corresponding to the test item are relatively stable, the value of k can be appropriately reduced; when the test results corresponding to the test item fluctuate greatly, the value of k can be appropriately increased. In this embodiment, the value of k is set to 10; for example, in a data analysis, the balanced test coordinate system obtained is as follows Figure 3 As shown in the figure, where the test item is the response speed of the Chrome browser, the unit of the Y-axis can be ms, and the punctuation points in the balanced test coordinate system after 10 tests are HB1 to HB10. The balanced test line and balanced test curve obtained by fitting are JH1 and JH2 respectively; The vertical coordinate of the midpoint of the balanced test line divided by the value of Y1 is recorded as the balanced ratio of the test item, and the vertical coordinate of the highest point in the balanced test curve divided by the value of Y1 is recorded as the extreme ratio of the test item; In the specific implementation process, through analysis, Figure 3 The maximum value of the test standard of the Chrome browser is 50ms, and the corresponding balanced ratio and extreme ratio of JH1 and JH2 are 0.5 and 0.8 respectively.
[0023] Establish a plane rectangular coordinate system, denoted as a scaled integrated coordinate system, wherein the X-axis and Y-axis of the scaled integrated coordinate system are both constant axes; denote the number of environmental test parameters as Q, establish a regular Q-polygon with the coordinate origin as the center in the scaled integrated coordinate system, and correspond each vertex of the regular Q-polygon to an environmental test parameter, wherein the distance between each vertex of the regular Q-polygon and the coordinate origin is 1; For any environmental test parameter β and the vertex γ corresponding to the environmental test parameter β: the points on the line connecting the vertex γ and the coordinate origin whose distance from the coordinate origin is the balanced ratio and extreme ratio of the environmental test parameter β are recorded as the balanced ratio point and the extreme ratio point respectively; In the specific implementation process, for example, during a data analysis, the scale integration coordinate system obtained is as follows Figure 4 As shown, and the value of Q is 4, the obtained regular Q-gon is ZQ, the midpoint of △ is the balanced proportion point, and the midpoint of ○ is the extreme proportion point. Then, through analysis, it can be obtained that JX is the balanced test shape, DX is the extreme test shape, and JD is the test judgment area.
[0024] Obtain all the balanced proportion points and extreme proportion points within the regular Q-polygon, and record the Q-polygon formed by all the balanced proportion points as the balanced test shape of the simulated operation scenario, and record the Q-polygon formed by all the extreme proportion points as the extreme test shape of the simulated operation scenario; The closed area formed by the balanced test shape and the extreme test shape is recorded as the test judgment area; During the specific implementation process, by obtaining the balanced ratio and the extreme ratio, and further obtaining the test judgment area, the normal parameter range corresponding to all test items in each verification test combination under the simulated operation scenario can be obtained, that is, the test judgment area is obtained, which is helpful to analyze the verification results based on the test judgment area during real-time compatibility adaptation verification, thereby verifying the compatibility adaptation.
[0025] The compatibility verification analysis module is used to perform compatibility analysis on the verification results based on the test judgment area when performing compatibility adaptation verification on industrial software. The compatibility verification analysis module includes a compatibility verification analysis unit, which is configured with a compatibility verification analysis strategy. The compatibility verification analysis strategy includes: When performing compatibility and adaptation verification on industrial software, obtain the corresponding simulated operating environment based on the real-time operating environment of the industrial software and record it as the real-time control environment; Based on the simulation environment testing method, the extreme test shapes corresponding to all verification test combinations in the real-time operating environment of the industrial software are obtained and recorded as the real-time test shapes of the verification test combinations; For any verification test combination: when the real-time test shape of the verification test combination is completely within the extreme test shape of the verification test combination in the real-time control environment, the verification test combination is recorded as a fully compatible combination; When the real-time test shape of the verification test combination has an area that is not within the extreme test shape of the verification test combination in the real-time control environment, the environmental test parameters corresponding to the vertices in the real-time test shape of the verification test combination that are not within the extreme test shape of the verification test combination in the real-time control environment are recorded as compatible abnormal parameters, and the verification test combination is recorded as an incompatible combination; During the specific implementation process, if the real-time test shape of the verification test combination is not within the extreme test shape of the verification test combination in the real-time control environment, it means that the test results of the test items in the verification test combination are inconsistent with the normal parameter range, that is, there is an incompatible state. Therefore, the verification test combination should be recorded as an incompatible combination and the compatibility abnormality parameter should be reported later; When all verification test combinations are fully compatible combinations, the compatibility analysis results of the industrial software are recorded as completed compatibility verification; when there are incompatible combinations, the compatibility analysis results of the industrial software are recorded as incomplete compatibility verification, and all compatibility exception parameters are reported.
[0026] Example 2, please refer to Figure 2 As shown, this application also provides an industrial software compatibility adaptation verification method based on AI dynamic environment simulation, including the following steps: Step S1: Analyze the industrial software based on the existing compatibility test matrix, and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; process the software compatibility matrix using the orthogonal analysis method, and obtain the verification test combination based on the processing results; Step S1 includes: Step S101, based on the definition of the International Organization for Standardization and the existing compatibility test matrix, obtaining the tested objects, test items and version differences in the industrial software, and recording the compatibility test matrix constructed after the acquisition as the software compatibility matrix, wherein the tested objects include the browser type, operating system, device resolution and printer model allowed to carry the industrial software, the test items include the function support, display effect and data interaction corresponding to each test object, and the version differences include the browser type support difference for HTML5 and the system compatibility with the driver; Step S102: Using AI to convert the software compatibility matrix into a corresponding orthogonal array based on the SAS orthogonal array database, and record it as a compatible orthogonal array; Step S103: Use AI to learn the orthogonal analysis method, and use the AI after learning the orthogonal analysis method to process the compatible orthogonal table, and obtain multiple parameter combinations in the compatible orthogonal table based on the processing results, and record them as verification test combinations YC1 to verification test combinations YC n .
[0027] Step S2: Use AI to simulate the operating environment of the industrial software, and test all verification test combinations based on the simulated operating environment; obtain the parameter test ratio corresponding to each verification test combination in each operating environment based on the test results, and obtain the test judgment area corresponding to each verification test combination based on the parameter test ratio; Step S2 includes: Step S201, based on the operating environment of the industrial software, using AI to obtain scenarios corresponding to all operating environments, and recording them as simulated operating scenarios, wherein the operating environment includes the hardware configuration, software configuration, and network environment when the industrial software is running; Step S202: using a simulation environment test method to analyze all verification test combinations in each simulation operation scenario in turn, and obtaining test judgment areas of all verification test combinations corresponding to each simulation operation scenario based on the analysis results; The simulation environment testing method includes: step S2021, adjusting the operating environment of the industrial software to an environment corresponding to the simulated operating scenario based on the analyzed simulated operating scenario; for any verification test combination α: recording the parameters other than the verification test combination α in the compatible orthogonal table as non-test parameters, and recording the parameters in the verification test combination α in the compatible orthogonal table as environmental test parameters; Step S2022: When performing the simulated environment test, keep all non-test parameters unchanged; Step S2023: obtaining the test standard of the test item corresponding to each environmental test parameter, and using a balanced test analysis method to obtain the parameter test ratio of the verification test combination α, wherein the parameter test ratio includes a balanced ratio and an extreme ratio; The balanced test analysis method includes: for any environmental test parameter: when the environmental test parameter includes only one test item, the balanced ratio of the test item corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter; when the environmental test parameter includes multiple test items, the average value of the balanced ratios of all test items corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter; The method for obtaining the balancing ratio is as follows: establishing a plane rectangular coordinate system, recorded as the balancing test coordinate system, wherein the X-axis of the balancing test coordinate system is a constant axis, the unit of the Y-axis is the unit corresponding to the test standard of the test item, and the maximum value corresponding to the test standard of the test item is recorded as Y1; performing k tests on the test item in sequence, and after each test, using the number of tests performed as the horizontal coordinate and the parameter corresponding to the test standard in the test result as the vertical coordinate to perform punctuation in the balancing test coordinate system, and recording the line segment and curve obtained by fitting the k punctuation points corresponding to the k tests as the balancing test line and the balancing test curve, respectively; The vertical coordinate of the midpoint of the balanced test line divided by the value of Y1 is recorded as the balanced ratio of the test item, and the vertical coordinate of the highest point in the balanced test curve divided by the value of Y1 is recorded as the extreme ratio of the test item; Step S2024: Establish a plane rectangular coordinate system, denoted as a scaled integrated coordinate system, wherein the X-axis and Y-axis of the scaled integrated coordinate system are constant axes; denote the number of environmental test parameters as Q, establish a regular Q-gon with the coordinate origin as the center within the scaled integrated coordinate system, and correspond each vertex of the regular Q-gon to an environmental test parameter, wherein the distance between each vertex of the regular Q-gon and the coordinate origin is 1; Step S2025: For any environmental test parameter β and the vertex γ corresponding to the environmental test parameter β, the points on the line connecting the vertex γ and the coordinate origin whose distance from the coordinate origin is the balanced ratio and the extreme ratio of the environmental test parameter β are recorded as the balanced ratio point and the extreme ratio point, respectively. Step S2026: Obtain all the balanced ratio points and extreme ratio points within the regular Q-gon, and record the Q-gon formed by all the balanced ratio points as the balanced test shape of the simulated operation scenario, and record the Q-gon formed by all the extreme ratio points as the extreme test shape of the simulated operation scenario; Step S2027: Record the closed area formed by the balanced test shape and the extreme test shape as a test judgment area.
[0028] Step S3, when performing compatibility adaptation verification on the industrial software, performing compatibility analysis on the verification results based on the test judgment area; Step S3 includes: Step S301, when performing compatibility adaptation verification on industrial software, obtaining a corresponding simulated operating environment based on the real-time operating environment of the industrial software, and recording it as a real-time control environment; Step S302: Obtain extreme test shapes corresponding to all verification test combinations in the real-time operating environment of the industrial software based on the simulation environment testing method, and record them as real-time test shapes of the verification test combinations; Step S303, for any verification test combination: when the real-time test shape of the verification test combination is completely within the extreme test shape of the verification test combination in the real-time control environment, the verification test combination is recorded as a fully compatible combination; Step S304: When the real-time test shape of the verification test combination has an area that is not within the extreme test shape of the verification test combination in the real-time control environment, the environmental test parameters corresponding to the vertices in the real-time test shape of the verification test combination that are not within the extreme test shape of the verification test combination in the real-time control environment are recorded as compatible abnormal parameters, and the verification test combination is recorded as an incompatible combination; Step S305: When all verification test combinations are fully compatible combinations, the compatibility analysis results of the industrial software are recorded as completed compatibility verification; when there are incompatible combinations, the compatibility analysis results of the industrial software are recorded as incomplete compatibility verification, and all compatibility exception parameters are reported.
[0029] Example 3, please refer to Figure 5 As shown, Figure 5 An example of a structural diagram of an electronic device is provided. The electronic device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in the industrial software compatibility adaptation verification method based on AI dynamic environment simulation are executed to achieve the following functions: first, the industrial software is analyzed based on an existing compatibility test matrix, and the software compatibility matrix corresponding to the industrial software is obtained based on the analysis results; the software compatibility matrix is processed using an orthogonal analysis method, and a verification test combination is obtained based on the processing results; then, the operating environment of the industrial software is simulated using AI, and all verification test combinations are tested based on the simulated operating environment; based on the test results, the parameter test ratio corresponding to each verification test combination in each operating environment is obtained, and based on the parameter test ratio, the test judgment area corresponding to each verification test combination is obtained; finally, when performing compatibility adaptation verification on the industrial software, compatibility analysis is performed on the verification results based on the test judgment area.
[0030] In addition, the logical instructions in the above-mentioned memory can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
[0031] Example 4. The present application also provides a computer-readable storage medium. The present application provides a storage medium on which a computer program is stored. When the computer program is executed by the processor, the steps in the industrial software compatibility adaptation verification method based on AI dynamic environment simulation are executed to achieve the following functions: first, the industrial software is analyzed based on the existing compatibility test matrix, and the software compatibility matrix corresponding to the industrial software is obtained based on the analysis results; the software compatibility matrix is processed using the orthogonal analysis method, and a verification test combination is obtained based on the processing results; then, AI is used to simulate the operating environment of the industrial software, and all verification test combinations are tested based on the simulated operating environment; based on the test results, the parameter test ratio corresponding to each verification test combination in each operating environment is obtained, and the test judgment area corresponding to each verification test combination is obtained based on the parameter test ratio; finally, when performing compatibility adaptation verification on the industrial software, a compatibility analysis is performed on the verification results based on the test judgment area.
[0032] Through the description of the above embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the essence of the above technical solutions or the portion that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for enabling a computer device (such as a personal computer, server, or network device) to execute the methods described in various embodiments or certain portions of the embodiments.
[0033] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.
[0034] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An industrial software compatibility adaptation verification method based on AI dynamic environment simulation is characterized by: The steps include: Analyze industrial software based on the existing compatibility test matrix and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; use the orthogonal analysis method to process the software compatibility matrix and obtain the verification test combination based on the processing results; Use AI to simulate the operating environment of industrial software and test all verification test combinations based on the simulated operating environment; Obtaining the parameter test ratio corresponding to each verification test combination in each operating environment based on the test results, and obtaining the test judgment area corresponding to each verification test combination based on the parameter test ratio; When performing compatibility adaptation verification on industrial software, compatibility analysis is performed on the verification results based on the test judgment area.
2. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 1 is characterized in that: Analyze industrial software based on the existing compatibility test matrix, and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; Use orthogonal analysis to process the software compatibility matrix and obtain verification test combinations based on the processing results, including: The tested objects, test items, and version differences in the industrial software are obtained, and the compatibility test matrix constructed after the acquisition is recorded as the software compatibility matrix. The tested objects include the browser types, operating systems, device resolutions, and printer models that are allowed to carry the industrial software. The test items include the functional support, display effects, and data interaction corresponding to each test object. The version differences include the differences in browser type support for HTML5 and the system's compatibility with the driver. The software compatibility matrix was converted into the corresponding orthogonal array using AI based on the SAS orthogonal array database and recorded as the compatible orthogonal array.
3. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 2 is characterized in that: Analyze industrial software based on the existing compatibility test matrix, and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; Use orthogonal analysis to process the software compatibility matrix, and obtain verification test combinations based on the processing results, including: Use AI to learn the orthogonal analysis method, and use the AI after learning the orthogonal analysis method to process the compatible orthogonal table. Based on the processing results, multiple parameter combinations in the compatible orthogonal table are obtained and recorded as verification test combinations YC1 to verification test combinations YC n .
4. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 3 is characterized in that: Use AI to simulate the operating environment of industrial software and test all verification test combinations based on the simulated operating environment; Obtaining the parameter test ratio corresponding to each verification test combination in each operating environment based on the test results, and obtaining the test judgment area corresponding to each verification test combination based on the parameter test ratio includes: Based on the operating environment of the industrial software, AI is used to obtain scenarios corresponding to all operating environments and record them as simulated operating scenarios. The operating environment includes the hardware configuration, software configuration, and network environment when the industrial software is running. The simulation environment test method is used to analyze all verification test combinations in each simulation operation scenario in turn, and the test judgment area of all verification test combinations corresponding to each simulation operation scenario is obtained based on the analysis results.
5. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 4 is characterized in that: Simulated environment testing methods include: Based on the simulated operation scenario being analyzed, the operating environment of the industrial software is adjusted to the environment corresponding to the simulated operation scenario; for any verification test combination α: the parameters other than the verification test combination α in the compatible orthogonal table are recorded as non-test parameters, and the parameters in the verification test combination α in the compatible orthogonal table are recorded as environmental test parameters; When conducting simulated environment testing, keep all non-test parameters unchanged; The test standard of the test item corresponding to each environmental test parameter is obtained, and the parameter test ratio of the verification test combination α is obtained using a balanced test analysis method, wherein the parameter test ratio includes a balanced ratio and an extreme ratio.
6. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 5 is characterized in that: Simulated environment testing also includes: Establish a plane rectangular coordinate system, denoted as a scaled integrated coordinate system, wherein the X-axis and Y-axis of the scaled integrated coordinate system are both constant axes; denote the number of environmental test parameters as Q, establish a regular Q-polygon with the coordinate origin as the center in the scaled integrated coordinate system, and correspond each vertex of the regular Q-polygon to an environmental test parameter, wherein the distance between each vertex of the regular Q-polygon and the coordinate origin is 1; For any environmental test parameter β and the vertex γ corresponding to the environmental test parameter β: the points on the line connecting the vertex γ and the coordinate origin whose distance from the coordinate origin is the balanced ratio and extreme ratio of the environmental test parameter β are recorded as the balanced ratio point and the extreme ratio point respectively; Obtain all the balanced proportion points and extreme proportion points within the regular Q-polygon, and record the Q-polygon formed by all the balanced proportion points as the balanced test shape of the simulated operation scenario, and record the Q-polygon formed by all the extreme proportion points as the extreme test shape of the simulated operation scenario; The closed area formed by the balanced test shape and the extreme test shape is recorded as the test judgment area.
7. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 6 is characterized in that: The balanced test analysis method includes: For any environmental test parameter: when the environmental test parameter contains only one test item, the balanced ratio of the test items corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter; when the environmental test parameter contains multiple test items, the average value of the balanced ratios of all test items corresponding to the environmental test parameter is recorded as the parameter test ratio of the environmental test parameter.
8. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 7 is characterized in that: The method for obtaining the balancing ratio is as follows: establishing a plane rectangular coordinate system, recorded as the balancing test coordinate system, wherein the X-axis of the balancing test coordinate system is a constant axis, the unit of the Y-axis is the unit corresponding to the test standard of the test item, and the maximum value corresponding to the test standard of the test item is recorded as Y1; performing k tests on the test item in sequence, and after each test, using the number of tests performed as the horizontal coordinate and the parameter corresponding to the test standard in the test result as the vertical coordinate to perform punctuation in the balancing test coordinate system, and recording the line segment and curve obtained by fitting the k punctuation points corresponding to the k tests as the balancing test line and the balancing test curve, respectively; The vertical coordinate of the midpoint of the balanced test line divided by the value of Y1 is recorded as the balanced ratio of the test item, and the vertical coordinate of the highest point in the balanced test curve divided by the value of Y1 is recorded as the extreme ratio of the test item.
9. The industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to claim 8 is characterized in that: When performing compatibility and adaptation verification on industrial software, compatibility analysis of the verification results based on the test judgment area includes: When performing compatibility and adaptation verification on industrial software, obtain the corresponding simulated operating environment based on the real-time operating environment of the industrial software and record it as the real-time control environment; Based on the simulation environment testing method, the extreme test shapes corresponding to all verification test combinations in the real-time operating environment of the industrial software are obtained and recorded as the real-time test shapes of the verification test combinations; For any verification test combination: when the real-time test shape of the verification test combination is completely within the extreme test shape of the verification test combination in the real-time control environment, the verification test combination is recorded as a fully compatible combination; When the real-time test shape of the verification test combination has an area that is not within the extreme test shape of the verification test combination in the real-time control environment, the environmental test parameters corresponding to the vertices in the real-time test shape of the verification test combination that are not within the extreme test shape of the verification test combination in the real-time control environment are recorded as compatible abnormal parameters, and the verification test combination is recorded as an incompatible combination; When all verification test combinations are fully compatible combinations, the compatibility analysis results of the industrial software are recorded as completed compatibility verification; when there are incompatible combinations, the compatibility analysis results of the industrial software are recorded as incomplete compatibility verification, and all compatibility exception parameters are reported.
10. An industrial software compatibility adaptation verification system based on AI dynamic environment simulation, used to implement the industrial software compatibility adaptation verification method based on AI dynamic environment simulation according to any one of claims 1 to 9, characterized in that: It includes verification combination acquisition module, multi-environment combination analysis module and compatible verification analysis module; The verification combination acquisition module is used to analyze the industrial software based on the existing compatibility test matrix and obtain the software compatibility matrix corresponding to the industrial software based on the analysis results; use the orthogonal analysis method to process the software compatibility matrix and obtain the verification test combination based on the processing results; The multi-environment combination analysis module is used to simulate the operating environment of industrial software using AI and test all verification test combinations based on the simulated operating environment; Obtaining the parameter test ratio corresponding to each verification test combination in each operating environment based on the test results, and obtaining the test judgment area corresponding to each verification test combination based on the parameter test ratio; The compatibility verification analysis module is used to perform compatibility analysis on the verification results based on the test judgment area when performing compatibility adaptation verification on industrial software.
Citation Information
Patent Citations
Industrial software compatible adaptation method and device based on intermediate business model
CN118642871A
