CN113806229B - Test script multiplexing method, device, equipment, medium and product for interface change - Google Patents

Test script multiplexing method, device, equipment, medium and product for interface change Download PDF

Info

Publication number
CN113806229B
CN113806229B CN202111133960.1A CN202111133960A CN113806229B CN 113806229 B CN113806229 B CN 113806229B CN 202111133960 A CN202111133960 A CN 202111133960A CN 113806229 B CN113806229 B CN 113806229B
Authority
CN
China
Prior art keywords
interface
change
definition information
initial
test script
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.)
Active
Application number
CN202111133960.1A
Other languages
Chinese (zh)
Other versions
CN113806229A (en
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/CN113806229B/en
Publication of CN113806229A publication Critical patent/CN113806229A/en
Application granted granted Critical
Publication of CN113806229B publication Critical patent/CN113806229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a test script multiplexing method, device, equipment, medium and 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 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, wherein the initial test script comprises the initial definition information of the interface, the initial test script is used for testing the interface before the change, and the change test script is used for testing the interface after the change. The test script multiplexing method for interface change can realize script multiplexing.

Description

Test script multiplexing method, device, equipment, medium and product for interface change
Technical Field
The disclosure relates to the technical field of test development, and in particular relates to a test script multiplexing method, device, equipment, medium and product for 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 corresponding functions, wherein one test mode is to execute interface test through a script, and the script can be called a test script.
If the interface is changed (the definition parameters of the interface are changed), the test script of the interface also needs to be modified, and the test script is kept consistent with the information of the interface by a manual modification mode at present, so that script multiplexing cannot be realized.
Disclosure of Invention
In view of the above, the present disclosure provides a test script multiplexing method, apparatus, device, medium, and product that can multiplex interface changes of scripts.
According to a first aspect of the present disclosure, there is provided a test script multiplexing method of interface modification, including:
tracking the change of the initial definition information of the interface;
Acquiring change mark information of 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, obtaining 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 the change, and the change test script is used for testing the interface after the change.
According to an embodiment of the present disclosure, initial definition information is stored in a data table, the data table is associated with an initial test script, the change definition information is synchronized to the initial test script corresponding to an interface, and obtaining the change test script of the interface includes:
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 association relation between the data table and the initial test script to obtain a changed test script.
According to an embodiment of the present disclosure, the definition information comprises at least one definition parameter comprising at least one of a parameter name, a parameter content, a parameter length, a parameter type, a parameter service description.
According to the embodiment of the disclosure, the plurality of definition parameters have an association relationship, and when one definition parameter is changed, other definition parameters having an association relationship with the one definition parameter are correspondingly changed.
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 changes to initial definition information of an interface includes:
acquiring input definition information of an interface;
Confirming that the input definition information of the interface is changed;
the initial definition information is compared 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:
Querying an initial definition information change state of the interface, wherein the initial definition information state comprises incomplete and completed states;
and when the initial definition information state of the interface is completed, confirming that the initial definition information change of the interface is completed.
According to embodiments 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 of interface modification, including:
The change tracking module 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
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 the change, and the change test script is used for testing the interface after the change.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and 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 modification 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 test script multiplexing method of interface modification described above.
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 modification described above.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure 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 for interface modification according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a test script multiplexing method of interface modification according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flowchart of synchronizing change definition information to an initial test script corresponding to an interface, acquiring a change test script of the interface, in operation S203;
Fig. 4 schematically shows a flowchart of a change of initial definition information of the trace interface of operation S201;
fig. 5 schematically shows a flowchart of the completion of the initial definition information change of the confirmation interface of operation S12;
FIG. 6 schematically illustrates a block diagram of a test script multiplexing apparatus with interface modification according to an embodiment of the disclosure; and
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a test script multiplexing method of interface modification, according to an embodiment of the 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 only exemplary 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 present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to 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/or 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 should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner. Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having 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, the conventional processing methods of the test script of the interface after the interface is changed are as follows:
1) When the interface test script is an automation script (refers to a script which does not need human intervention after one operation), the part related to the change in the interface automation script is set to be in a non-execution state, only the part unrelated to the change is operated, and then the part of the change is completed through manual test.
2) And manually modifying the corresponding interface test script or the interface automation script according to the interface change, and running the interface test script or the 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 realize the change of the script when the interface is changed each time.
The existing solution does not fundamentally solve the problem of automatic synchronous multiplexing of test scripts after interface change, mainly uses manual update synchronization, and mainly comprises the following three processing methods:
1) The test scripts of the interfaces cannot be synchronously multiplexed along with the change of the interfaces, the test scripts corresponding to the frequently changed interfaces are discarded, and the interface test scripts with frequently changed tests are manually modified and run by a tester.
2) The test scripts cannot be automatically and synchronously changed and multiplexed, but the tester manually modifies the automatic test scripts to achieve the effect of being synchronous with the interface change.
3) The configuration mode needs to modify a plurality of configuration files, is easy to confuse and correct errors, is also that a tester manually modifies the configuration files, and cannot automatically and synchronously modify the configuration files.
It should be noted that, the test script multiplexing method, device, equipment, medium and product for interface modification of the present disclosure belong to the technical field of test development, and also belong to the technical field of artificial intelligence.
In addition, in the technical scheme of the disclosure, the acquisition, storage, application and the like of the related personal information of the user are in accordance with the regulations of related laws and regulations, necessary security measures are taken, and the public order is not violated.
The embodiment of the disclosure provides a test script multiplexing method for interface modification, comprising the following steps: tracking the change of the initial definition information of the interface; acquiring change mark information of 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, wherein the initial test script comprises the initial definition information of the interface, the initial test script is used for testing the interface before the change, and the change test script is used for testing the interface after the change.
According to the interface changing test script multiplexing method, after the interface is changed, the changing definition information can be synchronized to the initial test script corresponding to the interface to obtain the changed test script, updating of the definition information of the interface and multiplexing of the test script are automatically achieved, a tester does not feel the updating of the definition information of the interface and multiplexing of the test script, the fact that the interface test script obtained by the tester corresponds to the newly defined interface is guaranteed, therefore the problem that the interface is frequently changed and the test script cannot be multiplexed is solved, the efficiency of interface testing is greatly improved, the time for the tester to frequently modify the test script is saved, and the cost of interface testing is reduced.
Fig. 1 schematically illustrates an application scenario diagram of a test script multiplexing method, apparatus, device, medium and product of interface modification according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, 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 modification provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the test script multiplexing apparatus for interface modification provided by the embodiments of the present disclosure may be generally provided in the server 105. The test script multiplexing method of interface modification provided by the embodiments of the present disclosure may also be performed 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 modification provided by the embodiments of the present disclosure may also be provided in 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.
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 modification of the disclosed embodiment will be described in detail below with reference to the scenario described in fig. 1 through fig. 2 to 5.
Fig. 2 schematically illustrates a flow chart of a test script multiplexing method of interface modification according to an embodiment of the disclosure.
As shown in fig. 2, the test script multiplexing method of the interface modification of this 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 acquired to obtain change definition information of the interface. And
In operation S203, the change definition information is synchronized to the initial test script corresponding to the interface, and the 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 interface after the change.
It should be noted that, the "interface" referred to in the embodiments of the present disclosure refers to an interface for internal call of the system, that is, an internal interface; the "initial definition information" and "change definition information" mentioned in operation S201 and operation S202 are relative concepts for interfaces (may be one interface or a plurality of interfaces), and for one change, information defining an interface before the occurrence of the change is the initial definition information, information defining an interface after the occurrence of the change is the change definition information, and it should be understood that the change definition information of the previous change is the initial definition information of the next change.
The "change flag information" mentioned in operation S202 refers to indication information for indicating that the initial definition information is changed, for example, after the developer modifies the initial definition information of a certain interface, a new interface version is generated, and the new interface version is the change flag information; the "change definition information" is specific change content, for example, a developer adds a parameter defining the interface in a new interface version, and the added parameter is the "change definition information".
Similar 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 the interface (may be one interface or a plurality of interfaces), and for one change, the script for testing the interface before the occurrence of the change is the initial test script, the script for testing the interface after the occurrence of the change is the change test script, and similarly, the change test script for the last change is the initial test script for the next change.
It should be further noted that, the operation of the initial definition information change (i.e. the interface change) of the interface is initiated by the developer, in order to ensure that the function of each interface can be realized, the test personnel is required to test the interface, and executing the interface test by using the script is a test mode, and each interface change corresponds to a new interface test script.
According to the interface changing test script multiplexing method 200, after the interface is changed, the changing definition information can be synchronized into the initial test script corresponding to the interface, so that the changing test script is obtained, the updating of the definition information of the interface and the multiplexing of the test script are automatically realized, the tester does not feel the updating of the definition information of the interface and the multiplexing of the test script, the interface test script obtained by the tester is ensured to be the newly defined interface correspondingly, the problem that the interface is frequently changed and the test script cannot be multiplexed is solved, the efficiency of interface test is greatly improved, the time for the tester to frequently modify the test script is saved, and the cost of interface test is reduced.
The test script multiplexing method 200 for interface modification of the embodiment of the present disclosure is implemented by an interface test script multiplexing device developed by development tools such as python, java, and the like.
According to the test script multiplexing method 200 for interface modification in the embodiment of the disclosure, the initial definition information may be stored in a data table, the data table may be associated with an initial test script, and in conjunction with fig. 2 and 3, synchronizing the modification definition information to the initial test script corresponding to the interface in operation S203, obtaining the modified 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 to the change definition information according to the association relationship between the data table and the initial test script, so as to obtain the change test script.
It should be understood that, the definition information related to the interface is stored in the data table (where the definition information refers to information that specifies the interface, specifically, each parameter defining the interface and the content or the value corresponding to each parameter), the definition information is the initial definition information before the interface is changed, the definition information is changed after the interface is changed, and the association of the data table and the initial test script can be understood as follows: association of the data table with the initial test script of the interface, and association of definition information in the data table with corresponding definition information in the initial test script. For example, the data table a is associated with the interface a, and definition information of "parameter name" in the data table a is also associated with "parameter name" in the test script of the corresponding interface a. Thus, when the initial definition information of the interface stored in the data table is changed, the initial definition information in the initial test script can be changed into the change definition information according to the association relation between the data table and the initial test script, so that the change test script is obtained. 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 of 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 names, etc., and the definition parameters are determined by the developer, and the definition parameters and their changes may or may not be all exhaustive.
According to the test script multiplexing method 200 for interface modification in the embodiment of the disclosure, a plurality of definition parameters may have an association relationship, and when one definition parameter is modified, other definition parameters having an association relationship with the one definition parameter may also be modified accordingly.
It should be appreciated that when an interface is defined by a plurality of definition parameters, there may be no effect on each other between the plurality of definition parameters, for example, between the parameter name and the parameter type; it is also possible that a plurality of definition parameters are mutually influenced and restricted, for example, a correlation relationship between two definition parameters, i.e., a parameter name and a maximum length of the parameter name, is mutually influenced and restricted. For example, one interface includes two defined parameters, namely a parameter name and a parameter name maximum length, the parameter name is "test-project", when the parameter name maximum length is 12 or more, the parameter name is "test-project", and when the parameter name maximum length is less than 12, for example, 10, the corresponding parameter name is "test-proje", and the above-mentioned "association relationship" is a relationship between defined parameters that is an interaction and restriction.
According to the test script multiplexing method 200 of interface modification of the embodiment of the present disclosure, the initial definition information modification of the interface may include an increase/decrease modification and a modification.
The "increase/decrease change" and the "modification change" are "modification change" when the initial definition information of the interface and the change definition information of the interface are both present and the content or the value is different before and after the change based on the definition information of the interface; before and after the change, the change definition information of the interface is changed from the initial definition information of the interface to the "from none to none" or the "from none to none" of the definition parameters, and is changed to the "change. It should be understood that in some cases, when the definition information is added or subtracted, the content or the value of the definition information is added or subtracted, in addition to the corresponding definition information. For example, before and after the interface is changed, the definition information of "parameter length" is added, and the content of "parameter length" is also added correspondingly (here, the value is 10, for example).
It should be noted that, the initial definition information of the interface is stored in the data table, and the above-mentioned change or modification can be also represented in the data table, so that after the change or modification occurs, the corresponding change or modification 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 of interface modification of the embodiment of the present disclosure, modification of 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 procedure of the change, more specifically, for the action of the change: the definition information input by the developer when changing the interface is "change definition information", and the interface change is to change the definition parameters of the interface, the developer may be involved in changing a plurality of definition parameters in one change, so the "change completion" mentioned in operation S12 is based on one change of the developer instead of 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 are compared one by one in the same definition parameter unit of the initial definition information and the input definition information, and the input definition information changed after the comparison is completed is the change definition information.
Referring to fig. 4 and 5, according to the test script multiplexing method 200 of interface modification of the embodiment of the present disclosure, the initial definition information modification completion of the confirm interface of operation S12 may include operations S121 to S122.
In operation S121, the 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 "confirm the completion of the change of the initial definition information of the interface" in operation S12 is substantially related to the change flag information of the initial definition information in operation S202, specifically: before and after the change, a signal is required to indicate that the initial definition information is changed and the change is completed, and then the information before and after the change is compared, and in the technical solution of the embodiment of the disclosure, the "initial definition information change state" mentioned in operation S121 indicates a state in which the initial definition information is changed, and "incomplete" and "completed" are used to determine whether the change is completed. For example, the release of a new version of the interface in the previous example is an indication of the completion of the change, i.e., the release of the new version corresponds to a "completed" state.
According to the test script multiplexing method 200 of interface modification of the embodiment of the present disclosure, the interface version is consistent with the test script version of the interface.
In the technical scheme of the embodiment of the disclosure, version changes of the interface can be tracked by maintaining a consistent interface version and a consistent test script version of the interface, so that corresponding test scripts, namely test scripts with consistent versions, are obtained synchronously.
Based on the test script multiplexing method of the interface change, the invention also provides a test script multiplexing device of the interface change for multiplexing the test script of the interface change. The device will be described in detail below in connection with fig. 6.
Fig. 6 schematically shows a block diagram of a test script multiplexing apparatus of interface modification according to an embodiment of the present disclosure.
As shown in fig. 6, the test script multiplexing apparatus 300 for interface modification of this embodiment includes a modification tracking module 310 for initial definition information of an interface, a modification definition information acquisition module 320 for an interface, 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.
The interface change definition information obtaining module 320 is configured to obtain change flag information of the initial definition information to obtain change definition information of the interface, 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.
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 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, and in an embodiment, the information synchronization module 330 may be used to execute the operation S203 described above, which is not described herein again.
According to an embodiment of the present disclosure, any 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 of the modules may be split into a plurality of modules. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the initial definition information of the interface, the change tracking module 310 of the change definition information acquisition module 320 of the interface, and the information synchronization module 330 may be implemented at least in part as hardware circuitry, 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 in hardware or firmware in any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Or at least one of the initial definition information of the interface change tracking module 310, 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, which when executed, may perform the corresponding functions.
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a test script multiplexing method of interface modification, according to an embodiment of the 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. The processor 401 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 401 may also include on-board memory for caching purposes. Processor 401 may include a single processing unit or multiple processing units for performing different actions of the method flows in accordance with embodiments of the disclosure.
In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are stored. The processor 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. The processor 401 performs various operations of the method flow according to the embodiment of the present disclosure by executing programs in the ROM 402 and/or the RAM 403. Note that the program may be stored in one or more memories other than the ROM 402 and the RAM 403. The processor 401 may also perform various operations of the method flow according to the 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, with input/output (I/O) interface 405 also 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 portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or 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. The drive 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 installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present 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 context of this 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, the 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 methods shown in the flowcharts. When the computer program product runs in a computer system, the program code is used for enabling the computer system to realize the test script multiplexing method for interface modification provided by the embodiment of the disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 401. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based 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 over a network medium in the form of signals, downloaded and installed via the communication portion 409, and/or installed from the removable medium 411. The computer program may include program code that may be transmitted using any appropriate 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 via the communication portion 409 and/or installed from the removable medium 411. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 401. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, 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., connected via the Internet using an Internet service provider).
The flowcharts 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 the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A test script multiplexing method for interface modification, comprising:
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, obtaining a change test script of the interface,
Wherein the initial test script comprises initial definition information of the interface, the initial test script is used for testing the interface before the change, the change test script is used for testing the interface after the change,
The definition information comprises at least one definition parameter, wherein the definition parameter at least comprises one of a parameter name, a parameter content, a parameter length, a parameter type and a parameter service description, the definition parameters have an association relation, and when one definition parameter is changed, other definition parameters having the association relation with the definition parameters are correspondingly changed.
2. The method for multiplexing test scripts for interface modification according to claim 1, wherein the initial definition information is stored in a data table, the data table is associated with the initial test scripts, the modification definition information is synchronized to the initial test scripts corresponding to the interface, and obtaining the modified test scripts for the interface includes:
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 change definition information according to the association relation between the data table and the initial test script to obtain a change test script.
3. The method for multiplexing test scripts for interface modification according to claim 1 or 2, wherein the initial definition information modification of the interface includes an increase/decrease modification and a modification.
4. The method for multiplexing test scripts for interface modification according to claim 1 or 2, wherein the tracking modification 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;
-comparing said initial definition information with said same said definition parameters of said input definition information.
5. The method of multiplexing test scripts for interface modification of claim 4, wherein confirming completion of the modification of the initial definition information of the interface includes:
Querying an initial definition information change state of an interface, wherein the initial definition information state comprises incomplete and completed;
And when the initial definition information state of the interface is finished, confirming that the initial definition information change of the interface is finished.
6. The method for multiplexing test scripts for interface modification according to claim 1 or 2, wherein the interface version is identical to the test script version of the interface.
7. A test script multiplexing apparatus of interface modification, comprising:
The change tracking module 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 the change mark information of the initial definition information to obtain the interface change definition information; and
An information synchronization module 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 the change, the change test script is used for testing the interface after the change,
The definition information comprises at least one definition parameter, wherein the definition parameter at least comprises one of a parameter name, a parameter content, a parameter length, a parameter type and a parameter service description, the definition parameters have an association relation, and when one definition parameter is changed, other definition parameters having the association relation with the definition parameters are correspondingly changed.
8. An electronic device, comprising:
One or more processors;
Storage means 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-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202111133960.1A 2021-09-27 2021-09-27 Test script multiplexing method, device, equipment, medium and product for interface change Active CN113806229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111133960.1A CN113806229B (en) 2021-09-27 2021-09-27 Test script multiplexing method, device, equipment, medium and product for interface change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111133960.1A CN113806229B (en) 2021-09-27 2021-09-27 Test script multiplexing method, device, equipment, medium and product for interface change

Publications (2)

Publication Number Publication Date
CN113806229A CN113806229A (en) 2021-12-17
CN113806229B true CN113806229B (en) 2024-06-11

Family

ID=78896790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111133960.1A Active CN113806229B (en) 2021-09-27 2021-09-27 Test script multiplexing method, device, equipment, medium and product for interface change

Country Status (1)

Country Link
CN (1) CN113806229B (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
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
CN109240923A (en) * 2018-08-31 2019-01-18 福建天泉教育科技有限公司 The generation method and computer readable storage medium of interface testing script
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
CN112035375A (en) * 2020-09-17 2020-12-04 中国银行股份有限公司 socket interface automatic test system
CN112416751A (en) * 2020-10-15 2021-02-26 北京达佳互联信息技术有限公司 Processing method and device for interface automation test and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9208065B1 (en) * 2014-05-14 2015-12-08 International Business Machines Corporation Correlating out-of-band process data during mobile test automation
US9767009B2 (en) * 2014-11-10 2017-09-19 International Business Machines Corporation Adaptation of automated test scripts

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
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
CN109240923A (en) * 2018-08-31 2019-01-18 福建天泉教育科技有限公司 The generation method and computer readable storage medium of interface testing script
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
CN112035375A (en) * 2020-09-17 2020-12-04 中国银行股份有限公司 socket interface automatic test system
CN112416751A (en) * 2020-10-15 2021-02-26 北京达佳互联信息技术有限公司 Processing method and device for interface automation test and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Research and Application of a User Interface Automatic Testing Method Based on Data Driven;Huang, TX et al.;《NUCLEAR POWER PLANTS: INNOVATIVE TECHNOLOGIES FOR INSTRUMENTATION AND CONTROL SYSTEMS 》;20201231;全文 *
一种简化自动化测试脚本编写维护的应用方法;郭利江;夏嘉;;移动通信(08);全文 *
基于构件的测试脚本复用技术研究;吴立松;杨根兴;蔡立志;;计算机应用研究(04);全文 *

Also Published As

Publication number Publication date
CN113806229A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US11550599B2 (en) Method and apparatus for running applet
US20130007713A1 (en) Automated testing process
US10592312B2 (en) Message oriented middleware with integrated rules engine
CN109684188B (en) Test method and device
CN110619096B (en) Method and apparatus for synchronizing data
CN107644075B (en) Method and device for collecting page information
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
US12061901B2 (en) Documentation enforcement during compilation
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN112084254A (en) Data synchronization method and system
CN113806229B (en) Test script multiplexing method, device, equipment, medium and product for interface change
CN112579447A (en) Browser testing method and device
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN111090591A (en) Test method and device, electronic equipment and computer readable storage medium
CN116756016A (en) Multi-browser testing method, device, equipment, medium and program product
CN113407229B (en) Method and device for generating offline scripts
CN110580216A (en) application extraction and detection method and device
CN112882921B (en) Fault simulation method and device
CN110599112A (en) Method and device for developing and maintaining network page
CN114925066A (en) Data processing method and device, electronic equipment and storage medium
CN112306723B (en) Operation information acquisition method and device applied to applet
CN108287792B (en) Method and apparatus for outputting information
EP2721494A1 (en) System and method to in-line script dependencies
CN113434382A (en) Database performance monitoring method and device, electronic equipment and computer readable 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
GR01 Patent grant
GR01 Patent grant