[go: up one dir, main page]

CN103810105B - application version detection method and device - Google Patents

application version detection method and device Download PDF

Info

Publication number
CN103810105B
CN103810105B CN201410080872.3A CN201410080872A CN103810105B CN 103810105 B CN103810105 B CN 103810105B CN 201410080872 A CN201410080872 A CN 201410080872A CN 103810105 B CN103810105 B CN 103810105B
Authority
CN
China
Prior art keywords
version
rule
application program
detection
repository
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410080872.3A
Other languages
Chinese (zh)
Other versions
CN103810105A (en
Inventor
杨祖龙
孙雨辰
谢波
梁日惠
吕炜
梁锡坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201410080872.3A priority Critical patent/CN103810105B/en
Publication of CN103810105A publication Critical patent/CN103810105A/en
Application granted granted Critical
Publication of CN103810105B publication Critical patent/CN103810105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a kind of application version detection method and device, wherein, the method includes: read the physical server address of the application program of version to be measured from version repository;The detected rule that the application program of version to be measured set in advance and described associates is obtained from data storage;According to the detected rule obtained, the application program in described physical server address is detected.The present invention solves the technical problem that the detection efficiency caused in prior art is relatively low owing to using manual type to detect each application version in version repository, has reached be effectively improved detection efficiency and improve the purpose of testing result accuracy.

Description

Application version detection method and device
Technical field
The present invention relates to computer software fields, particularly to a kind of application version detection method and device.
Background technology
For large software research and development centre, there are hundreds of application software systems in concurrent development, test simultaneously, respectively apply The test process of software systems specifically includes that integration testing, system testing, operation simulation test.Application software system After exploitation completes, need compiling packing program version, and be submitted in the version repository of correspondence, carry out version integrality After the detection of basis, then unification carries out installation and deployment to corresponding environment.Test by rear a stage, stream Turn and be submitted in the version repository of next stage and corresponding test environment test.
During program version is submitted to version repository and carries out version detection, the version detection side currently mainly used The main still manual detection method of method, simultaneously because different test phase exists multiple version repository, each version repository needs Submitting hundreds of application versions to, it is therefore desirable to expend a large amount of manpower and detect, testing efficiency is low and easily makes mistakes.
Summary of the invention
Embodiments provide a kind of application version detection method, to reach be effectively improved detection efficiency and carry The purpose of high detection result accuracy, the method includes:
The physical server address of the application program of version to be measured is read from version repository;
The detected rule that the application program of version to be measured set in advance and described associates is obtained from data storage;
According to the detected rule obtained, the application program in described physical server address is detected.
In one embodiment, read from version repository version to be measured application program physical server address it Before, said method also includes:
Receive the detection that user is detected by the application program at least one version to be measured that detection terminal is initiated Request;
Access the version repository that the application program place of institute's request detection is asked in described detection.
In one embodiment, the detected rule that the application program with described version to be measured associates includes: general rule and / or User Defined detected rule.
In one embodiment, described User Defined detected rule generates in such a way:
Receive the detected rule title of user's input, and the detected rule type that user selects;
In the case of determining that the detected rule type that user selects is User Defined rule type, receive user's input Custom rule content;
Generate the User Defined detected rule including detected rule title and custom rule content, and by described user Self-defined detected rule is saved in described data storage.
In one embodiment, read from version repository version to be measured application program physical server address it Before, said method also includes:
Receiving the version repository maintenance request of user's input, wherein, described version repository maintenance request includes at least one of: Newly-increased version repository, deletion version repository, revision storehouse;
According to described version repository maintenance request, version repository is safeguarded.
In one embodiment, the physics clothes of the application program of multiple versions of version repository one application program of storage Business device address.
In one embodiment, from data storage, obtain the application program with described version to be measured set in advance to close The detected rule of connection, including:
The application manifest of described version to be measured is obtained, wherein, in described application manifest from described version repository There is the instruction information of the detected rule that the application program with described version to be measured associates;
The detection that the application program of version to be measured set in advance and described associates is obtained according to described application manifest Rule.
Embodiments provide a kind of application version detection device, to reach be effectively improved detection efficiency and carry The purpose of high detection result accuracy, this device includes:
Read unit, for reading the physical server address of the application program of version to be measured from version repository;
Acquiring unit, associates for obtaining the application program of version to be measured set in advance and described from data storage Detected rule;
Detector unit, for according to the detected rule obtained, carrying out the application program in described physical server address Detection.
In one embodiment, said apparatus also includes:
First receives unit, is used in the physical server address of the application program reading version to be measured from version repository it Before, receiving user please by the detection that the application program at least one version to be measured that detection terminal is initiated detects Ask;
Access unit, for accessing the version repository that the application program place of institute's request detection is asked in described detection.
In one embodiment, the detected rule that the application program with described version to be measured associates includes: general rule and / or User Defined detected rule.
In one embodiment, said apparatus also includes: rule generating unit, for generating user in such a way Self-defined detected rule:
Receive the detected rule title of user's input, and the detected rule type that user selects;
In the case of determining that the detected rule type that user selects is User Defined rule type, receive user's input Custom rule content;
Generate the User Defined detected rule including detected rule title and custom rule content, and by described user Self-defined detected rule is saved in described data storage.
In one embodiment, said apparatus also includes:
Second receives unit, is used in the physical server address of the application program reading version to be measured from version repository it Before, receive the version repository maintenance request of user's input, wherein, described version repository maintenance request includes at least one of: Newly-increased version repository, deletion version repository, revision storehouse;
Maintenance unit, for safeguarding version repository according to described version repository maintenance request.
In one embodiment, the physics clothes of the application program of multiple versions of version repository one application program of storage Business device address.
In one embodiment, described acquiring unit includes:
Inventory acquisition module, for obtaining the application manifest of described version to be measured from described version repository, wherein, Described application manifest has the instruction information of the detected rule that the application program with described version to be measured associates;
Rule acquisition module, for according to described application manifest obtain set in advance with described version to be measured should Detected rule with program association.
In embodiments of the present invention, from version repository, determine the physical server address of application program to be measured, the most true The detected rule of the application program of fixed version to be measured, finally enters the application program of this version according to the detected rule determined Row detection, so that be no longer necessary to manually detect.Solve by the way in prior art owing to using The relatively low technology of detection efficiency that each application version in version repository is detected and causes by manual type is asked Topic, has reached be effectively improved detection efficiency and improve the purpose of testing result accuracy.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the application version detection method flow chart of the embodiment of the present invention;
Fig. 2 is the method flow diagram of embodiment of the present invention User Defined special rules;
Fig. 3 is that the overall physics of the application version detecting system of the embodiment of the present invention disposes Organization Chart;
Fig. 4 is the overall logic schematic diagram of the application version detecting system of the embodiment of the present invention;
Fig. 5 is the general function flow chart of the application version detecting system of the embodiment of the present invention;
Fig. 6 is the process chart of embodiment of the present invention version repository maintenance unit;
Fig. 7 is the process chart of the detected rule maintenance unit of the embodiment of the present invention;
Fig. 8 is the module diagram of the version detection unit of the embodiment of the present invention;
Fig. 9 is the process chart of the version detection unit of the embodiment of the present invention;
Figure 10 is the structured flowchart of the application version detection device of the embodiment of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, The present invention is described in further details.Here, the exemplary embodiment of the present invention and explanation thereof are used for explaining this Bright, but not as a limitation of the invention.
Embodiments provide a kind of application version detection method, as it is shown in figure 1, comprise the following steps:
Step 101: read the physical server address of the application program of version to be measured from version repository;
Step 102: obtain the inspection that the application program of version to be measured set in advance and described associates from data storage Gauge is then;
Step 103: according to the detected rule obtained, the application program in described physical server address is detected.
In the above-described embodiments, from version repository, determine the physical server address of application program to be measured, determine the most again The detected rule of the application program of version to be measured, is finally carried out the application program of this version according to the detected rule determined Detection, so that be no longer necessary to manually detect.Solve by the way in prior art owing to using people The technical problem that detection efficiency that each application version in version repository is detected and causes by work mode is relatively low, Reach be effectively improved detection efficiency and improve the purpose of testing result accuracy.
Above-mentioned detection can be triggered by a detection request, and this detection request can be to trigger certainly The program of certain version of certain application program is detected, it is also possible to be to trigger all versions to all application programs Originally detect.In one embodiment, at the physical services of the application program reading version to be measured from version repository Before device address, said method also includes: receive user by detection terminal initiate at least one version to be measured Application program carries out the detection request detected;Access the version that the application program place of institute's request detection is asked in described detection Storehouse.Concrete, needing first to connect this version repository when of accessing version repository, a version repository can a corresponding application Program, it is also possible to corresponding multiple application programs, can store multiple versions of an application program in i.e. one version repository The physical server address of application program, it is also possible to store the physical server ground of multiple versions of multiple application program Location, so-called physical server address is exactly the storage address of the practical programs of the version of these application programs.
Meanwhile, because detected rule having been stored in fixing data storage, therefore without submitting version to all every time Carry out the configuration of detected rule, if follow-up to detected rule without newly-increased or amendment, can subtract without again configuring Lack Operating Complexity.
If it is considered that all of application version is all detected according to same detected rule, then it is difficult to full The requirement of foot autgmentability, some current automatic testing methods lack good extensibility, such as: lack program The integrity detection of each subroutine module in version, or lack different editions storehouse or different application version The special detection of internal module, because can answer for the particular/special requirement of varying environment test phase version repository or difference Special detection method is set with the concrete version of program, detection rule are set by the self-defined mode being manually set Then.It is to say, the detected rule of above-mentioned application version association includes: general rule and/or user make by oneself The special rules of justice, concrete, above-mentioned User Defined special rules can be as in figure 2 it is shown, comprise the following steps:
Step 201: receive the detected rule title of user's input, and the detected rule type that user selects;
Step 202: in the case of determining that the detected rule type that user selects is User Defined rule type, connect Receive the custom rule content of user's input;
Step 203: generate the User Defined detected rule including detected rule title and custom rule content, and Described User Defined detected rule is saved in described data storage.
Preserving User Defined special rules when, system can automatically generate rule numbers, if needing to delete This rule, then user directly can delete by the way of selecting rule numbers.
Above-mentioned detected rule is mainly made up of detection statement and expectation detected value, and so-called expectation detected value is exactly The value that should return after performing to detect successfully, such as, can version bag normally decompress detected rule item, if decompression is then Success returns " true ", decompresses the most then return " false ", then desired value is exactly " true ".
Also being to need to safeguard for version repository, main attended operation includes: newly-increased version repository, revision storehouse, Delete version repository, import the application version inventory etc. corresponding with version repository.Concrete execution can be to include: receives The version repository maintenance request of user's input, safeguards version repository according to described version repository maintenance request.
When being embodied as, from data storage, obtain what the application program of version to be measured set in advance and described associated Detected rule, may include that the application manifest obtaining version to be measured from version repository, and wherein, application program is clear The instruction information of the detected rule that Dan Zhongyou associates with the application program of described version to be measured;Clear according to described application program The detected rule that single application program obtaining version to be measured set in advance and described associates.
In each embodiment above-mentioned, version repository may include that version repository, the system testing that integration testing environment is corresponding Version repository that environment is corresponding, the version repository that operation simulation test environment is corresponding, such that it is able to carry out application version Detection in all directions.
Below in conjunction with a specific embodiment, the present invention is specifically described, it is important to note, however, that this is concrete Embodiment, merely to better illustrate the present invention, is not intended that inappropriate limitation of the present invention.
2) a kind of extendible application version detecting system and method are provided in this example, by Unified Set Detection platform the application version storehouse of each different phase of large software research and development centre is carried out Aulomatizeted Detect, and The version detection situation very first time is notified each application system operation maintenance personnel, thus alleviates manual detection application program version This pressure, prevents human negligence and the many submissions of application version caused, wrong situation about submitting to or leak submission.
Below this application version detecting system is specifically described:
For large software research and development centre, each application software system is more, and different software system item component be you can well imagine and handed over greatly The complex situations such as amount application version, in the present system, it is provided that the detection platform in Unified Set, improve detection efficiency, Detect the submission of Software Edition on the whole, it is to avoid manual detection efficiency is low and the problem that easily goes wrong.Logical Crossing the configuration work of simple version detection, rule configuration information to be detected of each version repository and application program being correlated with recorded In database, solve and submit to version to be required for reconfiguring the problem of initial detecting Rule Information every time, by this be System carries out software detection, it is only necessary to configure using for the first time when, and subsequent detection rule is without newly-increased Or amendment, then without again configuring.
Further also existing version detection method is extended, in addition to conventional detection method, it is also possible to right In program version, each subroutine module carries out the Function detection such as integrality, and user can the most self-defined version detection Rule, can arrange special detection for the particular/special requirement of varying environment stage version repository or different application version Method, is with good expansibility.Such as: the testing requirement of different stage can be set for multiple version repository, As system testing environment version repository arranges low-level testing requirement, operation simulation test environment version repository arranges high-level Testing requirement, for the application version that certain is concrete, it is also possible to further compressed package in refinement detection version The special detection points such as the bibliographic structure in subroutine module compressed package several, each, initialization installation configuration information are the most correct, From many aspects application version can be detected, to improve accuracy and the environment maintenance efficiency of version detection.
This system is as it is shown on figure 3, include: database server 301, application server 302, detection terminal 303, Intranet 304, version repository 305 and version repository 306, be specifically described this structure below:
Database service 301, disposes database storage unit (the most above-mentioned data storage) on the apparatus, its In, including: database software system, version detection system database example and table space, it is used for storing this detection system The related versions database data information of system, application version inventory information, version detection rule configuration information etc..
Application server 302, on the apparatus dispose detecting system core application, comprise version repository maintenance unit, Detected rule maintenance unit and version detection unit.
Detection terminal 303, for native system, user provides human-computer interaction interface.
Intranet 304, for connecting the network between version detection system and multiple version repository, generally local Net, can be wired or wireless network.
Version repository 305 and version repository 306, refer to need to include in each stage version repository of detection, including device 305 version Storehouse 1, device 306 version repository N(N are natural number, more than or equal to 1, and a most at least version repository, it is also possible to Have multiple).
Concrete implementation logic is as shown in Figure 4:
Detection terminal 401, it is provided that human-computer interaction interface, is the input in system and output device:
1) as input unit, user is by this device maintenance release storehouse information and detected rule information, i.e. input is each The information such as the detected rule associated by application version inventory that version repository is to be submitted and application version;
2) as output device, this device can show each application version testing result information in current version storehouse.
Detection terminal and detected rule maintenance unit 403, version repository maintenance unit 402 and version detection unit 405 it Between have a data interaction:
1) using detection terminal to initiate detected rule maintenance request, detected rule maintenance unit 403 receives this request, Carry out the maintenance of detected rule information;
2) using detection terminal to initiate version repository maintenance request, version repository maintenance unit 402 receives this request, carries out The maintenance of version repository information;
3) using detection terminal to initiate version detection request, version detection unit 405 receives this request, carries out version Detection, and testing result information is sent to detect terminal represent.
Below above three unit is specifically described:
Version repository maintenance unit 402, is deployed on detecting system application server, safeguards all version repository information, with And application version inventory under each version repository, specifically include: input or revision library name, version repository institute is set The relevant information of corresponding server, it is determined whether amendment application version inventory, if it is imports this version repository The application version inventory of all management, if not being then saved into database storage unit.
Detected rule maintenance unit 403, is deployed on detecting system application server, it is provided that the dimension of version detection rule Protective function.System is to the initial detecting rule of each application distribution acquiescence, such as: can detection version bag normally decompress, Whether version bag bibliographic structure meets the rule etc. of this version repository.Each application simultaneously can increase association special detection rule newly Then, for example, it is possible to DBM in compressed package number, application version in refinement detection application version SQL script detections etc., detect application version from many aspects, to realize effective extension of system.That is, For the application version in all version repository, the general detected rule of existing acquiescence, existing detection can be extended again Rule, thus increase the detection of special rules item.
Database storage unit 404, is deployed on detecting system database server, for storing this detecting system Related data, includes in data block memory cell: application to be submitted in version repository configuration information, version repository The information such as the detected rule associated by program version inventory and application version.Data block memory cell 404 and detection Rule maintenance unit 403, have data interaction between version repository maintenance unit 402 and version detection unit 405, inspection Gauge then maintenance unit 403 reads dependency rule information from database storage unit 404, and detected rule is safeguarded single simultaneously Unit's 403 amended Rule Informations are also saved in database storage unit 404;Version repository maintenance unit 402 is from number Reading related versions storehouse information according to library storage unit, the amended Rule Information of version repository maintenance unit is also saved in simultaneously In database storage unit;Version detection unit reads related versions inventory and detected rule letter from database storage unit Breath, related test results information is saved in database storage unit by version detection unit simultaneously.
Version detection unit 405, is deployed on detecting system application server, version detection unit and database purchase Unit interacts, and first version detection unit circulates reading each version repository application to be committed from database storage unit Program version inventory, and according to the application name in application version inventory, program version numbering, reading should The information such as the rule to be detected associated by application version, and access the reality of storage on this version repository physical server Version medium, detects one by one the rule to be detected associated by program version, testing result is saved in database Memory cell, sends testing result to described detection terminal simultaneously.Version detection unit and database storage unit, Detection has data communication and mutual between terminal, each version repository.
Version repository 406 and 407, the number of version repository can be one or more, and version repository depends on physical server Storage, is used for depositing application version medium.
The handling process of general function is as it is shown in figure 5, system maintenance personnel (such as: version repository operation maintenance personnel) pass through Detection terminal, initiates to ask as follows:
1) version repository maintenance request, version repository maintenance unit receives this request, carries out each version repository maintenance of information and each The attended operation of application version inventory under version repository.Increase, modify or delete version repository information, newly-increased, amendment Or delete application version inventory, and relevant information is saved in database storage unit, and it is sent to detection eventually End.
2) detected rule maintenance request, detected rule maintenance unit receives this request, carries out applying under each version repository Program version detected rule attended operation.Increase, modify or delete the regularization term to be detected associated by each application program. Relevant information is saved in database storage unit, and is sent to detect terminal.
3) version detection request, after the rule to be detected associated by all application programs has been safeguarded, can start version This detector unit, detection terminal initiates version detection asks, and version detection unit receives this request, in each version repository Application version detects automatically.Relevant information is saved in database storage unit, and testing result is sent out Give detection terminal demonstration.
Concrete operations to above-mentioned several unit below are described:
1) version repository maintenance unit, main operation to be performed has:
Increase newly or revision storehouse: user inputs version repository title, fills in server address corresponding to this version repository and deposits Put the file system path of version, bibliographic structure etc..
Delete version repository: user selects version repository title, directly deletes, and lower of this version repository of synchronization removal is relevant The application manifest of connection.
Importing application version inventory: user selects version repository title, being introduced directly into that this version repository institute is related should Use program version inventory.
The most as shown in Figure 6, comprise the following steps:
Step 601: input or revision library name, version repository correspondence different phase, such as: development environment version Storehouse, integration testing environment version repository, system testing environment version repository etc..
Step 602: the relevant information of server corresponding to version repository is set, including: the reality that this version repository is corresponding Physical server address, deposit the file system path of version, deposit the bibliographic structure etc. of version.
Step 603: judge whether to need to revise application version inventory, if desired for amendment, then perform 604;As Need not amendment, then transfer execution 605.
Step 604: importing this related application version inventory of version repository, wherein, application version is clear Singly include: the details such as the submission date of application version, the title of application system and application version number.
Step 605: be saved in database storage unit, i.e. by above version repository and the phase of application version inventory Pass information is saved in database storage unit, in order to version detection module is called.
2) detected rule maintenance unit, main operation to be performed has:
Increase newly or alteration ruler flow process: user's input rule title, select detection type, fill in special detected rule Content, such as: SQL statement, SHELL script, User Defined rule etc., fills in expectation detected value.Protecting When depositing this rule, system automatically generates rule numbers, and is saved in database storage unit.
Deletion rule flow process: user selects rule numbers, directly deletes, synchronization removal relevant this rule Rule numbers in application manifest.
Detected rule type, main type includes: general rule and special rules, and wherein, general rule is mainly The Compress softwares detection of common version bag, the number detection etc. of compressed package;Special rules refers to User Defined Detected rule, such as can be detected by SQL statement, SHELL script detects, other special detection rule. These Rule Informations are saved in database storage unit, and referred to as " detected rule table ", its primary fields information can With as shown in table 1:
Table 1
Concrete as it is shown in fig. 7, comprises following steps:
Step 701: input or alteration ruler title, wherein, the title of rule is revisable.
Step 702: select detection type, can select general rule or special rules type, can be by detection It is to do what kind of detection that type identifies this rule.
Step 703: judge to detect whether type is general detection type, if general detection type, then then hold Row 705;If not, perform 704.
Step 704: according to the type of special rules, corresponding input SQL detection statement, SHELL detection script, Or User Defined detected rule content.
Step 705: input expectation detected value, according to detection type, the value that should return after performing to detect successfully.Example As: can version bag normally decompress detected rule item, successfully returns true if decompressing, and decompresses and the most then returns false, Then desired value should extend this as true.
Step 706: automatically generate rule numbers, rule numbers is unique, the corresponding numbering of each detected rule, One application version may corresponding multiple detected rule.
Step 707: above relevant information is saved in " detected rule table ", simultaneously according to detection type, by its group It is made into detected rule to perform order and (such as: version bag can normally decompress, then generate and such as issue orders: " if unzip is True "), the execution order of detected rule numbering and correspondence is saved in database storage unit, and " detected rule performs life Make table " in, in order to version detection module is called.
3) version detection unit is as shown in Figure 8, specifically includes that version repository connects unit 801, version inventory reads Unit 802, detected rule acquiring unit 803, detection performance element 804, testing result output unit 805, below These unit are specifically described:
Version repository connects unit 801, is used for connecting version repository servers, read server address corresponding to version repository and Deposit the file system path of version, bibliographic structure.
Version inventory reads unit 802, reads application version inventory letter each version repository from database storage unit Breath, wherein inventory information includes: version repository title, the application version submission date, application system title, The information such as application version number.
Detected rule acquiring unit 803, according to application version inventory, from database storage unit " detected rule Table " the middle detected rule information obtained associated by this application version.
Detection performance element 804, according to information such as acquired version repository, application version inventory, detected rule, Application version each under version repository is detected by detected rule.
Testing result output unit 805, output detections object information is to detection terminal and database storage unit.
4) version detection unit, concrete handling process is as it is shown in figure 9, include:
Step 901: version repository connects unit circulation and connects each version repository, in order to detect each version repository.
Step 902: version inventory reads unit and is successively read version repository application version to be committed inventory.
Step 903: often read a version inventory record, detected rule acquiring unit obtains all of this version association Detected rule item.
Step 904: detection performance element accesses corresponding actual version medium, to be detected according to associated by this version Version medium is detected by regularization term, it may be judged whether meet every detected rule, it is judged that this version is the most normal.
Step 905: judge that testing result is the most normal, as abnormal, then perform 906;As normally, then perform 907.
Step 906: testing result output unit preserves error message to database storage unit, in order to detection terminal exhibition Existing.
Step 907: testing result output unit preserves correct information to database storage unit, in order to detection terminal exhibition Existing.
Step 908: version inventory reads whether this version repository of unit judges version to be committed all records of inventory have read Become, as read, then perform 909;Not completing, then return 902, next is to be committed to continue cycling through reading Version inventory record.
Step 909: testing result output unit sends testing result information to detection terminal, in order to operation maintenance personnel is checked Result.
Step 910: version repository connects whether unit judges all version repository record has read, as the most just read Often terminate this detection, as do not read, then return 901, be connected to next version repository and detect.
In this example, system manager uses detection terminal to initiate parameter maintenance request, version repository maintenance unit and detection Rule maintenance unit receives this request, carries out parameter maintenance operation, as arranged version repository relevant configuration information, importing version This storehouse version to be committed inventory, defining all detected rule, arranging each application version under each version repository needs association Detected rule;System maintenance librarian use detection terminal initiates version detection request, and version detection unit receives should Ask, start detection to version repository, can the inspection of each application version in this version repository of real time inspection at detection interface Survey result, during for detection exception, detailed reason can be checked, in order to rectification is perfect further;System maintenance people Member can also use detection terminal to initiate version statistics request, and version statistic unit receives this request, can check each version The detection statistics analytical statement in this storehouse, same application version detection statistics form in different phase version repository, with Just this application item group Analysis of Policy Making it is supplied to.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of application version detection device, as follows Described in the embodiment in face.Owing to application version detection device solves principle and the application version detection side of problem Method is similar, and therefore the enforcement of application version detection device may refer to the enforcement of application version detection method, Repeat no more in place of repetition.Used below, term " unit " or " module " can realize predetermined function Software and/or the combination of hardware.Although the device described by following example preferably realizes with software, but firmly Part, or the realization of the combination of software and hardware also may and be contemplated.Figure 10 is answering of the embodiment of the present invention With a kind of structured flowchart of program version detection device, as shown in Figure 10, including: read unit 1001, obtain single Unit 1002 and detector unit 1003, illustrate this structure below.
Read unit 1001, for reading the physical server address of the application program of version to be measured from version repository;
Acquiring unit 1002, for obtaining set in advance and described version to be measured application journey from data storage The detected rule of sequence association;
Detector unit 1003, for according to the detected rule obtained, to the application journey in described physical server address Sequence detects.
In one embodiment, above-mentioned application version detection device also include: first receive unit, for from Before the physical server address of the application program reading version to be measured in version repository, receive user and sent out by detection terminal The detection request that the application program at least one version to be measured risen detects;Access unit, be used for accessing described The version repository at the application program place of institute's request detection is asked in detection.
In one embodiment, the detected rule that the application program with described version to be measured associates includes: general rule and / or User Defined detected rule.
In one embodiment, above-mentioned application version detection device also include: rule generating unit, for according to In the following manner generates User Defined detected rule: receive the detected rule title of user's input, and the inspection that user selects Survey rule type;In the case of determining that the detected rule type that user selects is User Defined rule type, receive The custom rule content of user's input;Generate and include detected rule title and the User Defined of custom rule content Detected rule, and described User Defined detected rule is saved in described data storage.
In one embodiment, above-mentioned application version detection device also include: second receive unit, for from Before the physical server address of the application program reading version to be measured in version repository, receive the version repository dimension of user's input Protecting request, wherein, described version repository maintenance request includes at least one of: newly-increased version repository, delete version repository, Revision storehouse;Maintenance unit, for safeguarding version repository according to described version repository maintenance request.
In one embodiment, version repository stores the thing of application program of multiple versions of at least one application program Reason server address.
In one embodiment, described acquiring unit includes: inventory acquisition module, for obtaining from described version repository Take the application manifest of described version to be measured, wherein, described application manifest has with described version to be measured should Instruction information with the detected rule of program association;Rule acquisition module, for obtaining according to described application manifest The detected rule that the application program of version to be measured set in advance and described associates.
In another embodiment, additionally providing a kind of software, this software is used for performing above-described embodiment and the most real Execute the technical scheme described in mode.
In another embodiment, additionally providing a kind of storage medium, in this storage medium, storage has above-mentioned software, This storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc..
As can be seen from the above description, the embodiment of the present invention achieves following technique effect: from version repository really The physical server address of fixed application program to be measured, determines the detected rule of the application program of version to be measured the most again, According to the detected rule determined, the application program of this version is detected eventually, so that be no longer necessary to manually examine Survey.Solve by the way in prior art owing to using manual type to each application program version in version repository Originally the technical problem that the detection efficiency that carries out detecting and cause is relatively low, has reached be effectively improved detection efficiency and improve detection The purpose of result accuracy.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step are permissible Realizing with general calculating device, they can concentrate on single calculating device, or is distributed in multiple calculating On the network that device is formed, alternatively, they can realize with calculating the executable program code of device, thus, Can be stored in storing in device and be performed by calculating device, and in some cases, can be to be different from The step shown or described by order execution herein, or they are fabricated to respectively each integrated circuit modules, or Multiple modules in them or step are fabricated to single integrated circuit module and realize by person.So, the embodiment of the present invention It is not restricted to any specific hardware and software combine.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the embodiment of the present invention can have various modifications and variations.All within the spirit and principles in the present invention, Any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. an application version detection method, it is characterised in that including:
The physical server address of the application program of version to be measured is read from version repository;
The detected rule that the application program of version to be measured set in advance and described associates is obtained from data storage;
According to the detected rule obtained, the application program in described physical server address is detected;
Wherein, the detected rule that the application program with described version to be measured associates includes: general rule and User Defined Detected rule, wherein, described User Defined detected rule generates in such a way: receive user's input Detected rule title, and the detected rule type that user selects;Determining that the detected rule type that user selects is user In the case of custom rule type, receive the custom rule content of user's input;Generation includes detected rule title With the User Defined detected rule of custom rule content, and described User Defined detected rule is saved in described In data storage.
2. the method for claim 1, it is characterised in that in the application reading version to be measured from version repository Before the physical server address of program, described method also includes:
Receive the detection that user is detected by the application program at least one version to be measured that detection terminal is initiated Request;
Access the version repository that the application program place of institute's request detection is asked in described detection.
3. the method for claim 1, it is characterised in that in the application reading version to be measured from version repository Before the physical server address of program, described method also includes:
Receiving the version repository maintenance request of user's input, wherein, described version repository maintenance request includes at least one of: Newly-increased version repository, deletion version repository, revision storehouse;
According to described version repository maintenance request, version repository is safeguarded.
4. method as claimed any one in claims 1 to 3 a, it is characterised in that version repository stores at least The physical server address of the application program of multiple versions of one application program.
5. method as claimed any one in claims 1 to 3, it is characterised in that obtain from data storage The detected rule that the application program of version to be measured set in advance and described associates, including:
The application manifest of described version to be measured is obtained, wherein, in described application manifest from described version repository There is the instruction information of the detected rule that the application program with described version to be measured associates;
The detection that the application program of version to be measured set in advance and described associates is obtained according to described application manifest Rule.
6. an application version detection device, it is characterised in that including:
Read unit, for reading the physical server address of the application program of version to be measured from version repository;
Acquiring unit, associates for obtaining the application program of version to be measured set in advance and described from data storage Detected rule;
Detector unit, for according to the detected rule obtained, carrying out the application program in described physical server address Detection;
Wherein, the detected rule that the application program with described version to be measured associates includes: general rule and User Defined Detected rule, wherein, described User Defined detected rule generates in such a way: receive user's input Detected rule title, and the detected rule type that user selects;Determining that the detected rule type that user selects is user In the case of custom rule type, receive the custom rule content of user's input;Generation includes detected rule title With the User Defined detected rule of custom rule content, and described User Defined detected rule is saved in described In data storage.
7. device as claimed in claim 6, it is characterised in that also include:
First receives unit, is used in the physical server address of the application program reading version to be measured from version repository it Before, receiving user please by the detection that the application program at least one version to be measured that detection terminal is initiated detects Ask;
Access unit, for accessing the version repository that the application program place of institute's request detection is asked in described detection.
8. device as claimed in claim 6, it is characterised in that also include:
Second receives unit, is used in the physical server address of the application program reading version to be measured from version repository it Before, receive the version repository maintenance request of user's input, wherein, described version repository maintenance request includes at least one of: Newly-increased version repository, deletion version repository, revision storehouse;
Maintenance unit, for safeguarding version repository according to described version repository maintenance request.
9. the device as according to any one of claim 6 to 8 a, it is characterised in that version repository stores at least The physical server address of the application program of multiple versions of one application program.
10. the device as according to any one of claim 6 to 8, it is characterised in that described acquiring unit includes:
Inventory acquisition module, for obtaining the application manifest of described version to be measured from described version repository, wherein, Described application manifest has the instruction information of the detected rule that the application program with described version to be measured associates;
Rule acquisition module, for according to described application manifest obtain set in advance with described version to be measured should Detected rule with program association.
CN201410080872.3A 2014-03-06 2014-03-06 application version detection method and device Active CN103810105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410080872.3A CN103810105B (en) 2014-03-06 2014-03-06 application version detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410080872.3A CN103810105B (en) 2014-03-06 2014-03-06 application version detection method and device

