Automatic testing method and device, computer equipment and storage medium

Through automated testing methods, the testing environment of the medical insurance system is built, and the testing scripts are generated and executed, which solves the problems of inefficient manual testing and inaccurate results, and achieves efficient and accurate medical insurance business testing.

CN119621576APending Publication Date: 2025-03-14KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411786041.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The existing technology of traditional Chinese medicine insurance business test relies on manual testing, which is inefficient and the accuracy and reliability of the test results are difficult to guarantee.

Method used

Using automated testing methods, the medical insurance system test environment is built through preset construction tools, the data generation tool is used to generate verification data, and the format is converted, and the end-to-end test script is generated, the script is executed in the test environment and the test results are stored.

Benefits of technology

It realizes automated testing of medical insurance business, improves testing efficiency, and ensures the accuracy and reliability of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621576A_ABST
    Figure CN119621576A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of data processing, and relates to an automatic test method, which is applied to the field of digital medical treatment and comprises the following steps: constructing a test environment corresponding to a preset medical insurance system based on a preset construction tool; generating medical insurance verification data based on a preset data generation tool; performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data; generating a corresponding end-to-end test script based on the target medical insurance verification data; executing the end-to-end test script in the test environment to obtain a corresponding test result; and carrying out storage processing on the test result. The invention further provides an automatic testing device, computer equipment and a storage medium. In addition, the invention also relates to a block chain technology, and the test result can be stored in a block chain. According to the invention, the efficiency of the medical insurance service test can be effectively improved, and the accuracy and reliability of the obtained test result are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of data processing technology and digital medicine, and in particular to automated testing methods, devices, computer equipment and storage media. Background Art

[0002] In the medical service industry, ensuring the health of citizens and meeting their medical needs is of vital importance. With the continuous implementation and adjustment of medical insurance policies, the connection between medical institutions and the medical insurance system has become a key link in improving service quality and optimizing the allocation of medical resources. Connecting with medical insurance not only means that medical institutions need to follow strict policies and regulations, but also requires seamless connection with the medical insurance system at the technical level to ensure that patients can enjoy medical insurance services conveniently.

[0003] Traditionally, after obtaining the qualification for medical insurance docking, medical institutions will rely on the conventional testing methods to avoid manual medical insurance business testing by testers. Although this testing method can verify the functions and performance of the medical insurance system to a certain extent, it has significant limitations. First, manual testing is inefficient and it is difficult to complete a large number of testing tasks in a short period of time. Especially when medical insurance policies are frequently adjusted, testers need to repeat the test continuously to ensure the adaptability and stability of the system. Secondly, manual testing is easily affected by human factors, and the accuracy and reliability of the test results are difficult to guarantee. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose an automated testing method, apparatus, computer equipment and storage medium to solve the technical problems that the existing medical insurance business testing that relies on avoiding testers to perform manual testing through conventional testing methods is inefficient and the accuracy and reliability of the test results are difficult to guarantee.

[0005] In order to solve the above technical problems, the present application provides an automated testing method, which adopts the following technical solutions:

[0006] Build a test environment corresponding to the preset medical insurance system based on the preset construction tools;

[0007] Generate medical insurance verification data based on preset data generation tools;

[0008] Performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data;

[0009] Generate a corresponding end-to-end test script based on the target medical insurance verification data;

[0010] Execute the end-to-end test script in the test environment to obtain corresponding test results;

[0011] The test result is stored.

[0012] Furthermore, the construction tool includes a configuration management tool, a virtual machine tool, and an automation tool; the step of constructing a test environment corresponding to the preset medical insurance system based on the preset construction tool specifically includes:

[0013] Configuring a remote connection tool corresponding to the medical insurance system based on the configuration management tool;

[0014] A front-end processor accessing the medical insurance system based on the virtual machine tool configuration;

[0015] The preset network access rules are configured based on the automation tool to obtain the test environment corresponding to the medical insurance system.

[0016] Furthermore, after the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes:

[0017] Call the preset performance testing tool;

[0018] Generate a performance test script for simulating access to the medical insurance system based on the performance test tool;

