CN109491886A - Compatibility test method, device, electronic equipment and storage medium - Google Patents
Compatibility test method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109491886A CN109491886A CN201811126262.7A CN201811126262A CN109491886A CN 109491886 A CN109491886 A CN 109491886A CN 201811126262 A CN201811126262 A CN 201811126262A CN 109491886 A CN109491886 A CN 109491886A
- Authority
- CN
- China
- Prior art keywords
- client
- service
- version
- released
- compatibility test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 31
- 238000003860 storage Methods 0.000 title claims abstract description 26
- 238000012360 testing method Methods 0.000 claims abstract description 118
- 238000004519 manufacturing process Methods 0.000 claims abstract description 42
- 230000006870 function Effects 0.000 claims description 81
- 238000004590 computer program Methods 0.000 claims description 7
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000000034 method Methods 0.000 abstract description 11
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000013522 software testing Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 7
- 239000004744 fabric Substances 0.000 description 5
- 230000006854 communication Effects 0.000 description 4
- 230000005291 magnetic effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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 embodiment provides a kind of compatibility test method, device, electronic equipment and storage mediums, are related to software testing technology field.This method comprises: the service of version to be released is for handling service logic corresponding with the function of client by the pre- publication environment of the service arrangement of version to be released to server end;The client of multiple versions is backed up, client is generated and backs up packet, the client backup packet is configured with the configuration logic that can be switched between pre- publication environment and production environment;Client backup packet is switched to pre- publication environment based on the configuration logic, compatibility test is carried out to the service of each function and version to be released of client;When compatibility test does not pass through, the service request of the function of client is converted into the service request compatible with the service of version to be released.The technical solution of the embodiment of the present invention can be improved testing efficiency, improves hair version success rate, reduces the problems in production environment.
Description
Technical field
The present invention relates to software testing technology fields, in particular to a kind of compatibility test method, compatibility test
Device, electronic equipment and storage medium.
Background technique
With the rapid development of software technology field, more and more application software clients are come into being.In client
In the system architecture of server, a usual server corresponds to the client of multiple versions, upgrades to server end
When, if client is not upgraded simultaneously, it will cause the client-side program that different clients uses different editions, need pair
The client-side program of different editions carries out compatibility test.
Currently, in existing technical solution, compatibility test when something goes wrong, due to needing to roll back to pervious service
Version, so testing efficiency is lower, hair version success rate is lower, and server end sends out version overlong time.
It should be noted that information is only used for reinforcing the reason to background of the present invention disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of compatibility test method, device for testing compatibility, electronic equipment
And computer readable storage medium, and then overcome the limitation and defect due to the relevant technologies at least to a certain extent and cause
Compatibility test low efficiency, the problem of version success rate is low for hair, server end hair version overlong time.
According to a first aspect of the embodiments of the present invention, a kind of compatibility test method is provided, comprising: by version to be released
Service arrangement to the pre- publication environment of the server end, the service of the version to be released is for handling and the client
The corresponding service logic of function;The client of multiple versions is backed up, client backup packet, the client are generated
Backup packet in end is configured with the configuration logic that can be switched between the pre- publication environment and production environment;Matched based on described
Set logic and client backup packet be switched to the pre- publication environment, to each function of the client with it is described pending
The service of cloth version carries out compatibility test;When the compatibility test does not pass through, by the service of the function of the client
Request is converted into the service request compatible with the service of the version to be released.
In an exemplary embodiment of the present invention, the clothes of each function and the version to be released to the client
Business carries out compatibility test, comprising: obtains the version information of the client;According to the version information of the client from test
Test case information corresponding with the function of the client is obtained in use-case library;Based on the test case information to the visitor
The service of family end and the version to be released carries out compatibility test.
In an exemplary embodiment of the present invention, based on the test case information to the client with it is described pending
The service of cloth version carries out compatibility test, comprising: is based on the test case information, generates the function pair with the client
The service request answered;The server end is sent by service request corresponding with the function of the client;Parse the clothes
The data that business device end returns, judge whether the function of the corresponding client is normal according to the data of the return;If it is determined that
Normally, it is determined that the function of the client is compatible with the service of the version to be released;If it is determined that abnormal, it is determined that described
The function of client and the service of the version to be released are incompatible.
In an exemplary embodiment of the present invention, by the service request of the function of the client be converted into it is described to
The compatible service request of the service of released version, comprising: obtain the version information of the client;Version based on the client
The service request of the function of this information and the client obtains the request transitional information stored in the server end;According to
The request transitional information by the service request of the function of the client corresponding with the version information be converted into it is described
The compatible service request of the service of version to be released, wherein the request transitional information is used for will be corresponding with the version information
The service request of client of version be converted into service request corresponding with the service of the version to be released.
In an exemplary embodiment of the present invention, the compatibility test method includes: logical in the compatibility test
Later, the backup packet of the client is switched to by the production environment based on the configuration logic.
In an exemplary embodiment of the present invention, the compatibility test method includes: logical in the compatibility test
Later, the version number of the service based on the version to be released, updates the respective version of each server of the server end
Service.
In an exemplary embodiment of the present invention, client backup packet is switched to by institute based on the configuration logic
Stating pre- publication environment includes: to be cut the setting of the database of the production environment, system parameter and system based on the configuration logic
Change to database, system parameter and the system setting of the pre- publication environment.
According to a second aspect of the embodiments of the present invention, a kind of compatibility test method is provided, comprising: service arrangement list
Member, for by the pre- publication environment of the service arrangement of version to be released to the server end, the service of the version to be released
For handling service logic corresponding with the function of the client;Client backup units, for will be described in multiple versions
Client is backed up, and generates client backup packet, client backup packet configured with can in the pre- publication environment and
The configuration logic switched between production environment;Compatibility test unit, for being based on the configuration logic for the client
End backup packet is switched to the pre- publication environment, carries out to the service of each function and the version to be released of the client
Compatibility test;Converting unit is requested, for when the compatibility test does not pass through, by the service of the function of the client
Request is converted into the service request compatible with the service of the version to be released.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: processor;And memory,
Computer-readable instruction is stored on the memory, the computer-readable instruction realizes basis when being executed by the processor
Compatibility test method described in above-mentioned any one.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, meter is stored thereon with
Calculation machine program realizes the compatibility test side according to above-mentioned any one when the computer program is executed by processor
Method.
Compatibility test method in exemplary embodiment of the present invention, first by the service arrangement of version to be released to clothes
The pre- publication environment at business device end, then backs up the client of multiple versions, generates and is included in pre- publication environment and production
The backup packet of the configuration logic switched between environment.Client backup packet is switched to pre- publication ring according to configuration logic
The service in border, function and version to be released to client carries out compatibility test.It, will be with when compatibility test does not pass through
The corresponding service request of client functionality is converted into the service request compatible with the service of version to be released.On the one hand, in compatibility
Property test not by when, the corresponding service request of client functionality is converted into the service compatible with the service of version to be released and is asked
It asks, does not need to roll back to pervious service release, improve testing efficiency, shorten the hair version time of server end;On the other hand, exist
The service of the version to be released of server end is published to before production environment, is published to pre- publication environment in advance, while will be multiple
The client backup packet of version switches to pre- publication environment and does production environment compatibility test in advance, ensure that adequately test verifying
Time reduces the problems in production environment, improves hair version success rate.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows the flow diagram of compatibility test method according to one example embodiment;
Fig. 2 shows the schematic block diagrams of device for testing compatibility according to one example embodiment;
Fig. 3 shows the schematic block diagram of electronic equipment according to one example embodiment;
Fig. 4 shows the schematic diagram of computer readable storage medium according to one example embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms
It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure
Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However,
It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail,
Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step,
It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close
And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
In an exemplary embodiment of the present invention, a kind of compatibility test method, the compatibility test side are provided firstly
The executing subject of method can be the server for carrying out compatibility test, and Fig. 1 diagrammatically illustrates an implementation according to the present invention
The flow chart of the compatibility test method of example.
With reference to shown in Fig. 1, in step s 110, by the pre- hair of the service arrangement of version to be released to the server end
Cloth environment, the service of the version to be released is for handling service logic corresponding with the function of the client.
By version to be released be served by client before, need the service of version to be released and client
Each functional module carries out compatibility test in publication environment in advance, avoids because the collapse of client caused by incompatible is asked
Topic, therefore before carrying out compatibility test, by the pre- publication environment of the service arrangement of version to be released to server end.Originally showing
In example embodiment, the service of version to be released is for handling service logic corresponding with the function of the client, by pending
The service of cloth version can realize service logic corresponding with the function of client in server end, for example, in the function of client
When can be login function, the service of corresponding version to be released can be the business verified to the user name of login, password
Logic.Pre- publication environment belongs to a link of test, is in order to avoid because of test environment and the otherness of production environment etc.
The test leakage of bring defect and the environment set up, configuration etc. is basic consistent with production environment, only in order to not influence on line, takes
Business is independently disposed.
Step S120 backs up the client of multiple versions, generates client backup packet, and the client is standby
Part packet is configured with the configuration logic that can be switched between the pre- publication environment and production environment;
Since compatibility test needs to carry out in publication environment in advance, the service of version to be released can directly be deployed to pre-
Environment is issued, and the client in production environment cannot be placed directly in pre- publication environment, it is therefore desirable to it is backed up for client
Packet addition configuration logic, can realize that client automatically switches in pre- publication environment by configuring logic.In this example reality
Apply in example, production environment refers to the environment for formally providing and externally servicing, it is popular for be exactly finally give user use it is true
Environment.Configuration logic is to switch client backup packet accurately and rapidly between publication environment and production environment in advance
Configuration file, by taking Spring as an example, in Spring can by define profile i.e. configure logic will be several different
Bean definition is organized, to realize the function that varying environment activates different profile to carry out handover configurations parameter automatically.Match
Set logic can solve it is different from production environment configuration parameter due to issuing environment in advance, such as data source, file path, URL (system
One Resource Locator) etc., the problem of each online new version all manual modification environment configurations are cumbersome and easy error.
Client backup packet is switched to the pre- publication environment based on the configuration logic, to institute by step S130
The service for stating each function and the version to be released of client carries out compatibility test;
In an exemplary embodiment of the present invention, client backup packet is switched to pre- publication ring by configuring logic
Border, the service with the aforementioned version to be released for being arranged into pre- publication environment carry out compatibility test.Carrying out compatible survey
When examination, being served by version to be released in client to be tested first, then according to the version information of client to be tested
The test case message that corresponding version is extracted from test case library, using test case information to apply version clothes to be released
The client of business is tested, and server returns to state value according to test result, and system can be sentenced according to the state value of return
Whether the service for version to be released of breaking and client functionality module to be tested are compatible, are sequentially completed to the simultaneous of other version clients
Capacitive test.In this exemplary embodiment, test case message can be one section that analog subscriber uses client functionality module
Program or similar realization rate, test case library are the test cases for storing corresponding different editions different function module
The database of message.
The service request of the function of the client is converted by step S140 when the compatibility test does not pass through
The service request compatible with the service of the version to be released.
In an exemplary embodiment of the present invention, if the service of version to be released and client functionality module it is simultaneous
Capacitive test passes through, open to user by the client backup packet of the version by configuring logic switch into production environment.Such as
The service of fruit version to be released does not pass through with the compatibility test of client functionality module, indicates that new service can not continue to optimize
The old service for upgrading the version client functionality module, needing the old service by the version client functionality module to be converted into can
Support service of the new demand servicing to its optimization and upgrading, i.e., by the service request of the function of the version client be converted into it is described pending
The compatible service request of the service of cloth version.In this exemplary embodiment, service request refers to that client is requested
The instruction of corresponding function module service is provided.It is previously stored with request transitional information in server end, which uses
In the service request of each function of the client of legacy version to be converted into the service request compatible with the service of version to be released.
The server requests transitional information can be according to the service creation of version corresponding with each function of the client of legacy version.Pass through
The service request of the function incompatible with the service of version to be released is converted into the service compatible with the service of version to be released,
It does not need service rollback to pervious version, so as to improve testing efficiency, reduces the service hair version time.
Compatibility test method according to the present exemplary embodiment, on the one hand, will be objective when compatibility test does not pass through
Function corresponding service request in family end is converted into the service request compatible with the service of version to be released, does not need before rolling back to
Service release, improve testing efficiency, shorten the hair version time of server end;On the other hand, in the version to be released of server end
This service is published to before production environment, is published to pre- publication environment in advance, while the client of multiple versions being backed up and is wrapped
It switches to pre- publication environment and does production environment compatibility test in advance, ensure that the adequately test verification time, reduce production ring
The problems in border improves hair version success rate.
In the following, by the compatibility test method of the present exemplary embodiment is further detailed.
In step s 110, by the pre- publication environment of the service arrangement of version to be released to the server end.
In an exemplary embodiment of the present invention, the pre- publication environment an of server end, the pre- publication are built
Environment is configured as not opening the user under production environment, consistent using the system environments formally used with production environment
Data can use the standby database of production environment, can also be with production environment shared database, and system parameter is consistent.?
Before carrying out compatibility test, by the pre- publication environment of the service arrangement of version to be released to server end, compatibility is carried out in advance
Test.Using pre- publication environment can to avoid because of bring defect the problems such as the otherness of test environment and production environment, and
And tested in advance, it is ensured that the adequately test verification time.
In the step s 120, the client of multiple versions is backed up, generates client backup packet, the client
Backup packet in end is configured with the configuration logic that can be switched between the pre- publication environment and production environment.
In an exemplary embodiment of the present invention, when carrying out compatibility test to client, client needs
Switch between pre- publication environment and production environment, thus to client release and multiple historic customer ends version to be released into
Row backup generate backup packet, then for multiple versions client backup packet configuration can in advance publication environment and production environment it
Between the configuration logic that switches.Generating backup packet to client and add configuration logic can be to avoid the client manually to multiple versions
End carries out multiple environment changing, can not only reduce drain on manpower and material resources, reduces the cost of maintenance, and can to avoid because
Manual operation causes the problem of omission, mistake.
In step s 130, client backup packet is switched to by the pre- publication environment based on the configuration logic,
Compatibility test is carried out to the service of each function and the version to be released of the client;
In an exemplary embodiment of the present invention, the version information such as version of client to be tested is obtained first
Number, applicable system, required permissions list etc., then obtained from test case library according to the version information of client and client
The corresponding test case message of function.Test case message is obtained according to the version information of client to be tested, it can be effective
The problems such as omission occurred when avoiding manually selecting, mistake is selected, improves testing efficiency and test accuracy rate.
Further, according to obtained test case message, service request corresponding with the function of client is generated, will
To service request be sent to server end.Server end is parsed upon receipt of a service request, and the data that will be obtained
It returns, may determine that whether the function of corresponding client is normal according to the data of return.If result judgement be it is normal,
The function and the service of version to be released for then determining that client are compatible, conversely, if result judgement is abnormal, it is determined that
The service of the function of client and version to be released is incompatible.The function with client is obtained by the version information of client
Can corresponding test case message, judge the function of client and the service of version to be released according to the data that server returns
Compatibility can effectively improve the accuracy rate of service compatibility judgement, avoid re-starting compatible survey because of error in judgement
Examination increases the problem of testing cost, waste detection time.
In step S140, when the compatibility test does not pass through, the service request of the function of the client is turned
Change the service request compatible with the service of the version to be released into.
In an exemplary embodiment of the present invention, when the functional compatibility test of client does not pass through, clothes are obtained
The request transitional information stored in business end, then will not pass through the client of compatibility test according to the request transitional information of acquisition
The service request of function is converted into the service request compatible with the service of version to be released.By requesting transitional information, in client
When the compatibility of function being held not pass through, the service request of client functionality is converted into automatically compatible with the service of version to be released
Service request, do not need manually to carry out, improve testing efficiency, reduce manpower consumption.
In an exemplary embodiment of the present invention, after compatibility test passes through, according to configuration logic by multiple versions
The backup packet of this client is switched to production environment.Further, the service at end to be serviced is published to after production environment, can be with
The client of new version is switched in production environment, carries out the compatibility test of the client of new version in advance, it is ensured that
The sufficient testing time improves the publication success rate of version, reduces production problem.
It is possible to further be triggered according to the version number of version to be released after the service of version to be released is issued successfully
The service of each server update respective version of server-side can be automatically performed the progress of the service to each server legacy version
Update, not only reduce the consumption of human resources, reduce testing cost, and can shorten that versioning service to be released updates when
Between, so that new service is faster applied to user, promotes user experience.
In an exemplary embodiment of the present invention, according to the configuration logic of client backup packet by the backup of client
Packet is switched to pre- publication environment, specifically, can be based on configuration logic by the database of production environment, system parameter and system
The database for being switched to pre- publication environment, system parameter and system setting are set.
It should be noted that although describing each step of method in the present invention in the accompanying drawings with particular order,
This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole
Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps
Row, and/or a step is decomposed into execution of multiple steps etc..
In addition, in one embodiment of the invention, additionally providing a kind of device for testing compatibility.Fig. 2 is schematically shown
The schematic block diagram of the device for testing compatibility of one embodiment of the present of invention, refering to what is shown in Fig. 2, the device for testing compatibility
200 include: service arrangement unit 210, client backup units 220, compatibility test unit 230 and request converting unit
240。
Wherein, service arrangement unit 210 is used for the pre- publication of the service arrangement of version to be released to the server end
Environment, the service of the version to be released is for handling service logic corresponding with the function of the client;Client backup
Unit 220 generates client backup packet, the client backup packet is matched for backing up the client of multiple versions
It is equipped with the configuration logic that can be switched between the pre- publication environment and production environment;Compatibility test unit 230 is used
In client backup packet is switched to the pre- publication environment based on the configuration logic, to each function of the client
Compatibility test can be carried out with the service of the version to be released;Request converting unit 240 be used for the compatibility test not
By when, the service request of the function of the client is converted into the service compatible with the service of the version to be released and is asked
It asks.
In a kind of exemplary embodiment of the invention, compatibility test unit 230 is configured as: obtaining the client
Version information;It is obtained from test case library according to the version information of the client corresponding with the function of the client
Test case information;Compatibility is carried out to the service of the client and the version to be released based on the test case information
Test.
In a kind of exemplary embodiment of the invention, compatibility test unit 230 is also configured to for based on described
Test case information generates service request corresponding with the function of the client;It will be corresponding with the function of the client
Service request is sent to the server end;The data that the server end returns are parsed, are judged according to the data of the return
Whether the function of the corresponding client is normal;If it is determined that normal, it is determined that the function of the client with it is described to be released
The service of version is compatible;If it is determined that abnormal, it is determined that the function of the client and the service of the version to be released be not simultaneous
Hold.
In a kind of exemplary embodiment of the invention, request converting unit 240 is configured as: obtaining the server end
The request transitional information of middle storage;According to the request transitional information by the service request of the function of the client be converted into
The compatible service request of the service of the version to be released.
In a kind of exemplary embodiment of the invention, the device for testing compatibility includes: backup packet environment changing list
The backup packet of the client is switched to described for after the compatibility test passes through by member based on the configuration logic
Production environment.
In a kind of exemplary embodiment of the invention, the device for testing compatibility further include: service release updates single
Member, for after the compatibility test passes through, the version number of the service based on the version to be released to update the server
The service of the respective version of each server at end.
In a kind of exemplary embodiment of the invention, client backup packet is switched to based on the configuration logic
The pre- publication environment includes: that the database of the production environment, system parameter and system are arranged based on the configuration logic
It is switched to database, system parameter and the system setting of the pre- publication environment.
The detail of each module of device for testing compatibility carries out in corresponding compatibility test method among the above
Detailed description, therefore details are not described herein again.
It should be noted that although being referred to several modules or list of device for testing compatibility 200 in the above detailed description
Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the present invention, additionally providing one kind can be realized above-mentioned compatibility test method
Electronic equipment.Below with reference to Fig. 3, it illustrates the computer systems for the electronic equipment for being suitable for being used to realize the embodiment of the present invention
300 structural schematic diagram.The computer system 300 of electronic equipment shown in Fig. 3 is only an example, should not be implemented to the present invention
The function and use scope of example bring any restrictions.
As shown in figure 3, computer system 300 includes central processing unit (CPU) 301, it can be read-only according to being stored in
Program in memory (ROM) 302 or be loaded into the program in random access storage device (RAM) 303 from storage section 308 and
Execute various movements appropriate and processing.In RAM 303, it is also stored with various programs and data needed for system operatio.CPU
301, ROM 302 and RAM 303 is connected with each other by bus 304.Input/output (I/O) interface 305 is also connected to bus
304。
I/O interface 305 is connected to lower component: the importation 306 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 307 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 308 including hard disk etc.;
And the communications portion 309 of the network interface card including LAN card, modem etc..Communications portion 309 via such as because
The network of spy's net executes communication process.Driver 310 is also connected to I/O interface 305 as needed.Detachable media 311, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 310, in order to read from thereon
Computer program be mounted into storage section 308 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description
Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 309, and/or from detachable media
311 are mounted.When the computer program is executed by central processing unit (CPU) 301, executes and limited in the system of the application
Above-mentioned function.It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be but unlimited
In the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or device, or any above combination.Computer can
The more specific example for reading storage medium can include but is not limited to: electrical connection, portable meter with one or more conducting wires
Calculation machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory
(EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or
The above-mentioned any appropriate combination of person.In the present invention, computer readable storage medium can be it is any include or storage program
Tangible medium, which can be commanded execution system, device or device use or in connection.And in this hair
In bright, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable
Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by
Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium
Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation
Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs
When standby execution, so that the electronic equipment realizes such as above-mentioned compatibility test method as described in the examples.
For example, the electronic equipment may be implemented as shown in Figure 1: step S110, by the service department of version to be released
The pre- publication environment of the server end is affixed one's name to, the service of the version to be released is for handling and the function pair of the client
The service logic answered;Step S120 backs up the client of multiple versions, generates client backup packet, the visitor
Backup packet in family end is configured with the configuration logic that can be switched between the pre- publication environment and production environment;Step
Client backup packet is switched to the pre- publication environment based on the configuration logic, to each of the client by S130
The service of a function and the version to be released carries out compatibility test;Step S140, when the compatibility test does not pass through,
The service request of the function of the client is converted into the service request compatible with the service of the version to be released.
Refering to what is shown in Fig. 4, describing the journey for realizing above-mentioned compatibility test method of embodiment according to the present invention
Sequence product 400, can be using portable compact disc read only memory (CD-ROM) and including program code, and can be in terminal
It is run in equipment, such as PC.However, program product of the invention is without being limited thereto, and in this document, readable storage medium storing program for executing
It can be any tangible medium for including or store program, which can be commanded execution system, device or device and use
Or it is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, being also easy to understand, these processing be can be, such as either synchronously or asynchronously executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
His embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Adaptive change follow general principle of the invention and including the undocumented common knowledge in the art of the present invention or
Conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by claim
It points out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by the attached claims.
Claims (10)
1. a kind of compatibility test method, applied to the system with client and server end characterized by comprising
By the pre- publication environment of the service arrangement of version to be released to the server end, the service of the version to be released is used for
Handle service logic corresponding with the function of the client;
The client of multiple versions is backed up, client backup packet is generated, the client backup packet is configured with energy
Enough configuration logics switched between the pre- publication environment and production environment;
Client backup packet is switched to the pre- publication environment based on the configuration logic, to each of the client
The service of function and the version to be released carries out compatibility test;
When the compatibility test does not pass through, the service request of the function of the client is converted into and the version to be released
The compatible service request of this service.
2. compatibility test method according to claim 1, which is characterized in that each function and institute to the client
The service for stating version to be released carries out compatibility test, comprising:
Obtain the version information of the client;
Test corresponding with the function of the client is obtained from test case library according to the version information of the client to use
Example information;
Compatibility test is carried out to the service of the client and the version to be released based on the test case information.
3. compatibility test method according to claim 2, which is characterized in that based on the test case information to described
The service of client and the version to be released carries out compatibility test, comprising:
Based on the test case information, service request corresponding with the function of the client is generated;
The server end is sent by service request corresponding with the function of the client;
The data that the server end returns are parsed, the function of judging the corresponding client according to the data of the return is
It is no normal;
If it is determined that normal, it is determined that the function of the client is compatible with the service of the version to be released;
If it is determined that abnormal, it is determined that the function of the client and the service of the version to be released are incompatible.
4. compatibility test method according to claim 1, which is characterized in that ask the service of the function of the client
It asks and is converted into the service request compatible with the service of the version to be released, comprising:
Obtain the version information of the client;
The service request of the function of version information and the client based on the client obtains in the server end
The request transitional information of storage;
The service request of the function of the client corresponding with the version information is converted according to the request transitional information
At the service request compatible with the service of the version to be released, wherein the request transitional information is used for will be with the version
The service request of the client of the corresponding version of information is converted into service request corresponding with the service of the version to be released.
5. compatibility test method according to claim 1, which is characterized in that the compatibility test method further include:
After the compatibility test passes through, the backup packet of the client is switched to by the production based on the configuration logic
Environment.
6. compatibility test method according to claim 1, which is characterized in that the compatibility test method further include:
After the compatibility test passes through, the version number of the service based on the version to be released updates the server end
Each server respective version service.
7. compatibility test method according to any one of claim 1 to 6, which is characterized in that patrolled based on the configuration
It collects and client backup packet is switched to the pre- publication environment, comprising:
The setting of the database of the production environment, system parameter and system is switched to the pre- publication based on the configuration logic
Database, system parameter and the system setting of environment.
8. a kind of device for testing compatibility characterized by comprising
Service arrangement unit, for by the pre- publication environment of the service arrangement of version to be released to the server end, it is described to
The service of released version is for handling service logic corresponding with the function of the client;
Client backup units generate client backup packet, the visitor for backing up the client of multiple versions
Backup packet in family end is configured with the configuration logic that can be switched between the pre- publication environment and production environment;
Compatibility test unit, for client backup packet to be switched to the pre- publication ring based on the configuration logic
Border carries out compatibility test to the service of each function and the version to be released of the client;
Converting unit is requested, for when the compatibility test does not pass through, the service request of the function of the client to be turned
Change the service request compatible with the service of the version to be released into.
9. a kind of electronic equipment characterized by comprising
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor
Compatibility test method according to any one of claim 1 to 7 is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor
Shi Shixian compatibility test method according to any one of claim 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811126262.7A CN109491886A (en) | 2018-09-26 | 2018-09-26 | Compatibility test method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811126262.7A CN109491886A (en) | 2018-09-26 | 2018-09-26 | Compatibility test method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109491886A true CN109491886A (en) | 2019-03-19 |
Family
ID=65690026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811126262.7A Pending CN109491886A (en) | 2018-09-26 | 2018-09-26 | Compatibility test method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491886A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000443A (en) * | 2020-09-14 | 2020-11-27 | 支付宝(杭州)信息技术有限公司 | Service data processing method and device and electronic equipment |
CN113411219A (en) * | 2021-06-29 | 2021-09-17 | 山东派盟网络科技有限公司 | Method, device and equipment for publishing front-end service |
CN114020633A (en) * | 2021-11-11 | 2022-02-08 | 北京字节跳动网络技术有限公司 | Application publishing method and device, computer equipment and storage medium |
CN114625630A (en) * | 2020-12-14 | 2022-06-14 | 福建天泉教育科技有限公司 | Testing method and testing system for multi-environment multi-role version release system |
CN115315927A (en) * | 2020-03-26 | 2022-11-08 | 株式会社自动网络技术研究所 | In-vehicle information processing device, information processing method, and client program |
CN115484162A (en) * | 2022-08-24 | 2022-12-16 | 杭州趣链科技有限公司 | Component adaptation method, device, server and storage medium of software system |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6907546B1 (en) * | 2000-03-27 | 2005-06-14 | Accenture Llp | Language-driven interface for an automated testing framework |
CN101789002A (en) * | 2010-01-22 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Database compatibility test device and method for server |
US20120174087A1 (en) * | 2010-12-30 | 2012-07-05 | Sap Ag | Modifying Software Code |
CN103425472A (en) * | 2012-05-23 | 2013-12-04 | 上海计算机软件技术开发中心 | System for dynamically creating software testing environments on basis of cloud computing and method for implementing system |
CN103546330A (en) * | 2012-07-11 | 2014-01-29 | 阿里巴巴集团控股有限公司 | Method, device and system for detecting compatibilities of browsers |
US20140344340A1 (en) * | 2013-05-16 | 2014-11-20 | Vmware, Inc. | Service request processing |
CN104699612A (en) * | 2015-03-25 | 2015-06-10 | 北京嘀嘀无限科技发展有限公司 | Processing method, equipment and system used in software testing |
CN105144118A (en) * | 2013-03-18 | 2015-12-09 | 微软技术许可有限责任公司 | Application testing and analysis |
CN105446868A (en) * | 2014-08-25 | 2016-03-30 | 阿里巴巴集团控股有限公司 | System compatibility testing method, test case management method and related devices |
CN107135516A (en) * | 2017-06-29 | 2017-09-05 | 努比亚技术有限公司 | A kind of parameter testing processing method, mobile terminal and computer-readable recording medium |
CN107315687A (en) * | 2017-06-29 | 2017-11-03 | 环球智达科技(北京)有限公司 | Code method for automatically releasing |
CN107608884A (en) * | 2017-09-12 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of test device and equipment of distributed memory system core client |
-
2018
- 2018-09-26 CN CN201811126262.7A patent/CN109491886A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6907546B1 (en) * | 2000-03-27 | 2005-06-14 | Accenture Llp | Language-driven interface for an automated testing framework |
CN101789002A (en) * | 2010-01-22 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Database compatibility test device and method for server |
US20120174087A1 (en) * | 2010-12-30 | 2012-07-05 | Sap Ag | Modifying Software Code |
CN103425472A (en) * | 2012-05-23 | 2013-12-04 | 上海计算机软件技术开发中心 | System for dynamically creating software testing environments on basis of cloud computing and method for implementing system |
CN103546330A (en) * | 2012-07-11 | 2014-01-29 | 阿里巴巴集团控股有限公司 | Method, device and system for detecting compatibilities of browsers |
CN105144118A (en) * | 2013-03-18 | 2015-12-09 | 微软技术许可有限责任公司 | Application testing and analysis |
US20140344340A1 (en) * | 2013-05-16 | 2014-11-20 | Vmware, Inc. | Service request processing |
CN105446868A (en) * | 2014-08-25 | 2016-03-30 | 阿里巴巴集团控股有限公司 | System compatibility testing method, test case management method and related devices |
CN104699612A (en) * | 2015-03-25 | 2015-06-10 | 北京嘀嘀无限科技发展有限公司 | Processing method, equipment and system used in software testing |
CN107135516A (en) * | 2017-06-29 | 2017-09-05 | 努比亚技术有限公司 | A kind of parameter testing processing method, mobile terminal and computer-readable recording medium |
CN107315687A (en) * | 2017-06-29 | 2017-11-03 | 环球智达科技(北京)有限公司 | Code method for automatically releasing |
CN107608884A (en) * | 2017-09-12 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of test device and equipment of distributed memory system core client |
Non-Patent Citations (1)
Title |
---|
任海鹏;邓春红;汪学文;: "Android操作系统兼容性测试系统研究", 绥化学院学报, no. 03, 5 March 2016 (2016-03-05) * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115315927A (en) * | 2020-03-26 | 2022-11-08 | 株式会社自动网络技术研究所 | In-vehicle information processing device, information processing method, and client program |
CN115315927B (en) * | 2020-03-26 | 2024-01-30 | 株式会社自动网络技术研究所 | Vehicle-mounted information processing device, information processing method, and client program |
CN112000443A (en) * | 2020-09-14 | 2020-11-27 | 支付宝(杭州)信息技术有限公司 | Service data processing method and device and electronic equipment |
CN114625630A (en) * | 2020-12-14 | 2022-06-14 | 福建天泉教育科技有限公司 | Testing method and testing system for multi-environment multi-role version release system |
CN113411219A (en) * | 2021-06-29 | 2021-09-17 | 山东派盟网络科技有限公司 | Method, device and equipment for publishing front-end service |
CN113411219B (en) * | 2021-06-29 | 2023-04-21 | 山东派盟网络科技有限公司 | Front-end service publishing method, device and equipment |
CN114020633A (en) * | 2021-11-11 | 2022-02-08 | 北京字节跳动网络技术有限公司 | Application publishing method and device, computer equipment and storage medium |
CN115484162A (en) * | 2022-08-24 | 2022-12-16 | 杭州趣链科技有限公司 | Component adaptation method, device, server and storage medium of software system |
CN115484162B (en) * | 2022-08-24 | 2024-06-07 | 杭州趣链科技有限公司 | Component adaptation method, device, server side and storage medium of software system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491886A (en) | Compatibility test method, device, electronic equipment and storage medium | |
CN109358858A (en) | Automatically dispose method, apparatus, medium and electronic equipment | |
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN107370786B (en) | General information management system based on micro-service architecture | |
CN109120678A (en) | The method and apparatus of service tray for distributed memory system | |
CN109697075A (en) | File updating method, system and device | |
US11086763B2 (en) | Asynchronous consumer-driven contract testing in micro service architecture | |
CN109446099A (en) | Automatic test cases generation method, device, medium and electronic equipment | |
US10489281B2 (en) | Application monitoring with a decoupled monitoring tool | |
CN108733476A (en) | A kind of method and apparatus executing multitask | |
US20180260201A1 (en) | Intelligent software deployment on an iaas platform | |
CN108694118A (en) | A kind of application testing method and device | |
CN108196877B (en) | The method and apparatus and calculating equipment of component release management | |
CN109614312A (en) | Method for generating test case, device, electronic equipment and storage medium | |
US20210064573A1 (en) | Database deployment objects and deterministic locking models | |
US11249793B2 (en) | Executing a pipeline command sequence designed for execution on a single node across a fleet of nodes | |
CN109299124A (en) | Method and apparatus for more new model | |
US12079112B2 (en) | Intelligent dynamic web service testing apparatus in a continuous integration and delivery environment | |
US11687441B2 (en) | Intelligent dynamic web service testing apparatus in a continuous integration and delivery environment | |
CN110223179A (en) | The data processing method of fund, device, system, medium | |
CN115801873A (en) | Service distribution method, system, electronic device and storage medium | |
CN115860877A (en) | Product marketing method, device, equipment and medium | |
CN109683920A (en) | One kind being based on unity program arranging method and system | |
CN113821430B (en) | Multi-service testing method and device | |
CN111782445A (en) | Configuration method and device of equipment debugging environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd. Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |