[go: up one dir, main page]

CN106201850A - A kind of compatibility test method and device - Google Patents

A kind of compatibility test method and device Download PDF

Info

Publication number
CN106201850A
CN106201850A CN201510209914.3A CN201510209914A CN106201850A CN 106201850 A CN106201850 A CN 106201850A CN 201510209914 A CN201510209914 A CN 201510209914A CN 106201850 A CN106201850 A CN 106201850A
Authority
CN
China
Prior art keywords
test
server
compatibility
address
tested
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.)
Granted
Application number
CN201510209914.3A
Other languages
Chinese (zh)
Other versions
CN106201850B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510209914.3A priority Critical patent/CN106201850B/en
Publication of CN106201850A publication Critical patent/CN106201850A/en
Application granted granted Critical
Publication of CN106201850B publication Critical patent/CN106201850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present application discloses a kind of compatibility test method and device, and described method includes: obtain test parameter;Described test parameter includes: compatibility calls the title of service and described compatibility calls the code release of service in service;Determine that code release combines according to described test parameter;Obtain the IP address of server to be measured, according to the corresponding relation of default IP address Yu service code version, determine the destination server corresponding with the combination of described code release;Described destination server is carried out compatibility test.A kind of compatibility test method of the embodiment of the present application offer and device, can improve the execution efficiency of compatibility test.

Description