[0019] Execute the performance test script in the test environment to obtain corresponding performance test results;

[0020] The performance test results are stored.

[0021] Furthermore, after the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes:

[0022] Call the preset monitoring tool;

[0023] Deploy a monitoring agent corresponding to the monitoring tool in the test environment, and collect corresponding system performance data through the monitoring tool;

[0024] Analyzing and processing the system performance data to obtain corresponding performance analysis results;

[0025] The performance analysis result is stored.

[0026] Furthermore, after the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes:

[0027] Call the preset vulnerability scanning tool;

[0028] Configuring a preset scanning range in the vulnerability scanning tool;

[0029] Running the vulnerability scanning tool to perform system vulnerability scanning according to the scanning scope to obtain corresponding scanning results;

[0030] Analyze the scanning result to obtain a corresponding scanning analysis result;

[0031] The scanning and analysis results are stored.

[0032] Furthermore, after the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes:

[0033] Call the preset security testing tool;

[0034] Generate a corresponding security testing script based on the security testing tool;

[0035] Execute the security test script in the test environment to obtain corresponding security test results;

[0036] The safety test results are stored.

[0037] Furthermore, after the step of executing the end-to-end test script in the test environment to obtain the corresponding test result, the step further includes:

[0038] Call the preset log processing tool;

[0039] Collect corresponding system logs based on the log processing tool;

[0040] Perform problem location processing based on the system log to obtain corresponding problem data;

[0041] Send the problem data to relevant personnel.

[0042] In order to solve the above technical problems, the present application also provides an automated testing device, which adopts the following technical solution:

[0043] A construction module, used to build a test environment corresponding to a preset medical insurance system based on a preset construction tool;

[0044] A first generating module, used to generate medical insurance verification data based on a preset data generating tool;

[0045] A conversion module, used to perform format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data;

[0046] A second generating module, used to generate a corresponding end-to-end test script based on the target medical insurance verification data;

[0047] A first execution module, configured to execute the end-to-end test script in the test environment to obtain a corresponding test result;

[0048] The first storage module is used to store the test results.

[0049] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0050] Build a test environment corresponding to the preset medical insurance system based on the preset construction tools;

[0051] Generate medical insurance verification data based on preset data generation tools;

[0052] Performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data;

[0053] Generate a corresponding end-to-end test script based on the target medical insurance verification data;

[0054] Execute the end-to-end test script in the test environment to obtain corresponding test results;

[0055] The test result is stored.

[0056] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0057] Build a test environment corresponding to the preset medical insurance system based on the preset construction tools;

[0058] Generate medical insurance verification data based on preset data generation tools;

[0059] Performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data;

[0060] Generate a corresponding end-to-end test script based on the target medical insurance verification data;

[0061] Execute the end-to-end test script in the test environment to obtain corresponding test results;

[0062] The test result is stored.

[0063] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0064] This application first builds a test environment corresponding to a preset medical insurance system based on a preset construction tool; then generates medical insurance verification data based on a preset data generation tool; then performs format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data; subsequently generates a corresponding end-to-end test script based on the target medical insurance verification data; further executes the end-to-end test script in the test environment to obtain corresponding test results; and finally stores the test results. This application builds a test environment corresponding to a preset medical insurance system based on the use of a construction tool, then generates medical insurance verification data based on the use of a data generation tool, then performs format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data, and then generates corresponding end-to-end test scripts based on the target medical insurance verification data, and finally executes the end-to-end test scripts in the test environment to obtain corresponding test results, thereby realizing automated testing of medical insurance services and avoiding testers from performing manual medical insurance business testing through conventional testing methods. This application can effectively improve the efficiency of medical insurance business testing and ensure the accuracy and reliability of the test results obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0066] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0067] Figure 2 A flowchart according to an embodiment of the automated testing method of the present application;

[0068] Figure 3 is a structural schematic diagram of an embodiment of an automated testing device according to the present application;

[0069] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0071] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0072] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0073] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0074] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0075] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0076] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .

[0077] It should be noted that the automated testing method provided in the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the automated testing apparatus is generally disposed in the server / terminal device.