Publications (2)

Publication Number Publication Date
CN103810105A CN103810105A (en) 2014-05-21
CN103810105B true CN103810105B (en) 2016-08-31

Family

ID=50706901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410080872.3A Active CN103810105B (en) 2014-03-06 2014-03-06 application version detection method and device

Country Status (1)

Country Link
CN (1) CN103810105B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428788B (en) * 2017-09-05 2022-07-01 阿里巴巴集团控股有限公司 Function testing method and system
CN109493165A (en) * 2018-10-18 2019-03-19 上海掌门科技有限公司 The test method and equipment of blacklist rule
CN109725702A (en) 2018-12-28 2019-05-07 三星电子(中国)研发中心 A smart terminal energy-saving method and device based on AI prediction
CN110389903B (en) * 2019-07-19 2023-08-22 中国工商银行股份有限公司 Test environment deployment method and device, electronic device and readable storage medium
CN111177176B (en) * 2019-11-18 2023-05-16 腾讯科技(深圳)有限公司 Data detection method, device and storage medium
CN113448855B (en) * 2021-07-07 2024-11-29 中国工商银行股份有限公司 Database version package detection method and device
CN114328184B (en) * 2021-12-01 2024-05-17 重庆长安汽车股份有限公司 Big data cloud testing method based on vehicle-mounted Ethernet architecture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739411A (en) * 2008-11-20 2010-06-16 英业达股份有限公司 Mapping type file version management method
CN101789888A (en) * 2010-01-12 2010-07-28 腾讯科技(深圳)有限公司 Detection method and device for software installation
CN102081722A (en) * 2011-01-04 2011-06-01 奇智软件(北京)有限公司 Method and device for protecting appointed application program
CN102736978A (en) * 2012-06-26 2012-10-17 奇智软件(北京)有限公司 Method and device for detecting installation status of application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739411A (en) * 2008-11-20 2010-06-16 英业达股份有限公司 Mapping type file version management method
CN101789888A (en) * 2010-01-12 2010-07-28 腾讯科技(深圳)有限公司 Detection method and device for software installation
CN102081722A (en) * 2011-01-04 2011-06-01 奇智软件(北京)有限公司 Method and device for protecting appointed application program
CN102736978A (en) * 2012-06-26 2012-10-17 奇智软件(北京)有限公司 Method and device for detecting installation status of application program