Compatibility testing method and device
Technical Field
The present disclosure relates to the field of computer software technologies, and in particular, to a compatibility testing method and apparatus.
Background
With the development of software technology and the demand of users, services in software need to be continuously updated. The existing system integrating a plurality of services generally has the characteristics of distribution, multiple systems, complex interaction relation and the like. After a certain service or multiple services in the system release a new version of code, the system may simultaneously include service codes of different versions of the service, and in order to ensure the stability of the system when randomly accessing new and old versions of codes, it is usually necessary to perform a compatibility test on the services including the codes of different versions.
Existing compatibility testing methods generally include: the tester writes a test script and initiates a request to be tested. The tester manually configures the service call link parameters of the compatibility test for the test system, including, for example, the service name. The tester manually deploys a version of the combined system code for the test system. And running the test script or initiating a test request to obtain a test result, checking the test result and analyzing the test result. And the tester manually deploys the system code of another version combination for the test system again, and runs the test script again or initiates a test request to perform compatibility test of the system code of another version combination.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: the existing compatibility testing method needs to manually deploy and switch system codes of different version combinations to be tested, under the condition that software system codes are complex, the version combinations of the system codes to be tested are more, manual switching and deployment of code version combinations waste a large amount of time, and the execution efficiency of compatibility testing is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for testing compatibility, so as to improve the execution efficiency of the compatibility test.
In order to solve the above technical problem, embodiments of the present application provide a compatibility testing method and apparatus, which are implemented as follows:
a compatibility testing method, comprising: obtaining a test parameter; the test parameters include: the name of the compatibility calling service and the code version of the service in the compatibility calling service; determining a code version combination according to the test parameters; acquiring an IP address of a server to be tested, and determining a target server corresponding to the code version combination according to a preset corresponding relation between the IP address and a service code version; and carrying out compatibility test on the target server.
In a preferred embodiment, the code version combination includes: the compatibility calls one or more of all combinations of service code versions in the service.
In a preferred scheme, the code version combination selects one or more of all combinations of service code versions in the compatibility calling service according to a preset rule.
In a preferred embodiment, the determining a target server according to a preset correspondence between an IP address and a service code version specifically includes: and determining an IP address corresponding to each code version combination according to the code version combination and the corresponding relation, wherein a server corresponding to the IP address is determined as a target server.
In a preferred embodiment, the test parameters further include: a case script to be tested; the case script to be tested comprises one or more test cases.
In a preferred embodiment, the performing the compatibility test on the target server specifically includes: and determining a test path list of the target server according to the to-be-tested case, and sending the to-be-tested case script to the target server according to the test path list to perform compatibility test.
In a preferred embodiment, the test path list includes one or more server test paths.
In a preferred embodiment, determining the test path list of the target server according to the to-be-tested case includes: and determining the sequence of calling the target server according to the sequence of calling the service names corresponding to the test cases, wherein the sequence of calling the target server is a test path.
In a preferred embodiment, the compatibility testing method further includes: verifying the validity of the acquired IP address of the server to be tested; accordingly, the determining a target server comprises: and determining a target server to be detected according to the validity check result, and determining a target server in the target server to be detected according to the corresponding relation between the preset IP address and the service code version.
In an optimal scheme, the verifying the validity of the obtained IP address of the server to be tested includes: and acquiring an IP address list, and checking whether the IP address list contains the IP address of the server to be tested, wherein if the IP address list contains the IP address of the server to be tested, the IP address of the server to be tested is legal.
A compatibility testing apparatus, comprising: the system comprises a parameter acquisition unit, a code version combination determination unit, a target server determination unit and a test unit; the parameter acquiring unit is used for acquiring test parameters; the test parameters include: the name of the compatibility calling service and the code version of the service in the compatibility calling service; the test parameters also comprise a case script to be tested; the code version combination determining unit is used for determining a code version combination according to the test parameters in the parameter acquiring unit; the target server determining unit is used for acquiring the IP address of the server to be tested and determining the target server corresponding to the code version combination in the code version combination determining unit according to the corresponding relation between the preset IP address and the service code version; and the testing unit is used for carrying out compatibility test on the target server determined in the target server determining unit.
In a preferred embodiment, the target server determining unit includes: the server to be tested comprises an IP address obtaining unit and a server determining unit; the server to be tested IP acquisition unit is used for acquiring the IP address of the server to be tested; and the server determining unit is used for determining a target server in the server to be detected in the server IP acquiring unit to be detected according to the corresponding relation between the preset IP address and the service code version.
In a preferred embodiment, the target server determining unit further includes an IP address verifying unit; the IP address verification unit is used for acquiring an IP address list and verifying the validity of the IP address of the server to be tested in the IP acquisition unit of the server to be tested according to the IP address list; correspondingly, the server determining unit is configured to determine a target server in the legitimate server to be tested in the IP address verification unit according to a preset correspondence between the IP address and the service code version.
In a preferred embodiment, the compatibility testing unit includes: the test system comprises a test list construction unit and a test case sending execution unit; the test list constructing unit is used for determining a test path list of the target server according to the to-be-tested case; the test path list comprises one or more server test paths; and the test case sending execution unit is used for sending the case script to be tested to the target server for compatibility test according to the test list determined by the test list construction unit.
According to the technical scheme provided by the embodiment of the application, the compatibility testing method and the compatibility testing device disclosed by the embodiment of the application automatically deploy the code version combination according to the acquired name of the compatibility calling service and the code version of the service in the compatibility calling service. According to the corresponding relation between the preset IP address and the service code version, the target server corresponding to the code version combination can be quickly determined. And automatically constructing a test list according to the obtained test case. Therefore, the compatibility test method and the device disclosed by the embodiment of the application do not need manual deployment and code version switching combination, can improve the execution efficiency of the compatibility test, and can ensure that the condition of omitting a certain calling path in the deployment process can not occur, thereby improving the accuracy of the compatibility test.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flow chart of one embodiment of a compatibility testing method of the present application;
FIG. 2 is a block diagram of one embodiment of a compatibility testing apparatus of the present application;
FIG. 3 is a block diagram of a target server determining unit in an embodiment of the compatibility testing apparatus of the present application;
FIG. 4 is a block diagram of a test unit in an embodiment of the compatibility testing apparatus of the present application.
Detailed Description
The embodiment of the application provides a compatibility testing method and device.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of an embodiment of a compatibility testing method of the present application. As shown in fig. 1, the compatibility testing method may include:
s100: obtaining a test parameter; the test parameters include: a name of a compatibility call service and a code version of a service in the compatibility call service.
The compatibility testing device may obtain testing parameters, which may include: a name of a compatibility call service and a code version of a service in the compatibility call service.
The name of the compatibility call service may be used to indicate the name of the service for which a compatibility test is required.
For example, a piece of software may include services A, B, C and D, and the name of the compatibility call service may include: service a, service B, and service D may indicate that the compatibility of service a, service B, and service D needs to be tested.
The code version of the service in the compatibility calling service can be used for expressing the code version included by the service needing to be tested in the compatibility calling service. For example, service A may include a new version code and an old version code, and service B may include an old version code.
The test parameters may further include: and the script of the case to be tested and the like. The case script to be tested can be used for testing the service to be tested. The case script to be tested may include one or more test cases.
S200: and determining code version combination according to the test parameters.
The compatibility testing device may determine a code version combination according to the name of the compatibility calling service and the code version of the service in the compatibility calling service.
The code version combination may include: the compatibility calls one or more of all combinations of service code versions in the service. The code version combination may select one or more of all combinations of service code versions in the compatibility calling service according to a preset rule, for example, one or more of all combinations of service code versions in the compatibility calling service may be selected according to information preset by a user.
For example, the service a includes a new version code and an old version code, the service B includes an old version code, and the service D includes a new version code and an old version code. Then, the code version combination may include: "New A, old B and New D", "New A, old B and old D", "old A, old B and New D", and "old A, old B and old D". The code version combination may also be "New A, old B, and New D". The code version combination can be selected according to preset rules.
S300: and acquiring the IP address of the server to be tested, and determining a target server corresponding to the code version combination according to the corresponding relation between the preset IP address and the service code version.
The compatibility testing device can acquire the IP address of the server to be tested. The IP address of the server to be tested may be preset or may be set by the user. The IP address of the server to be tested may represent an IP address of a server that needs to perform a compatibility test. The IP address of the server under test may include IP addresses of one or more servers.
The preset correspondence between the IP address and the service code version may be used to express the version of the service code running on the server corresponding to the IP address. For example, the IP address "xxx.xx.xxx.01" corresponds to the sending server being "server 1", and the service code running on the "server 1" is "new code of a service a".
And determining the target server according to the corresponding relation between the preset IP address and the service code version. Specifically, according to each code version combination in the code version combinations and the corresponding relationship, an IP address corresponding to each code version combination may be determined, and a server corresponding to the IP address may be determined as a target server.
The target server may be one or more servers corresponding to code combinations of the compatibility test, and each set of code combinations may correspond to one or more target servers.
In another embodiment, the compatibility testing method may further include: and checking the validity of the acquired IP address of the server to be tested. The method specifically comprises the following steps: and acquiring an IP address list, and checking whether the IP address list contains the IP address of the server to be tested, wherein if the IP address list contains the IP address of the server to be tested, the IP address of the server to be tested can be legal. The list of IP addresses may include the IP addresses of all available servers. The list of IP addresses may be obtained by a configuration center, which may be used to store the IP addresses of all servers.
Accordingly, the determining a target server may include: and eliminating the IP addresses which are different from the IP address of the server to be detected in the IP address list, wherein the server corresponding to the eliminated IP address list can be a target server to be detected, the IP address corresponding to each code version combination in the eliminated IP address list can be determined according to the preset corresponding relation between the IP address and the service code version, and the server corresponding to the IP address can be determined as the target server.
S400: and carrying out compatibility test on the target server.
The compatibility testing device may perform compatibility testing on the target server, and specifically may include: and determining a test path list of the target server according to the to-be-tested case, and sending the to-be-tested case script to the target server for compatibility test according to the test path list.
The test path list may include one or more server test paths. The server test path may be used to represent servers that are sequentially tested in a process of performing one compatibility test on one test case.
Determining the test path list of the target server according to the to-be-tested case may include: and determining the sequence of calling the target server according to the sequence of calling the service names corresponding to the test cases, wherein the sequence of calling the target server can be a test path.
For example, assume that a certain code version combination is: the A old version, the B old version and the D new version, and target servers corresponding to the code version combination are shown in Table 1.
TABLE 1
Target server name Service version
Server 1 Old version A
Server 2 Old version A
Server 3 B old edition
Server 4 B old edition
Server 5 D New edition
Server 6 D New edition
Suppose that the sequence of calling service names corresponding to a certain test case is as follows: service B → service a → service D.
Then, determining the list of server test paths corresponding to the test case may include:
test path 1: server 3 → server 1 → server 5;
test path 2: server 3 → server 1 → server 6;
test path 3: server 3 → server 2 → server 5;
test path 4: server 3 → server 2 → server 5;
test path 5: server 4 → server 1 → server 5;
test path 6: server 4 → server 1 → server 5;
test path 2: server 4 → server 2 → server 5;
test path 7: server 4 → server 2 → server 6.
The test case may be sent for compatibility testing according to the test paths 1-7.
The case script to be tested can be sent to the target server in a ssh (Secure Shell) instruction mode, and the case script to be tested is executed.
In another embodiment, the compatibility testing method may further include: and obtaining a compatibility test result.
The compatibility test results may be obtained by a third party tool. Further, the compatibility test result can be analyzed. Further, the compatibility test result and the analysis result may be displayed.
In the compatibility testing method disclosed in the above embodiment, a code version combination is automatically deployed according to the obtained name of the compatibility calling service and the code version of the service in the compatibility calling service. According to the corresponding relation between the preset IP address and the service code version, the target server corresponding to the code version combination can be quickly determined. And automatically constructing a test list according to the obtained test case. The compatibility testing method disclosed by the embodiment of the application does not need manual deployment and code version switching combination, can improve the execution efficiency of the compatibility testing, and can ensure that the condition of omitting a certain calling path in the deployment process is avoided, thereby improving the accuracy of the compatibility testing.
FIG. 2 is a block diagram of an embodiment of a compatibility testing apparatus of the present application. As shown in fig. 2, the compatibility testing apparatus may include: a parameter acquisition unit 100, a code version combination determination unit 200, a target server determination unit 300, and a test unit 400. Wherein,
the parameter obtaining unit 100 may be configured to obtain a test parameter. The test parameters may include: a name of a compatibility call service and a code version of a service in the compatibility call service. The test parameters can also comprise information such as a case script to be tested.
The code version combination determining unit 200 may be configured to determine a code version combination according to the test parameters in the parameter obtaining unit 100.
The target server determining unit 300 may be configured to obtain an IP address of a server to be tested, and determine a target server corresponding to the code version combination in the code version combination determining unit 200 according to a preset correspondence between the IP address and the service code version.
Fig. 3 is a block diagram of a target server determination unit in an embodiment of the compatibility test apparatus of the present application. As shown in fig. 3, the target server determining unit 300 may include: a server to be tested IP address acquisition unit 301 and a server determination unit 302.
The server to be tested IP obtaining unit 301 may be configured to obtain an IP address of the server to be tested.
The server determining unit 302 may be configured to determine a target server in the servers to be tested in the server to be tested IP obtaining unit 301 according to a preset correspondence between an IP address and a service code version.
In another embodiment, the target server determining unit 300 may further include: an IP address verification unit 303. The IP address verifying unit 303 may be configured to obtain an IP address list, and verify the validity of the IP address of the server to be tested in the server to be tested IP obtaining unit 301 according to the IP address list.
Accordingly, the server determining unit 302 may be configured to determine a target server in the legitimate servers to be tested in the IP address verifying unit 303 according to a preset correspondence between the IP address and the service code version.
The testing unit 400 may be configured to perform a compatibility test on the target server determined in the target server determining unit 300.
FIG. 4 is a block diagram of a test unit in an embodiment of the compatibility testing apparatus of the present application. As shown in fig. 4, the test unit 400 may include: a test list construction unit 401 and a test case transmission execution unit 402.
The test list constructing unit 401 may be configured to determine a test path list of the target server according to the to-be-tested case. The test path list may include one or more server test paths. The server test path may be used to represent servers that are sequentially tested in a process of performing one compatibility test on one test case.
The test case sending execution unit 402 may be configured to send the to-be-tested case script to the target server for performing a compatibility test according to the test list determined by the test list construction unit 401.
In another embodiment, the compatibility testing apparatus may further include: the test result unit 500. The test result unit 500 may be configured to obtain a compatibility test result. Further, the test result unit 500 may be further configured to analyze the compatibility test result. Further, the test result unit 500 may also be used to display the compatibility test result and the analysis result.
The compatibility testing device disclosed by the embodiment corresponds to the compatibility testing method embodiment, the compatibility testing device can realize the compatibility testing method embodiment, and the technical effect of the compatibility testing method embodiment is achieved.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, jhddl (Java Hardware Description Language), langue, Lola, HDL, laspam, hardbyscript Description Language (vhigh Description Language), and vhigh-Language (Hardware Description Language), which is currently used by most popular. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, AtmelAT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. With this understanding in mind, the present solution, or portions thereof that contribute to the prior art, may be embodied in the form of a software product, which in a typical configuration includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The computer software product may include instructions for causing a computing device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the various embodiments or portions of embodiments of the present application. The computer software product may be stored in a memory, which may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transient media), such as modulated data signals and carrier waves.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (14)