[0078] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0079] Continue to refer Figure 2 , shows a flow chart of an embodiment of the automated testing method according to the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The automated testing method provided in the embodiment of the present application can be applied to any scenario that requires automated testing, and the automated testing method can be applied to products in these scenarios, for example, automated testing in the field of digital medicine. The automated testing method comprises the following steps:

[0080] Step S201, constructing a test environment corresponding to a preset medical insurance system based on a preset construction tool.

[0081] In this embodiment, the electronic device (eg, Figure 1The server / terminal device shown in the figure) can obtain data through a wired connection or a wireless connection. It should be pointed out that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or developed in the future. The execution subject of this application may specifically be the internal system of the clinic, or referred to as the system, and the clinic is a test clinic that needs to conduct medical insurance tests corresponding to the availability of the medical insurance business. The above-mentioned medical insurance system is a medical insurance system that needs to be docked with the internal system of the clinic. Among them, the specific implementation process of building a test environment corresponding to the preset medical insurance system based on the preset construction tool will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here. In addition, the test environment preparation of the internal system of the clinic is to ensure that the clinic can smoothly access the medical insurance system and meet the docking requirements of the medical insurance system. In addition, the test clinic needs to apply for medical insurance docking qualifications and prepare hardware equipment in advance.

[0082] Step S202: Generate medical insurance verification data based on a preset data generation tool.

[0083] In this embodiment, the data generation tool may specifically be Faker, Mockaroo, etc. The data generation tool may be used to generate verification data of medical insurance users, medical insurance drugs, etc., and used as the medical insurance verification data.

[0084] Step S203, performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data.

[0085] In this embodiment, the above-mentioned format conversion process refers to configuring the medical insurance verification data into a format that can be recognized in the test environment so as to be used in the subsequent test process.

[0086] Step S204: Generate a corresponding end-to-end test script based on the target medical insurance verification data.

[0087] In this embodiment, testing tools such as Cypress and Playwright can be selected as the above end-to-end testing tools according to actual testing requirements. By using the API and test script language provided by the above end-to-end testing tools, a test script for verifying the integrity and availability of the medical insurance function is written to obtain the above end-to-end testing script.

[0088] Step S205: execute the end-to-end test script in the test environment to obtain corresponding test results.

[0089] In this embodiment, by running the above end-to-end test script in the above test environment, the whole process from user login to completion of medical insurance reimbursement application is simulated to verify whether the system can smoothly and accurately complete all medical insurance operations, that is, to verify the integrity and availability of medical insurance functions, thereby obtaining corresponding test results, which may include the execution results and logs of the end-to-end test script. In addition, according to the test results of the end-to-end test script, it is also possible to analyze whether the system has functional defects or performance problems.

[0090] Step S206, storing the test results.

[0091] In this embodiment, there is no specific limitation on the storage method of the above test results. For example, any storage method such as blockchain storage, disk storage, cloud database storage, local storage, etc. can be used.

[0092] This application first builds a test environment corresponding to a preset medical insurance system based on a preset construction tool; then generates medical insurance verification data based on a preset data generation tool; then performs format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data; subsequently generates a corresponding end-to-end test script based on the target medical insurance verification data; further executes the end-to-end test script in the test environment to obtain corresponding test results; and finally stores the test results. This application builds a test environment corresponding to a preset medical insurance system based on the use of a construction tool, then generates medical insurance verification data based on the use of a data generation tool, then performs format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data, and then generates corresponding end-to-end test scripts based on the target medical insurance verification data, and finally executes the end-to-end test scripts in the test environment to obtain corresponding test results, thereby realizing automated testing of medical insurance services and avoiding testers from performing manual medical insurance business testing through conventional testing methods. This application can effectively improve the efficiency of medical insurance business testing and ensure the accuracy and reliability of the test results obtained.

[0093] In some optional implementations, the construction tool includes a configuration management tool, a virtual machine tool, and an automation tool; step S201 includes the following steps:

[0094] A remote connection tool corresponding to the medical insurance system is configured based on the configuration management tool.