Also Published As

Publication number Publication date
CN103810105A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
CN103810105B (en) application version detection method and device
US11030166B2 (en) Smart data transition to cloud
Chen et al. Detecting performance anti-patterns for applications developed using object-relational mapping
US6182245B1 (en) Software test case client/server system and method
CN107665171B (en) Automatic regression testing method and device
CN103631713B (en) ERP software automatization test system and method
WO2019085061A1 (en) Automatic test management method, apparatus and device for fund system, and storage medium
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
US9886369B2 (en) Dynamic data fabrication for database applications
US20110258609A1 (en) Method and system for software defect reporting
CN111506511A (en) Test case generation method and device, electronic equipment and medium
US20140237450A1 (en) Test data generation utilizing analytics
US20230244542A1 (en) System and method for automatically identifying application groups in container deployment environments
CN109783341A (en) Regression testing method and device
US8661414B2 (en) Method and system for testing an order management system
CN111563031A (en) Game resource checking method, system, storage medium and computing device
EP3657351B1 (en) Smart data transition to cloud
US20230131643A1 (en) System and method for reference-aware application identification in container deployment environments
CN111752841A (en) Single test simulation method, apparatus, device and computer readable storage medium
CN114490337A (en) Commissioning method, commissioning platform, equipment and storage medium
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium
US20210073018A1 (en) Enhanced virtual machine image management system
CN116483888A (en) Program evaluation method and device, electronic equipment and computer readable storage medium
US10572669B2 (en) Checking for unnecessary privileges with entry point finder
CN110716863A (en) Method, system, terminal and storage medium for testing mandatory access control rule

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant