Auxiliary testing method, system and equipment for software project and medium
By using auxiliary testing tools in software projects to decrypt cryptographic text, bind enterprise information and build test data, the rapid testing problems required for software projects iteration are solved, and an efficient and accurate testing process is achieved, reducing testing costs and time.
Patent Information
- Application Number
- CN202411728487.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-14
AI Technical Summary
The existing technology is difficult to meet the rapid construction data and testing required for software project iteration, resulting in inefficient testing and wasted time.
By selecting the test environment based on pre-built auxiliary testing tools, obtaining the ciphertext of the software project to be tested for AES decryption, binding the enterprise information and the test environment, and building the test data based on the decryption results, and finally quality testing is carried out through the backend test system.
It improves the testing efficiency of software projects, shortens testing time, enhances test accuracy and repeatability, and reduces testing costs.
Smart Images

Figure CN119621574A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of project testing, and more specifically, to an auxiliary testing method, system, device and medium for software projects. Background Art
[0002] As the iteration cycle of today's projects is getting shorter and shorter, completely manual data construction can no longer meet the needs of iterative launch. This requires the use of auxiliary testing tools to facilitate rapid data construction and rapid iterative testing. Summary of the invention
[0003] In view of the above problems, the present invention proposes an auxiliary testing method for a software project, comprising:
[0004] Based on the pre-built auxiliary test tool, a test environment is selected, and in the test environment, a ciphertext of the software project to be tested is obtained, and the ciphertext is decrypted by AES to obtain a decryption result;
[0005] Binding the enterprise information of the enterprise that produces the software project to be tested to the test environment, and after successful binding, constructing the test data of the software project to be tested in the test environment based on the decryption result;
[0006] Based on the auxiliary testing tool, a background testing system is called, and through the background testing system, quality testing is performed on the software project to be tested according to the test data.
[0007] Optionally, pre-build auxiliary testing tools based on Python language.
[0008] Optional, ciphertext, including: ciphertext of the data body of the software project to be tested.
[0009] Optionally, when performing AES decryption on the ciphertext, the ciphertext is verified, and if the ciphertext content is not empty and is legal encrypted data, the ciphertext is decrypted by AES.
[0010] Optional, business information, including:
[0011] The mobile phone number, tax number, company name and area code reserved by the company.
[0012] Optionally, the enterprise information of the enterprise that produces the software project to be tested is bound to the test environment, including:
[0013] The enterprise information of the enterprise that produces the software project to be tested is obtained, and the enterprise information is entered in the test environment, and the entered value is checked by rules. After the check passes, the enterprise information is bound to the test environment.
[0014] Optionally, the method further includes:
[0015] If the enterprise information does not include the enterprise tax number, a random tax number will be generated according to the preset rules based on the enterprise's reserved mobile phone number or enterprise name information.
[0016] Optionally, when binding the enterprise information with the test environment, the mobile phone number and tax number reserved by the enterprise in the enterprise information are used as mandatory binding items, and the enterprise name and the area code where the enterprise is located in the enterprise information are used as optional binding items.
[0017] Optionally, after the enterprise information is successfully bound to the test environment, the successfully bound enterprise information is recorded in the auxiliary testing tool. When the enterprise's new software project to be tested is tested, the enterprise information is no longer bound, and the bound regional code is detected with the regional code of the region where the current auxiliary testing tool is located. If the detection results are consistent, the test data is constructed using the ciphertext results of the enterprise's new software project to be tested. If they are inconsistent, the regional code is modified and the test data is constructed using the ciphertext results of the enterprise's new software project to be tested.
[0018] Optionally, the same enterprise uses multiple auxiliary testing tools to perform simultaneous quality testing on multiple software projects to be tested.
[0019] Optionally, the method further includes:
[0020] Based on the auxiliary testing tool, before calling the background testing system, determine the region where the auxiliary testing tool is located. If the regional code of the region where the auxiliary testing tool is located is inconsistent with the bound regional code, the regional code in the bound enterprise information is modified according to the regional code of the region where the auxiliary testing tool is located.
[0021] In another aspect, the present invention further provides an auxiliary testing system for a software project, comprising:
[0022] The initialization unit is used to select a test environment based on a pre-built auxiliary test tool, obtain the ciphertext of the software project to be tested in the test environment, and perform AES decryption on the ciphertext to obtain a decryption result;
[0023] A test data construction unit, used to bind the enterprise information of the enterprise that produces the software project to be tested to the test environment, and after successful binding, construct test data of the software project to be tested in the test environment based on the decryption result;
[0024] The testing unit is used to call the background testing system based on the auxiliary testing tool, and perform quality testing on the software project to be tested according to the test data through the background testing system.
[0025] Optionally, pre-build auxiliary testing tools based on Python language.
[0026] Optional, ciphertext, including: ciphertext of the data body of the software project to be tested.
[0027] Optionally, when performing AES decryption on the ciphertext, the ciphertext is verified, and if the ciphertext content is not empty and is legal encrypted data, the ciphertext is decrypted by AES.
[0028] Optional, business information, including:
[0029] The mobile phone number, tax number, company name and area code reserved by the company.
[0030] Optionally, the enterprise information of the enterprise that produces the software project to be tested is bound to the test environment, including:
[0031] The enterprise information of the enterprise that produces the software project to be tested is obtained, and the enterprise information is entered in the test environment, and the entered value is checked by rules. After the check passes, the enterprise information is bound to the test environment.
[0032] Optionally, the test data building unit is also used to:
[0033] In the enterprise information, excluding: enterprise tax number, a random tax number is generated according to the preset rules based on the enterprise's reserved mobile phone number or enterprise name information.
[0034] Optionally, when binding the enterprise information with the test environment, the mobile phone number and tax number reserved by the enterprise in the enterprise information are used as mandatory binding items, and the enterprise name and the area code where the enterprise is located in the enterprise information are used as optional binding items.
[0035] Optionally, after the enterprise information is successfully bound to the test environment, the successfully bound enterprise information is recorded in the auxiliary testing tool. When the enterprise's new software project to be tested is tested, the enterprise information is no longer bound, and the bound regional code is detected with the regional code of the region where the current auxiliary testing tool is located. If the detection results are consistent, the test data is constructed using the ciphertext results of the enterprise's new software project to be tested. If they are inconsistent, the regional code is modified and the test data is constructed using the ciphertext results of the enterprise's new software project to be tested.
[0036] Optionally, the same enterprise uses multiple auxiliary testing tools to perform simultaneous quality testing on multiple software projects to be tested.
[0037] Optionally, the test unit is also used to:
[0038] Before calling the background test system based on the auxiliary test tool, determine the region where the auxiliary test tool is located. If the regional code of the region where the auxiliary test tool is located is inconsistent with the bound regional code, the regional code in the bound enterprise information is modified according to the regional code of the region where the auxiliary test tool is located.
[0039] In yet another aspect, the present invention further provides a computing device, comprising: one or more processors;
[0040] a processor for executing one or more programs;
[0041] When the one or more programs are executed by the one or more processors, the above-described method is implemented.
[0042] In yet another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the method described above is implemented.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] The present invention provides an auxiliary testing method for software projects, comprising: based on a pre-built auxiliary testing tool, selecting a testing environment, obtaining the ciphertext of the software project to be tested in the testing environment, and performing AES decryption on the ciphertext to obtain the decryption result; binding the enterprise information of the enterprise that produces the software project to be tested with the testing environment, and after successful binding, constructing the test data of the software project to be tested in the testing environment based on the decryption result; based on the auxiliary testing tool, calling a background testing system, and performing quality testing on the software project to be tested according to the test data through the background testing system. The present invention can improve the testing efficiency of software projects and shorten the testing time. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a flow chart of the method of the present invention;
[0046] Figure 2 It is a structural diagram of the system of the present invention. DETAILED DESCRIPTION
[0047] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0048] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0049] Embodiment 1:
[0050] The present invention proposes an auxiliary testing method for software projects, such as Figure 1 As shown, including:
[0051] Step 1: Based on the pre-built auxiliary test tool, select a test environment, obtain the ciphertext of the software project to be tested in the test environment, and perform AES decryption on the ciphertext to obtain the decryption result;
[0052] Step 2: Bind the enterprise information of the enterprise that produces the software project to be tested to the test environment. After successful binding, build test data of the software project to be tested in the test environment based on the decryption result;
[0053] Step 3: Based on the auxiliary testing tool, call the background testing system, and perform quality testing on the software project to be tested according to the test data through the background testing system.
[0054] Among them, auxiliary testing tools are pre-built based on Python language.
[0055] The ciphertext includes: the ciphertext of the data body of the software project to be tested.
[0056] When the ciphertext is decrypted by AES, the ciphertext is verified. If the ciphertext content is not empty and is legal encrypted data, the ciphertext is decrypted by AES.
[0057] Among them, enterprise information includes:
[0058] The mobile phone number, tax number, company name and area code reserved by the company.
[0059] The enterprise information of the enterprise that produces the software project to be tested is bound to the test environment, including:
[0060] The enterprise information of the enterprise that produces the software project to be tested is obtained, and the enterprise information is entered in the test environment, and the entered value is checked by rules. After the check passes, the enterprise information is bound to the test environment.
[0061] The method further includes:
[0062] If the enterprise information does not include the enterprise tax number, a random tax number will be generated according to the preset rules based on the enterprise's reserved mobile phone number or enterprise name information.
[0063] When binding the enterprise information with the test environment, the mobile phone number and tax number reserved by the enterprise in the enterprise information are used as mandatory binding items, and the enterprise name and the area code where the enterprise is located in the enterprise information are used as optional binding items.
[0064] Among them, after the enterprise information is successfully bound to the test environment, the successfully bound enterprise information is recorded in the auxiliary testing tool. When the enterprise's new software project to be tested is tested, the enterprise information is no longer bound, and the bound regional code is detected with the regional code of the area where the current auxiliary testing tool is located. If the detection result is consistent, the test data is constructed through the ciphertext result of the enterprise's new software project to be tested. If it is inconsistent, the regional code is modified and the test data is constructed through the ciphertext result of the enterprise's new software project to be tested.
[0065] Among them, the same enterprise uses multiple auxiliary testing tools to perform simultaneous quality testing on multiple software projects to be tested.
[0066] The method further includes:
[0067] Based on the auxiliary testing tool, before calling the background testing system, determine the region where the auxiliary testing tool is located. If the regional code of the region where the auxiliary testing tool is located is inconsistent with the bound regional code, the regional code in the bound enterprise information is modified according to the regional code of the region where the auxiliary testing tool is located.
[0068] In view of the above technology, the main functions provided by the present invention include:
[0069] You can choose the production environment or the test environment to perform AES decryption on the provided ciphertext respectively; the process is: the user selects the environment on the left, the default is the test environment, the upper middle part is to enter the "encrypted data body", and the right is the "Decryption" button. After clicking the Decryption button, the enterprise service backend system is called to judge the encrypted body. If the encrypted body content is not empty and is normally encrypted data, the encrypted body data will be decrypted, and the decrypted data message is returned to fill in the "Decrypted Result" text box on the page.
[0070] In the test environment, bind the provided mobile phone number and corporate tax number; the process is: the user enters the mobile phone number, tax number, company name, and area code. The tax number supports manual entry and random generation. Click the "Random Tax Number" button to randomly generate a tax number that complies with the regulations according to the tax number rules and fill it into the tax number text box. The area code can be entered by referring to the area code table, where the area code table is information on all regions in the country, covering provinces, cities, districts, and counties. After entering the above information in full, click Bind to call the enterprise service backend system to perform rule verification on all input values. If the verification rules pass, the mobile phone number and tax number can be bound to build test data for use in subsequent tests.
[0071] Modify the region code of the invoicing software in the local registry. The process is: the user enters the "region code" through the page, clicks the "Modify" button, and after the region code passes the rule verification, the system function is called to modify the corresponding node in the registry. It is convenient to simulate the login operation of users in different regions of the No Enterprise Service and improve the testing efficiency.
[0072] The present invention is simple to operate, convenient and fast, and can quickly construct pre-test preparation data.
[0073] The present invention can be applied to a company's intranet or local area network, and the service stability is stronger and the data security is more reliable.
[0074] The present invention facilitates the construction of test data and hands over the generation of test data to the test tool for processing, which can greatly improve the test efficiency and shorten the test time.
[0075] The present invention enhances the accuracy of the test, can accurately record various data and results in the test process, and avoid human errors. Whenever the test is performed, the auxiliary test tool can operate according to the established rules and procedures to ensure the repeatability of the test.
[0076] The present invention reduces the testing cost, and leaves the construction of test data to auxiliary tools, freeing up testers to devote more energy to designing better test cases.
[0077] Embodiment 2:
[0078] The present invention also proposes an auxiliary testing system 200 for a software project, such as Figure 2 As shown, including:
[0079] The initialization unit 201 is used to select a test environment based on a pre-built auxiliary test tool, obtain a ciphertext of the software project to be tested in the test environment, and perform AES decryption on the ciphertext to obtain a decryption result;
[0080] The test data construction unit 202 is used to bind the enterprise information of the enterprise that produces the software project to be tested to the test environment, and after successful binding, construct the test data of the software project to be tested in the test environment based on the decryption result;
[0081] The testing unit 203 is used to call the background testing system based on the auxiliary testing tool, and perform quality testing on the software project to be tested according to the test data through the background testing system.
[0082] Among them, auxiliary testing tools are pre-built based on Python language.
[0083] The ciphertext includes: the ciphertext of the data body of the software project to be tested.
[0084] When the ciphertext is decrypted by AES, the ciphertext is verified. If the ciphertext content is not empty and is legal encrypted data, the ciphertext is decrypted by AES.
[0085] Among them, enterprise information includes:
[0086] The mobile phone number, tax number, company name and area code reserved by the company.
[0087] The enterprise information of the enterprise that produces the software project to be tested is bound to the test environment, including:
[0088] The enterprise information of the enterprise that produces the software project to be tested is obtained, and the enterprise information is entered in the test environment, and the entered value is checked by rules. After the check passes, the enterprise information is bound to the test environment.
[0089] The test data construction unit 202 is further used for:
[0090] In the enterprise information, excluding: enterprise tax number, a random tax number is generated according to the preset rules based on the enterprise's reserved mobile phone number or enterprise name information.
[0091] When binding the enterprise information with the test environment, the mobile phone number and tax number reserved by the enterprise in the enterprise information are used as mandatory binding items, and the enterprise name and the area code where the enterprise is located in the enterprise information are used as optional binding items.
[0092] Among them, after the enterprise information is successfully bound to the test environment, the successfully bound enterprise information is recorded in the auxiliary testing tool. When the enterprise's new software project to be tested is tested, the enterprise information is no longer bound, and the bound regional code is detected with the regional code of the area where the current auxiliary testing tool is located. If the detection result is consistent, the test data is constructed through the ciphertext result of the enterprise's new software project to be tested. If it is inconsistent, the regional code is modified and the test data is constructed through the ciphertext result of the enterprise's new software project to be tested.
[0093] Among them, the same enterprise uses multiple auxiliary testing tools to perform simultaneous quality testing on multiple software projects to be tested.
[0094] The testing unit 203 is also used for:
[0095] Before calling the background test system based on the auxiliary test tool, determine the region where the auxiliary test tool is located. If the regional code of the region where the auxiliary test tool is located is inconsistent with the bound regional code, the regional code in the bound enterprise information is modified according to the regional code of the region where the auxiliary test tool is located.
[0096] The present invention can improve the testing efficiency of software projects and shorten the testing time.
[0097] Embodiment 3:
[0098] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of the method in the above embodiment.
[0099] Embodiment 4:
[0100] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both a built-in storage medium in a computer device and an extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of the method in the above embodiment.
[0101] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0102] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0103] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0105] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0106] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An auxiliary testing method for a software project, characterized in that: include: Based on the pre-built auxiliary test tool, a test environment is selected, and in the test environment, a ciphertext of the software project to be tested is obtained, and the ciphertext is decrypted by AES to obtain a decryption result; Binding the enterprise information of the enterprise that produces the software project to be tested to the test environment, and after successful binding, constructing the test data of the software project to be tested in the test environment based on the decryption result; Based on the auxiliary testing tool, a background testing system is called, and through the background testing system, quality testing is performed on the software project to be tested according to the test data.
2. The auxiliary testing method according to claim 1, characterized in that: Pre-build auxiliary testing tools based on Python language.
3. The auxiliary testing method according to claim 1, characterized in that: The ciphertext includes: the ciphertext of the data body of the software project to be tested.
4. The auxiliary testing method according to claim 1, characterized in that: When the ciphertext is decrypted by AES, the ciphertext is verified. If the ciphertext content is not empty and is legal encrypted data, the ciphertext is decrypted by AES.
5. The auxiliary testing method according to claim 1, characterized in that: The enterprise information includes: The mobile phone number, tax number, company name and area code reserved by the company.
6. The auxiliary testing method according to claim 1, characterized in that: The enterprise information of the enterprise that produces the software project to be tested is bound to the test environment, including: The enterprise information of the enterprise that produces the software project to be tested is obtained, and the enterprise information is entered in the test environment, and the entered value is checked by rules. After the check passes, the enterprise information is bound to the test environment.
7. The auxiliary testing method according to claim 1, characterized in that: The method further comprises: If the enterprise information does not include the enterprise tax number, a random tax number will be generated according to the preset rules based on the enterprise's reserved mobile phone number or enterprise name information.
8. An auxiliary testing system for a software project, characterized in that: include: The initialization unit is used to select a test environment based on a pre-built auxiliary test tool, obtain the ciphertext of the software project to be tested in the test environment, and perform AES decryption on the ciphertext to obtain a decryption result; A test data construction unit, used to bind the enterprise information of the enterprise that produces the software project to be tested to the test environment, and after successful binding, construct test data of the software project to be tested in the test environment based on the decryption result; The testing unit is used to call the background testing system based on the auxiliary testing tool, and perform quality testing on the software project to be tested according to the test data through the background testing system.
9. A computer device, characterized in that: include: one or more processors; a processor for executing one or more programs; When the one or more programs are executed by the one or more processors, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.