Automatic test evaluation method and system for railway creative application system, electronic device and computer readable storage medium

Through the convolutional neural network and application quality evaluation model, the deficiencies in automated testing during the migration and adaptation process of the Railway Xinchuang application system are solved, automated evaluation of functions and performance is achieved, and system stability and accuracy after migration are ensured.

CN118708455APending Publication Date: 2024-09-27BEIJING JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410770959.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing technology lacks automated testing tools during the migration and adaptation process of railway information innovation application systems, resulting in low verification efficiency, inability to fully cover functions and performance, subjective errors, and lack of quantitative evaluation indicators.

Method used

Convolutional neural network algorithm and computer image recognition technology are used to compare the similarity of system functional interfaces before and after migration, establish an application quality evaluation model, and realize automated testing and evaluation of functions and performance. Through function tree modeling, picture similarity comparison and performance Collect indicators and conduct comprehensive evaluation.

Benefits of technology

It has implemented functional and performance testing before and after the migration of the Xinchuang application system, eliminating subjective errors, improving testing accuracy and efficiency, and ensuring stable operation of the migrated system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708455A
    Figure CN118708455A
Patent Text Reader

Abstract

The invention provides an automatic testing and evaluating technology for a railway creative application system, which is used for performing function and performance testing on the whole system before and after migration respectively, performing comparative analysis on data generated in the testing process, and establishing an application quality evaluation model to perform comprehensive evaluation on the whole migration process of the railway creative application system. Stable operation of the credential application before and after migration is achieved, and the problem that an application system in an original non-credential environment is incompatible when migrated to the credential environment is solved. Aiming at automatic evaluation of system functions, subjective errors are eliminated based on a convolutional neural network algorithm and a computer image recognition technology, the test is more accurate and reliable, automatic evaluation performs repetitive work by running scripts, the required time is shorter, and the automatic evaluation can be performed in a large range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of migration testing and evaluation of information-based innovation application systems, and specifically relates to an automated testing and evaluation method, system, electronic device, and computer-readable storage medium for railway information-based innovation application systems. Background Art

[0002] The full name of Xinchuang is Information Technology Application Innovation. System migration and adaptation in a Xinchuang environment refers to the process of transforming the application system in the original non-Xinchuang environment through certain technical transformations to achieve its normal use in a Xinchuang environment. Due to differences in operating systems, some functions of the application system before and after migration may not work properly. In order to ensure the normal operation of system functions, the migrated system must be functionally tested and compared with the functional interface of the original system to ensure the normal operation of the system after migration. In order to ensure the smooth migration of railway Xinchuang applications and the coordinated operation of the system, Xinchuang software testing is particularly important. Xinchuang testing needs to focus on issues such as performance stability and security in different application scenarios.

[0003] At present, the railway industry mainly adopts manual adaptation methods for migration adaptation in the information and innovation environment. During the functional testing stage, existing technologies usually test and run the integrated system in the functional environment and the production environment. Normally, it is necessary to manually design functional test cases and conduct functional testing. One function requires the design of one or more test cases. The main problems of this method are low verification efficiency, inability to fully cover the functions of the migration system, and inability to test the performance of the migration system. In addition, subjective errors may occur during manual testing. The evaluation results are subjective. Some test results may require qualitative evaluation by professional judgment, which may require convening experts for discussion and there may be subjective differences between different experts.

[0004] At the performance testing level, ICT adaptation methods lack quantitative evaluation indicators and efficient automated assessment tools and methods, resulting in incomplete and subjective performance evaluation of application systems after ICT migration. Furthermore, only functional verification is usually performed, lacking performance verification. Summary of the Invention

[0005] In response to the shortcomings of the current migration adaptation technology in the process of migrating railway credible innovation application systems from non-credible innovation environments to credible innovation environments, this patent proposes an automated testing and evaluation technology for railway credible innovation application systems, which conducts functional and performance tests on the entire system before and after migration, conducts comparative analysis on the data generated during the test, and establishes an application quality evaluation model to comprehensively evaluate the entire migration process of the railway credible innovation application system. This achieves stable operation of credible innovation applications before and after migration, and solves the incompatibility problem of application systems in the original non-credible innovation environment being migrated to the credible innovation environment.

[0006] For the automated evaluation of system functions, based on the convolutional neural network algorithm and computer image recognition technology, the migration system request interface is used to compare the similarity of the functional interfaces of the non-trusted innovation environment and the trusted innovation environment application system, and the image data similarity of the functional interfaces of the trusted innovation environment and the existing application system is compared to realize the automated evaluation of the trusted innovation application function. The functional similarity comparison based on neural network proposed in the present invention has strong usability in implementation. Compared with the research method of the existing patent, the image similarity comparison based on neural network eliminates subjective errors, and the test is more accurate and trustworthy. The automated evaluation performs repetitive work by running scripts, and takes less time and can be carried out on a large scale. In the first aspect, a method for automated testing and evaluation of railway trusted innovation application systems is proposed, comprising the following steps: Model the function buttons and function interfaces in the system to obtain a function tree; Combine multiple function trees into a function forest; Traversing the function forest, taking screenshots of each system interface that appears during the traversal process, and obtaining system screenshots before and after the migration of the function; Compare system screenshots before and after migration; An application quality evaluation model is established to evaluate the entire process of migration and adaptation of the railway information technology application system.

[0007] Based on the above solution, the modeling of the function buttons and function interfaces in the system specifically includes: setting the root node of each main function to be , the second-layer functional node is , the three-layer functional nodes are ; Each function button on the top-level interface is a separate root node. The secondary function buttons that appear after a button is triggered are the second-level nodes of the root node, and the function buttons that appear after the corresponding buttons of the secondary nodes are triggered are the third-level nodes. The leaf nodes of the resulting function tree should be function buttons that do not contain buttons at lower levels. Multiple function trees form a function forest.

[0008] It should be pointed out that the function forest is traversed using the pre-root traversal algorithm.

[0009] Based on the above solution, the system screenshots before and after the migration are specifically compared as follows: The comparison was performed using an image similarity comparison neural network, which uses VGG16 as its backbone architecture to extract features from the input interface image. This process leverages the deep feature representation capabilities of convolutional neural networks to efficiently capture the semantic information of the image. Subsequently, the similarity between the two functional interface images was measured using cosine similarity. Cosine similarity evaluates the degree of similarity between two feature vectors by calculating the cosine of the angle between them. When two vectors tend to point in the same direction, the cosine value is close to 1, indicating a high degree of similarity; when the angle between them is close to 90 degrees, the cosine value is close to 0, indicating a low degree of similarity.

[0010] Secondly, an automated test and evaluation system for railway information technology innovation application systems is proposed. Based on the above evaluation method, it specifically includes a test preparation module, a test execution module, a data analysis module, and a comprehensive evaluation module. The test preparation module is used to build the software and hardware environment required for the test, install the test software and dependencies, and design the test scenario; The test execution module is used to establish performance test cases according to the designed test scenarios, write corresponding test scripts, and simulate user requests when using railway software applications; The data analysis module is used to monitor the test running status during the execution of the test script, listen to each request result data during the execution process, and obtain the corresponding real-time test result data; It is also used to record and store the real-time test data results generated during the two tests performed before and after the migration, as well as the real-time server performance data corresponding to the servers to which the test scripts are applied, and to compare the performance test results before the migration with the performance test results after the migration; The comprehensive evaluation module is used to establish an application quality evaluation model to evaluate the entire process of migration and adaptation of the railway information and innovation application system.

[0011] The evaluation of the entire process of migration and adaptation of the railway information and innovation application system specifically includes: Assign different weights to each metric based on its impact on the performance of the application after migration. Perform weighted summation on the metric elements to calculate the measurement value of the sub-characteristic; Perform exponential power weighted summation on the sub-characteristic measurement values ​​to calculate the characteristic measurement value; Perform exponential power weighted summation on the features to calculate the final measurement value of the application quality; A quality assessment threshold α is set. When the calculated final value of the application quality is greater than the quality assessment threshold, the migration adaptation process of the railway information technology application system is considered successful. Otherwise, the migration is considered abnormal.

[0012] It should be noted that the application quality evaluation model specifically includes: characteristics, sub-characteristics, and metrics; Said characteristics include functional quality, performance quality; The sub-characteristics of functional quality include completeness and correctness; The sub-characteristics of performance quality include reliability, stability, and efficiency; The completeness and correctness measurement elements include functional similarity; The reliability metrics include response time compliance rate and TPS compliance rate; The stability metrics include throughput compliance rate and concurrent user volume; The efficiency metrics include CPU utilization, memory utilization, and disk activity rate.

[0013] According to a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0014] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0015] Beneficial effects of the present invention: The present invention is based on the existing ICT application system migration assessment technology. On the basis of manual testing, it clearly proposes a strategy for automated testing of system function similarity and system performance. It can ensure the objectivity of the test and improve the test efficiency under the premise of realizing the test function and ensuring the test accuracy. For functional automation testing, the present invention provides a function button modeling method and designs an image comparison similarity network model to achieve the automation and objectivity of functional testing. For performance automation testing, the present invention collects the performance indicators of the application before and after migration, conducts comparative analysis, establishes an application quality evaluation model to evaluate the performance effect of the application after migration, and ensures the stability of the application performance before and after the ICT migration. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present invention has the following accompanying drawings: Figure 1 This is a flow chart of the evaluation method of the present invention; Figure 2 This is a flow chart of the evaluation system of the present invention. DETAILED DESCRIPTION

[0017] In order to make the objects, advantages and features of the present invention more apparent, a detailed description is given below with reference to the accompanying drawings and specific embodiments.

[0018] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limiting the present invention.

[0019] It will be understood by those skilled in the art that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the description of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or couplings. The term "and / or" used herein includes any unit and all combinations of one or more associated listed items.

[0020] Those skilled in the art will understand that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art in the art to which this invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art and, unless defined as such, will not be interpreted in an idealized or overly formal sense.

[0021] The present invention proposes an automated testing and evaluation technology for railway information technology application systems, including functional automation testing and performance automation testing. For a system, function buttons are usually designed in a tree structure. Figure 1As shown, by modeling function buttons and function interfaces, a function tree is generated. The function tree is then traversed to obtain the system interface that appears after each function node is triggered. Let the root node of each primary function be fi, the second-level function nodes be fij, and the third-level function nodes be fijk. Each function button on the primary interface is a separate root node. The second-level function buttons that appear after the button is triggered are the second-level nodes of this root node, and the function buttons that appear after the corresponding buttons of the second-level nodes are triggered are the third-level nodes. The leaf nodes of the resulting function tree should be function buttons that do not contain buttons at lower levels. Multiple function trees form a function forest. After obtaining the function forest model, the forest is traversed using the pre-root traversal algorithm. During the traversal process, screenshots are taken of each system interface, obtaining screenshots of the system before and after the migration of the function. The screenshots before and after the migration are stored in two folders, each named after the node. To perform image similarity comparison, two images with the same file name are first selected from the file storage system and then fed into the image similarity comparison neural network. The selected neural network uses VGG16 as its backbone architecture, responsible for feature extraction from the input interface image. This process leverages the deep feature representation capabilities of convolutional neural networks (CNNs) to efficiently capture the semantic information of the image. Subsequently, the similarity between the two functional interface images is measured using cosine similarity. Cosine similarity evaluates the degree of similarity between two feature vectors by calculating the cosine of the angle between them. When two vectors tend to point in the same direction, the cosine value is close to 1, indicating a high degree of similarity. However, when the angle between them approaches 90 degrees, the cosine value is close to 0, indicating a low degree of similarity.

[0022] like Figure 2 As shown in the figure, the overall system can be divided into a test preparation module: it mainly completes the preparation work before the formal start of the test and establishes the necessary environment and conditions for the formal test; a test execution module: based on the established test environment, it performs functional testing and performance testing on the application system before and after migration respectively; a data analysis module: it records and analyzes the real-time test data results generated during the execution process; a comprehensive evaluation module: it makes a comprehensive evaluation of the migration adaptation process of the entire system based on the established mathematical model.

[0023] The functional testing phase automatically takes screenshots of the interface display of a specific function before and after migration, and then feeds these screenshots into an image similarity comparison network to obtain a similarity value. This method runs a script file to traverse the function buttons on a specific system interface, modeling each triggered function button during the traversal. The resulting function forest is then traversed using an algorithm, taking screenshots of each function interface during the traversal. Each function screenshot is assigned a number, and the pre- and post-migration screenshots of the same number are fed into an image similarity comparison neural network to obtain image similarity.

[0024] Specifically: The test preparation module sets up the required software and hardware environment for testing, including configuring the test server (pre-migration and post-migration, with pre-migration being a non-trusted and trusted environment and post-migration being a trusted and trusted environment), installing the test software and dependencies, and designing test scenarios that consider the actual application scenarios of the railway software system, including the services to be executed during the test, the number of users executing each service, the total number of simulated users, user execution methods, and relevant parameter settings during the execution process.

[0025] Test execution module. Establish performance test cases based on the designed test scenarios to ensure that the main test scenarios and functional points of railway applications are covered. Based on the established performance test cases, write corresponding test scripts to simulate user requests when using railway software applications, including user login, page browsing, form submission, file downloading and other operations. Customize the performance test parameters corresponding to the test script, and the performance test parameters include the number of concurrent users, request rate, script running time, and request interface information. The request interface is used to integrate performance monitoring code in the test script. Before migrating the railway trusted innovation application system, upload the test script to the test host in the non-trusted innovation environment to perform pre-migration performance testing. After migrating the application system to the trusted innovation environment, upload the test script to the test host in the trusted innovation environment to perform post-migration performance testing.

[0026] Data analysis module. Monitor the test running status during the execution of the test script, listen to each request result data during the execution process, and obtain the corresponding test real-time result data, which includes real-time request response time, average response time, maximum response time, slowest response time, TPS, and throughput; monitor the real-time performance data of the server during the test process, which includes CPU utilization, memory usage, and disk I / O. Record and store the real-time test data results generated during the two tests before and after the migration and the real-time performance data of the server corresponding to the server applied by the test script, compare the performance test results before the migration with the performance test results after the migration, and observe whether the performance of the application system after the migration has declined compared with that before the migration by comparing key performance indicators.

[0027] Comprehensive evaluation module. In order to evaluate whether the migrated ICT applications can have similar performance effects as before migration, that is, to evaluate the entire process of migration and adaptation of the railway ICT application system, an application quality evaluation model was established. The application quality characteristic model can be divided into two quality characteristics: functional quality and performance quality, and can be further subdivided into several sub-characteristics. The obtained functional similarity data and performance data are input into the mathematical model. According to the similarity value and the quality value obtained by the performance test, the final quality of the ICT migration is obtained through quality model calculation.

[0028] The application quality evaluation model defines a metric to describe the actual test items in functional and performance testing. These items affect the performance of the application after system migration and reflect the basic quality requirements of the application. As shown in Table 1, different values ​​are assigned to each metric based on its impact on the performance of the application after migration.

[0029] Table 1 Evaluation system weight table

[0030] After determining the weights of the metrics, the application quality measurement values ​​are calculated as follows: (a) Perform weighted summation on the metric elements to calculate the measurement value of the sub-characteristic.

[0031] The calculation formula is shown in formula (1): ; Usually take: ; Where: ………Measured value of the metric after migration ………Measured values ​​of the metric before migration ………The weight corresponding to the metric ...characteristic identifier, value = 1, 2, 3, ...n ...sub-characteristic identifier, value = 1, 2, 3, ... n ...the identifier of the metric, value = 1, 2, 3, ...n (b) Perform exponential power weighted summation on the sub-characteristic measurement values ​​to calculate the characteristic measurement value.

[0032] The calculation formula is shown in formula (2): ; Where: ………Measurement value of sub-characteristic ………The weight corresponding to this sub-feature ...characteristic identifier, value = 1, 2, 3, ...n ...sub-characteristic identifier, value = 1, 2, 3, ... n The features are weighted and summed exponentially to calculate the final measurement of application quality.

[0033] The calculation formula is shown in formula (3): ; Where: ………Measured value of a quality characteristic ………weights corresponding to quality characteristics ...characteristic identifier, value = 1, 2, 3, ...n ………the ultimate measure of software quality Finally, a quality assessment threshold α is set. When the calculated final value of the application quality is greater than the quality assessment threshold, the migration and adaptation process of the railway information technology application system is considered successful. Otherwise, the migration is considered abnormal.

[0034] It should be noted that the key innovations of the present invention are: (1) In functional testing, automatic modeling of function buttons and automatic screenshots of system interfaces are realized.

[0035] (2) Apply the quality evaluation model, including the definition and assignment of metrics, the calculation formula of quality characteristics, and finally evaluate the entire migration adaptation process based on the set threshold.

Claims

1. A railway information innovation application system automated testing and evaluation method, characterized in that: The steps include: Model the function buttons and function interfaces in the system to obtain a function tree; Combine multiple function trees into a function forest; Traversing the function forest, taking screenshots of each system interface that appears during the traversal process, and obtaining system screenshots before and after the migration of the function; Compare system screenshots before and after migration; An application quality evaluation model is established to evaluate the entire process of migration and adaptation of railway information technology application systems.

2. The evaluation method according to claim 1, characterized in that: The modeling of the function buttons and function interfaces in the system specifically includes: setting the root node of each main function to be , the second-layer functional node is , the three-layer functional nodes are ; Each function button on the primary interface is a separate root node. The secondary function button that appears after the button is triggered is the second-level node of the root node. The function button that appears after the button corresponding to the secondary node is triggered is the third-level node.

3. The evaluation method according to claim 1, characterized in that: Use the pre-root traversal algorithm to traverse the function forest.

4. The evaluation method according to claim 1, characterized in that: The system screenshots comparing before and after migration specifically include: Comparison is performed using a picture similarity comparison neural network, wherein the neural network uses VGG16 as its backbone architecture to extract features from the input interface image; The similarity between functional interface images is measured by cosine similarity.

5. The evaluation method according to claim 4, characterized in that: The cosine similarity specifically includes: evaluating the similarity between two feature vectors by calculating the cosine value of the angle between them.

6. The evaluation method according to claim 1, characterized in that: The establishment of an application quality evaluation model to evaluate the entire process of migration and adaptation of the railway information innovation application system specifically includes: Different weights are assigned to each metric element according to its impact on the application usage after migration. Perform weighted summation on the metric elements to calculate the measurement value of the sub-characteristic; Perform exponential power weighted summation on the sub-characteristic measurement values ​​to calculate the characteristic measurement value; Perform exponential weighted summation on the characteristics to calculate the final measurement value of the application quality; A quality assessment threshold α is set. When the calculated final value of the application quality is greater than the quality assessment threshold, the migration adaptation process of the railway information technology application system is considered to be successful. Otherwise, the migration is considered to be abnormal.

7. The evaluation method according to claim 1, characterized in that: The application quality evaluation model specifically includes: characteristics, sub-characteristics, and metrics; The characteristics include functional quality, performance quality; The sub-characteristics of functional quality include completeness and correctness; The sub-characteristics of the performance quality include reliability, stability, and efficiency; The completeness and correctness measurement elements include functional similarity; The reliability measurement elements include response time compliance rate and TPS compliance rate; The stability measurement elements include throughput compliance rate and concurrent user volume; The efficiency metrics include CPU utilization, memory utilization, and disk activity rate.

8. An automated testing and evaluation system for railway information and innovation application systems, characterized in that: Based on the evaluation method described in any one of claims 1 to 7, specifically comprising a test preparation module, a test execution module, a data analysis module, and a comprehensive evaluation module; The test preparation module is used to build the software and hardware environment required for the test, install the software and dependencies used for the test, and design the test scenario; The test execution module is used to establish performance test cases according to the designed test scenarios, write corresponding test scripts, and simulate user requests when using railway software applications; The data analysis module is used to monitor the test running status during the execution of the test script, listen to each request result data during the execution process, and obtain the corresponding test real-time result data; It is also used to record and store the real-time test data results generated during the two tests performed before and after the migration and the real-time server performance data corresponding to the server to which the test script is applied, and to compare the performance test results before the migration with the performance test results after the migration; The comprehensive evaluation module is used to establish an application quality evaluation model to evaluate the entire process of migration and adaptation of the railway information and innovation application system.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the evaluation method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the evaluation method according to any one of claims 1 to 7 are implemented.