CN117271321A - Service automation test method, system, computer equipment and storage medium - Google Patents

Service automation test method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN117271321A
CN117271321A CN202311193251.1A CN202311193251A CN117271321A CN 117271321 A CN117271321 A CN 117271321A CN 202311193251 A CN202311193251 A CN 202311193251A CN 117271321 A CN117271321 A CN 117271321A
Authority
CN
China
Prior art keywords
scene
test
service
execution instruction
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311193251.1A
Other languages
Chinese (zh)
Inventor
陈薇
王玉婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Health Insurance Company of China Ltd
Original Assignee
Ping An Health Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Health Insurance Company of China Ltd filed Critical Ping An Health Insurance Company of China Ltd
Priority to CN202311193251.1A priority Critical patent/CN117271321A/en
Publication of CN117271321A publication Critical patent/CN117271321A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application belongs to the field of business testing and digital medical treatment, and relates to a business automation testing method, which comprises the following steps: acquiring scene data of each test scene corresponding to service requirements, and configuring according to the scene data to obtain a scene configuration table; receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table; sequencing the scene feature combinations according to a dynamic programming algorithm, and determining a target test flow corresponding to the execution instruction; and executing the target test flow to obtain a test result corresponding to the target test flow, and returning the test result to the front-end page. The application also provides a service automation test system, computer equipment and a storage medium. The method and the device can realize automatic testing aiming at various service scenes, not only avoid wasting manpower and time, but also improve the testing efficiency.

Description

Service automation test method, system, computer equipment and storage medium
Technical Field
The application relates to the field of business testing and digital medical treatment, and is applied to the scene of settlement flow testing of medical health service related business products, in particular to a business automation testing method, a system, computer equipment and a storage medium.
Background
At present, the medical health service has a plurality of business product forms, such as home self-check, store detection, mailing and delivery inspection, and the like, and because related business personnel change frequently, the business personnel and financial personnel need to conduct joint debugging every time the business product is on line, so as to test business scenes such as purchasing success, purchasing failure, settlement success, settlement failure, refund and the like.
The conventional testing method is that firstly, financial staff executes related testing flows corresponding to business scenes such as successful purchase, successful purchase failure, successful settlement, failed settlement, refund and the like, and feeds back testing results, and then the business staff carries out corresponding adjustment according to the testing results fed back by the financial staff. However, the service personnel can not carry out subsequent processes before receiving the test result fed back by the financial personnel, so that the labor and time are wasted, the test efficiency is low, and the relevant test verification work is not required to change codes for the financial personnel, so that the repeatability is high, the technical performance is low, and precious test labor resources are easily wasted.
In summary, the related service scenarios of the medical service product are tested by adopting the traditional testing scheme, which not only wastes a great deal of manpower and time, but also results in lower testing efficiency.
Disclosure of Invention
The embodiment of the application aims to provide a service automation testing method, a system, computer equipment and a storage medium, so as to solve the technical problems of higher labor cost and time cost and lower efficiency in service scene testing.
In order to solve the above technical problems, the embodiments of the present application provide a service automation testing method, which adopts the following technical schemes:
a service automation test method comprises the following steps:
acquiring scene data of each test scene corresponding to service requirements, and configuring according to the scene data to obtain a scene configuration table;
receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table;
sequencing the scene feature combinations according to a dynamic programming algorithm, and determining a target test flow corresponding to the execution instruction;
and executing the target test flow to obtain a test result corresponding to the target test flow, and returning the test result to the front-end page.
Further, the step of sorting the scene feature combinations according to a dynamic programming algorithm to determine a target test flow corresponding to the execution instruction specifically includes:
according to preset interface information, determining a service interface corresponding to each target scene feature in the scene feature combination;
sequencing the service interfaces according to the dynamic programming algorithm to obtain an interface calling sequence;
and determining the target test flow according to the interface calling sequence and the scene characteristic combination.
Further, the step of executing the target test procedure to obtain a test result corresponding to the target test procedure and returning the test result to the front page specifically includes:
according to the interface calling sequence, calling each service interface to sequentially execute the basic flow corresponding to each target scene characteristic, and obtaining the test result;
and returning the test result to the front-end page to display the page.
Further, the step of receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table specifically includes:
Receiving the execution instruction, and determining target configuration information corresponding to the execution instruction in the scene configuration table according to the input parameter;
and extracting features according to the target configuration information to obtain each target scene feature corresponding to the execution instruction as the scene feature combination.
Further, before the step of receiving the execution instruction carrying the input parameter sent by the front-end page and extracting the scene feature combination corresponding to the execution instruction according to the input parameter and the scene configuration table, the method further includes:
determining scene characteristics corresponding to each test scene according to the configuration content of the scene configuration table;
and configuring the service interface corresponding to each scene characteristic according to the configuration content.
Further, the step of obtaining the scene data of each test scene corresponding to the service requirement, configuring according to the scene data, and obtaining a scene configuration table specifically includes:
acquiring the scene data, and configuring the scene data to obtain configuration information corresponding to each test scene;
and constructing the scene configuration table according to the configuration information.
Further, after obtaining the scene data of each test scene corresponding to the service requirement, configuring according to the scene data to obtain the scene configuration table, the method further includes:
when receiving an update instruction carrying newly added scene data, updating the configuration information according to the newly added scene data to obtain updated configuration information;
and reconstructing a scene configuration table according to the updated configuration information.
In order to solve the above technical problems, the embodiments of the present application further provide a service automation testing system, which adopts the following technical scheme:
a business automation test system, comprising:
the configuration module is used for acquiring the scene data of each test scene corresponding to the service requirement, and configuring the test scenes according to the scene data to obtain a scene configuration table;
the extraction module is used for receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table;
the determining module is used for sequencing the scene feature combinations according to a dynamic programming algorithm and determining a target test flow corresponding to the execution instruction;
And the execution module is used for executing the target test flow, obtaining a test result corresponding to the target test flow, and returning the test result to the front-end page.
In order to solve the above technical problems, the embodiments of the present application further provide a computer device, which adopts the following technical schemes:
a computer device comprising a memory having stored therein computer readable instructions which when executed by a processor implement the steps of the business automation test method as described above.
In order to solve the above technical problems, embodiments of the present application further provide a computer readable storage medium, which adopts the following technical solutions:
a computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of a business automation test method as described above.
Compared with the prior art, the embodiment of the application has the following main beneficial effects:
according to the service automation test method, scene data of each test scene corresponding to service requirements are obtained, and configuration is carried out according to the scene data to obtain a scene configuration table; receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table; sequencing the scene feature combinations according to a dynamic programming algorithm, and determining a target test flow corresponding to the execution instruction; and executing the target test flow to obtain a test result corresponding to the target test flow, and returning the test result to the front-end page. According to the method and the device, each testing scene is configured according to the service requirement in advance, when the command sent by the service personnel through one key is received, the corresponding testing flow can be automatically executed, so that automatic testing can be realized for various service scenes under the condition of numerous service product forms, waste of manpower and time is avoided, and the testing efficiency is improved.
Drawings
For a clearer description of the solution in the present application, a brief description will be given below of the drawings that are needed in the description of the embodiments of the present application, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a business automation test method according to the present application;
FIG. 3 is a schematic diagram of one embodiment of a business automation test system according to the present application;
FIG. 4 is a schematic structural diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the technical solutions of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 (MPEG Audio Layer III, moving picture experts compression standard audio layer 3) players, MP4 (MPEG Audio Layer IV, moving picture experts compression standard audio layer 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the service automation test method provided in the embodiment of the present application is generally executed by a server, and accordingly, the service automation test system is generally disposed in the server.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow chart of one embodiment of a business automation test method according to the present application is shown. The service automation test method comprises the following steps:
Step S201, obtaining scene data of each test scene corresponding to service requirements, and configuring according to the scene data to obtain a scene configuration table;
in this embodiment, the service automation test method is operated in the service automation test system, and the service automation test method is implemented, first, the scene data of each test scene corresponding to the service requirement needs to be acquired, and then configuration is performed according to the acquired scene data, so as to obtain the scene configuration table. Specifically, taking a medical health service as an example, in relevant scenes of the medical health service, due to numerous service forms, such as home self-check, store detection, mailing and delivery inspection, each item further comprises service scenes such as purchase success, purchase failure, settlement success, settlement failure, refund and the like, the service scenes cover various test scenes, such as a payback way refund and a WeChat way refund under refund service, when testing each test scene corresponding to service requirements, scene data of each test scene can be acquired first, and the scene data is configured to obtain configuration information corresponding to each test scene, so that a scene configuration table is constructed according to the configuration information.
Step S202, receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table;
in this embodiment, after the scene configuration table is obtained, an execution instruction carrying an incoming parameter sent by the front-end page may be received, and a scene feature combination corresponding to the execution instruction may be extracted according to the incoming parameter and the scene configuration table. Specifically, the scene configuration table is used as a preset super parameter, when an execution instruction carrying an incoming parameter sent by a front-end page is received, target configuration information corresponding to the execution instruction can be determined in the scene configuration table according to the incoming parameter, and then feature extraction is carried out according to the target configuration information to obtain each target scene feature corresponding to the execution instruction as a scene feature combination corresponding to the execution instruction.
It can be understood that when the front-end page is operated, the business personnel can set the input parameters according to the business requirement, and then click the execution button to send the execution instruction carrying the input parameters, so that the business automation test system automatically executes the test flow.
It should be noted that, in the test method, the scenario method is a method for describing the functional points or the service flow of the system by using the scenario, so as to improve the test effect. According to the scenario method, in this embodiment, different test scenarios may be equivalent to different test cases, and the scenario features of the test scenarios correspond to the elementary streams or each alternative stream, where each scenario feature may represent an executable basic flow.
Step S203, sorting the scene feature combinations according to a dynamic programming algorithm, and determining a target test flow corresponding to the execution instruction;
in this embodiment, after the scene feature combination corresponding to the execution instruction is extracted, the scene feature combination may be ordered according to the dynamic programming algorithm, so as to determine the target test flow corresponding to the execution instruction. Specifically, the scene feature combination corresponding to the execution instruction includes each target scene feature, according to preset interface information, a service interface corresponding to each target scene feature in the scene feature combination can be determined, then according to a dynamic programming algorithm, each service interface is sequenced, an interface calling sequence can be obtained, that is, the execution sequence corresponding to each target scene feature in the scene feature combination is obtained, and according to the interface calling sequence and the scene feature combination, a target test flow corresponding to the execution instruction can be determined as follows: and calling each service interface according to the interface calling sequence to sequentially execute the basic flow represented by each target scene feature in the scene feature combination.
It should be noted that dynamic planning (Dynamic programming) is a method used in mathematics, computer science and economics to solve complex problems by decomposing the original problem into relatively simple sub-problems. Through a dynamic programming algorithm, the problem can be divided into a plurality of ordered stages according to the characteristics of the problem, and the problem is applied to the embodiment, so that an interface call sequence can be obtained through each target scene characteristic in the scene characteristic combination.
Step S204, executing the target test flow, obtaining a test result corresponding to the target test flow, and returning the test result to the front-end page.
In this embodiment, after determining the target test flow corresponding to the execution instruction, the test result corresponding to the target test flow may be obtained by executing the target test flow, and the test result is returned to the front page. Specifically, the scene feature combination and the interface calling sequence can be determined through a preset scene configuration table and the incoming parameters carried by the execution instruction, so that the target test flow is determined and executed, each service interface can be called according to the interface calling sequence because each target scene feature in the scene feature combination corresponds to one service interface, so that the corresponding flow is executed according to each target scene feature in the scene feature combination in sequence, the corresponding test result is obtained after the target test flow is executed, the test result is returned to the front page, the payment treasured original path is taken as an example, the service personnel inquires and selects related data of the payment treasured original path to be inserted into the temporary table, and clicks and executes the temporary table, the system executes the checking script according to the temporary table to obtain the incoming parameters, then executes stored and reimbursed timing tasks under the payment treasured original path scene according to the incoming parameters, and waits for the execution result returned after the execution is completed, the execution result is returned to the front page to the service personnel, the data can be labeled, such as creator, creation time, service type, transfer number, transfer error number, follow-up data and the like are formed, and the complete closed-loop data is cleared.
According to the method and the device, each testing scene is configured according to the service requirement in advance, when the command sent by the service personnel through one key is received, the corresponding testing flow can be automatically executed, so that automatic testing can be realized for various service scenes under the condition of numerous service product forms, waste of manpower and time is avoided, and the testing efficiency is improved.
In some optional implementations of this embodiment, the step of sorting the scene feature combinations according to a dynamic programming algorithm to determine the target test flow corresponding to the execution instruction includes:
according to preset interface information, determining a service interface corresponding to each target scene feature in the scene feature combination;
sequencing the service interfaces according to the dynamic programming algorithm to obtain an interface calling sequence;
and determining the target test flow according to the interface calling sequence and the scene characteristic combination.
In this embodiment, after extracting the scene feature combination corresponding to the execution instruction, the service interfaces corresponding to each target scene feature in the scene feature combination may be determined according to preset interface information, and then the service interfaces are ordered according to a dynamic programming algorithm to obtain an interface call sequence, and a target test procedure is determined according to the interface call sequence and the scene feature combination. Specifically, the scene feature combination includes each target scene feature corresponding to the execution instruction, the preset interface information includes service interfaces corresponding to each scene feature in the scene configuration table, the service interfaces corresponding to each target scene feature in the scene feature combination can be determined according to the interface information, and because the scene feature combination is obtained according to the input parameters, the execution sequence of each target scene feature in the scene feature combination can be determined according to the dynamic programming algorithm, so that each service interface is ordered to obtain an interface call sequence, and the target test flow corresponding to the execution instruction can be determined according to the interface call sequence and the scene feature combination: and calling each service interface according to the interface calling sequence to sequentially execute the basic flow represented by each scene feature in the scene feature combination.
According to the method and the device, after the parameter transmission realization flow of the front-end page is selected, the execution sequence is determined by utilizing the dynamic programming algorithm, so that the test flow is automatically generated, and finally, the automatic test can be realized for various service scenes under the condition of numerous service product forms, thereby avoiding wasting manpower and time and improving the test efficiency.
In some optional implementations of this embodiment, the step of executing the target test flow to obtain a test result corresponding to the target test flow and returning the test result to the front page includes:
according to the interface calling sequence, calling each service interface to sequentially execute the basic flow corresponding to each target scene characteristic, and obtaining the test result;
and returning the test result to the front-end page to display the page.
In this embodiment, after determining the target test flow corresponding to the execution instruction, according to the interface calling sequence, each service interface may be called to sequentially execute the basic flow corresponding to each target scene feature, so as to obtain a test result, and then the test result is returned to the front end page to perform page display. Specifically, the interface calling sequence is a calling sequence of service interfaces corresponding to each target scene feature, and the service interfaces are called according to the calling sequence, so that basic flows corresponding to each target scene feature can be sequentially executed, after the basic flows corresponding to each target scene feature in the scene feature combination are executed, a test result can be output, and then the test result is returned to the front page and displayed on the front page.
According to the method and the device, after the target test flow is determined, the target test flow can be automatically executed according to the execution sequence of the service interfaces corresponding to the characteristics of each target scene, so that a test result is obtained, and finally, the automatic test can be realized for various service scenes under the condition that the service product forms are numerous, so that the waste of manpower and time is avoided, and the test efficiency is improved.
In some optional implementations of this embodiment, the step of receiving, by the front-end page, an execution instruction carrying an incoming parameter, and extracting, according to the incoming parameter and the scene configuration table, a scene feature combination corresponding to the execution instruction includes:
receiving the execution instruction, and determining target configuration information corresponding to the execution instruction in the scene configuration table according to the input parameter;
and extracting features according to the target configuration information to obtain each target scene feature corresponding to the execution instruction as the scene feature combination.
In this embodiment, after the scene configuration table is obtained, an execution instruction carrying an incoming parameter sent by a front-end page may be received, target configuration information corresponding to the execution instruction is determined in the scene configuration table according to the incoming parameter, and then feature extraction is performed according to the target configuration information, so as to obtain each target scene feature corresponding to the execution instruction, and the target scene feature is used as a scene feature combination corresponding to the execution instruction. Specifically, the pre-constructed scene configuration table includes configuration information corresponding to each test scene, when the front end page is operated by a service person, the service person can set the input parameters according to the service requirement, and one key sends an execution instruction carrying the input parameters, after receiving the execution instruction, the target test scene can be determined according to the input parameters, the configuration information corresponding to the target test scene is obtained according to the scene configuration table, and the target test scene is used as target configuration information, including but not limited to a test scene, and feature extraction is performed according to the target configuration information, so that each target scene feature corresponding to the execution instruction can be obtained, and as scene feature combination, each target scene feature corresponds to the basic stream and the alternative stream of the test case in the scene test method.
According to the method and the device for testing the front-end page of the mobile terminal, the specific scene characteristics can be automatically extracted according to the parameter transmission of the front-end page, so that the testing flow can be determined according to the extracted scene characteristics, automatic testing can be realized for various business scenes under the condition that the forms of business products are numerous, and the testing efficiency is improved.
In some optional implementations of this embodiment, before the step of extracting, according to the incoming parameter and the scene configuration table, a scene feature combination corresponding to the execution instruction, where the execution instruction is sent by the receiving front-end page and carries an incoming parameter, the method further includes:
determining scene characteristics corresponding to each test scene according to the configuration content of the scene configuration table;
and configuring the service interface corresponding to each scene characteristic according to the configuration content.
In this embodiment, after the scenario configuration table is obtained and before the execution instruction is received, the scenario features corresponding to each test scenario may be determined according to the configuration content of the scenario configuration table, and the service interface corresponding to each scenario feature may be configured according to the configuration content. Specifically, the scene configuration table includes configuration information of each test scene, through configuration content of the scene configuration table, scene characteristics corresponding to each test scene can be determined, which are equivalent to basic streams and alternative streams corresponding to test cases, then according to the configuration content, a service interface can be configured for each scene characteristic, and a basic flow represented by the corresponding scene characteristic can be executed by calling a specific service interface.
Optionally, after the service interface is configured for each scene feature in the scene configuration table, interface information can be generated according to the corresponding relationship, and in a subsequent test flow, the interface information can be used as preset interface information to determine the service interface corresponding to the specific scene feature.
According to the method and the device, the service interfaces corresponding to the scene features are configured, so that the automatic test flow can be sequentially executed later, the service automatic test can be realized, and the test efficiency is improved.
In some optional implementations of this embodiment, the step of obtaining the scene data of each test scene corresponding to the service requirement and configuring according to the scene data to obtain the scene configuration table includes:
acquiring the scene data, and configuring the scene data to obtain configuration information corresponding to each test scene;
and constructing the scene configuration table according to the configuration information.
In this embodiment, in order to obtain the scenario configuration table, it is necessary to obtain the scenario data of each test scenario corresponding to the service requirement, configure the scenario data to obtain the configuration information corresponding to each test scenario, and construct the scenario configuration table according to the configuration information. Specifically, in order to implement the service automation test method, a configuration table of each test scene under a common service scene needs to be constructed first, as a scene configuration table, scene data corresponding to each test scene is collected according to actual service requirements, and the collected scene data is configured to obtain configuration information corresponding to each test scene, so that the scene configuration table is constructed according to the configuration information, and scene features can be extracted through the scene configuration table when the service automation test is performed subsequently.
According to the method and the device, the scene configuration table is constructed in advance, so that specific scene characteristics can be automatically extracted according to the parameter transmission of the front-end page, automatic testing can be realized for various business scenes under the condition of numerous business product forms, and the testing efficiency is improved.
In some optional implementations of this embodiment, after obtaining the scene data of each test scene corresponding to the service requirement, configuring according to the scene data, and obtaining the scene configuration table, the method further includes:
when receiving an update instruction carrying newly added scene data, updating the configuration information according to the newly added scene data to obtain updated configuration information;
and reconstructing a scene configuration table according to the updated configuration information.
In this embodiment, after the scene configuration table is constructed, when an update instruction carrying newly added scene data is received, the configuration information needs to be updated according to the newly added scene data to obtain updated configuration information, and then the scene configuration table is reconstructed according to the updated configuration information. Specifically, since the business scenario of the medical health service is changed from time to time, the test scenario also needs to be adjusted accordingly, when an update instruction for the scenario configuration table is received, since the update instruction carries newly added scenario data, the configuration information can be updated according to the newly added scenario data, and thus the scenario configuration table is built again according to the configuration information.
After the scene configuration table is pre-built, the test scene is ensured to meet the latest requirements through real-time updating, so that automatic test can be realized for various service scenes under the condition of numerous service product forms, and the test efficiency is improved.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by computer readable instructions stored in a computer readable storage medium that, when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a service automation test system, where the system embodiment corresponds to the method embodiment shown in fig. 2, and the system may be specifically applied to various electronic devices.
As shown in fig. 3, the service automation test system 300 according to the present embodiment includes: configuration module 301, extraction module 302, determination module 303, and execution module 304. Wherein:
the configuration module 301 is configured to obtain scene data of each test scene corresponding to a service requirement, and configure the test scene according to the scene data to obtain a scene configuration table;
the extracting module 302 is configured to receive an execution instruction carrying an incoming parameter sent by a front-end page, and extract a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table;
the determining module 303 is configured to sort the scene feature combinations according to a dynamic programming algorithm, and determine a target test flow corresponding to the execution instruction;
and the execution module 304 is configured to execute the target test flow, obtain a test result corresponding to the target test flow, and return the test result to the front end page.
According to the service automation test system, each test scene is configured in advance according to service requirements, when the command sent by service personnel through one key is received, the corresponding test flow can be automatically executed, so that automatic tests can be realized for various service scenes under the condition of numerous service product forms, waste of manpower and time is avoided, and the test efficiency is improved.
In some optional implementations of this embodiment, the determining module 303 is further configured to:
according to preset interface information, determining a service interface corresponding to each target scene feature in the scene feature combination;
sequencing the service interfaces according to the dynamic programming algorithm to obtain an interface calling sequence;
and determining the target test flow according to the interface calling sequence and the scene characteristic combination.
According to the service automation test system, after the process is selected according to the parameter transmission implementation process of the front-end page, the execution sequence is determined by utilizing the dynamic programming algorithm, so that the test process is automatically generated, and finally, the automatic test can be realized for various service scenes under the condition of numerous service product forms, thereby avoiding wasting manpower and time and improving the test efficiency.
In some alternative implementations of the present embodiment, the execution module 304 is further configured to:
according to the interface calling sequence, calling each service interface to sequentially execute the basic flow corresponding to each target scene characteristic, and obtaining the test result;
and returning the test result to the front-end page to display the page.
According to the service automation test system, after the target test flow is determined, the target test flow can be automatically executed according to the execution sequence of the service interfaces corresponding to the characteristics of each target scene, so that a test result is obtained, and finally, the automatic test can be realized for various service scenes under the condition of numerous service product forms, so that the waste of manpower and time is avoided, and the test efficiency is improved.
In some optional implementations of the present embodiment, the extraction module 302 is further configured to:
receiving the execution instruction, and determining target configuration information corresponding to the execution instruction in the scene configuration table according to the input parameter;
and extracting features according to the target configuration information to obtain each target scene feature corresponding to the execution instruction as the scene feature combination.
According to the service automation test system, the specific scene characteristics can be automatically extracted according to the parameter transmission of the front-end page, so that the test flow can be determined according to the extracted scene characteristics, automatic test can be realized for various service scenes under the condition of numerous service product forms, and the test efficiency is improved.
In some optional implementations of this embodiment, the business automation test system is further configured to:
determining scene characteristics corresponding to each test scene according to the configuration content of the scene configuration table;
and configuring the service interface corresponding to each scene characteristic according to the configuration content.
According to the service automation test system, through configuration of the service interfaces corresponding to the scene features, the automatic test flow can be sequentially executed subsequently, so that service automation test can be realized, and the test efficiency is improved.
In some optional implementations of this embodiment, the configuration module 301 is further configured to:
acquiring the scene data, and configuring the scene data to obtain configuration information corresponding to each test scene;
and constructing the scene configuration table according to the configuration information.
According to the service automation test system, through the pre-construction of the scene configuration table, the specific scene characteristics can be automatically extracted according to the parameter transmission of the front-end page, so that the automatic test can be realized for various service scenes under the condition of numerous service product forms, and the test efficiency is improved.
In some optional implementations of this embodiment, the business automation test system is further configured to:
when receiving an update instruction carrying newly added scene data, updating the configuration information according to the newly added scene data to obtain updated configuration information;
and reconstructing a scene configuration table according to the updated configuration information.
According to the service automation test system, after the scene configuration table is constructed in advance, the test scene is updated in real time to meet the latest requirements, so that automatic tests can be realized for various service scenes under the condition of numerous service product forms, and the test efficiency is improved.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 4, fig. 4 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 4 comprises a memory 41, a processor 42, a network interface 43 communicatively connected to each other via a system bus. It should be noted that only computer device 4 having components 41-43 is shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 41 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., 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, magnetic disk, optical disk, etc. In some embodiments, the storage 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 4. Of course, the memory 41 may also comprise both an internal memory unit of the computer device 4 and an external memory device. In this embodiment, the memory 41 is typically used to store an operating system and various application software installed on the computer device 4, such as computer readable instructions of a service automation test method, and the like. Further, the memory 41 may be used to temporarily store various types of data that have been output or are to be output.
The processor 42 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is configured to execute computer readable instructions stored in the memory 41 or process data, such as computer readable instructions for executing the service automation test method.
The network interface 43 may comprise a wireless network interface or a wired network interface, which network interface 43 is typically used for establishing a communication connection between the computer device 4 and other electronic devices.
According to the computer equipment, each test scene is configured in advance according to the service requirements, when the instructions sent by the service personnel through one key are received, the corresponding test flow can be automatically executed, so that automatic tests can be realized for various service scenes under the condition of numerous service product forms, not only is the waste of manpower and time avoided, but also the test efficiency is improved.
The present application also provides another embodiment, namely, a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of a business automation test method as described above.
According to the computer readable storage medium, each test scene is configured in advance according to service requirements, when the instructions sent by service personnel in one key are received, the corresponding test flow can be automatically executed, so that automatic tests can be realized for various service scenes under the condition of numerous service product forms, waste of manpower and time is avoided, and the test efficiency is improved.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All equivalent structures made by the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the protection scope of the application.

Claims (10)

1. The service automation test method is characterized by comprising the following steps:
acquiring scene data of each test scene corresponding to service requirements, and configuring according to the scene data to obtain a scene configuration table;
receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table;
Sequencing the scene feature combinations according to a dynamic programming algorithm, and determining a target test flow corresponding to the execution instruction;
and executing the target test flow to obtain a test result corresponding to the target test flow, and returning the test result to the front-end page.
2. The method for automatically testing services according to claim 1, wherein the step of sequencing the scene feature combinations according to a dynamic programming algorithm to determine a target test flow corresponding to the execution instruction specifically includes:
according to preset interface information, determining a service interface corresponding to each target scene feature in the scene feature combination;
sequencing the service interfaces according to the dynamic programming algorithm to obtain an interface calling sequence;
and determining the target test flow according to the interface calling sequence and the scene characteristic combination.
3. The method for automatically testing business according to claim 2, wherein the step of executing the target test flow to obtain a test result corresponding to the target test flow and returning the test result to the front page specifically comprises:
According to the interface calling sequence, calling each service interface to sequentially execute the basic flow corresponding to each target scene characteristic, and obtaining the test result;
and returning the test result to the front-end page to display the page.
4. The method for automatically testing services according to claim 1, wherein the step of receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table specifically includes:
receiving the execution instruction, and determining target configuration information corresponding to the execution instruction in the scene configuration table according to the input parameter;
and extracting features according to the target configuration information to obtain each target scene feature corresponding to the execution instruction as the scene feature combination.
5. The method for automatically testing services according to claim 4, wherein before the step of extracting a scene feature combination corresponding to the execution instruction according to the input parameter and the scene configuration table, the execution instruction carrying the input parameter sent by the receiving front-end page further comprises:
Determining scene characteristics corresponding to each test scene according to the configuration content of the scene configuration table;
and configuring the service interface corresponding to each scene characteristic according to the configuration content.
6. The method for automatically testing a service according to any one of claims 1 to 5, wherein the step of obtaining the scene data of each test scene corresponding to the service requirement, and configuring according to the scene data to obtain a scene configuration table specifically includes:
acquiring the scene data, and configuring the scene data to obtain configuration information corresponding to each test scene;
and constructing the scene configuration table according to the configuration information.
7. The method for automatically testing services according to claim 6, wherein after the step of obtaining the scene data of each test scene corresponding to the service requirement, configuring according to the scene data to obtain the scene configuration table, further comprises:
when receiving an update instruction carrying newly added scene data, updating the configuration information according to the newly added scene data to obtain updated configuration information;
and reconstructing a scene configuration table according to the updated configuration information.
8. A business automation test system, comprising:
the configuration module is used for acquiring the scene data of each test scene corresponding to the service requirement, and configuring the test scenes according to the scene data to obtain a scene configuration table;
the extraction module is used for receiving an execution instruction carrying an incoming parameter sent by a front-end page, and extracting a scene feature combination corresponding to the execution instruction according to the incoming parameter and the scene configuration table;
the determining module is used for sequencing the scene feature combinations according to a dynamic programming algorithm and determining a target test flow corresponding to the execution instruction;
and the execution module is used for executing the target test flow, obtaining a test result corresponding to the target test flow, and returning the test result to the front-end page.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which when executed by the processor implement the steps of the business automation test method of any of claims 1 to 7.
10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the business automation test method of any of claims 1 to 7.
CN202311193251.1A 2023-09-14 2023-09-14 Service automation test method, system, computer equipment and storage medium Pending CN117271321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311193251.1A CN117271321A (en) 2023-09-14 2023-09-14 Service automation test method, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311193251.1A CN117271321A (en) 2023-09-14 2023-09-14 Service automation test method, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117271321A true CN117271321A (en) 2023-12-22

Family

ID=89205526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311193251.1A Pending CN117271321A (en) 2023-09-14 2023-09-14 Service automation test method, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117271321A (en)

Similar Documents

Publication Publication Date Title
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN112860662B (en) Automatic production data blood relationship establishment method, device, computer equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN117033249A (en) Test case generation method and device, computer equipment and storage medium
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN116974929A (en) Automatic test tool construction method, automatic test method and related equipment thereof
CN117057935A (en) Data processing method, device, equipment and storage medium based on field design
CN116974927A (en) Performance automatic test method, system, computer equipment and storage medium
CN116382718A (en) Code offline deployment method and device, computer equipment and storage medium
CN115185625A (en) Self-recommendation type interface updating method based on configurable card and related equipment thereof
CN115576837A (en) Batch number making method and device, computer equipment and storage medium
CN114637672A (en) Automatic data testing method and device, computer equipment and storage medium
CN117271321A (en) Service automation test method, system, computer equipment and storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN107644043B (en) Internet bank quick navigation setting method and system
CN111931465A (en) Method and system for automatically generating user manual based on user operation
CN114218191B (en) System function migration method, device, computer equipment and storage medium
CN117527561A (en) Function arrangement method, device, computer equipment and storage medium
CN117827661A (en) Code grammar checking method, system, computer device and storage medium
CN117555546A (en) Pipeline arrangement method, device, equipment and storage medium
CN116467145A (en) Page performance data acquisition method and device, computer equipment and storage medium
CN116894736A (en) Mail management method, device, computer equipment and storage medium
CN117828221A (en) Page event statistics method based on buried point technology and related equipment thereof
CN118426883A (en) Page display method, device, equipment and storage medium thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination