CN117952474A - Automated testing method and related equipment - Google Patents

Automated testing method and related equipment Download PDF

Info

Publication number
CN117952474A
CN117952474A CN202410169642.8A CN202410169642A CN117952474A CN 117952474 A CN117952474 A CN 117952474A CN 202410169642 A CN202410169642 A CN 202410169642A CN 117952474 A CN117952474 A CN 117952474A
Authority
CN
China
Prior art keywords
test
rule
tested
product
automated
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
CN202410169642.8A
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.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co 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 China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202410169642.8A priority Critical patent/CN117952474A/en
Publication of CN117952474A publication Critical patent/CN117952474A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses an automatic testing method and related equipment thereof, relating to the technical field of quality detection, wherein the method comprises the following steps: obtaining a product configuration requirement of a product to be tested from a product center, and generating a rule to be tested according to the product configuration requirement; if the rule to be tested is an existing test rule in a rule base, determining a test case related to the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested; and processing the test case to obtain a test result of the product to be tested. In the application, the condition of missing test in the test process is avoided, thereby improving the accuracy of the test of the complex service.

Description

Automated testing method and related equipment
Technical Field
The application relates to the technical field of quality detection, in particular to an automatic test method and related equipment thereof.
Background
The conventional testing method of products or commodities mainly tests and analyzes the regularity, legality and data compliance of the service, and carries out carding and analysis on interfaces and service rules of products such as full-network combined packets, optional packets, flow packets, basic packages, equity packets and the like, and then manually configures test cases and executes test tasks to realize quality detection of end-to-end full-flow product configuration.
With the development of a service system, the current product test service has multiple functions, more and more commodity butt joint channels and configuration requirements, more and more complicated scenes such as commodity addition and change, and the like, but the existing test product test method can only test according to fixed test cases, has a small coverage, so that the condition of missing test and missing test exists in the test process, and the test accuracy of complex service is low.
Disclosure of Invention
The application mainly aims to provide an automatic testing method and related equipment thereof, and aims to solve the problem of lower accuracy of testing of complex services.
In order to achieve the above object, the present application provides an automated testing method, comprising the steps of:
obtaining a product configuration requirement of a product to be tested from a product center, and generating a rule to be tested according to the product configuration requirement;
If the rule to be tested is an existing test rule in a rule base, determining a test case related to the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested;
and processing the test case to obtain a test result of the product to be tested.
Optionally, the step of obtaining the product configuration requirement of the product to be tested from the product center and generating the rule to be tested according to the product configuration requirement includes:
and obtaining the product configuration requirement of the product to be tested from a product center, and converting the item to be tested in the product configuration requirement into a plurality of ordered check points through a sequential logic tool to obtain the rule to be tested comprising the ordered check points.
Optionally, the step of generating at least one test case according to the rule to be tested if the rule to be tested is not an existing test rule in the rule base includes:
If the rule to be tested is not the existing test rule in the rule base, carrying out iterative training on a preset model to be trained according to the rule to be tested to obtain a test model;
And generating at least one test case according to the test model.
Optionally, the step of processing the test case to obtain a test result includes:
combining the test case and the test data associated with the test case to obtain a test task;
the test task is sent to a plurality of target devices, so that the plurality of target devices synchronously execute the test task and feed back an execution result;
and receiving an execution result sent by the target equipment, and generating a test result of the product to be tested according to the execution result.
Optionally, after the step of processing the test case to obtain a test result of the product to be tested, the method includes:
Determining a failure use case of the test failure according to the test result;
And determining the failure type and the failure reason of the failure use case, and sending the failure use case, the failure type and the failure reason to a defect management system so that the defect management system can perform related tests and feed back the results of the related tests to a user.
Optionally, after the step of processing the test case to obtain the test result of the product to be tested, the method further includes:
and feeding the test result back to the user so that the user can improve the test case according to the test result.
In addition, to achieve the above object, the present application also provides an automated testing apparatus, including:
The generating module is used for acquiring the product configuration requirement of the product to be tested from the product center and generating a rule to be tested according to the product configuration requirement;
The determining module is used for determining a test case associated with the rule to be tested in the model library if the rule to be tested is an existing test rule in the rule library, and generating at least one test case according to the rule to be tested if the rule to be tested is not the existing test rule in the rule library;
And the processing module is used for processing the test cases to obtain test results of the products to be tested.
In addition, to achieve the above object, the present application also provides an automated test apparatus, the apparatus comprising: the system comprises a memory, a processor and an automated test program stored on the memory and capable of running on the processor, wherein the automated test program is configured to realize the steps of the automated test method.
In addition, in order to achieve the above object, the present application also provides a storage medium having stored thereon an automated test program which, when executed by a processor, implements the steps of the automated test method.
In addition, to achieve the above object, the present application provides a computer program product comprising an automated test program which, when executed by a processor, implements the steps of the automated test method.
The application provides an automatic test method and related equipment, compared with the existing test method of a test product in the related technology, which can only test according to a fixed test case, has less coverage, so that the test missing condition exists in the test process, and the accuracy of the test of complex business is lower; if the rule to be tested is an existing test rule in a rule base, determining a test case related to the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested; and processing the test case to obtain a test result of the product to be tested. It can be understood that in the application, the rule to be tested is generated according to the configuration requirement of the product, if the rule to be tested is the existing rule, the associated test case is determined from the model library, if the rule to be tested is not the existing rule, the new test case is generated aiming at the rule to be tested, then the test case is processed to obtain the test result, and the existing test case is combined with the new test case which is automatically generated to flexibly match the test case with the rule to be tested, so that the coverage is wider, the condition of missing test in the test process is avoided, and the test accuracy of the complex service is improved.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of an automated test method according to the present application;
FIG. 2 is a schematic view of a first scenario of a first embodiment of an automated testing method according to the present application;
FIG. 3 is a schematic diagram of a second scenario of the first embodiment of the automated test method of the present application;
FIG. 4 is a logic architecture diagram of a first embodiment of an automated test method of the present application;
FIG. 5 is a schematic overall flow chart of the automated testing method of the present application;
FIG. 6 is a second flow chart of a second embodiment of the automated test method of the present application;
FIG. 7 is a schematic view of a third scenario of a second embodiment of an automated testing method according to the present application;
FIG. 8 is a schematic diagram of a fourth scenario of a second embodiment of an automated test method according to the present application;
FIG. 9 is a third flow chart of a third embodiment of an automated test method according to the present application;
FIG. 10 is a block diagram of an automated test equipment according to the present application;
Fig. 11 is a schematic structural diagram of a hardware running environment according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of an automated testing method according to the present application.
In a first embodiment, the automated test method comprises the steps of:
Step S10, obtaining the product configuration requirement of a product to be tested from a product center, and generating a rule to be tested according to the product configuration requirement;
Step S20, if the rule to be tested is an existing test rule in a rule base, determining a test case associated with the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested;
And step S30, processing the test case to obtain a test result of the product to be tested.
The present embodiment aims at: generating a rule to be tested according to the configuration requirement of the product, if the rule to be tested is an existing rule, determining an associated test case from a model library, if the rule to be tested is not the existing rule, generating a new test case aiming at the rule to be tested, processing the test case to obtain a test result, and flexibly matching the existing test case with the automatically generated new test case for the rule to be tested, wherein the coverage is wider, and the condition of missing test in the test process is avoided, so that the test accuracy of complex service is improved.
The specific steps are set forth below:
Step S10, obtaining the product configuration requirement of a product to be tested from a product center, and generating a rule to be tested according to the product configuration requirement;
It should be noted that, the execution body of the embodiment is an automated testing apparatus, and the automated testing apparatus may be subordinate to an automated testing device.
It can be understood that the product center refers to a first-level product center for generating a product or a commodity, the product configuration requirement includes a configuration requirement, a commodity information list and a configuration test check item, the configuration requirement includes a requirement source of the product to be tested, an in-sleeve resource, an out-sleeve resource, a commodity mutual exclusion dependency relationship, a related interface setting and settlement, and the commodity information list includes a commodity name, a commodity code, a commodity classification, and the like of the product to be tested, and the configuration test check item includes a tariff standard, a bill charging, a ordering process, an unsubscribing process, an ordering/unsubscribing short message template, an interface availability, and the like of the product to be tested.
In a specific implementation, the automatic testing device acquires the product configuration requirement of the product to be tested from the product center, extracts each item to be tested by analyzing the acquired product configuration requirement, and combines the extracted items to be tested to obtain the rule to be tested.
Step S20, if the rule to be tested is an existing test rule in a rule base, determining a test case associated with the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested;
the rule base stores the test rule pre-input by the user and the historical test case generated according to the historical rule to be tested.
It can be understood that the automatic test device compares the rule to be tested with the existing test rules in the rule base to determine whether the rule to be tested is the existing test rule in the rule base.
In a specific implementation, after determining a test case, the automated test apparatus generates a corresponding test flow chart according to the test case, and displays the test flow chart through a visual interface.
Specifically, the step S20 further includes steps S21 to S22:
step S21, if the rule to be tested is not the existing test rule in the rule base, carrying out iterative training on a preset model to be trained according to the rule to be tested to obtain a test model;
It should be noted that, under the condition that the rule to be tested is generated according to the simple and single product to be tested of the service rule, the automatic test device assembles the test model associated with each item to be tested according to the fixed test sequence to generate the test case.
For example, if the off-shelf condition of the 31 provincial important products needs to be acquired, the automatic testing device follows a fixed testing sequence: starting, calling a service qualification checking interface, outputting a checking result, and ending; and assembling the test models associated with the items to be tested to generate test cases for detecting whether the products are sold down.
It can be understood that, under the condition that the to-be-tested rule is generated according to the complex and complicated to-be-tested product of the service rule, the automatic testing device performs iterative training on the preset to-be-trained model according to the output state and the triggering condition in the testing process to obtain the testing model.
In specific implementation, referring to fig. 2, the automatic testing device performs model management, model scheduling, model adaptation and model optimization on a model to be trained in a modeling factory, that is, the automatic flower testing device extracts the model to be trained from a modeling auxiliary engine, performs preliminary construction on the model to be trained, performs iterative training on the model to be trained (each iterative training includes model training, model feedback and model tuning), until the model to be trained reaches a preset stopping condition, and recommends the trained model as a test model.
And S22, generating at least one test case according to the test model.
The automatic test device assembles the test model to obtain at least one test case.
For example, referring to fig. 3, the automated test equipment performs the following flow based on the test cases: querying a customer order according to the work order number (order status query interface OSPQ 004); judging whether a record exists or not, if not, inquiring order feedback data OSPF001 by the automatic testing device, executing a subsequent related flow, and if so, judging whether the order is removed by the automatic testing device, and executing the subsequent related flow according to a judging result.
And step S30, processing the test case to obtain a test result of the product to be tested.
It should be noted that, the automatic test device fills the test parameter variable data associated with the test case in the test case to obtain a test task associated with the product to be tested, and then sends the test task to a plurality of target devices, and after the target devices complete the test task, the automatic test device receives the execution result sent by the target devices and generates the test result of the product to be tested according to the execution result.
It can be understood that after the test result of the product to be tested is obtained, the automatic test device feeds back the test result to the user, so that the user can improve the test case according to the test result.
In a specific implementation, a user determines whether the test result and the expected result of the model meet the requirement content, and in the case of deviation, the user iterates and improves the product model, the test method and the like to improve the quality of the product and the efficiency of the test, wherein the iterating and improving are achieved through review and optimization of a test expert.
Specifically, the step S30 further includes steps S31 to S33:
Step S31, merging the test cases and the test data associated with the test cases to obtain a test task;
In specific implementation, the automatic testing device fills the test parameter variable data related to the automatic testing device in the test case to obtain the test task related to the product to be tested.
Step S32, the test task is sent to a plurality of target devices, so that the plurality of target devices synchronously execute the test task and feed back an execution result;
In a specific implementation, the automated testing device synchronously distributes the testing tasks to the target devices of the 31 provinces through continuously integrating the testing execution engine, and each province independently executes the received testing tasks and feeds back the testing results to the automated testing device.
And step S33, receiving an execution result sent by the target equipment, and generating a test result of the product to be tested according to the execution result.
In specific implementation, the automatic testing device receives the execution result fed back by the target device, and matches the execution result with the products to be tested to obtain the corresponding testing results of the products to be tested.
In this embodiment, referring to fig. 4, the automatic test device obtains the configuration requirement, the inspection item and the commodity list of the product to be tested, analyzes the business rule of the product to be tested according to the configuration requirement, analyzes the flow link of the product to be tested according to the inspection item, analyzes the commodity information of the product to be tested according to the commodity list, and generates the rule to be tested according to the business rule, the flow link and the commodity information of the product to be tested; the automatic testing device judges whether the rule to be tested is an existing testing rule in the rule base through the rule analysis engine, and performs model detection and model adaptation according to a judging result so as to generate a testing case and a related testing script thereof; the automatic test device generates a test task according to the test case and the test script, and obtains a test result by interacting with the target equipment (executing test), and the automatic test device generates a task execution report and a product execution report according to the test result.
In this embodiment, referring to fig. 5, the automated test equipment performs the following steps: step 1, demand synchronization: synchronously acquiring the product configuration requirement to be tested of a first-level product center in real time; step 2, test modeling: analyzing the configuration requirement of the product to be tested, and generating a whole set of rules to be tested according to configuration check items and basic information of the product in the requirement; step 3, test task generation: analyzing and comparing the generated rule to be tested, if the rule is the existing rule, automatically matching the test case from the model library, if the rule is not the existing rule, creating a new rule model and automatically generating the test case, automatically filling test data parameter variables by the test case, and assembling the test case and a product in an associated manner to form a complete automatic test task; step 4, test execution: continuously integrating the generated automatic test tasks, and automatically distributing 31 the automatic test tasks to perform test execution; step 6, iteration and improvement: and comparing and determining whether the test execution result and the expected result of the model meet the requirement, and iterating and improving the product model, the test rule and the like so as to improve the quality and the efficiency of the product test.
In this embodiment, compared with the existing test method for testing a product in the related art, which can only test according to a fixed test case, the coverage is less, so that the missing test condition exists in the test process, and the accuracy of the test of the complex service is lower, in this embodiment, the product configuration requirement of the product to be tested is obtained from the product center, and the rule to be tested is generated according to the product configuration requirement; if the rule to be tested is an existing test rule in a rule base, determining a test case related to the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested; and processing the test case to obtain a test result of the product to be tested. In this embodiment, a rule to be tested is generated according to a product configuration requirement, if the rule to be tested is an existing rule, an associated test case is determined from a model library, if the rule to be tested is not the existing rule, a new test case is generated for the rule to be tested, then the test case is processed to obtain a test result, and the existing test case is combined with the new test case generated automatically to flexibly match the test case with the rule to be tested, so that the coverage is wider, the condition of missing test in the test process is avoided, and the test accuracy of complex service is improved.
Further, referring to fig. 6, based on the above embodiment, a second embodiment of the present application is provided, and in this embodiment, the step S10 further includes the steps of:
Step S11, obtaining a product configuration requirement of a product to be tested from a product center, and converting a to-be-tested item in the product configuration requirement into a plurality of ordered check points through a sequential logic tool to obtain a to-be-tested rule comprising the ordered check points.
It should be noted that, each check point in the rule to be tested is independent, and the user can adjust the sequence of the check points according to the actual requirement.
It can be understood that the sequential logic tool converts the items to be tested in the product configuration requirement into a plurality of ordered check points through a rule engine, the rule engine comprises a parsing matcher and an executor, the parsing matcher parses all the items to be tested into executable codes, and transmits the executable codes to the executor, and the executor executes corresponding operations according to the requirements of the executable codes: the rules for describing and comparing the order of reference and the state change of the rules, one product to be tested, may consist of one check point after another in order, each check point having a set of detection requirements and state changes.
In a specific implementation, referring to fig. 7, after a rule (to-be-tested item) is introduced from a client, the automated testing apparatus processes the introduced rule (to-be-tested item) through a matcher and an executor in a rule engine, and reads the processed rule (to-be-tested rule) into a rule base.
For example, referring to fig. 8, the automated testing apparatus establishes a full-flow end-to-end service testing rule such as a front item check (service handling qualification check, mutual exclusion, dependency, etc.), a subscription acceptance, an order check link, a subscription relation check, a unsubscribe, a sms reminder, a resource check, and a flow consumption by representing a regular behavior of a product to be tested as a sequential logic check point.
In this embodiment, compared with the case that the matching degree between the test case and the product to be tested is not high in the related art, which is easy to cause low testing accuracy, in this embodiment, the product configuration requirement of the product to be tested is obtained from the product center, and the item to be tested in the product configuration requirement is converted into a plurality of ordered check points through a sequential logic tool, so as to obtain the rule to be tested including the ordered check points. In this embodiment, the regular behavior of the product to be tested is represented as a sequential logic test sequence and a state change bit by using a sequential logic tool, so that the item to be tested in the product configuration requirement is converted into a plurality of ordered check points, and the matching degree of the test case and the product to be tested is improved, so that the accuracy of testing the product to be tested is improved.
Further, referring to fig. 9, based on the above embodiment, a third embodiment of the present application is provided, in this embodiment, after the step of step S30, the automated test method further includes the steps of:
A1, determining a failure use case of failed test according to the test result;
The automatic test device determines a test task with a failure condition in the execution process according to a test result fed back by the target device for executing the test task, and further determines a failure use case associated with the test task with the failure condition.
And step A2, determining the failure type and the failure reason of the failure use case, and sending the failure use case, the failure type and the failure reason to a defect management system so that the defect management system can perform related tests and feed back the results of the related tests to a user.
After receiving the failure case, the failure type and the failure reason, the defect management system carries out related tests on the failure type and the failure reason of the failure case, and notifies the result of the related tests according to a preset organization structure, and feeds back the result to the user, wherein the notification mode comprises IVR, short messages, mails and the like according to the defect level.
In this embodiment, referring to fig. 5, the automated test equipment further performs the following steps: step 5, defect automatic generation: defects found in the test execution process are automatically generated, circulated on line and sent to a notice.
In this embodiment, compared with the case of the problem occurring in the test process in the related art, the solution is the offline mode of mail notification-processing, so that the processing efficiency is low, in this embodiment, a failure use case of test failure is determined according to the test result; and determining the failure type and the failure reason of the failure use case, and sending the failure use case, the failure type and the failure reason to a defect management system so that the defect management system can perform related tests and feed back the results of the related tests to a user. In this embodiment, the failure type and failure reason of the failure case are determined, the defects are sent to the defect management system, and the defect management system tests the found defects and automatically circulates and notifies according to a preset organization structure, so that the processing efficiency is improved through an on-line processing mode.
In addition, an embodiment of the present application further provides an automated testing apparatus, referring to fig. 10, where the automated testing apparatus includes:
The generating module 10 is configured to obtain a product configuration requirement of a product to be tested from a product center, and generate a rule to be tested according to the product configuration requirement;
the determining module 20 is configured to determine a test case associated with the rule to be tested in a model library if the rule to be tested is an existing test rule in the rule library, and generate at least one test case according to the rule to be tested if the rule to be tested is not an existing test rule in the rule library;
and the processing module 30 is used for processing the test cases to obtain test results of the product to be tested.
Optionally, the generating module further includes:
The rule generation unit is used for acquiring the product configuration requirement of the product to be tested from the product center, converting the item to be tested in the product configuration requirement into a plurality of ordered check points through the sequential logic tool, and obtaining the rule to be tested comprising the ordered check points.
Optionally, the determining module further includes:
The iterative training unit is used for carrying out iterative training on a preset model to be trained according to the rule to be tested if the rule to be tested is not the existing test rule in the rule base, so as to obtain a test model;
And the use case generating unit is used for generating at least one test use case according to the test model.
Optionally, the processing module further includes:
the data merging unit is used for merging the test case and the test data related to the test case to obtain a test task;
The task sending unit is used for sending the test task to a plurality of target devices so that the plurality of target devices synchronously execute the test task and feed back an execution result;
And the result generating unit is used for receiving the execution result sent by the target equipment and generating a test result of the product to be tested according to the execution result.
Optionally, the automated testing apparatus further comprises:
The failure use case determining module is used for determining a failure use case of test failure according to the test result;
The failure use case sending module is used for determining the failure type and the failure reason of the failure use case, and sending the failure use case, the failure type and the failure reason to the defect management system so that the defect management system can perform related tests and feed back the results of the related tests to a user.
Optionally, the automated testing apparatus further comprises:
And the result feedback module is used for feeding the test result back to the user so that the user can improve the test case according to the test result.
In the embodiment, obtaining a product configuration requirement of a product to be tested from a product center, and generating a rule to be tested according to the product configuration requirement; if the rule to be tested is an existing test rule in a rule base, determining a test case related to the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested; and processing the test case to obtain a test result of the product to be tested. In this embodiment, a rule to be tested is generated according to a product configuration requirement, if the rule to be tested is an existing rule, an associated test case is determined from a model library, if the rule to be tested is not the existing rule, a new test case is generated for the rule to be tested, then the test case is processed to obtain a test result, and the existing test case is combined with the new test case generated automatically to flexibly match the test case with the rule to be tested, so that the coverage is wider, the condition of missing test in the test process is avoided, and the test accuracy of complex service is improved.
The specific implementation manner of the automatic test device of the present application is basically the same as that of each embodiment of the automatic test method, and will not be described herein.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an automated test equipment of a hardware running environment according to an embodiment of the present application.
As shown in fig. 11, the automated test equipment may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a wireless FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the configuration shown in FIG. 11 is not limiting of the automated test equipment and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 11, an operating system, a network communication module, a user interface module, and an automated test program may be included in a memory 1005, which is a type of computer storage medium.
The operating system is a program for managing and controlling the automatic test equipment and software resources, and supports the operation of a network communication module, a user interface module, an automatic test program and other programs or software, and the network communication module is used for managing and controlling the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the automated test equipment shown in fig. 11, the automated test equipment invokes an automated test program stored in the memory 1005 through the processor 1001, to implement the steps of the automated test method described in any one of the above.
The specific implementation manner of the automatic test equipment is basically the same as that of each embodiment of the automatic test method, and is not repeated here.
In addition, the embodiment of the application also provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can be further executed by one or more processors to implement the steps of the automatic test method according to any one of the above.
The specific implementation manner of the storage medium of the present application is basically the same as that of each embodiment of the automatic test method, and will not be repeated here.
In addition, the embodiment of the invention also provides a computer program product, which comprises an automatic test program, wherein the automatic test program realizes the steps of the automatic test method when being executed by a processor.
The specific implementation manner of the computer program product of the present invention is basically the same as that of the above-mentioned embodiments of the automated test method, and will not be repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
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 (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. An automated test method, comprising the steps of:
obtaining a product configuration requirement of a product to be tested from a product center, and generating a rule to be tested according to the product configuration requirement;
If the rule to be tested is an existing test rule in a rule base, determining a test case related to the rule to be tested in a model base, and if the rule to be tested is not the existing test rule in the rule base, generating at least one test case according to the rule to be tested;
and processing the test case to obtain a test result of the product to be tested.
2. The automated testing method of claim 1, wherein the step of obtaining product configuration requirements for a product under test from a product center and generating the rule under test based on the product configuration requirements comprises:
and obtaining the product configuration requirement of the product to be tested from a product center, and converting the item to be tested in the product configuration requirement into a plurality of ordered check points through a sequential logic tool to obtain the rule to be tested comprising the ordered check points.
3. The automated test method of claim 1, wherein the step of generating at least one test case from the rule under test if the rule under test is not an existing test rule in the rule base comprises:
If the rule to be tested is not the existing test rule in the rule base, carrying out iterative training on a preset model to be trained according to the rule to be tested to obtain a test model;
And generating at least one test case according to the test model.
4. The automated test method of claim 1, wherein the step of processing the test case to obtain a test result comprises:
combining the test case and the test data associated with the test case to obtain a test task;
the test task is sent to a plurality of target devices, so that the plurality of target devices synchronously execute the test task and feed back an execution result;
and receiving an execution result sent by the target equipment, and generating a test result of the product to be tested according to the execution result.
5. The automated testing method of any of claims 1-4, wherein after the step of processing the test case to obtain the test result of the product under test, the method comprises:
Determining a failure use case of the test failure according to the test result;
And determining the failure type and the failure reason of the failure use case, and sending the failure use case, the failure type and the failure reason to a defect management system so that the defect management system can perform related tests and feed back the results of the related tests to a user.
6. The automated testing method of any of claims 1-4, wherein after the step of processing the test case to obtain the test result of the product to be tested, further comprises:
and feeding the test result back to the user so that the user can improve the test case according to the test result.
7. An automated test apparatus, the automated test apparatus comprising:
The generating module is used for acquiring the product configuration requirement of the product to be tested from the product center and generating a rule to be tested according to the product configuration requirement;
The determining module is used for determining a test case associated with the rule to be tested in the model library if the rule to be tested is an existing test rule in the rule library, and generating at least one test case according to the rule to be tested if the rule to be tested is not the existing test rule in the rule library;
And the processing module is used for processing the test cases to obtain test results of the products to be tested.
8. An automated test equipment, the equipment comprising: a memory, a processor and an automated test program stored on the memory and executable on the processor, the automated test program configured to implement the steps of the automated test method of any of claims 1 to 6.
9. A storage medium having stored thereon an automated test program which, when executed by a processor, implements the steps of the automated test method of any of claims 1 to 6.
10. A computer program product, characterized in that it comprises an automated test program which, when executed by a processor, implements the steps of the automated test method according to any one of claims 1 to 6.
CN202410169642.8A 2024-02-06 2024-02-06 Automated testing method and related equipment Pending CN117952474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410169642.8A CN117952474A (en) 2024-02-06 2024-02-06 Automated testing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410169642.8A CN117952474A (en) 2024-02-06 2024-02-06 Automated testing method and related equipment

Publications (1)

Publication Number Publication Date
CN117952474A true CN117952474A (en) 2024-04-30

Family

ID=90792137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410169642.8A Pending CN117952474A (en) 2024-02-06 2024-02-06 Automated testing method and related equipment

Country Status (1)

Country Link
CN (1) CN117952474A (en)

Similar Documents

Publication Publication Date Title
US11645191B2 (en) Review process for evaluating changes to target code for a software-based product
CN111045944B (en) Regression testing method, device, system and computer readable storage medium
US9170821B1 (en) Automating workflow validation
CN111159049A (en) Automatic interface testing method and system
CN106502235B (en) Test method and system of automobile controller
CN112783793B (en) Automatic interface test system and method
CN112348530A (en) Automatic server production inspection and repair method
CN116976599A (en) Intelligent scheduling method and related equipment
CN113592439B (en) Software project flow management system and method
CN112596784B (en) Iterative version deployment method and device
CN110908708B (en) Code release method, device and system
CN117952474A (en) Automated testing method and related equipment
CN112163154A (en) Data processing method, device, equipment and storage medium
CN115774881A (en) Code auditing method, device, equipment and medium
CN115146597A (en) Harmful substance technical document output method, system, terminal device and storage medium
CN113487053A (en) Maintenance service method, device, equipment and computer readable storage medium
CN114356396A (en) Service publishing method and device adaptive to multiple services
CN110751410A (en) Production management system, method and storage medium
CN113238935A (en) Application testing method, system, device, medium, and computer program product
CN115543491A (en) Microservice processing method and device
CN112286754A (en) Method and system for realizing modular construction of IT (information technology) resource inspection automation
CN111159988A (en) Model processing method and device, computer equipment and storage medium
CN113592575B (en) Order determining method and device, storage medium and electronic device
Mallali et al. Six Sigma Approach for Reducing the SLA's Resolution Time: A Case in It Services Enabled Industry
CN112817843B (en) Project management method and system

Legal Events

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