[0095] In this embodiment, the configuration management tool may be Ansible, and the remote connection tool may be a VPN remote connection tool. The VPN remote connection tool may be installed and configured between the local clinic system (or clinic internal system) and the medical insurance system by using the configuration management tool. Thus, the clinic can establish a stable and secure remote connection between the local clinic and the medical insurance system, which is convenient for testers to perform remote operations.

[0096] A front-end processor accessing the medical insurance system is configured based on the virtual machine tool.

[0097] In this embodiment, the above-mentioned virtual machine tool is a tool built based on virtual machine technology. The local clinic system can be configured to access the front-end machine of the medical insurance letter of the medical insurance system by using the virtual machine tool, such as Java service, and distinguish between the test environment and the production environment to ensure data isolation. Among them, the front-end machine is a bridge connecting the internal system of the clinic and the medical insurance system. Configuring the front-end machine for accessing the medical insurance environment locally and distinguishing between the test environment and the production environment can ensure the isolation of test data from actual business data to avoid affecting the actual business.

[0098] The preset network access rules are configured based on the automation tool to obtain the test environment corresponding to the medical insurance system.

[0099] In this embodiment, by using automated tools (such as CI / CD pipelines), ensure that the test domain name has opened the whitelist permission for external network access and configure the relevant network access rules. Through the above steps, the system will have the ability to access the medical insurance environment, can remotely access the medical insurance environment and perform testing, and can carry out verification of medical insurance docking services.

[0100] This application configures a remote connection tool corresponding to the medical insurance system based on the configuration management tool; then configures a front-end processor for accessing the medical insurance system based on the virtual machine tool; and subsequently configures preset network access rules based on the automation tool to obtain the test environment corresponding to the medical insurance system. This application configures a remote connection tool corresponding to the medical insurance system based on the use of a configuration management tool, configures a front-end processor for accessing the medical insurance system based on the use of a virtual machine tool, and configures preset network access rules based on the use of an automation tool, thereby efficiently and accurately constructing a test environment corresponding to the medical insurance system, thereby improving the efficiency and accuracy of constructing the test environment.

[0101] In some optional implementations of this embodiment, after step S201, the electronic device may further perform the following steps:

[0102] Call the preset performance testing tool.

[0103] In this embodiment, the above-mentioned performance testing tools can specifically be JMeter, Locust and other performance testing tools.

[0104] A performance testing script simulating access to the medical insurance system is generated based on the performance testing tool.

[0105] In this embodiment, the API and test script language provided by the performance testing tool can be used to write a test script that simulates multiple users accessing the medical insurance system at the same time, so as to obtain the above performance testing script.

[0106] The performance test script is executed in the test environment to obtain corresponding performance test results.

[0107] In this embodiment, by running the performance test script in the above-mentioned test environment, simulating multiple users concurrently accessing the medical insurance system, and capturing indicators such as system response time and throughput as corresponding performance test results, it is possible to automatically and accurately complete the performance automation test of the system.

[0108] The performance test results are stored.

[0109] In this embodiment, there is no specific limitation on the storage method of the above performance test results. For example, any storage method such as blockchain storage, disk storage, cloud database storage, local storage, etc. can be used.

[0110] This application calls a preset performance testing tool; then generates a performance testing script that simulates access to the medical insurance system based on the performance testing tool; then executes the performance testing script in the test environment to obtain corresponding performance testing results; and subsequently stores and processes the performance testing results. This application generates a performance testing script that simulates access to the medical insurance system based on the use of a performance testing tool, and then executes the performance testing script in the test environment to obtain corresponding performance testing results, thereby automatically and accurately completing the performance automation test of the system, improving the testing efficiency of the performance automation test, and ensuring the accuracy of the obtained performance test results. The performance test results will also be stored and processed, effectively ensuring the data security of the performance test results.

[0111] In some optional implementations, after step S201, the electronic device may further perform the following steps:

[0112] Call the preset monitoring tool.

[0113] In this embodiment, the monitoring tool may specifically be a monitoring tool such as Prometheus, Grafana, etc. And the performance indicators such as CPU, memory, network, etc. that need to be monitored are configured in the monitoring tool in advance according to the actual system monitoring requirements.

