Interface regression testing method and device
By obtaining the current name of the interface and updating the interface name in the regression test script, the problem of low efficiency of interface regression testing in the existing technology is solved, and automated interface name updates and efficient regression testing are realized.
Patent Information
- Application Number
- CN202110070901.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-19
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-01-19
AI Technical Summary
When performing regression testing of interfaces in non-online environments, the interface name in the regression test script needs to be manually modified, resulting in low testing efficiency.
By obtaining the current name of the interface, obtaining the regression test script from the code hosting server, calling the execution script updates the name of the interface in the regression test script to the current name, and executing the updated regression test script for testing.
Save modification time, improve interface regression testing efficiency, and allows different testers to test by entering different interface names without manually modifying the regression test script on the hosting server.
Smart Images

Figure CN113760727B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an interface regression testing method and device. Background Art
[0002] When performing regression testing on an interface in a non-online environment (for example, a pre-release environment or a test environment), it is necessary to modify the name of the interface in the regression test script, and then perform testing based on the modified regression test script.
[0003] The prior art usually modifies the name of the interface locally, and tests the interface locally based on the modified regression test script.
[0004] However, this method takes a long time, resulting in low efficiency of interface regression testing. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides an interface regression testing method and device, which can improve the efficiency of interface regression testing.
[0006] In a first aspect, an embodiment of the present invention provides an interface regression testing method, comprising:
[0007] Get the current name of the interface;
[0008] Get the regression test script from the code hosting server;
[0009] Calling an execution script to update the name of the interface in the regression test script to the current name;
[0010] The updated regression test script is executed to perform regression testing on the interface.
[0011] Optionally,
[0012] Before obtaining the current name of the interface, the method further includes:
[0013] Get the parameter type and parameter name;
[0014] Execute parameterized construction according to the parameter type and the parameter name;
[0015] The current name of the acquisition interface includes:
[0016] The current name input for the parameter is received; wherein the current name is the value of the parameter.
[0017] Optionally,
[0018] The performing parameterized construction according to the parameter type and the parameter name includes:
[0019] Execute parameterized build according to the parameter type, the parameter name and the Build with Parameters plug-in.
[0020] Optionally,
[0021] Before obtaining the current name of the interface, the method further includes: obtaining a regression test script address;
[0022] The step of obtaining the regression test script from the code hosting server includes:
[0023] According to the regression test script address, the regression test script is obtained from the code hosting server.
[0024] Optionally,
[0025] Before the obtaining of the current name of the interface, the method further includes: determining the credentials;
[0026] The step of obtaining the regression test script from the code hosting server includes:
[0027] Providing the credentials to the code hosting server so that the code hosting server verifies the credentials;
[0028] After receiving the verification pass instruction sent by the code hosting server, the regression test script is obtained from the code hosting server.
[0029] Optionally,
[0030] The executing the updated regression test script comprises:
[0031] The updated regression test script is executed based on the Maven plug-in.
[0032] Optionally,
[0033] The updating the name of the interface in the regression test script to the current name includes:
[0034] The name of the interface in the properties configuration file of the regression test script is updated to the current name.
[0035] In a second aspect, an embodiment of the present invention provides an interface regression testing device, comprising:
[0036] Get the module, configured to get the current name of the interface; get the regression test script from the code hosting server;
[0037] An execution module is configured to call an execution script and update the name of the interface in the regression test script to the current name;
[0038] The testing module is configured to execute the updated regression testing script to perform regression testing on the interface.
[0039] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0040] one or more processors;
[0041] a storage device for storing one or more programs,
[0042] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the above embodiments.
[0044] An embodiment of the above invention has the following advantages or beneficial effects: by modifying the name of the interface in the regression test script based on the execution script, modification time can be saved and the efficiency of interface regression testing can be improved. At the same time, different testers can implement their own interface regression testing by inputting different interface names, without manually modifying the regression test script on the code hosting server, which can further improve the efficiency of regression testing.
[0045] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0047] Figure 1 is a flow chart of an interface regression testing method provided by an embodiment of the present invention;
[0048] Figure 2 is a flow chart of an interface regression testing method provided by another embodiment of the present invention;
[0049] Figure 3 is a schematic diagram of an interface regression testing device provided by an embodiment of the present invention;
[0050] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0051] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0053] In the prior art, testers modify the names of interfaces in regression test scripts locally. In addition, if different testers have different test requirements, the regression test scripts need to be manually modified multiple times. For example, if tester A wants to change the name of the interface in the regression test script from a to b, and tester B wants to change the name of the interface in the regression test script from b to c, both A and B need to manually modify the code of the regression test script.
[0054] In view of this, if Figure 1 As shown, an embodiment of the present invention provides an interface regression testing method, comprising:
[0055] Step 101: Get the current name of the interface.
[0056] The current name refers to the modified name. For example, if the tester wants to change the name of the interface in the regression test script from a to b, the current name is b.
[0057] Step 102: Obtain the regression test script from the code hosting server.
[0058] The regression test scripts on the code hosting server are uploaded by testers.
[0059] Step 103: Call the execution script to update the name of the interface in the regression test script to the current name.
[0060] The execution script is pre-uploaded by the tester and is used to perform the name modification.
[0061] Step 104: Execute the updated regression test script to perform regression testing on the interface.
[0062] During the development process, the interface often needs to be updated. In order to distinguish the interface before and after the update, the interface name needs to be modified during the regression test.
[0063] The embodiment of the present invention modifies the name of the interface in the regression test script based on the execution script, which can save modification time and improve the efficiency of interface regression testing. At the same time, different testers can implement their own interface regression testing by inputting different interface names, without manually modifying the regression test script on the code hosting server, which can further improve the efficiency of regression testing.
[0064] In one embodiment of the present invention, before obtaining the current name of the interface, the method further includes:
[0065] Get the parameter type and parameter name;
[0066] Perform parameterized builds based on parameter types and parameter names;
[0067] Get the current name of the interface, including:
[0068] Receives the current name entered for a parameter; where the current name is the value of the parameter.
[0069] In addition to the parameter type and parameter name, you can also get the default value of the parameter.
[0070] The embodiment of the present invention parameterizes the name of the interface, and different names correspond to different parameter values. The parameter can be used as an input parameter of the execution script to modify the name of the interface in the regression test script. The embodiment of the present invention is based on parameterization, so that the regression test script can be modified by only inputting the current name, without manually modifying the code, thereby improving the efficiency of regression testing.
[0071] In one embodiment of the present invention, parameterized construction is performed according to the parameter type and the parameter name, including:
[0072] Perform parameterized builds based on parameter type, parameter name, and the Build with Parameters plugin.
[0073] The embodiment of the present invention is based on the Build with Parameters plug-in provided by Jenkins, and does not need to develop additional plug-ins to perform parameterized building, which can save regression testing costs.
[0074] Jenkins is an open source software project. It is a continuous integration tool developed based on Java. It is used to monitor continuous repetitive work. It aims to provide an open and easy-to-use software platform to make continuous integration of software possible.
[0075] In one embodiment of the present invention, before obtaining the current name of the interface, the method further includes: obtaining a regression test script address;
[0076] Get the regression test scripts from the code hosting server, including:
[0077] Obtain the regression test script from the code hosting server according to the regression test script address.
[0078] The regression test script address refers to the location of the regression test script in the code hosting server. The code hosting server can be gitee or gitlab.
[0079] Different regression test scripts can be stored in the code hosting server. When executing regression tests, the regression test scripts are transferred to the continuous integration environment. Storing in the code hosting server facilitates unified management and reduces the consumption of resources in the continuous integration environment, so as to ensure the smooth progress of the regression test process in the continuous integration environment.
[0080] In one embodiment of the present invention, before obtaining the current name of the interface, the method further comprises: determining the credentials;
[0081] Get the regression test scripts from the code hosting server, including:
[0082] Provide the credentials to the code hosting server so that the code hosting server verifies the credentials;
[0083] After receiving the verification pass instruction sent by the code hosting server, the regression test script is obtained from the code hosting server.
[0084] In an embodiment of the present invention, the credential to be used currently can be selected from multiple pre-generated credentials. The credential can be a private key. The public key corresponding to the private key is stored in the code hosting server. The code hosting server can verify the private key based on the public key. If the verification passes, the regression test script is allowed to be obtained.
[0085] The code hosting server ensures the security of managed regression test scripts by validating credentials.
[0086] In one embodiment of the present invention, executing the updated regression test script includes:
[0087] Updated regression test scripts based on Maven plugin execution.
[0088] The embodiment of the present invention executes the updated regression test script based on the test command of the Maven plug-in to complete the regression test of the interface.
[0089] The present invention performs regression testing based on the existing Maven plug-in, and does not need to develop a new plug-in.
[0090] In one embodiment of the present invention, updating the name of the interface in the regression test script to the current name includes:
[0091] Update the name of the interface in the properties configuration file of the regression test script to the current name.
[0092] The embodiment of the present invention only needs to modify the name of the interface in the configuration file, and does not need to manually modify the code of the regression test script, thereby improving the efficiency of the regression test.
[0093] like Figure 2 As shown, an embodiment of the present invention provides an interface regression testing method, comprising:
[0094] Step 201: Get the parameter type, parameter name and parameter default value.
[0095] The parameter type, parameter name, and parameter default value are used to parameterize the build process.
[0096] The embodiment of the present invention is described by taking the JSF (Java Server Faces) interface as an example. Before executing step 201, the tester uploads the written regression test script of the JSF interface to the code hosting server, and records the storage address of the regression test script on the code hosting server.
[0097] The method is applied to an interface regression testing device that runs in a continuous integration environment, such as Jenkins.
[0098] Before executing step 201, start Jenkins, Jenkins generates an sshkey, create a new credential on Jenkins, and store the private key of this sshkey. Create a new sshkey on the code hosting server and configure the public key.
[0099] Install the plug-in and Maven plug-in for interacting with the code hosting server on Jenkins. Specifically, you can download the relevant plug-in from the Jenkins official website, upload the plug-in through Jenkins's "System Management-Plugin Management-Advanced-Upload Plug-in", and install the relevant plug-in.
[0100] After the above configuration work, execute step 201.
[0101] Specifically, the method can create a new Maven project on the Jenkins homepage according to the tester's instruction, and steps 201-204 are the specific Maven project creation process. The parameter type selected by the tester, as well as the name of the input parameter and its default value are obtained.
[0102] Parameter types include character parameters, password parameters, file parameters, text parameters, etc. The parameter type of the embodiment of the present invention is a character parameter.
[0103] Testers can select the parameterized build process in the Jenkins interface, set the parameter type to character parameter, the parameter name to "alias", the parameter's default value to "pop_vender_hub", and enter a description of the parameter.
[0104] Step 202: Obtain the regression test script address.
[0105] The tester can select GIT in the source code management and enter the regression test script address in the Repository URL. Therefore, the embodiment of the present invention obtains the regression test script address through the Repository URL.
[0106] Step 203: Determine credentials.
[0107] The tester can select the name of the credential to be used in the drop-down list of Credentials. Therefore, the embodiment of the present invention determines the credential according to the trigger operation for the drop-down list of Credentials.
[0108] Also, make sure Branches to build is master.
[0109] Step 204: Obtain an execution script.
[0110] The input parameters of the execution script are the parameters in step 1. The execution script is in the form of java-cp. Testers can configure the execution shell (i.e., the execution script) through the Jenkins interface.
[0111] In addition, the method also obtains the Root POM and Goals and options, where Goals and options is clean test, that is, the purpose of the Maven project is to perform regression testing. At the same time, the method can also configure the regression test report, for example, the title of the report, the location of the report, and other information.
[0112] Step 205: Execute parameterized build according to the parameter type, parameter name, parameter default value and Build with Parameters plug-in.
[0113] After the Maven project is created, the parameterized build is executed according to the trigger operation for the Build with Parameters button, and the default values of the parameters are displayed on the page.
[0114] Step 206: Receive a current name input for the parameter; wherein the current name is the value of the parameter.
[0115] The value of the parameter is changed from the default value to the current name. According to the current name, the Maven project is executed, and steps 206 to 210 are the execution process of the Maven project.
[0116] Step 207: Provide the credentials to the code hosting server so that the code hosting server verifies the credentials.
[0117] Step 208: After receiving the verification pass instruction sent by the code hosting server, obtain the regression test script from the code hosting server according to the regression test script address.
[0118] Step 209: Call the execution script to update the name of the interface in the properties configuration file of the regression test script to the current name.
[0119] Step 210: Execute the updated regression test script based on the Maven plug-in to perform regression testing on the interface.
[0120] The embodiment of the present invention performs parameterized construction based on a continuous integration environment, and different testers can input different current names to implement their own JSF interface regression tests. For example, #75 and #74 are JSF interface regression tests triggered by two testers respectively, #75 changes the name of the interface from a to b, and #74 changes the name of the interface from a to c.
[0121] In addition, different testers can create corresponding Maven projects respectively, so that different testers can execute different Maven projects at the same time to achieve their own JSF interface regression tests. For example, test A and test B are obtained by different Maven projects respectively.
[0122] like Figure 3 As shown, an embodiment of the present invention provides an interface regression testing device, comprising:
[0123] The acquisition module 301 is configured to acquire the current name of the interface; acquire the regression test script from the code hosting server;
[0124] An execution module 302 is configured to call an execution script and update the name of the interface in the regression test script to the current name;
[0125] The testing module 303 is configured to execute the updated regression testing script to perform regression testing on the interface.
[0126] In one embodiment of the present invention, the acquisition module 301 is configured to obtain the parameter type and the parameter name; perform parameterized construction according to the parameter type and the parameter name; receive the current name input for the parameter; wherein the current name is the value of the parameter.
[0127] In one embodiment of the present invention, the acquisition module 301 is configured to perform parameterized building according to the parameter type, the parameter name and the Build with Parameters plug-in.
[0128] In one embodiment of the present invention, the acquisition module 301 is configured to acquire a regression test script address; and acquire the regression test script from the code hosting server according to the regression test script address.
[0129] In one embodiment of the present invention, the acquisition module 301 is configured to determine the credentials; provide the credentials to the code hosting server so that the code hosting server verifies the credentials; and upon receiving a verification pass instruction sent by the code hosting server, obtain the regression test script from the code hosting server.
[0130] In one embodiment of the present invention, the testing module 303 is configured to execute the updated regression testing script based on the Maven plug-in.
[0131] In one embodiment of the present invention, the execution module 302 is configured to update the name of the interface in the properties configuration file of the regression test script to the current name.
[0132] An embodiment of the present invention provides an electronic device, including:
[0133] one or more processors;
[0134] a storage device for storing one or more programs,
[0135] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.
[0136] An embodiment of the present invention provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, a method as in any of the above embodiments is implemented.
[0137] Figure 4 An exemplary system architecture 400 is shown to which the interface regression testing method or the interface regression testing apparatus according to the embodiment of the present invention can be applied.
[0138] like Figure 4As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0139] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0140] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0141] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0142] It should be noted that the interface regression testing method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the interface regression testing device is generally disposed in the server 405 .
[0143] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0144] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0145] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0146] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0147] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0148] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0149] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0150] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0151] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0152] Get the current name of the interface;
[0153] Get the regression test script from the code hosting server;
[0154] Calling an execution script to update the name of the interface in the regression test script to the current name;
[0155] The updated regression test script is executed to perform regression testing on the interface.
[0156] According to the technical solution of the embodiment of the present invention, the name of the interface in the regression test script is modified based on the execution script, which can save modification time and improve the efficiency of interface regression testing. At the same time, different testers can implement their own interface regression testing by entering different interface names, without manually modifying the regression test script on the code hosting server, which can further improve the efficiency of regression testing.
[0157] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An interface regression testing method, characterized in that: include: Get the current name of the interface; Get the regression test script from the code hosting server; Calling an execution script to update the name of the interface in the regression test script to the current name; Execute the updated regression test script to perform regression testing on the interface; Before obtaining the current name of the interface, the method further includes: Get the parameter type and parameter name; Execute parameterized construction according to the parameter type and the parameter name; The current name of the acquisition interface includes: The current name input for the parameter is received; wherein the current name is the value of the parameter.
2. The method according to claim 1, characterized in that The performing parameterized construction according to the parameter type and the parameter name includes: Execute parameterized build according to the parameter type, the parameter name and the Build with Parameters plug-in.
3. The method according to claim 1, characterized in that Before obtaining the current name of the interface, the method further includes: obtaining a regression test script address; The step of obtaining the regression test script from the code hosting server includes: According to the regression test script address, the regression test script is obtained from the code hosting server.
4. The method according to claim 1, characterized in that Before the obtaining of the current name of the interface, the method further includes: determining the credentials; The step of obtaining the regression test script from the code hosting server includes: Providing the credentials to the code hosting server so that the code hosting server verifies the credentials; After receiving the verification pass instruction sent by the code hosting server, the regression test script is obtained from the code hosting server.
5. The method according to claim 1, characterized in that The executing the updated regression test script comprises: The updated regression test script is executed based on the Maven plug-in.
6. The method according to claim 1, characterized in that The updating the name of the interface in the regression test script to the current name includes: The name of the interface in the properties configuration file of the regression test script is updated to the current name.
7. An interface regression testing device, characterized in that: include: A get module, configured to get the current name of the interface; Get the regression test script from the code hosting server; An execution module is configured to call an execution script and update the name of the interface in the regression test script to the current name; A testing module, configured to execute the updated regression test script to perform regression testing on the interface; The acquisition module is also used for: Get the parameter type and parameter name; Execute parameterized construction according to the parameter type and the parameter name; The current name input for the parameter is received; wherein the current name is the value of the parameter.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Test script generation method and device, computer device and storage medium
CN110221948A
Test method, terminal, server, system and storage medium
CN111290951A