1. A compatibility testing method, comprising:
obtaining a test parameter; the test parameters include: the name of the compatibility calling service and the code version of the service in the compatibility calling service;
determining a code version combination according to the test parameters;
acquiring an IP address of a server to be tested, and determining a target server corresponding to the code version combination according to a preset corresponding relation between the IP address and a service code version;
and carrying out compatibility test on the target server.
2. The compatibility testing method of claim 1, wherein said code version combining comprises: the compatibility calls one or more of all combinations of service code versions in the service.
3. The compatibility testing method of claim 2, wherein the code version combination selects one or more of all combinations of service code versions in the compatibility calling service according to a preset rule.
4. The compatibility testing method according to claim 1, wherein the determining the target server according to the preset correspondence between the IP address and the service code version specifically includes: and determining an IP address corresponding to each code version combination according to the code version combination and the corresponding relation, wherein a server corresponding to the IP address is determined as a target server.
5. The compatibility testing method of claim 1, wherein said testing parameters further comprise: a case script to be tested; the case script to be tested comprises one or more test cases.
6. The compatibility testing method according to claim 5, wherein the performing the compatibility test on the target server specifically includes: and determining a test path list of the target server according to the to-be-tested case, and sending the to-be-tested case script to the target server according to the test path list to perform compatibility test.
7. The compatibility testing method of claim 6, wherein said list of test paths includes one or more server test paths.
8. The compatibility testing method according to claim 7, wherein determining the testing path list of the target server according to the case to be tested comprises: and determining the sequence of calling the target server according to the sequence of calling the service names corresponding to the test cases, wherein the sequence of calling the target server is a test path.
9. The compatibility testing method of claim 1, further comprising: verifying the validity of the acquired IP address of the server to be tested;
accordingly, the determining a target server comprises: and determining a target server to be detected according to the validity check result, and determining a target server in the target server to be detected according to the corresponding relation between the preset IP address and the service code version.
10. The compatibility testing method according to claim 9, wherein said checking the validity of the obtained IP address of the server under test comprises: and acquiring an IP address list, and checking whether the IP address list contains the IP address of the server to be tested, wherein if the IP address list contains the IP address of the server to be tested, the IP address of the server to be tested is legal.
11. A compatibility testing apparatus, comprising: the system comprises a parameter acquisition unit, a code version combination determination unit, a target server determination unit and a test unit; wherein,
the parameter acquiring unit is used for acquiring test parameters; the test parameters include: the name of the compatibility calling service and the code version of the service in the compatibility calling service; the test parameters also comprise a case script to be tested;
the code version combination determining unit is used for determining a code version combination according to the test parameters in the parameter acquiring unit;
the target server determining unit is used for acquiring the IP address of the server to be tested and determining the target server corresponding to the code version combination in the code version combination determining unit according to the corresponding relation between the preset IP address and the service code version;
and the testing unit is used for carrying out compatibility test on the target server determined in the target server determining unit.
12. The compatibility test apparatus of claim 11, wherein the target server determining unit comprises: the server to be tested comprises an IP address obtaining unit and a server determining unit; wherein,
the server to be tested IP acquisition unit is used for acquiring the IP address of the server to be tested;
and the server determining unit is used for determining a target server in the server to be detected in the server IP acquiring unit to be detected according to the corresponding relation between the preset IP address and the service code version.
13. The compatibility test apparatus of claim 12, wherein said target server determining unit further comprises an IP address verifying unit;
the IP address verification unit is used for acquiring an IP address list and verifying the validity of the IP address of the server to be tested in the IP acquisition unit of the server to be tested according to the IP address list;
correspondingly, the server determining unit is configured to determine a target server in the legitimate server to be tested in the IP address verification unit according to a preset correspondence between the IP address and the service code version.
14. The compatibility test apparatus of claim 11, wherein the compatibility test unit comprises: the test system comprises a test list construction unit and a test case sending execution unit; wherein,
the test list constructing unit is used for determining a test path list of the target server according to the to-be-tested case; the test path list comprises one or more server test paths;
and the test case sending execution unit is used for sending the case script to be tested to the target server for compatibility test according to the test list determined by the test list construction unit.
CN201510209914.3A 2015-04-29 2015-04-29 A kind of compatibility test method and device Active CN106201850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510209914.3A CN106201850B (en) 2015-04-29 2015-04-29 A kind of compatibility test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510209914.3A CN106201850B (en) 2015-04-29 2015-04-29 A kind of compatibility test method and device

Publications (2)

Publication Number Publication Date
CN106201850A true CN106201850A (en) 2016-12-07
CN106201850B CN106201850B (en) 2019-07-05

Family

ID=57457485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510209914.3A Active CN106201850B (en) 2015-04-29 2015-04-29 A kind of compatibility test method and device

Country Status (1)

Country Link
CN (1) CN106201850B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329899A (en) * 2017-07-04 2017-11-07 广州云测信息技术有限公司 A kind of application compatibility method of testing and device
CN108984414A (en) * 2018-07-25 2018-12-11 郑州云海信息技术有限公司 A kind of server test method and device
CN111240998A (en) * 2020-02-17 2020-06-05 网易(杭州)网络有限公司 Test case processing method and device
CN111290896A (en) * 2020-02-12 2020-06-16 广州酷狗计算机科技有限公司 Server pressure testing method, device, equipment and medium
CN111459729A (en) * 2020-03-12 2020-07-28 苏州浪潮智能科技有限公司 Server compatibility test analysis method and system
CN111752870A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 A Compatible Method and System for Server Interface Based on Neural Network
CN111797009A (en) * 2020-06-22 2020-10-20 北京字节跳动网络技术有限公司 Method, apparatus and electronic device for detecting code compatibility
CN112256306A (en) * 2020-11-09 2021-01-22 北京沃东天骏信息技术有限公司 Compatibility verification method and device
CN113176997A (en) * 2021-04-30 2021-07-27 深圳市共进电子股份有限公司 Test case loading method and device, computer equipment and readable storage medium
CN115344317A (en) * 2021-05-13 2022-11-15 京东科技信息技术有限公司 Multi-version compatible request processing method, device and equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030163804A1 (en) * 2000-02-23 2003-08-28 Wolfgang Burke Method for assuring compatibility and method for securing data within a distributed computer system
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application
CN103970658A (en) * 2014-05-15 2014-08-06 龙芯中科技术有限公司 Method and device for testing compatibility between PMON and kernel versions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030163804A1 (en) * 2000-02-23 2003-08-28 Wolfgang Burke Method for assuring compatibility and method for securing data within a distributed computer system
CN102708050A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for testing mobile application
CN103970658A (en) * 2014-05-15 2014-08-06 龙芯中科技术有限公司 Method and device for testing compatibility between PMON and kernel versions

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329899A (en) * 2017-07-04 2017-11-07 广州云测信息技术有限公司 A kind of application compatibility method of testing and device
CN108984414A (en) * 2018-07-25 2018-12-11 郑州云海信息技术有限公司 A kind of server test method and device
CN111290896A (en) * 2020-02-12 2020-06-16 广州酷狗计算机科技有限公司 Server pressure testing method, device, equipment and medium
CN111290896B (en) * 2020-02-12 2024-05-10 广州酷狗计算机科技有限公司 Method, device, equipment and medium for testing server pressure
CN111240998A (en) * 2020-02-17 2020-06-05 网易(杭州)网络有限公司 Test case processing method and device
CN111240998B (en) * 2020-02-17 2024-04-19 网易(杭州)网络有限公司 Test case processing method and device
CN111459729B (en) * 2020-03-12 2023-01-06 苏州浪潮智能科技有限公司 A server compatibility test analysis method and system
CN111459729A (en) * 2020-03-12 2020-07-28 苏州浪潮智能科技有限公司 Server compatibility test analysis method and system
CN111752870A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 A Compatible Method and System for Server Interface Based on Neural Network
CN111797009A (en) * 2020-06-22 2020-10-20 北京字节跳动网络技术有限公司 Method, apparatus and electronic device for detecting code compatibility
CN111797009B (en) * 2020-06-22 2024-10-29 北京字节跳动网络技术有限公司 Method, device and electronic device for detecting code compatibility
CN112256306A (en) * 2020-11-09 2021-01-22 北京沃东天骏信息技术有限公司 Compatibility verification method and device
CN112256306B (en) * 2020-11-09 2024-10-18 北京沃东天骏信息技术有限公司 Compatibility verification method and device
CN113176997A (en) * 2021-04-30 2021-07-27 深圳市共进电子股份有限公司 Test case loading method and device, computer equipment and readable storage medium
CN113176997B (en) * 2021-04-30 2024-05-03 深圳市共进电子股份有限公司 Test case loading method and device, computer equipment and readable storage medium
CN115344317A (en) * 2021-05-13 2022-11-15 京东科技信息技术有限公司 Multi-version compatible request processing method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN106201850B (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN106201850B (en) A kind of compatibility test method and device
CN114546738B (en) Universal test method, system, terminal and storage medium for server
US10481964B2 (en) Monitoring activity of software development kits using stack trace analysis
US9372779B2 (en) System, method, apparatus and computer program for automatic evaluation of user interfaces in software programs
US11074154B2 (en) Identifying a source file for use in debugging compiled code
CN111858296B (en) Interface testing method, device, equipment and storage medium
CN107357726A (en) A kind of application compatibility method of testing and device
US20180089067A1 (en) White box testing
CN104391690A (en) Application development system and method
CN110990274A (en) Data processing method, device and system for generating test case
CN108400902B (en) A method, device and equipment for grayscale testing
CN110879781B (en) Program debugging method, device, electronic equipment and computer readable storage medium
CN114840427A (en) Code testing and test case generating method and device
CN105786562A (en) Method and device for integrating plug-in
CN110688320B (en) Detection method, device and terminal equipment of global variables
CN113536174A (en) Interface loading method, device and device
CN108304313B (en) Device, client and method for data testing
CN114116505A (en) Code testing method and device
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium
CN111240987B (en) Method and device for detecting migration program, electronic equipment and computer readable storage medium
CN106201859A (en) A kind of regression testing method and system
CN107733866A (en) RPC requests, RPC request processing methods, device and equipment
CN110865931B (en) Simulation method, simulation device, electronic equipment and storage medium
CN109542775B (en) A method and device for generating and executing a test script
CN108804310A (en) function test method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right