CN113806229A - Interface change test script multiplexing method, device, equipment, medium and product - Google Patents

Interface change test script multiplexing method, device, equipment, medium and product Download PDF

Info

Publication number
CN113806229A
CN113806229A CN202111133960.1A CN202111133960A CN113806229A CN 113806229 A CN113806229 A CN 113806229A CN 202111133960 A CN202111133960 A CN 202111133960A CN 113806229 A CN113806229 A CN 113806229A
Authority
CN
China
Prior art keywords
interface
change
definition information
test script
initial
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
CN202111133960.1A
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.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC 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 Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202111133960.1A priority Critical patent/CN113806229A/en
Publication of CN113806229A publication Critical patent/CN113806229A/en
Pending legal-status Critical Current

Links

Images

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/3684Test management for test design, e.g. generating new test cases
    • 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

Abstract

The disclosure provides a test script multiplexing method, a test script multiplexing device, test script multiplexing equipment, test script multiplexing media and a test script multiplexing product for interface change, relates to the technical field of test development, and can be applied to the technical field of finance. The test script multiplexing method for interface change comprises the following steps: tracking the change of the initial definition information of the interface; acquiring change mark information of the initial definition information to obtain change definition information of the interface; and synchronizing the change definition information to an initial test script corresponding to the interface to obtain a change test script of the interface, wherein the initial test script comprises the initial definition information of the interface, the initial test script is used for testing the interface before change, and the change test script is used for testing the interface after change. The test script multiplexing method for interface change can realize script multiplexing.

Description

Interface change test script multiplexing method, device, equipment, medium and product
Technical Field
The present disclosure relates to the field of test development technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for multiplexing a test script with an interface change.
Background
In the development process, after an interface is defined, the interface needs to be tested to ensure that the interface can realize the corresponding function, wherein one test mode is to execute the interface test through a script, and the script can be called as a test script.
If the interface changes (the definition parameters of the interface change), the test script of the interface also needs to be modified, and at present, the information of the test script and the interface is kept consistent through a manual modification mode, so that the script multiplexing cannot be realized.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a test script multiplexing method, apparatus, device, medium, and product that can multiplex an interface change of a script.
According to a first aspect of the present disclosure, there is provided a test script multiplexing method for interface change, including:
tracking the change of the initial definition information of the interface;
acquiring change mark information of the initial definition information to obtain change definition information of the interface; and
synchronizing the change definition information to the initial test script corresponding to the interface to obtain a change test script of the interface,
the initial test script comprises initial definition information of the interface, the initial test script is used for testing the interface before change, and the change test script is used for testing the interface after change.
According to the embodiment of the disclosure, the initial definition information is stored in a data table, the data table is associated with the initial test script, the change definition information is synchronized to the initial test script corresponding to the interface, and the acquiring of the change test script of the interface includes:
when the initial definition information is changed into the change definition information, obtaining the change definition information in the data table;
and changing the initial definition information in the initial test script into the change definition information according to the incidence relation between the data table and the initial test script to obtain the change test script.
According to an embodiment of the present disclosure, the definition information includes at least one definition parameter, and the definition parameter includes at least one of a parameter name, a parameter content, a parameter length, a parameter type, and a parameter service description.
According to the embodiment of the disclosure, a plurality of definition parameters have an association relationship, and when one definition parameter is changed, other definition parameters having an association relationship with the definition parameter are changed correspondingly.
According to an embodiment of the present disclosure, the initial definition information change of the interface includes an increase/decrease change and a modification change.
According to an embodiment of the present disclosure, tracking the change of the initial definition information of the interface includes:
acquiring input definition information of an interface;
confirming that the input definition information of the interface is changed;
and comparing the initial definition information with the same definition parameters of the input definition information.
According to an embodiment of the present disclosure, confirming that the initial definition information change of the interface is completed includes:
inquiring the initial definition information change state of the interface, wherein the initial definition information state comprises incomplete state and completed state;
and when the initial definition information state of the interface is finished, confirming that the initial definition information of the interface is changed and finished.
According to an embodiment of the present disclosure, the interface version is consistent with the test script version of the interface.
A second aspect of the present disclosure provides a test script multiplexing apparatus for interface change, including:
the change tracking module of the initial definition information of the interface is used for tracking the change of the initial definition information of the interface;
the interface change definition information acquisition module is used for acquiring change mark information of the initial definition information to obtain change definition information of the interface; and
and the information synchronization module is used for synchronizing the change definition information to an initial test script corresponding to the interface to obtain a change test script of the interface, wherein the initial test script comprises the initial definition information of the interface, the initial test script is used for testing the interface before change, and the change test script is used for testing the changed interface.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the test script multiplexing method of interface alteration described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described test script multiplexing method of interface alteration.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the test script multiplexing method of interface alteration described above.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a test script multiplexing method, apparatus, device, medium, and program product of interface change according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a test script multiplexing method of interface alteration according to an embodiment of the present disclosure;
fig. 3 schematically shows a flowchart of synchronizing the change definition information to the initial test script corresponding to the interface, and obtaining a change test script of the interface in operation S203;
fig. 4 schematically shows a flowchart of the change of the initial definition information of the trace interface of operation S201;
fig. 5 schematically shows a flowchart of confirming completion of the change of the initial definition information of the interface of operation S12;
FIG. 6 is a block diagram schematically illustrating a structure of a test script multiplexing apparatus for interface change according to an embodiment of the present disclosure; and
fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a test script multiplexing method of interface alteration according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense. Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
At present, there are several common processing methods for the test script of the interface after the interface is changed:
1) when the interface test script is an automation script (a script which does not need human intervention after one-time operation), the part related to the change in the interface automation script is set to be in an executable state, only the part unrelated to the change is operated, and then the changed part is completed through manual test.
2) And manually modifying the corresponding interface test script or interface automation script according to the interface change, and running the interface test script or interface automation script after the modification is finished.
3) The interface, the request message, the response message and the assertion are configured, and the configuration is manually modified to change the script each time the interface is changed.
The existing solutions do not fundamentally solve the problem of automatic synchronous multiplexing of test scripts after interface change, mainly use manual update synchronization as a main part, and the defects of the three processing methods are mainly reflected in that:
1) the test scripts of the interfaces cannot be synchronously reused along with the change of the interfaces, the test scripts corresponding to the frequently changed interfaces are abandoned, and the test scripts frequently changed are manually modified and run by test personnel.
2) The test script cannot be automatically changed and reused, but the test personnel manually modifies the automatic test script to achieve the effect of being synchronous with the interface change.
3) The configuration mode needs to modify a plurality of configuration files, which is easy to confuse and correct, and the configuration files are manually modified by testers, so that the configuration files cannot be automatically and synchronously modified.
It should be noted that the method, the device, the equipment, the medium and the product for multiplexing the test script of the interface change belong to the technical field of test development and also belong to the technical field of artificial intelligence.
It should be noted that, in the technical solution of the present disclosure, the acquisition, storage, application, and the like of the personal information of the related user all conform to the regulations of the related laws and regulations, and necessary security measures are taken without violating the good customs of the public order.
The embodiment of the disclosure provides a test script multiplexing method for interface change, which includes: tracking the change of the initial definition information of the interface; acquiring change mark information of the initial definition information to obtain change definition information of the interface; and synchronizing the change definition information to an initial test script corresponding to the interface to obtain a change test script of the interface, wherein the initial test script comprises the initial definition information of the interface, the initial test script is used for testing the interface before change, and the change test script is used for testing the interface after change.
The method for multiplexing the test script with the changed interface can synchronize the change definition information into the initial test script corresponding to the interface after the interface is changed to obtain the change test script, automatically realize the updating of the definition information of the interface and the multiplexing of the test script, ensure that the interface test script obtained by the tester corresponds to the newly defined interface, thereby solving the problem that the test script cannot be multiplexed due to the frequent change of the interface, greatly improving the efficiency of the interface test, saving the time for the tester to frequently modify the test script, and reducing the cost of the interface test.
Fig. 1 schematically shows an application scenario diagram of a test script multiplexing method, device, equipment, medium and product of interface change according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the test script multiplexing method for interface change provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the test script multiplexing apparatus for interface change provided by the embodiment of the present disclosure may be generally disposed in the server 105. The test script multiplexing method for interface change provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the test script multiplexing apparatus for interface change provided in the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, and 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The test script multiplexing method of the interface change of the disclosed embodiment will be described in detail below with fig. 2 to 5 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flowchart of a test script multiplexing method of interface change according to an embodiment of the present disclosure.
As shown in fig. 2, the test script multiplexing method of the interface change of the embodiment includes operations S201 to S203.
In operation S201, a change of initial definition information of an interface is tracked.
In operation S202, change flag information of the initial definition information is obtained, and change definition information of the interface is obtained. And
in operation S203, the change definition information is synchronized to the initial test script corresponding to the interface, and a change test script of the interface is obtained.
In operation S203, the initial test script includes initial definition information of the interface, the initial test script is used to test the interface before the change, and the change test script is used to test the changed interface.
It should be noted that, the "interface" referred to in the embodiments of the present disclosure refers to an interface for internal invocation of the system, that is, an internal interface; the "initial definition information" and the "change definition information" mentioned in operations S201 and S202 are relative concepts for an interface (may be one interface or a plurality of interfaces), and for a change, information defining the interface before the change occurs is the initial definition information, and information defining the interface after the change occurs is the change definition information, and it should be understood that the change definition information changed last time is the initial definition information changed next time.
The "change flag information" mentioned in operation S202 is indication information for indicating that the initial definition information is changed, for example, a developer generates a new interface version after modifying the initial definition information of one interface, and the new interface version is the change flag information; the "change definition information" is specific change content, for example, if a developer adds a parameter defining the interface to a new interface version, the added parameter is the "change definition information".
Similarly to the "initial definition information" and the "change definition information," the "initial test script" and the "change test script" mentioned in operation S203 are also relative concepts for an interface (which may be one interface or a plurality of interfaces), for one change, the script used for testing the interface before the change occurs is the initial test script, the script used for testing the interface after the change occurs is the change test script, and similarly, the change test script of the last change is the initial test script of the next change.
It should be further noted that, the operation of changing the initial definition information of the interface (i.e. changing the interface) is initiated by a developer, and in order to ensure that the function of each interface can be implemented, a tester needs to perform a test on the interface, and executing the interface test by using a script is a test mode, and each interface change corresponds to a new interface test script.
The method 200 for multiplexing the test script with the changed interface of the embodiment of the disclosure can synchronize the change definition information to the initial test script corresponding to the interface after the interface is changed, obtain the change test script, and automatically implement the update of the definition information of the interface and the multiplexing of the test script.
The test script multiplexing method 200 for interface change according to the embodiment of the present disclosure is implemented by an interface test script multiplexing apparatus developed by a development tool such as python and java.
According to the method 200 for multiplexing test scripts for interface change of the embodiment of the present disclosure, the initial definition information may be stored in a data table, the data table may be associated with the initial test script, and with reference to fig. 2 and 3, the synchronizing of the change definition information to the initial test script corresponding to the interface in operation S203 and the obtaining of the change test script of the interface may include operations S31 to S32.
In operation S31, when the initial definition information is changed to the change definition information, the change definition information in the data table is acquired.
In operation S32, the initial definition information in the initial test script is changed into the changed definition information according to the association relationship between the data table and the initial test script, and a changed test script is obtained.
It should be understood that the data table stores definition information related to the interface (where the definition information refers to information defining the interface, and specifically, each parameter and content or value corresponding to each parameter defining the interface), the definition information is initially defined before the interface is changed, and is changed after the interface is changed, and the data table is associated with the initial test script, which may be understood as: and the association of the data table and the initial test script of the interface, and the association of the definition information in the data table and the corresponding definition information in the initial test script. For example, data table a is associated with interface a, and the definition information of "parameter name" in data table a is also associated with "parameter name" in the test script of corresponding interface a. In this way, when the initial definition information of the interface stored in the data table is changed, the initial definition information in the initial test script is changed into the change definition information according to the incidence relation between the data table and the initial test script, so as to obtain the change test script. The change test script is synchronous with the change of the interface, and the multiplexing of the interface test script can be realized.
According to the test script multiplexing method 200 for interface modification of the embodiment of the present disclosure, the definition information may include at least one definition parameter, and the definition parameter may include at least one of a parameter name, a parameter content, a parameter length, a parameter type, and a parameter service description.
Of course, the definition parameters may also include whether to fill, maximum length of parameter name, etc., the definition parameters are determined by developers, and the definition parameters and their modifications may be exhaustive or may not be exhaustive.
According to the method 200 for multiplexing the test script with the changed interface of the embodiment of the present disclosure, a plurality of definition parameters may have an association relationship therebetween, and when one of the definition parameters is changed, other definition parameters having an association relationship therewith may also be changed accordingly.
It should be understood that when an interface is defined by multiple definition parameters, there may be no mutual influence between the multiple definition parameters, such as no influence between parameter name and parameter type; there may be interaction and restriction between multiple defined parameters, for example, the relationship between two defined parameters, i.e. the parameter name and the maximum length of the parameter name, is interaction and restriction. For example, one interface includes two definition parameters, namely a parameter name and a maximum length of the parameter name, where the parameter name is "test-project", when the maximum length of the parameter name is greater than or equal to 12, the parameter name is "test-project", and when the maximum length of the parameter name is less than 12, for example, 10, the corresponding parameter name is "test-project", and the above-mentioned "association" is a relationship that defines mutual influence and restriction between parameters.
According to the test script multiplexing method 200 for interface change of the embodiment of the present disclosure, the initial definition information change of the interface may include an increase/decrease change and a modification change.
The "increase/decrease change" and the "modification change" mentioned here are based on the definition information of the interface before and after the change, and are "modification changes" if the same definition parameters exist in the initial definition information of the interface and the change definition information of the interface before and after the change and the contents or values are different; before and after the change, the change definition information of the interface has at least one definition parameter "from absence to presence" or "from presence to absence" as compared with the initial definition information of the interface, and is "change by increase or decrease". It should be understood that, in some cases, when increasing or decreasing, the content or value of the definition information is increased or decreased in addition to the corresponding definition information. For example, before and after the interface is changed, if the definition information of "parameter length" is added, the content of "parameter length" is also added accordingly (here, the value is, for example, 10).
It should be noted that, since the initial definition information of the interface is stored in the data table, the above-mentioned increase/decrease change or modification change can also be embodied in the data table, and therefore, after the increase/decrease change or modification change occurs, the corresponding increase/decrease change or modification change can be synchronized into the test script according to the association relationship between the data table and the test script.
Referring to fig. 2 and 4, according to the test script multiplexing method for interface change according to the embodiment of the present disclosure, the change of the initial definition information of the trace interface of operation S201 may include operations S11 to S13.
In operation S11, input definition information of an interface is acquired.
In operation S12, it is confirmed that the input definition information change of the interface is completed.
In operation S13, the initial definition information is compared with the same definition parameters of the input definition information.
The "input definition information" mentioned in operation S11 is for the changed process, more specifically for the changed action: since the definition information input by the developer when the interface is changed is "change definition information" and the interface change is to change the definition parameters of the interface, the developer may involve changing a plurality of definition parameters in one change, the "change completion" mentioned in operation S12 is based on one change of the developer instead of based on one change of one definition parameter (for example, one change of the developer may include changing a plurality of definition parameters), and in operation S13, the initial definition information and the input definition information should be compared with each other by comparing the same definition parameters of the initial definition information and the input definition information one by one, and the input definition information changed after the comparison is the change definition information.
Referring to fig. 4 and 5, according to the test script multiplexing method 200 for interface change according to the embodiment of the present disclosure, the confirming of the completion of the change of the initial definition information of the interface in operation S12 may include operations S121 to S122.
In operation S121, an initial definition information change state of the interface is queried, the initial definition information state including incomplete and completed.
In operation S122, when the initial definition information state of the interface is completed, it is confirmed that the initial definition information change of the interface is completed.
The "confirmation of the completion of the change of the initial definition information of the interface" in operation S12 substantially relates to the change flag information of the acquisition of the initial definition information in operation S202, and specifically includes: before and after the change, a signal is required to indicate that the initial definition information is changed and the change is completed, and information before and after the change is compared. For example, the release of the new version of the interface in the previous example is an indication that the change is complete, i.e., the release of the new version corresponds to a "completed" state.
According to the method 200 for multiplexing the test script with the changed interface, the version of the interface is consistent with that of the test script with the interface.
In the technical solution of the embodiment of the present disclosure, the version change of the interface can be tracked by maintaining a consistent interface version and a test script version of the interface, and a corresponding test script, that is, a test script with a consistent version, is obtained synchronously.
Based on the test script multiplexing method for interface change, the disclosure also provides a test script multiplexing device for interface change of the test script multiplexing interface change. The apparatus will be described in detail below with reference to fig. 6.
Fig. 6 schematically shows a block diagram of a test script multiplexing apparatus for interface change according to an embodiment of the present disclosure.
As shown in fig. 6, the test script multiplexing apparatus 300 for interface change according to this embodiment includes a change tracking module 310 for initial definition information of an interface, an interface change definition information acquisition module 320, and an information synchronization module 330.
The change tracking module 310 of the initial definition information of the interface is configured to track the change of the initial definition information of the interface, and in an embodiment, the change tracking module 310 of the initial definition information of the interface may be configured to perform the operation S201 described above, which is not described herein again.
The interface change definition information obtaining module 320 is configured to obtain change flag information of the initial definition information to obtain the interface change definition information, and in an embodiment, the interface change definition information obtaining module 3203 may be configured to perform the operation S202 described above, which is not described herein again.
The information synchronization module 330 is configured to synchronize the change definition information to an initial test script corresponding to the interface, to obtain a change test script of the interface, where the initial test script includes the initial definition information of the interface, the initial test script is used to test the interface before the change, and the change test script is used to test the interface after the change.
According to the embodiment of the present disclosure, any plurality of the change tracking module 310 of the initial definition information of the interface, the change definition information acquisition module 320 of the interface, and the information synchronization module 330 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiment of the present disclosure, at least one of the change tracking module 310 of the initial definition information of the interface, the change definition information acquisition module 320 of the interface, and the information synchronization module 330 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementation manners of software, hardware, and firmware, or implemented by a suitable combination of any several of them. Alternatively, at least one of the change tracking module 310 of the initial definition information of the interface, the change definition information acquisition module 320 of the interface, and the information synchronization module 330 may be at least partially implemented as a computer program module that, when executed, may perform a corresponding function.
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a test script multiplexing method of interface alteration according to an embodiment of the present disclosure.
As shown in fig. 7, an electronic device 400 according to an embodiment of the present disclosure includes a processor 401 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. Processor 401 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 401 may also include onboard memory for caching purposes. Processor 401 may include a single processing unit or multiple processing units for performing the different actions of the method flows in accordance with embodiments of the present disclosure.
In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are stored. The processor 401, ROM 402 and RAM 403 are connected to each other by a bus 404. The processor 401 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 402 and/or the RAM 403. Note that the programs may also be stored in one or more memories other than the ROM 402 and RAM 403. The processor 401 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, electronic device 400 may also include an input/output (I/O) interface 405, input/output (I/O) interface 405 also being connected to bus 404. Electronic device 400 may also include one or more of the following components connected to I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 402 and/or RAM 403 and/or one or more memories other than ROM 402 and RAM 403 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the test script multiplexing method for interface change provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 401. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 409, and/or installed from the removable medium 411. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program, when executed by the processor 401, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A test script multiplexing method for interface change is characterized by comprising the following steps:
tracking the change of the initial definition information of the interface;
acquiring change mark information of the initial definition information to obtain change definition information of an interface; and
synchronizing the change definition information to an initial test script corresponding to the interface to obtain a change test script of the interface,
the initial test script comprises initial definition information of the interface, the initial test script is used for testing the interface before change, and the change test script is used for testing the changed interface.
2. The method according to claim 1, wherein the initial definition information is stored in a data table, the data table is associated with the initial test script, the synchronizing the change definition information to the initial test script corresponding to the interface, and the obtaining the change test script of the interface comprises:
when the initial definition information is changed into change definition information, obtaining the change definition information in the data table;
and changing the initial definition information in the initial test script into changed definition information according to the incidence relation between the data table and the initial test script to obtain a changed test script.
3. The method according to claim 1 or 2, wherein the definition information comprises at least one definition parameter, and the definition parameter comprises at least one of parameter name, parameter content, parameter length, parameter type, and parameter service description.
4. The method according to claim 3, wherein a plurality of the definition parameters have an association relationship therebetween, and when one of the definition parameters is changed, the other definition parameters having an association relationship therewith are changed accordingly.
5. The method for multiplexing test scripts of interface change according to claim 1 or 2, wherein the change of the initial definition information of the interface includes an increase/decrease change and a modification change.
6. The method for multiplexing test scripts of interface change according to claim 1 or 2, wherein the tracking of the change of the initial definition information of the interface comprises:
acquiring input definition information of an interface;
confirming that the input definition information of the interface is changed;
comparing the initial definition information with the same definition parameters of the input definition information.
7. The method according to claim 6, wherein the confirming completion of the change of the initial definition information of the interface comprises:
inquiring the initial definition information change state of an interface, wherein the initial definition information state comprises incomplete state and completed state;
and when the initial definition information state of the interface is finished, confirming that the initial definition information of the interface is changed and finished.
8. The method for multiplexing a test script for interface alteration according to claim 1 or 2, wherein the interface version is identical to the test script version of the interface.
9. A test script multiplexing apparatus for interface alteration, comprising:
the change tracking module of the initial definition information of the interface is used for tracking the change of the initial definition information of the interface;
the interface change definition information acquisition module is used for acquiring change mark information of the initial definition information to obtain change definition information of the interface; and
and the information synchronization module is used for synchronizing the change definition information to an initial test script corresponding to the interface to obtain a change test script of the interface, wherein the initial test script comprises the initial definition information of the interface, the initial test script is used for testing the interface before change, and the change test script is used for testing the changed interface.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 8.
CN202111133960.1A 2021-09-27 2021-09-27 Interface change test script multiplexing method, device, equipment, medium and product Pending CN113806229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111133960.1A CN113806229A (en) 2021-09-27 2021-09-27 Interface change test script multiplexing method, device, equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111133960.1A CN113806229A (en) 2021-09-27 2021-09-27 Interface change test script multiplexing method, device, equipment, medium and product

Publications (1)

Publication Number Publication Date
CN113806229A true CN113806229A (en) 2021-12-17

Family

ID=78896790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111133960.1A Pending CN113806229A (en) 2021-09-27 2021-09-27 Interface change test script multiplexing method, device, equipment, medium and product

Country Status (1)

Country Link
CN (1) CN113806229A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955739A (en) * 2012-11-21 2013-03-06 浪潮电子信息产业股份有限公司 Method for improving performance test script reuse rate
CN103902456A (en) * 2014-04-09 2014-07-02 中国工商银行股份有限公司 Test script processing device, system and method
US20150331789A1 (en) * 2014-05-14 2015-11-19 International Business Machines Corporation Correlating out-of-band process data during mobile test automation
US20160132421A1 (en) * 2014-11-10 2016-05-12 International Business Machines Corporation Adaptation of automated test scripts
CN106649073A (en) * 2015-10-28 2017-05-10 中国移动通信集团公司 Test method and device based on dynamic script template
CN106815147A (en) * 2016-12-29 2017-06-09 东软集团股份有限公司 A kind of test script generation method and device
CN110287098A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Automatically create test script method, server and computer readable storage medium
CN111597119A (en) * 2020-05-26 2020-08-28 博彦集智科技有限公司 Test script updating method and device, storage medium and processor
CN111949545A (en) * 2020-08-19 2020-11-17 彩讯科技股份有限公司 Automatic testing method, system, server and storage medium
CN112416751A (en) * 2020-10-15 2021-02-26 北京达佳互联信息技术有限公司 Processing method and device for interface automation test and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955739A (en) * 2012-11-21 2013-03-06 浪潮电子信息产业股份有限公司 Method for improving performance test script reuse rate
CN103902456A (en) * 2014-04-09 2014-07-02 中国工商银行股份有限公司 Test script processing device, system and method
US20150331789A1 (en) * 2014-05-14 2015-11-19 International Business Machines Corporation Correlating out-of-band process data during mobile test automation
US20160132421A1 (en) * 2014-11-10 2016-05-12 International Business Machines Corporation Adaptation of automated test scripts
CN106649073A (en) * 2015-10-28 2017-05-10 中国移动通信集团公司 Test method and device based on dynamic script template
CN106815147A (en) * 2016-12-29 2017-06-09 东软集团股份有限公司 A kind of test script generation method and device
CN110287098A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Automatically create test script method, server and computer readable storage medium
CN111597119A (en) * 2020-05-26 2020-08-28 博彦集智科技有限公司 Test script updating method and device, storage medium and processor
CN111949545A (en) * 2020-08-19 2020-11-17 彩讯科技股份有限公司 Automatic testing method, system, server and storage medium
CN112416751A (en) * 2020-10-15 2021-02-26 北京达佳互联信息技术有限公司 Processing method and device for interface automation test and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴立松;杨根兴;蔡立志;: "基于构件的测试脚本复用技术研究", 计算机应用研究, no. 04 *
郭利江;夏嘉;: "一种简化自动化测试脚本编写维护的应用方法", 移动通信, no. 08 *

Similar Documents

Publication Publication Date Title
US10528337B1 (en) Container image layer reordering
US8806437B2 (en) Automated testing process
US9652220B2 (en) Zero down-time deployment of new application versions
CN112799940B (en) Regression testing method, regression testing device, computer system and computer readable storage medium
US20190258534A1 (en) Message oriented middleware with integrated rules engine
CN112463729A (en) Data file storage method and device, electronic equipment and medium
US10025697B2 (en) Generation of automated unit tests for a controller layer system and method
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN111930629A (en) Page testing method and device, electronic equipment and storage medium
CN114925066A (en) Data processing method and device, electronic equipment and storage medium
CN113806229A (en) Interface change test script multiplexing method, device, equipment, medium and product
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
CN113986679A (en) Performance analysis method and device based on configuration information hot loading
CN112988604A (en) Object testing method, testing system, electronic device and readable storage medium
CN113515271A (en) Service code generation method and device, electronic equipment and readable storage medium
CN113360417A (en) Test method, session modifier, electronic device, and medium
CN114253852A (en) Automatic testing method, device, equipment and medium
CN115016827A (en) Method, device, electronic equipment and medium for deploying JAVA application
CN114266547A (en) Method, device, equipment, medium and program product for identifying business processing strategy
CN116795671A (en) Code checking method and device
CN114371979A (en) Container resource monitoring method, device, equipment, medium and program product
CN113886271A (en) Application testing method and device, electronic equipment and storage medium
CN115629983A (en) Test case set generation method, device, equipment and medium
CN115421873A (en) Dictionary construction method, and file evaluation method, device and equipment based on dictionary
CN117472716A (en) Non-invasive application log acquisition method, device, equipment and storage 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