CN117609038A - Method, equipment, device and storage medium for managing process of project automation test - Google Patents

Method, equipment, device and storage medium for managing process of project automation test Download PDF

Info

Publication number
CN117609038A
CN117609038A CN202311606510.9A CN202311606510A CN117609038A CN 117609038 A CN117609038 A CN 117609038A CN 202311606510 A CN202311606510 A CN 202311606510A CN 117609038 A CN117609038 A CN 117609038A
Authority
CN
China
Prior art keywords
test
task
log
acquiring
information
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
CN202311606510.9A
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.)
Guangzhou Chenqi Travel Technology Co Ltd
Original Assignee
Guangzhou Chenqi Travel 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 Guangzhou Chenqi Travel Technology Co Ltd filed Critical Guangzhou Chenqi Travel Technology Co Ltd
Priority to CN202311606510.9A priority Critical patent/CN117609038A/en
Publication of CN117609038A publication Critical patent/CN117609038A/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/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/3664Environments for testing or debugging software

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 invention discloses a process management method, equipment, a device and a storage medium for project automation test. The system comprises an interface configuration parameter acquisition module; acquiring test case information sent by a client, wherein the test case information is generated by editing interface configuration parameters by a user; acquiring test environment configuration; according to the test case information, an automatic test task is obtained; acquiring a task execution script, and executing the automatic test task according to the task execution script; acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information; executing log operation according to the log information; the test message is published in real time. The method solves the technical defects that the prior art is difficult to deal with the rapidly-changing requirement and frequent code updating, the test coverage rate is low, most of complex test scenes are difficult to cover, and the bug of the project cannot be found in time.

Description

Method, equipment, device and storage medium for managing process of project automation test
Technical Field
The invention relates to the field of IT project testing, in particular to a process management method, equipment, a device and a storage medium for project automation testing.
Background
In the field of modern software development, testing is one of the key steps in ensuring software quality and stability. The testing mainly comprises a plurality of fields such as interface testing, UI testing, performance testing and the like. In the field of interface test, the test mode directly verifies the logic of the code bottom layer, can be maintained through a system, has high execution efficiency, and particularly can remarkably improve the test efficiency when in version regression test.
However, with the increase of the software scale and complexity, the conventional manual test is difficult to cope with the rapidly changing requirement and frequent code update, the coverage rate of the conventional manual test is low, and most of complex test scenes are difficult to cover, so that the bug of the project cannot be found in time, and a significant loss is caused to enterprises when the bug occurs on the project line.
Disclosure of Invention
The invention aims to solve the technical problems and provides a process management method, equipment and device for project automatic test and a storage medium.
In order to solve the problems, the invention is realized according to the following technical scheme:
in a first aspect, the present invention provides a method for managing a process of automatic testing of items, which is characterized in that the method includes:
acquiring interface configuration parameters;
acquiring test case information sent by a client, wherein the test case information is generated by editing interface configuration parameters by a user;
acquiring test environment configuration;
according to the test case information, an automatic test task is obtained;
acquiring a task execution script, and executing the automatic test task according to the task execution script;
acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information;
executing log operation according to the log information;
the test message is published in real time.
Further, the interface configuration parameters include interface information and interface parameters;
the interface information comprises an interface name, a request method, a request address and a request parameter;
the interface parameters include a request message header, a request message body, and request parameters.
Further, the test case information is generated by editing the test case template by a user;
the test case information comprises a test case name, a test case description, a test step, an expected result, test data and a precondition.
Further, the test environment configuration includes a test server configuration, a database configuration, an interface debug tool configuration, and mock data.
Further, the automated test tasks are performed in a test environment;
the automatic test task is obtained by combining a plurality of test case information;
the task execution script comprises a controller, an execution flow and an execution mode;
the controller comprises a condition controller, a circulation controller and a frequency controller;
the execution flow comprises a combination test and a multi-use case parallel test;
the execution mode comprises automatic execution and manual triggering;
the automatic execution includes the automatic test task being executed according to a predetermined time;
the manual triggering includes manual clicking of an automated test by a user.
Further, the test report includes a test scenario, a case of test success, a case of test failure, and a time consuming test.
Further, the log operation includes log segmentation, log naming and log cleaning.
According to another aspect of the present invention, a flow management apparatus for project automation test is configured to execute a flow management method for the project automation test, the flow management apparatus for project automation test comprising:
the interface configuration parameter acquisition module is used for acquiring interface configuration parameters;
acquiring test case information sent by a client, wherein the test case information is generated by editing interface configuration parameters by a user;
the test environment configuration acquisition module is used for acquiring test environment configuration;
the test task generating module is used for obtaining an automatic test task according to the test case information;
the task execution module is used for acquiring a task execution script and executing the automatic test task according to the task execution script;
the test report generation module is used for acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information;
the log operation module is used for executing log operation according to the log information;
and the message publishing module is used for publishing the test message in real time.
According to another aspect of the present invention, there is provided an electronic apparatus, characterized by comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
the memory stores a computer program executable by the at least one processor, so that the at least one processor can execute the flow management method for project automation test according to the embodiment of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program,
the computer program is used for realizing the flow management method for the project automation test in the embodiment of the invention when the processor executes.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a process management method for project automation test, which comprises the steps of obtaining interface configuration parameters; acquiring test case information sent by a client, wherein the test case information is generated by editing interface configuration parameters by a user; acquiring test environment configuration; according to the test case information, an automatic test task is obtained; acquiring a task execution script, and executing the automatic test task according to the task execution script; acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information; executing log operation according to the log information; the test message is published in real time.
The invention solves the main problems that the coverage rate of the traditional manual test is low, and most complex test scenes are difficult to cover, so that the on-line bug cannot be found in time. The invention ensures that the test flow can accurately access and verify the code bottom logic by acquiring the interface configuration parameters, and reduces errors caused by human factors. By generating an automatic test task, the test can cover a plurality of test scenes, and the test efficiency is improved. The tester clicks by one key, so that a plurality of complex test scenes can be tested, the automatic test can rapidly execute a large number of test cases, especially when the version carries out regression test, the test efficiency can be greatly improved, the repeated test work of the tester is less, and the test pressure is greatly relieved. Through the communication with the collaboration tools such as OA, flybook and the like in the company, the real-time synchronization of the messages is carried out, so that the corresponding team members are informed of the test progress and the test result in time.
Drawings
The invention is described in further detail below with reference to the attached drawing figures, wherein:
FIG. 1 is a flow chart of a method of flow management for automated testing of items in accordance with an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a process management device for project automation test according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Applicant has found that currently in an enterprise environment, as the size and complexity of software projects continue to increase, traditional manual testing presents a series of problems in facing rapidly changing demands and frequent code updates. These problems include inefficiency in testing, insufficient coverage, inability to find out in time on-line bugs, etc. In practical projects, these problems lead to inefficiency in the work of the test team, difficulty in ensuring project quality, and potential significant loss to the enterprise. The applicant finds that the main challenge lies in the process management of interface test, including the shortages of interface configuration, test case management, test environment construction, etc., which results in that the traditional manual test cannot meet the requirements of rapid change and the test requirements of complex items.
The applicant further discovers that by introducing a process management method of automatic test and taking interface test as a main consideration object, the test efficiency can be effectively improved, the test coverage rate can be improved, and the difficulty in building a test environment can be solved. By acquiring the interface configuration parameters, the test flow can be ensured to accurately access and verify the code bottom logic. And inputting the test case information into a test case template, generating an automatic test task according to the normalized test case information, ensuring that the test covers a plurality of test scenes, and improving the test efficiency and coverage rate. In addition, test messages are issued in real time, and cooperative office software such as a flying book, nails and oa is opened, so that problems can be found and solved in time, and team cooperation efficiency is improved. Through the series of innovative steps, the invention effectively solves the problems existing in the traditional manual testing flow, improves the testing efficiency and coverage rate, and ensures the project quality and stability.
As shown in fig. 1, a flow management method for automatic testing of items according to an embodiment of the present invention is characterized in that the method includes:
step 101, obtaining interface configuration parameters.
The interface configuration parameters comprise interface information and interface parameters;
the interface information comprises an interface name, a request method, a request address and a request parameter;
the interface parameters include a request message header, a request message body, and request parameters.
First, the interface to be tested needs to be well defined. This involves retrieving key information from the development interface document, including the name of the interface, the request method, the request address, and possibly the request parameters. Once the interfaces to be tested are determined, the test parameters for each interface need to be defined next. This includes the request message header, the request message body, the request parameters, etc. These parameters are inputs that the test case needs to provide when executing to verify the behavior and performance of the interface under different conditions. The definition of the parameters can refer to a development interface document, and can be set according to actual requirements.
Finally, these interface information and parameters are configured into an interface management for automated testing. This is a key step in connecting the interface information to the actual test scenario, ensuring that subsequent automated testing can be performed according to the predefined interface specifications.
The design has the advantages that the test team can test more rapidly by definitely defining and configuring interface parameters, the complicated process of manual configuration is reduced, the possibility of manual configuration errors is reduced, and the test efficiency is improved. By configuring accurate interface parameters, the simulation scene in the test process can be ensured to be consistent with the actual production environment, so that the test accuracy is improved. Because of the centralized management of the interface configuration information, when the interfaces or parameters are changed, the test team can quickly respond and correspondingly adjust, so that the flexibility of the test flow is ensured.
Step 102, obtaining test case information sent by a client, wherein the test case information is generated by editing according to interface configuration parameters by a user.
The test case information is generated by editing a test case template by a user;
the test case information comprises a test case name, a test case description, a test step, an expected result, test data and a precondition.
The user edits test case information in a test case template structure provided by the system. The test case templates include canonical structures including names, descriptions, steps, expected results, data, preconditions, etc., to ensure consistency and standardization of test cases.
And the tester edits corresponding test case information according to the interface configuration parameters acquired before. This includes normal and abnormal inputs, as well as output results desired by the user. In the editing process, the user can flexibly customize according to the actual requirement.
The method is suitable for various scenes needing interface test, and especially in an automatic test flow, the comprehensiveness and traceability of the test are ensured by editing test case information by a user.
The design has the advantages that the format of the test case is standardized by providing the test case template structure, so that a tester can carry out according to a unified standard when editing the test case information, and the standardization of the test flow is improved. By editing the test case information, each test case can be ensured to clearly describe the information such as the testing steps, the expected results and the like, and the comprehensiveness and traceability of the test are realized. The tester can flexibly edit the test case information under the standard structure according to the actual demands, so as to adapt to different test scenes and improve the flexibility and the customization degree of the test.
And step 103, acquiring test environment configuration.
The test environment configuration comprises test server configuration, database configuration, interface debugging tool configuration and mock data;
this step ensures that the system is able to test in a proper environment, simulating a real scene, while performing automated testing.
Configuration information of the test server is obtained, wherein the configuration information comprises configuration of hardware, an operating system and the like of the server, and the test environment is ensured to support execution of automatic test tasks. Ensuring that the configuration of the database meets the test requirements, including database type, connection information, etc. In automated testing, it may be necessary to operate on the database, ensuring that the database is properly configured is part of ensuring test accuracy. The interface debugging tool is configured, so that the interface can be conveniently debugged and monitored in the test process. This is critical to troubleshooting problems, verifying whether the interface works as intended. Test data is prepared using the Mock data service. Mock data is used to simulate real data, ensuring that there is sufficient data volume in the test environment for testing while avoiding impact on real data.
This step is suitable for various scenarios requiring automated testing of interfaces, particularly when the testing environment is set up, ensuring that the system is capable of automated testing in a suitable environment. Specific application scenarios include, but are not limited to:
1. version regression test:
when the version regression test is carried out, the test environment configuration is ensured to be matched with the target version so as to verify the stability of the new version code under a specific environment.
2. Multi-server collaborative testing:
when one function involves the cooperative work of a plurality of servers, the configuration of each server is ensured to meet the requirements so as to ensure the normal operation of the whole system.
3. Database operation test:
aiming at interfaces needing database operation, the database configuration is ensured to be correct, so that the database operation is ensured to be accurate in the test process.
The design has the advantages that by correctly configuring the test environment, each configuration of the test server, the database and the like is ensured to be correct, the test accuracy is ensured, and the reliability of the test result is improved. The Mock data service is used, real data can be simulated in a test environment, the test is ensured to be carried out under the condition of approaching to the real scene, and the stability of the system is more comprehensively verified. The interface debugging tool is configured, so that interface debugging and monitoring are conveniently carried out in the testing process, quick discovery and problem solving are facilitated, and testing efficiency is improved. By setting up independent test environments, the influence on the production environment is avoided, and the stability of the production system is ensured.
And 104, obtaining an automatic test task according to the test case information.
The test case information includes test case names, descriptions, steps, expected results, test data, preconditions, and the like. The automatic test task is formed by combining a plurality of test case information to form a comprehensive test scene.
Such a design is suitable for regression testing, and in particular, requires verification of proper system functioning after version upgrades. In a complex business process, a comprehensive test scene is constructed by combining a plurality of test cases, so that more business scenes are covered.
The design has the advantages that by automatically assembling test tasks, a tester can quickly construct a test scene containing a plurality of test cases, and efficient test coverage is realized. The design of the task execution script enables a plurality of test cases to be executed in parallel, so that the test process is accelerated, and the test time cost is reduced. For complex business processes, testers can flexibly combine test cases according to actual needs, and comprehensive and systematic testing is ensured. The test case information is integrated into an automatic test task, which is favorable for the management and maintenance of the task, so that the test process is more standard and controllable.
And 105, acquiring a task execution script, and executing the automatic test task according to the task execution script.
The automated test tasks are performed in a test environment;
the automatic test task is obtained by combining a plurality of test case information;
the task execution script comprises a controller, an execution flow and an execution mode;
the controller comprises a condition controller, a circulation controller and a frequency controller;
the execution flow comprises a combination test and a multi-use case parallel test;
the execution mode comprises automatic execution and manual triggering;
the automatic execution includes the automatic test task being executed according to a predetermined time;
the manual triggering includes manual clicking of an automated test by a user.
And the testers assemble a plurality of test case information according to the requirements, and an automatic test task is created. This task may involve different test scenarios, consisting of multiple test case information.
The controller is used for controlling the execution flow of the task. The condition controller may perform different test steps according to specific conditions, and the cycle controller may repeatedly perform a series of steps, the number of times controller is used to limit the number of times the task is performed.
By supporting the combination test and the multi-use case parallel test, testers can flexibly combine different test scenes in the task according to actual test requirements, so that the task has higher flexibility and coverage.
Both automatic execution and manual triggering are provided. The automatic execution is executed according to a preset time or a fixed time, and is suitable for test tasks executed regularly. The automatic test is performed by clicking by a tester in a manual triggering manner, and the automatic test device is suitable for the situation requiring manual intervention or verification.
This step is applicable to various complex test scenarios, especially those requiring execution of multiple test cases and control of the execution flow. Specific application scenarios include, but are not limited to, regression testing, complex business process testing, parallel testing, and periodic inspection.
The regression test refers to executing tasks containing a plurality of regression test cases after version updating, and ensuring that the code of the new version does not destroy the existing functions.
The complex business process test refers to testing the correctness of the whole business process by combining test case information to create tasks aiming at the complex business process comprising a plurality of steps and conditions.
Parallel test refers to testing different interfaces or functional points, and the test efficiency is improved and the test time is shortened through multi-use case parallel test.
The periodic inspection pointer sets an automatic execution mode for tasks needing to be executed periodically, so that the stability and performance of the system are ensured.
The design has the advantages that the efficiency of the test is improved and the workload of manual operation is reduced by combining the test with the multi-use case parallel test and an automatic execution mode. Through the use of the controller, a tester can flexibly control the execution flow of the task, and the test flow is customized according to actual requirements. The method provides two execution modes of timing automatic execution and manual triggering, meets the test requirements under different scenes, and enhances the flexibility of the test. Through the combined test, the stability of the system in different scenes can be comprehensively verified, and the function of the system is ensured to be comprehensively tested.
And 106, acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information.
The test report comprises a test scene, a case of successful test, a case of failed test and time consumption of test.
A predefined test report template is obtained, which defines the structure of the test report and the information that needs to be contained. And filling key information generated in the test execution process into the template according to the acquired test report template to form a complete test report. The test report contains key information such as test scenes, cases of successful test, cases of failed test, time consumption of test and the like. This information reflects the overall situation of the test.
The method is suitable for various scenes needing to collect and display test results, and particularly suitable for the test stage in a software development project. Specific application scenarios include, but are not limited to, project test summary, version regression test evaluation, test effect display, and problem location and repair.
The project test summary refers to that after the test stage of the project is finished, a test report is generated, and the overall test effect is summarized and evaluated, so that a reference basis is provided for project management.
Version regression test evaluation refers to that after version regression test is completed, a test report is generated, and test differences between a new version and a previous version are evaluated to ensure that the quality of the new version is stable.
The test effect display refers to displaying the test effect to related parties such as project team, management layer and the like through a test report, and comprises successful use cases, failed use cases and time spent by the test.
Problem locating and repairing refers to helping developers accurately locate and repair problems through information such as failure use cases, error logs and the like in a test report.
The benefit of such a design is that through the test report, the tester and related stakeholders can fully understand the results of the test, including successful and failed use cases, for comprehensive evaluation. The test report provides a decision basis for project management and helps the team make the next plans and adjustments. Through the failure use cases and the error logs in the test report, developers can be helped to quickly locate and repair problems, and development efficiency is improved. The test report is used as a document form of project test results, and can be used as a communication tool to enable team members and related parties to know the test progress and result of the project.
And 107, executing log operation according to the log information.
The log operation comprises log segmentation, log naming and log cleaning.
The purpose of this step is to manage the log information generated during the automated test procedure for better maintenance, querying and analysis.
Log splitting refers to splitting a large log file according to a certain rule or time to form a smaller log file. This helps to reduce the volume of a single log file and improve log management efficiency.
The log naming refers to naming generated log files, and meaningful naming rules are adopted, so that a user can quickly know log contents or related information according to file names.
Log cleaning refers to periodically cleaning out log files that are out of date or are no longer needed, freeing up storage space, and maintaining the cleanliness of log management.
The design has the advantages that the size of a single log file is reduced by regularly cutting and cleaning the log, the system performance is improved, and the reading and writing time of the log file is shortened. Through the standard log naming and segmentation, the problems can be conveniently and rapidly positioned and analyzed by testers and developers. The clear log information is helpful for quickly troubleshooting the cause of the fault. And (3) regularly cleaning out outdated log files, releasing storage space, and ensuring that the normal operation of the system cannot be influenced by the fact that too much space is occupied by the log after the system operates for a long time. The flexible log query function is provided, so that the key information can be conveniently searched by testers and developers. Meanwhile, the standardized log records are beneficial to auditing the running condition of the system.
And 108, publishing the test message in real time.
And by utilizing a message release mechanism provided by collaboration tools such as OA, flyash and the like in the company, a process management system for project automatic test and collaboration tools such as OA, flyash and the like in the company are opened through an API or other integration modes, and the test progress and results are released to designated team channels or members in real time in a message form.
And synchronizing the contents of the key test information including the test progress, successful and failed use cases, test time consumption and the like to a collaborative tool, so as to ensure that team members can know the test conditions of the project in time.
Through message reminding, team members can receive important information of the test at the first time, including the test completion condition, the found problems and the like, so as to make response and decision in time.
This step is applicable to projects requiring team collaborative work, especially in rapid iterative development modes such as agile development, continuous integration, etc. Specific application scenarios include, but are not limited to, continuous integration environments and multi-person collaboration scenarios.
The continuous integration environment refers to that in continuous integration, automatic tests are frequently conducted, and a team can timely know the test result of each integration through real-time message notification, so that problems can be quickly found and repaired.
The multi-person collaboration scenario refers to that when the test involves multi-person collaboration, team members can share information such as test progress, problem discovery and the like through real-time message notification, so that team collaboration efficiency is improved.
The design has the advantages that team members can know the test progress and result at the first time and respond to the found problems in time, so that the problem solving speed is increased. The real-time message notification is beneficial to information sharing among team members, improves collaborative work efficiency, and ensures that all members keep consistent knowledge of the project. Through real-time message notification, the test progress and results of the project are presented in an intuitive manner in the team collaborative tool, enabling the entire team to have clear knowledge of the status of the project. Communication cost among team members is reduced through message reminding, and delay and error of information transmission are avoided.
As shown in fig. 2, the present invention provides a process management apparatus for automated testing of items, the apparatus comprising:
an interface configuration parameter acquisition module 201, configured to acquire interface configuration parameters;
the obtaining case information module 202 is configured to obtain test case information sent by the client, where the test case information is generated by editing according to interface configuration parameters by a user;
an acquisition test environment configuration module 203 for acquiring a test environment configuration;
a test task generation module 204, configured to obtain an automated test task according to the test case information;
the task execution module 205 is configured to obtain a task execution script, and execute the automated test task according to the task execution script;
a generate test report module 206 for obtaining a test report template, generating a test report according to the test report template, the test report including log information;
a log operation module 207 for performing a log operation according to the log information;
a message publishing module 208 for testing real-time publishing of messages.
Fig. 3 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a process management method for project automation testing.
In some embodiments, a method of flow management for automated testing of items. May be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the ride-on service order matching method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured as a flow management method for project automation testing in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
The invention relates to a process management method, equipment, a device and a storage medium for project automation test, which comprises the following working principles:
the process management method for the project automation test comprises the steps of obtaining interface configuration parameters; acquiring test case information sent by a client, wherein the test case information is generated by editing interface configuration parameters by a user; acquiring test environment configuration; according to the test case information, an automatic test task is obtained; acquiring a task execution script, and executing the automatic test task according to the task execution script; acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information; executing log operation according to the log information; the test message is published in real time.
According to the invention, through interface definition and parameter configuration, the automatic test platform can flexibly determine the test interface and parameters thereof. And the tester generates test cases according to interface configuration through standard test case management, and edits the test case in a test case template provided by the system. Then, a complete testing environment is built, and the authenticity and the comprehensiveness of the test are ensured.
In the automatic test script execution stage, testers can flexibly assemble test scenes, support combination test and multi-use case parallel test, and simultaneously provide two modes of automatic execution and manual triggering so as to adapt to different requirements. The generated test report contains detailed test scenes, successful and failed use cases, time-consuming test and other information, and helps the team to comprehensively know the test conditions of the project.
In test log management, the system records various log information, provides flexible inquiry functions, and manages the log information in the modes of log segmentation, naming, cleaning and the like. And finally, timely synchronization of the test progress and the result is realized through a message reminding mechanism of a collaboration tool in the company.
The technical defect that the bug of the project cannot be found in time because the traditional manual test coverage rate is low and most of complex test scenes are difficult to cover is solved.
The flow management method, device, apparatus and other structures of a storage medium for project automation test described in this embodiment refer to the prior art.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The present invention is not limited to the preferred embodiments, and any modifications, equivalent variations and modifications made to the above embodiments according to the technical principles of the present invention are within the scope of the technical proposal of the present invention.

Claims (10)

1. A process management method for automated testing of items, the method comprising:
acquiring interface configuration parameters;
acquiring test case information sent by a client, wherein the test case information is generated by editing interface configuration parameters by a user;
acquiring test environment configuration;
according to the test case information, an automatic test task is obtained;
acquiring a task execution script, and executing the automatic test task according to the task execution script;
acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information;
executing log operation according to the log information;
the test message is published in real time.
2. The process management method for project automation testing according to claim 1, wherein obtaining interface configuration parameters comprises:
the interface configuration parameters comprise interface information and interface parameters;
the interface information comprises an interface name, a request method, a request address and a request parameter;
the interface parameters include a request message header, a request message body, and request parameters.
3. The process management method for project automation test according to claim 1, wherein obtaining test case information sent by a client, the test case information being generated by a user according to interface configuration parameter editing, comprises:
the test case information is generated by editing a test case template by a user;
the test case information comprises a test case name, a test case description, a test step, an expected result, test data and a precondition.
4. The method for managing the flow of automated testing of items according to claim 1, wherein obtaining the configuration of the testing environment comprises:
the test environment configuration includes a test server configuration, a database configuration, an interface debug tool configuration, and mock data.
5. The process management method for project automation test of claim 1, wherein obtaining a task execution script, and executing the automation test task according to the task execution script, comprises:
the automated test tasks are performed in a test environment;
the automatic test task is obtained by combining a plurality of test case information;
the task execution script comprises a controller, an execution flow and an execution mode;
the controller comprises a condition controller, a circulation controller and a frequency controller;
the execution flow comprises a combination test and a multi-use case parallel test;
the execution mode comprises automatic execution and manual triggering;
the automatic execution includes the automatic test task being executed according to a predetermined time;
the manual triggering includes manual clicking of an automated test by a user.
6. The process management method for project automation testing according to claim 1, wherein obtaining a test report template, generating a test report according to the test report template, the test report including log information, comprises:
the test report comprises a test scene, a case of successful test, a case of failed test and time consumption of test.
7. The flow management method of project automation test of claim 1, wherein performing a log operation based on the log information comprises:
the log operation comprises log segmentation, log naming and log cleaning.
8. A process management apparatus for project automation testing, wherein the process management apparatus for project automation testing is configured to perform a process management method for the project automation testing, the process management apparatus for project automation testing comprising:
the interface configuration parameter acquisition module is used for acquiring interface configuration parameters;
the system comprises an acquisition case information module, a client and a user interface configuration parameter editing module, wherein the acquisition case information module is used for acquiring test case information sent by the client, and the test case information is generated by editing the user according to the interface configuration parameter;
the test environment configuration acquisition module is used for acquiring test environment configuration;
the test task generating module is used for obtaining an automatic test task according to the test case information;
the task execution module is used for acquiring a task execution script and executing the automatic test task according to the task execution script;
the test report generation module is used for acquiring a test report template, and generating a test report according to the test report template, wherein the test report comprises log information;
the log operation module is used for executing log operation according to the log information;
and the message publishing module is used for publishing the test message in real time.
9. An electronic device, the electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a process management method of an item automation test of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program,
the computer program is configured to cause a processor to execute a process management method for automated testing of items according to any one of claims 1 to 7.
CN202311606510.9A 2023-11-28 2023-11-28 Method, equipment, device and storage medium for managing process of project automation test Pending CN117609038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311606510.9A CN117609038A (en) 2023-11-28 2023-11-28 Method, equipment, device and storage medium for managing process of project automation test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311606510.9A CN117609038A (en) 2023-11-28 2023-11-28 Method, equipment, device and storage medium for managing process of project automation test

Publications (1)

Publication Number Publication Date
CN117609038A true CN117609038A (en) 2024-02-27

Family

ID=89943910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311606510.9A Pending CN117609038A (en) 2023-11-28 2023-11-28 Method, equipment, device and storage medium for managing process of project automation test

Country Status (1)

Country Link
CN (1) CN117609038A (en)

Similar Documents

Publication Publication Date Title
CN110851356B (en) Selenium-based Web application automatic test framework and construction method and system thereof
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
US9183124B2 (en) Automation controller for next generation testing system
US10127141B2 (en) Electronic technology resource evaluation system
AU2012202261B2 (en) Test data supply chain manager for an integrated testing platform
US7895565B1 (en) Integrated system and method for validating the functionality and performance of software applications
CN103365770B (en) Mobile terminal software test macro and method for testing software
CN108345532A (en) A kind of automatic test cases generation method and device
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
JP2010231782A (en) Method and system for function automation
CA2775162C (en) Test data supply chain manager for an integrated testing platform
CN112199355B (en) Data migration method and device, electronic equipment and storage medium
CN115480746A (en) Method, device, equipment and medium for generating execution file of data processing task
CN116629173A (en) Verification method and device of network chip, computer equipment and storage medium
CN117609038A (en) Method, equipment, device and storage medium for managing process of project automation test
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN115344966A (en) CAD assembly body part replacement method and system
CN114064469A (en) Interface automation test method and storage medium
CA2775165C (en) Automation controller for next generation testing system
CN112836220B (en) Cloud center environment inspection method
CN117370171A (en) Remote control POS batch automatic test method
RU2817186C1 (en) System for confirming tests and testing embedded software of electronic devices
CN117370146A (en) Automatic test method, device, equipment and storage medium
CN113535560A (en) Test execution method and device, storage medium and computing equipment
CN116303019A (en) Test tracing method, device, equipment and medium

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