[0114] A monitoring agent corresponding to the monitoring tool is deployed in the test environment, and corresponding system performance data is collected through the monitoring tool.

[0115] In this embodiment, by deploying a monitoring agent corresponding to the monitoring tool in the test environment, it is possible to actually collect system performance data corresponding to the system through the monitoring tool.

[0116] The system performance data is analyzed and processed to obtain corresponding performance analysis results.

[0117] In this embodiment, the above system performance data can be analyzed and corresponding performance analysis results can be generated by utilizing the visual interface and alarm mechanism provided by the monitoring tool.

[0118] The performance analysis result is stored.

[0119] In this embodiment, there is no specific limitation on the storage method of the above performance analysis results, for example, any storage method such as blockchain storage, disk storage, cloud database storage, local storage, etc. can be used. In addition, performance bottlenecks or anomalies can be discovered and handled in a timely manner based on the obtained performance analysis results.

[0120] This application calls a preset monitoring tool; then deploys a monitoring agent corresponding to the monitoring tool in the test environment, and collects corresponding system performance data through the monitoring tool; then analyzes and processes the system performance data to obtain corresponding performance analysis results; and subsequently stores and processes the performance analysis results. This application deploys a monitoring agent corresponding to the preset monitoring tool in the test environment, and collects corresponding system performance data through the use of the monitoring tool, and then analyzes and processes the system performance data to obtain corresponding performance analysis results, so as to achieve automatic analysis and processing of system performance, thereby improving the processing intelligence of performance monitoring and analysis. In addition, the performance analysis results will also be stored and processed, effectively ensuring the data security of the performance analysis results.

[0121] In some optional implementations, after step S201, the electronic device may further perform the following steps:

[0122] Call the preset vulnerability scanning tool.

[0123] In this embodiment, tools such as OWASP ZAP and Nessus can be selected as the vulnerability scanning tools according to actual scanning requirements.

[0124] Configure a preset scanning range in the vulnerability scanning tool.

[0125] In this embodiment, the system scanning range may include system URL, port and other ranges.

[0126] Run the vulnerability scanning tool to perform system vulnerability scanning according to the scanning scope to obtain corresponding scanning results.

[0127] In this embodiment, a vulnerability scanning tool is run to perform a comprehensive vulnerability scan on the system, thereby obtaining corresponding scanning results.

[0128] The scanning result is analyzed to obtain a corresponding scanning analysis result.

[0129] In this embodiment, the system is analyzed based on the scanning results to determine whether there are security vulnerabilities such as SQL injection and XSS, and corresponding scanning analysis results are generated, and corresponding repair measures are formulated.

[0130] The scanning and analysis results are stored.

[0131] In this embodiment, there is no specific limitation on the storage method of the above scanning and analysis results, for example, any storage method such as blockchain storage, disk storage, cloud database storage, local storage, etc. can be used. In addition, corresponding repair measures can be formulated according to the obtained scanning and analysis results.

[0132] The present application calls a preset vulnerability scanning tool; then configures a preset scanning range in the vulnerability scanning tool; then runs the vulnerability scanning tool to perform a system vulnerability scan according to the scanning range to obtain corresponding scanning results; subsequently analyzes the scanning results to obtain corresponding scanning analysis results; and finally stores and processes the scanning analysis results. The present application configures a preset scanning range in the called vulnerability scanning tool, then runs the vulnerability scanning tool to perform a system vulnerability scan according to the scanning range to obtain corresponding scanning results; then analyzes the scanning results to obtain corresponding scanning analysis results, thereby achieving automatic scanning and analysis processing of system vulnerabilities, and improving the processing intelligence and automation of vulnerability scanning and analysis. In addition, the scanning and analysis results will also be stored and processed, effectively ensuring the data security of the scanning and analysis results.

[0133] In some optional implementations of this embodiment, after step S201, the electronic device may further perform the following steps:

[0134] Call the preset security testing tool.

[0135] In this embodiment, testing tools such as Burp Suite and SonarQube can be selected as the above-mentioned security testing tools according to actual testing requirements.

[0136] Generate a corresponding security testing script based on the security testing tool.

[0137] In this embodiment, the above-mentioned security test script can be obtained by using the API and test script language provided by the security testing tool to write a test script for detecting the effectiveness of security protection measures such as data encryption and access control.

[0138] The security test script is executed in the test environment to obtain a corresponding security test result.

[0139] In this embodiment, by running the security test script in the above test environment, the system is tested for security and the corresponding security test results are obtained. According to the execution results and logs of the security test script, it is possible to further analyze whether the system has security vulnerabilities or improper configuration, and formulate corresponding repair measures.

[0140] The safety test results are stored.

[0141] In this embodiment, there is no specific limitation on the storage method of the above security test results. For example, any storage method such as blockchain storage, disk storage, cloud database storage, local storage, etc. can be used.

[0142] This application calls a preset security testing tool; then generates a corresponding security testing script based on the security testing tool; then executes the security testing script in the test environment to obtain a corresponding security testing result; and then stores and processes the security testing result. This application generates a security testing script based on the use of a security testing tool, and then executes the security testing script in the test environment to obtain a corresponding security testing result, thereby automatically and accurately completing the security testing of the system, improving the testing efficiency of the security testing, and ensuring the accuracy of the obtained security testing results. The security testing results will also be stored and processed, effectively ensuring the data security of the security testing results.

[0143] In some optional implementations of this embodiment, after step S205, the electronic device may further perform the following steps:

[0144] Call the preset log processing tool.

[0145] In this embodiment, the log processing tool may specifically be a log collection and analysis tool (such as ELKStack, Splunk).

[0146] Corresponding system logs are collected based on the log processing tool.

[0147] In this embodiment, the system logs during the operation of the system can be collected by running the above-mentioned log processing tool.

[0148] Problem location processing is performed based on the system log to obtain corresponding problem data.

[0149] In this embodiment, a log processing tool is used to perform problem analysis on the obtained system log, thereby realizing rapid problem location and obtaining corresponding problem data.

[0150] Send the problem data to relevant personnel.

[0151] In this embodiment, the problem data can be sent to relevant personnel by email, SMS, interface reminder, etc. The above-mentioned relevant personnel may refer to system operation and maintenance personnel.

[0152] This application calls a preset log processing tool; then collects corresponding system logs based on the log processing tool; then performs problem location processing based on the system log to obtain corresponding problem data; and subsequently sends the problem data to relevant personnel. This application collects corresponding system logs based on the use of a log processing tool, and then performs problem location processing based on the system log to obtain corresponding problem data, thereby achieving automatic location processing for system problems. And the problem data will be intelligently sent to relevant personnel so that relevant personnel can take relevant measures in a timely manner to solve the problem data, thereby ensuring the stability of system operation.

[0153] In some optional implementations, the user information obtained is subject to the user's consent and complies with relevant laws and policies.

[0154] In addition, the non-Company software tools or components that appear in the embodiments of the present application are merely examples and do not represent actual use.

[0155] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0156] It should be emphasized that in order to further ensure the privacy and security of the above test results, the above test results can also be stored in a blockchain node.

[0157] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0158] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0159] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0161] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0162] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of an automated testing device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0163] like Figure 3 As shown, the automated testing device 300 described in this embodiment includes: a construction module 301, a first generation module 302, a conversion module 303, a second generation module 304, a first execution module 305 and a first storage module 306. Among them:

[0164] A construction module 301 is used to construct a test environment corresponding to a preset medical insurance system based on a preset construction tool;

[0165] A first generating module 302, for generating medical insurance verification data based on a preset data generating tool;

[0166] The conversion module 303 is used to perform format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data;

[0167] A second generating module 304 is used to generate a corresponding end-to-end test script based on the target medical insurance verification data;

[0168] A first execution module 305, configured to execute the end-to-end test script in the test environment to obtain a corresponding test result;

[0169] The first storage module 306 is used to store the test results.

[0170] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0171] In some optional implementations of this embodiment, the construction tool includes a configuration management tool, a virtual machine tool, and an automation tool; the construction module 301 includes:

[0172] A first configuration submodule, configured to configure a remote connection tool corresponding to the medical insurance system based on the configuration management tool;

[0173] A second configuration submodule, configured to access the front-end processor of the medical insurance system based on the virtual machine tool configuration;

[0174] The third configuration submodule is used to configure preset network access rules based on the automation tool to obtain the test environment corresponding to the medical insurance system.

[0175] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0176] In some optional implementations of this embodiment, the automated testing device further includes:

[0177] The first calling module is used to call a preset performance testing tool;

[0178] A second generating module is used to generate a performance testing script for simulating access to the medical insurance system based on the performance testing tool;

[0179] A second execution module is used to execute the performance test script in the test environment to obtain corresponding performance test results;

[0180] The second storage module is used to store the performance test results.

[0181] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0182] In some optional implementations of this embodiment, the automated testing device further includes:

[0183] The second calling module is used to call a preset monitoring tool;

[0184] A collection module, used to deploy a monitoring agent corresponding to the monitoring tool in the test environment, and collect corresponding system performance data through the monitoring tool;

[0185] A first analysis module is used to analyze and process the system performance data to obtain corresponding performance analysis results;

[0186] The third storage module is used to store and process the performance analysis results.

[0187] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0188] In some optional implementations of this embodiment, the automated testing device further includes:

[0189] The third calling module is used to call a preset vulnerability scanning tool;

[0190] A configuration module, used to configure a preset scanning range in the vulnerability scanning tool;

[0191] A scanning module, used to run the vulnerability scanning tool to perform system vulnerability scanning according to the scanning range to obtain corresponding scanning results;

[0192] A second analysis module is used to analyze the scanning result to obtain a corresponding scanning analysis result;

[0193] The fourth storage module is used to store and process the scanning and analysis results.

[0194] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0195] In some optional implementations of this embodiment, the automated testing device further includes:

[0196] The fourth calling module is used to call a preset security testing tool;

[0197] A third generation module is used to generate a corresponding security test script based on the security test tool;

[0198] A third execution module is used to execute the security test script in the test environment to obtain a corresponding security test result;

[0199] The fifth storage module is used to store and process the security test results.

[0200] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0201] In some optional implementations of this embodiment, the automated testing device further includes:

[0202] The fifth calling module is used to call the preset log processing tool;

[0203] A collection module, used to collect corresponding system logs based on the log processing tool;

[0204] A positioning module, used to perform problem positioning processing based on the system log to obtain corresponding problem data;

[0205] The sending module is used to send the problem data to relevant personnel.

[0206] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the automated testing method in the aforementioned implementation manner, and are not described in detail herein.

[0207] To solve the above technical problems, the present application also provides a computer device. Figure 4, Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0208] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0209] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0210] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the automated test method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0211] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the automated testing method.

[0212] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0213] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0214] In the embodiment of the present application, the present application first constructs a test environment corresponding to the preset medical insurance system based on the preset construction tool; then generates medical insurance verification data based on the preset data generation tool; then performs format conversion processing on the medical insurance verification data to obtain the corresponding target medical insurance verification data; subsequently generates a corresponding end-to-end test script based on the target medical insurance verification data; further executes the end-to-end test script in the test environment to obtain the corresponding test result; and finally stores the test result. The present application constructs a test environment corresponding to the preset medical insurance system based on the use of the construction tool, then generates medical insurance verification data based on the use of the data generation tool, then performs format conversion processing on the medical insurance verification data to obtain the corresponding target medical insurance verification data, and then generates the corresponding end-to-end test script based on the target medical insurance verification data, and finally executes the end-to-end test script in the test environment to obtain the corresponding test result, thereby realizing the automated testing of the medical insurance business and avoiding the test personnel from performing manual medical insurance business testing through conventional testing methods. The present application can effectively improve the efficiency of the medical insurance business testing and ensure the accuracy and reliability of the test results obtained. The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the automated testing method as described above.

[0215] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0216] In the embodiment of the present application, the present application first constructs a test environment corresponding to the preset medical insurance system based on the preset construction tool; then generates medical insurance verification data based on the preset data generation tool; then performs format conversion processing on the medical insurance verification data to obtain the corresponding target medical insurance verification data; subsequently generates a corresponding end-to-end test script based on the target medical insurance verification data; further executes the end-to-end test script in the test environment to obtain the corresponding test result; and finally stores the test result. The present application constructs a test environment corresponding to the preset medical insurance system based on the use of the construction tool, then generates medical insurance verification data based on the use of the data generation tool, then performs format conversion processing on the medical insurance verification data to obtain the corresponding target medical insurance verification data, and then generates the corresponding end-to-end test script based on the target medical insurance verification data, and finally executes the end-to-end test script in the test environment to obtain the corresponding test result, thereby realizing the automated testing of the medical insurance business and avoiding the test personnel from performing manual medical insurance business testing through conventional testing methods. The present application can effectively improve the efficiency of the medical insurance business testing and ensure the accuracy and reliability of the test results obtained.

[0217] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0218] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. An automated testing method, characterized in that: The steps include: Build a test environment corresponding to the preset medical insurance system based on the preset construction tools; Generate medical insurance verification data based on preset data generation tools; Performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data; Generate a corresponding end-to-end test script based on the target medical insurance verification data; Execute the end-to-end test script in the test environment to obtain corresponding test results; The test result is stored.

2. The automated testing method according to claim 1, characterized in that: The construction tool includes a configuration management tool, a virtual machine tool and an automation tool; the step of building a test environment corresponding to the preset medical insurance system based on the preset construction tool specifically includes: Configuring a remote connection tool corresponding to the medical insurance system based on the configuration management tool; A front-end processor accessing the medical insurance system based on the virtual machine tool configuration; The preset network access rules are configured based on the automation tool to obtain the test environment corresponding to the medical insurance system.

3. The automated testing method according to claim 1, characterized in that: After the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes: Call the preset performance testing tool; Generate a performance test script for simulating access to the medical insurance system based on the performance test tool; Execute the performance test script in the test environment to obtain corresponding performance test results; The performance test results are stored.

4. The automated testing method according to claim 1, characterized in that: After the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes: Call the preset monitoring tool; Deploy a monitoring agent corresponding to the monitoring tool in the test environment, and collect corresponding system performance data through the monitoring tool; Analyzing and processing the system performance data to obtain corresponding performance analysis results; The performance analysis result is stored.

5. The automated testing method according to claim 1, characterized in that: After the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes: Call the preset vulnerability scanning tool; Configuring a preset scanning range in the vulnerability scanning tool; Running the vulnerability scanning tool to scan system vulnerabilities according to the scanning scope to obtain corresponding scanning results; Analyze the scanning result to obtain a corresponding scanning analysis result; The scanning and analysis results are stored.

6. The automated testing method according to claim 1, characterized in that: After the step of building a test environment corresponding to the preset medical insurance system based on the preset building tool, the method further includes: Call the preset security testing tool; Generate a corresponding security testing script based on the security testing tool; Execute the security test script in the test environment to obtain corresponding security test results; The safety test results are stored.

7. The automated testing method according to claim 1, characterized in that: After the step of executing the end-to-end test script in the test environment to obtain the corresponding test result, the method further includes: Call the preset log processing tool; Collect corresponding system logs based on the log processing tool; Perform problem location processing based on the system log to obtain corresponding problem data; Send the problem data to relevant personnel.

8. An automated testing device, characterized in that: include: A construction module, used to build a test environment corresponding to a preset medical insurance system based on a preset construction tool; A first generating module, used to generate medical insurance verification data based on a preset data generating tool; A conversion module, used for performing format conversion processing on the medical insurance verification data to obtain corresponding target medical insurance verification data; A second generating module, used to generate a corresponding end-to-end test script based on the target medical insurance verification data; A first execution module, configured to execute the end-to-end test script in the test environment to obtain a corresponding test result; The first storage module is used to store the test results.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the automated testing method according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the automated testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Medical insurance system test method and apparatus

    CN107515819A

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

    CN113434400A

  • Performance test method and device, computer equipment and storage medium

    CN114625621A

  • System security test method and device, equipment and storage medium

    CN118228268A

  • Method and Apparatus for Completing Functional Testing

    US20080276224A1