Search

CN-115878465-B - Method, device, computer equipment and storage medium for improving test efficiency

CN115878465BCN 115878465 BCN115878465 BCN 115878465BCN-115878465-B

Abstract

The application discloses a method, a device, computer equipment and a storage medium for improving test efficiency. The method comprises the steps of compiling test cases, setting corresponding characteristics I D for each test case, obtaining all the characteristics of the version to be distributed, adding the test cases corresponding to the version to be distributed into a system test plan according to characteristic numbers of the characteristics, obtaining the test cases and characteristics I D of each test case of the system test plan, obtaining all the characteristics of the version to be distributed and user stories of the characteristics, building association relations among the characteristics, the test cases and the user stories according to the characteristics I D, circularly binding the test cases of the same characteristics to the user stories associated with the test cases according to the association relations, and executing the system test plan. The application can finish the binding of the test case and the user story by one key, can save the manual operation time and greatly improve the test efficiency.

Inventors

  • HU CHUNHUI

Assignees

  • 平安健康保险股份有限公司

Dates

Publication Date
20260508
Application Date
20221206

Claims (6)

  1. 1. A method for improving test efficiency, comprising: Writing test cases according to the versions to be distributed, setting corresponding characteristic IDs for each test case, wherein the characteristic IDs are characteristic numbers of the corresponding characteristics of the test cases under the versions to be distributed; each characteristic under the version to be distributed is obtained, and the test cases corresponding to the version to be distributed are added into a system test plan according to the characteristic numbers of the characteristics; Acquiring test cases under the system test plan and characteristic IDs of each test case, acquiring each characteristic under the version to be distributed and a user story under the characteristic, and establishing an association relationship among the characteristic, the test cases and the user story according to the characteristic IDs, wherein the method comprises the following steps: Inputting a system test plan name and a system name, calling a test case interface according to the system test plan name and the system name, analyzing JSON data returned by the test case interface, acquiring all test cases under the system test plan and characteristic IDs of each test case, and establishing an association relation between the characteristics and the test cases according to the characteristic IDs; Acquiring version numbers of the versions to be distributed according to the system test plan names, calling a characteristic interface according to the version numbers to obtain all characteristic numbers under the version numbers, calling a user story interface by utilizing the characteristic numbers, analyzing JSON data returned by the user story interface to obtain all user stories under the version numbers and the characteristic numbers corresponding to each user story, and establishing association relations among the characteristics, test cases and the user stories according to the characteristic numbers; And according to the association relation among the characteristics, the test cases and the user stories, circularly binding the test cases under the same characteristics to the user stories associated with the test cases, and executing the system test plan.
  2. 2. The method for improving test efficiency according to claim 1, wherein before writing the test case for the version to be issued, further comprises: Creating a version to be distributed, and creating a system test plan according to the version number of the version to be distributed to generate a system test plan name, wherein the system test plan name comprises a system name and a version number.
  3. 3. The method for improving test efficiency according to claim 1 or 2, wherein the setting the corresponding characteristic ID for each test case specifically comprises: and when the test case is compiled, inputting a characteristic number of the corresponding characteristic of the test case under the version to be distributed into the characteristic ID field, and finishing the characteristic ID setting of the test case.
  4. 4. An apparatus for improving test efficiency, comprising: The case setting module is used for writing test cases aiming at the version to be released, setting corresponding characteristic IDs for each test case, wherein the characteristic IDs are characteristic numbers of the corresponding characteristics of the test cases under the version to be released; The case adding module is used for obtaining each characteristic under the version to be distributed and adding the test case corresponding to the version to be distributed into a system test plan according to the characteristic number of the characteristic; The case association module is used for acquiring the test cases under the system test plan and the characteristic IDs of each test case, acquiring the characteristics of the versions to be distributed and the user stories under the characteristics, and establishing association relations among the characteristics, the test cases and the user stories according to the characteristic IDs; The case association module obtains the test cases under the system test plan and the characteristic IDs of each test case, obtains each characteristic under the version to be distributed and the user stories under the characteristic, and establishes association relations among the characteristic, the test cases and the user stories according to the characteristic IDs, wherein the association relations concretely comprise: Inputting a system test plan name and a system name, calling a test case interface according to the system test plan name and the system name, analyzing JSON data returned by the test case interface, acquiring all test cases under the system test plan and characteristic IDs of each test case, and establishing an association relation between the characteristics and the test cases according to the characteristic IDs; Acquiring version numbers of the versions to be distributed according to the system test plan names, calling a characteristic interface according to the version numbers to obtain all characteristic numbers under the version numbers, calling a user story interface by utilizing the characteristic numbers, analyzing JSON data returned by the user story interface to obtain all user stories under the version numbers and the characteristic numbers corresponding to each user story, and establishing association relations among the characteristics, test cases and the user stories according to the characteristic numbers; And the relation binding module is used for circularly binding the test cases under the same characteristic to the user stories associated with the test cases according to the characteristic, the test cases and the association relation among the user stories, and executing the system test plan.
  5. 5. A computer device, the computer device comprising: a memory storing executable program instructions; A processor coupled to the memory; The processor invokes the executable program instructions stored in the memory to perform the method of improving test efficiency as claimed in any one of claims 1-3.
  6. 6. A storage medium storing program instructions executable by a processor for performing the method of improving test efficiency of any one of claims 1 to 3.

Description

Method, device, computer equipment and storage medium for improving test efficiency Technical Field The present application relates to the field of research and development management technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for improving test efficiency. Background The development management platform is a development management tool specially developed for a unit engaged in product development work to manage part or even all of the daily management work related to the development activity. In the research and development management platform, research and development tasks are divided into intent, characteristics and user stories, wherein the intent is an overall requirement provided by a business party, the characteristics are sub-requirements split by each business line for supporting the overall requirement, and in order to implement the sub-requirements, research and development personnel are required to establish the user stories for the functions of submitting codes, associating test cases with test personnel and submitting defects by the research and development personnel under the sub-requirements. In the process of demand testing, a tester needs to write test cases first, then bind the test cases to corresponding user stories, test the demands and execute the test cases. Because the functions of each user story are different, and the corresponding test cases are bound to each user story, the test personnel need to continuously execute the operation in the test process, a great deal of labor cost is required to be consumed, the whole test time is longer, and the test efficiency is lower. Disclosure of Invention The application provides a method, a device, computer equipment and a storage medium for improving test efficiency, and aims to solve the technical problems of long test time consumption, low test efficiency and the like in the existing test method of a research and development management platform. In order to solve the technical problems, the application adopts the following technical scheme: a method of improving test efficiency, comprising: Writing test cases according to the versions to be distributed, setting corresponding characteristic IDs for each test case, wherein the characteristic IDs are characteristic numbers of the corresponding characteristics of the test cases under the versions to be distributed; each characteristic under the version to be distributed is obtained, and the test cases corresponding to the version to be distributed are added into a system test plan according to the characteristic numbers of the characteristics; acquiring test cases under the system test plan and characteristic IDs of each test case, acquiring various characteristics under the version to be distributed and user stories under the characteristics, and establishing association relations among the characteristics, the test cases and the user stories according to the characteristic IDs; And according to the association relation among the characteristics, the test cases and the user stories, circularly binding the test cases under the same characteristics to the user stories associated with the test cases, and executing the system test plan. The technical scheme adopted by the embodiment of the application further comprises the following steps before writing the test case aiming at the version to be distributed: Creating a version to be distributed, and creating a system test plan according to the version number of the version to be distributed to generate a system test plan name, wherein the system test plan name comprises a system name and a version number. The technical scheme adopted by the embodiment of the application further comprises that the setting of the corresponding characteristic ID for each test case is specifically as follows: and when the test case is compiled, inputting a characteristic number of the corresponding characteristic of the test case under the version to be distributed into the characteristic ID field, and finishing the characteristic ID setting of the test case. The technical scheme adopted by the embodiment of the application further comprises the steps of obtaining the test cases under the system test plan and the characteristic IDs of each test case, obtaining each characteristic under the version to be distributed and the user stories under the characteristic, and establishing the association relationship among the characteristic, the test cases and the user stories according to the characteristic IDs, wherein the association relationship comprises the following steps: Inputting a system test plan name and a system name, calling a test case interface according to the system test plan name and the system name, analyzing JSON data returned by the test case interface, acquiring all test cases under the system test plan and characteristic IDs of each test case, and establishing an association relation between the