CN103810105A - Method and device for detecting application program version - Google Patents

Method and device for detecting application program version Download PDF

Info

Publication number
CN103810105A
CN103810105A CN201410080872.3A CN201410080872A CN103810105A CN 103810105 A CN103810105 A CN 103810105A CN 201410080872 A CN201410080872 A CN 201410080872A CN 103810105 A CN103810105 A CN 103810105A
Authority
CN
China
Prior art keywords
version
rule
detection
application program
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.)
Granted
Application number
CN201410080872.3A
Other languages
Chinese (zh)
Other versions
CN103810105B (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

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for detecting an application program version. The method comprises the following steps: reading a physical server address of an application program of which the version is to be detected from a version repository; obtaining a previously set detecting rule relevant to the application program of which the version is to be detected from a data storage device; detecting the application program in the physical server address according to the obtained detecting rule. The method and the device solve the technical problem of lower detecting efficiency caused by that the version of each application program in the version repository is detected by artificial means in the prior art, so that aims that the detecting efficiency is effectively increased and the accuracy of detected results is improved are realized.

Description

Application version detection method and device
Technical field
The present invention relates to computer software fields, particularly 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, the test process of each application software system mainly comprises: integration testing, system testing, operation simulation test.Application software system, after exploitation completes, needs compiling packing program version, and is submitted in corresponding version repository, carries out after the bases such as version integrality detect, more unifiedly carries out installation and deployment to the environment of correspondence with it.After stage, test was passed through, circulation is submitted in the version repository of next stage and corresponding test environment and tests.
Be submitted to version repository and carry out in the process of version detection at program version, the main still manual detection method of the main version detection method adopting at present, simultaneously because different test phases exist multiple version repository, each version repository need to be submitted hundreds of application versions to, therefore need to expend a large amount of manpowers and detect, testing efficiency is low and easily make mistakes.
Summary of the invention
The embodiment of the present invention provides a kind of application version detection method, and to reach the object of effective raising detection efficiency and raising testing result accuracy, the method comprises:
From version repository, read the physical server address of the application program of version to be measured;
From data-carrier store, obtain the associated detection rule of application program predefined and described version to be measured;
According to the detection rule of obtaining, the application program in described physical server address is detected.
In one embodiment, before the physical server address of application program of reading version to be measured from version repository, said method also comprises:
The detection request that the application program at least one version to be measured that reception user initiates by sense terminals detects;
Access the version repository at the application program place of described detection request institute request detection.
In one embodiment, the detection rule associated with the application program of described version to be measured comprises: general rule and/or User Defined detect rule.
In one embodiment, described User Defined detection rule generates in such a way:
Receive the detection rule name of user's input, and the detection rule type of user's selection;
In the case of determining that the detection rule type that user selects is User Defined rule type, receive the custom rule content of user's input;
Generation comprises that the User Defined that detects rule name and custom rule content detects rule, and described User Defined detection rule is saved in described data-carrier store.
In one embodiment, before the physical server address of application program of reading version to be measured from version repository, said method also comprises:
Receive the version repository maintenance request of user input, wherein, described version repository maintenance request comprise following one of at least: newly-increased version repository, delete version repository, revision storehouse;
According to described version repository maintenance request, version repository is safeguarded.
In one embodiment, the physical server address of the application program of multiple versions of an application program of a version repository storage.
In one embodiment, from data-carrier store, obtain the associated detection rule of application program predefined and described version to be measured, comprising:
From described version repository, obtain the application manifest of described version to be measured, wherein, in described application manifest, have the indication information of the detection rule associated with the application program of described version to be measured;
Obtain the associated detection rule of application program predefined and described version to be measured according to described application manifest.
The embodiment of the present invention provides a kind of application version pick-up unit, and to reach the object of effective raising detection efficiency and raising testing result accuracy, this device comprises:
Reading unit, for reading the physical server address of application program of version to be measured from version repository;
Acquiring unit, for obtaining the associated detection rule of application program predefined and described version to be measured from data-carrier store;
Detecting unit, for the detection rule according to obtaining, detects the application program in described physical server address.
In one embodiment, said apparatus also comprises:
The first receiving element, for before the physical server address of application program of reading version to be measured from version repository, the detection request that the application program at least one version to be measured that reception user initiates by sense terminals detects;
Addressed location, for accessing the version repository at application program place of described detection request institute request detection.
In one embodiment, the detection rule associated with the application program of described version to be measured comprises: general rule and/or User Defined detect rule.
In one embodiment, said apparatus also comprises: regular generation unit, detects rule for generating in such a way User Defined:
Receive the detection rule name of user's input, and the detection rule type of user's selection;
In the case of determining that the detection rule type that user selects is User Defined rule type, receive the custom rule content of user's input;
Generation comprises that the User Defined that detects rule name and custom rule content detects rule, and described User Defined detection rule is saved in described data-carrier store.
In one embodiment, said apparatus also comprises:
The second receiving element, for before the physical server address of application program of reading version to be measured from version repository, receive the version repository maintenance request of user input, wherein, described version repository maintenance request comprise following one of at least: 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, the physical server address of the application program of multiple versions of an application program of a version repository storage.
In one embodiment, described acquiring unit comprises:
Inventory acquisition module, for obtain the application manifest of described version to be measured from described version repository, wherein, has the indication information of the detection rule associated with the application program of described version to be measured in described application manifest;
Rule acquisition module, for obtaining the associated detection rule of application program predefined and described version to be measured according to described application manifest.
In embodiments of the present invention, from version repository, determine the physical server address of application program to be measured, and then the detection rule of the application program of definite version to be measured, finally according to definite detection rule, the application program of this version is detected, thereby make no longer to need manually to detect.Solve by the way in prior art owing to adopting manual type each application version in version repository to be detected to the lower technical matters of detection efficiency causing, reached effective raising detection efficiency and improved the object of testing result accuracy.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, does not form limitation of the invention.In the accompanying drawings:
Fig. 1 is the application version detection method process flow diagram 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 detection system of the embodiment of the present invention is disposed Organization Chart;
Fig. 4 is the overall logic schematic diagram of the application version detection system of the embodiment of the present invention;
Fig. 5 is the general function process flow diagram of the application version detection system of the embodiment of the present invention;
Fig. 6 is the processing flow chart of embodiment of the present invention version repository maintenance unit;
Fig. 7 is the processing flow chart of the detection 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 processing flow chart of the version detection unit of the embodiment of the present invention;
Figure 10 is the structured flowchart of the application version pick-up unit of the embodiment of the present invention.
Embodiment
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.At this, exemplary embodiment of the present invention and explanation thereof are used for explaining the present invention, but not as a limitation of the invention.
The embodiment of the present invention provides a kind of application version detection method, as shown in Figure 1, comprises the following steps:
Step 101: the physical server address of reading the application program of version to be measured from version repository;
Step 102: obtain the associated detection rule of application program predefined and described version to be measured from data-carrier store;
Step 103: according to the detection rule of obtaining, 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, and then the detection rule of the application program of definite version to be measured, finally according to definite detection rule, the application program of this version is detected, thereby make no longer to need manually to detect.Solve by the way in prior art owing to adopting manual type each application version in version repository to be detected to the lower technical matters of detection efficiency causing, reached effective raising detection efficiency and improved the object of testing result accuracy.
Above-mentioned detection can detect request by one and trigger, and this detection request can be that the program that triggers certain version to certain application program detects certainly, can be also to trigger all versions of all application programs to detect.In one embodiment, before the physical server address of application program of reading version to be measured from version repository, said method also comprises: the detection request that the application program at least one version to be measured that reception user initiates by sense terminals detects; Access the version repository at the application program place of described detection request institute request detection.Concrete, when access version repository, need to first connect this version repository, version repository can a corresponding application program, also can corresponding multiple application programs, in a version repository, can store the physical server address of the application program of multiple versions of an application program, also can store the physical server address of multiple versions of multiple application programs, so-called physical server address is exactly the memory address of the practical programs of the version of these application programs.
Meanwhile, because will detect rale store in fixing data-carrier store, therefore without submit to version all to detect regular configuration at every turn, if follow-up to detecting rule without newly-increased or modification, can, without configuration again, reduce Operating Complexity.
Consider, if all application versions are all detected according to same detection rule, be difficult to meet the requirement of extendability, some current automatic testing methods lack good extensibility, for example: lack the integrity detection to each subroutine module in program version, or lack the special detection to different editions storehouse or different application version internal module, because can special detection method be set for the concrete version of the specific (special) requirements of varying environment test phase version repository or different application, arrange and detect rule by the self-defined mode of artificial setting.That is to say, the detection rule of above-mentioned application version association comprises: general rule and/or user-defined special rules, and concrete, above-mentioned User Defined special rules can as shown in Figure 2, comprise the following steps:
Step 201: receive the detection rule name of user's input, and the detection rule type of user's selection;
Step 202: in the case of determining that the detection rule type that user selects is User Defined rule type, receive the custom rule content of user's input;
Step 203: generate and comprise that the User Defined that detects rule name and custom rule content detects rule, and described User Defined detection rule is saved in described data-carrier store.
In preserving User Defined special rules, system is create-rule numbering automatically, if need to delete this rule, the mode that user can number by selective rule is directly deleted.
Above-mentioned detection rule is mainly made up of inspect statement and expectation detected value, so-called expectation detected value is exactly the value that should return after execution detects successfully, for example, version bag normally decompress(ion) detects regularization term, if decompress(ion) successfully returns to " true ", " false " returned in decompress(ion) failure, and expectation value is exactly " true ".
Also be to need to safeguard for version repository, main attended operation comprises: the application version inventory that increase version repository, revision storehouse newly, delete version repository, importing is corresponding with version repository etc.Concrete execution can be to comprise: receive the version repository maintenance request of user's input, according to described version repository maintenance request, version repository is safeguarded.
When concrete enforcement, from data-carrier store, obtain the associated detection rule of application program predefined and described version to be measured, can comprise: the application manifest of obtaining version to be measured from version repository, wherein, in application manifest, there is the indication information of the detection rule associated with the application program of described version to be measured; Obtain the associated detection rule of application program predefined and described version to be measured according to described application manifest.
In above-mentioned each embodiment, version repository can comprise: the version repository that integration testing environment is corresponding, the version repository that system testing environment is corresponding, the version repository that operation simulation test environment is corresponding, thus can carry out detection in all directions by application programs version.
Below in conjunction with a specific embodiment, the present invention is specifically described, but it should be noted that this specific embodiment is only for better explanation the present invention, does not form inappropriate limitation of the present invention.
2) a kind of extendible application version detection system and method are provided in this example, by the detection platform in Unified Set, robotization detection is carried out in the application version storehouse of each different phase of large software research and development centre, and notify each application system O&M personnel by the version detection situation very first time, thereby alleviate the pressure of manual detection application version, prevent human negligence and the application version that causes is submitted to, wrongly submit to or leak situation about submitting to more.
Below this application version detection system is specifically described:
For large software research and development centre, each application software system is more, different software system item component be you can well imagine and handed over complex situations such as widely applying program version, in native system, detection platform in Unified Set is provided, improve detection efficiency, detect on the whole the submission of Software Edition, avoid the problem that manual detection efficiency is low and easily go wrong.The configuration effort detecting by simple version, each version repository and the relevant rule configuration information to be detected of application program are recorded in database, having solved each submission version all needs to reconfigure the problem of initial detecting Rule Information, carry out software detection by native system, only need in using for the first time, be configured, if subsequent detection rule is not newly-increased or modification, without being again configured.
Further also existing version detection method is expanded, except conventional detection method, can also carry out the Function detection such as integrality to each subroutine module in program version, user's self-defined version detection rule easily, can special detection method be set for the specific (special) requirements of varying environment stage version repository or different application version, be with good expansibility.For example: the testing requirement that 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 certain concrete application version, further refinement detects the bibliographic structure in compressed package number, each subroutine module compressed package in version, initialization the special detection points such as whether configuration information correct is installed, application programs version detects from many aspects, to improve accuracy and the environment maintenance efficiency of version detection.
This system as shown in Figure 3, comprising: database server 301, application server 302, sense terminals 303, intranet 304, version repository 305 and version repository 306, be specifically described this structure below:
Database service 301, this device deploy database storage unit (being above-mentioned data-carrier store), wherein, comprise: database software system, version detection system database example and table space, for storing related versions database data information, application version inventory information, version detection rule configuration information of this detection system etc.
Application server 302, at this device deploy detection system core application, comprises version repository maintenance unit, detects regular maintenance unit and version detection unit.
Sense terminals 303, for native system, user provides human-computer interaction interface.
Intranet 304, for connecting the network between version detection system and multiple version repository, is generally LAN (Local Area Network), can be wired or wireless network.
Version repository 305 and version repository 306, refer to include in each stage version repository of detection, comprises that device 305 version repository 1, device 306 version repository N(N are natural number, is more than or equal to 1, has a version repository at least, also can have multiple).
Concrete realizes logic as shown in Figure 4:
Sense terminals 401, provides human-computer interaction interface, is input and output unit in system:
1) as input media, user is by this device maintenance release library information and detect Rule Information, inputs the information such as the associated detection rule of application version inventory that each version repository will submit to and application version;
2), as output unit, this device can show each application version testing result information in current version storehouse.
Between sense terminals and detection regular maintenance unit 403, version repository maintenance unit 402 and version detection unit 405, there is data interaction:
1) use sense terminals to initiate to detect regular maintenance request, detect regular maintenance unit 403 and receive this request, detect the maintenance of Rule Information;
2) use sense terminals to initiate version repository maintenance request, version repository maintenance unit 402 receives this request, carries out the maintenance of version repository information;
3) use sense terminals to initiate version detection request, version detection unit 405 receives this request, carries out version detection, and sends to sense terminals to represent testing result information.
Below above-mentioned three unit are specifically described:
Version repository maintenance unit 402, be deployed on detection system application server, safeguard all version repository information, and application version inventory under each version repository, specifically comprise: input or revision library name, the relevant information of the corresponding server of version repository is set, determine whether to revise application version inventory, if it is import the application version inventory of all management of this version repository, if not being saved in database storage unit.
Detect regular maintenance unit 403, be deployed on detection system application server, the maintenance function of version detection rule is provided.System is distributed the initial detecting rule of acquiescence to each application, for example: detect normally decompress(ion) of version bag, whether version bag bibliographic structure meets the rule of this version repository etc.Each application simultaneously can increase associated special detection rule newly, for example, can refinement detect in application version in compressed package number, application version database module SQL script detection etc., application programs version detects from many aspects, to realize effective expansion of system.,, for the application version in all version repository, the general detection rule of existing acquiescence, can expand again existing detection rule, detects thereby increase special rules item.
Database storage unit 404, be deployed on detection system database server, for storing the related data of this detection system, in data block storage unit, include: the information such as the detection rule that the application version inventory that will submit in version repository configuration information, version repository and application version are associated.Between data block storage unit 404 and detection regular maintenance unit 403, version repository maintenance unit 402 and version detection unit 405, there is data interaction, detect regular maintenance unit 403 and read dependency rule information from database storage unit 404, detect the amended Rule Information of regular maintenance unit 403 simultaneously and be also saved in database storage unit 404; Version repository maintenance unit 402 reads related versions library information from database storage unit, and the amended Rule Information of version repository maintenance unit is also saved in database storage unit simultaneously; Version detection unit reads related versions inventory and detects Rule Information from database storage unit, and version detection unit is saved in coherent detection object information in database storage unit simultaneously.
Version detection unit 405, be deployed on detection system application server, version detection unit and database storage unit are carried out alternately, first version detection unit circulates and reads each version repository application version inventory to be submitted to from database storage unit, and according to the application name in application version inventory, program version numbering, read the information such as the associated rule to be detected of this application version, and access the actual version medium of storing on this version repository physical server, the to be detected rule associated to program version detects one by one, testing result is saved in to database storage unit, testing result is sent to described sense terminals simultaneously.Between version detection unit and database storage unit, sense terminals, each version repository, there is data communication and mutual.
Version repository 406 and 407, the number of version repository can be one or more, version repository exists with ... physical server storage, for depositing application version medium.
As shown in Figure 5, system maintenance personnel (for example: version repository O&M personnel), by sense terminals, initiate request as follows to the treatment scheme of general function:
1) version repository maintenance request, version repository maintenance unit receives this request, carries out the attended operation of application version inventory under each version repository maintenance of information and each version repository.Increase, modify or delete version repository information, increase, modify or delete application version inventory, and relevant information is kept in database storage unit, and send to sense terminals.
2) detect regular maintenance request, detect regular maintenance unit and receive this request, carry out application version under each version repository and detect regular attended operation.Increase, modify or delete the associated regularization term to be detected of each application program.Relevant information is kept in database storage unit, and sends to sense terminals.
3) version detection request, after the associated rule to be detected of all application programs has been safeguarded, can start version detection unit, sense terminals is initiated version detection request, version detection unit receives this request, and application version in each version repository is detected automatically.Relevant information is kept in database storage unit, and sends to sense terminals to show testing result.
Below the concrete operations of above-mentioned several unit are described:
1) version repository maintenance unit, the main operation of carrying out has:
Newly-increased or revision storehouse: user inputs version repository title, fills in server address corresponding to this version repository and deposits file system path, the bibliographic structure etc. of version.
Delete version repository: user selects version repository title, directly delete, synchronously delete lower related application manifest of this version repository.
Import application version inventory: user selects version repository title, directly imports the related application version inventory of this version repository.
Specifically as shown in Figure 6, comprise the following steps:
Step 601: input or revision library name, the corresponding different phase of version repository, for example: development environment version repository, integration testing environment version repository, system testing environment version repository etc.
Step 602: the relevant information of the corresponding server of version repository is set, comprises: actual physics server address corresponding to this version repository, deposit version file system path, deposit the bibliographic structure of version etc.
Step 603: judge whether to revise application version inventory, revise as needs, carry out 604; If do not needed to revise, transfer to carry out 605.
Step 604: import the related application version inventory of this version repository, wherein, application version inventory comprises: 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, that is, the relevant information of above version repository and application version inventory be saved in to database storage unit, so that version detection module is called.
2) detect regular maintenance unit, the main operation of carrying out has:
Increase newly or alteration ruler flow process: user's input rule title, select type of detection, fill in special detection Rule content, for example: SQL statement, SHELL script, User Defined rule etc., fill in expectation detected value.In the time preserving this rule, the automatic create-rule numbering of system, and be saved in database storage unit.
Deletion rule flow process: user's selective rule numbering, directly delete, synchronously deletion rule numbers in relevant this regular application manifest.
Detect rule type, main type comprises: general rule and special rules, and wherein, general rule is mainly that the Compress softwares of common version bag detects, the number detection of compressed package etc.; Special rules refers to supports user-defined detections rule, for example, can detect by SQL statement, the detection of SHELL script, other special detection rule.These Rule Informations are kept in database storage unit, are referred to as " detection rule list ", and its main field information can be as shown in table 1:
Table 1
Figure BDA0000473740610000101
Specifically as shown in Figure 7, comprise the following steps:
Step 701: input or alteration ruler title, wherein, the title of rule is revisable.
Step 702: select type of detection, can select general rule or special rules type, can identify this rule by type of detection is to do the detection of what type.
Step 703: judge whether type of detection is general type of detection, if general type of detection transfers to carry out 705; If not, carry out 704.
Step 704: according to the type of special rules, corresponding input SQL inspect statement, SHELL detection script or User Defined detect Rule content.
Step 705: detected value is expected in input, according to type of detection, carries out the value that should return after detecting successfully.For example: version bag normally decompress(ion) detects regularization term, if decompress(ion) successfully returns to true, false is returned in decompress(ion) failure, and expectation value should extend this as true.
Step 706: create-rule numbering automatically, rule numbers is unique, the corresponding numbering of each detection rule, an application version may corresponding multiple detection rules.
Step 707: above relevant information is kept in " detection rule list ", simultaneously according to type of detection, be organized into and (for example: version bag is decompress(ion) normally detected regular fill order, generate as issued orders: " if unzip is true "), be saved in during database storage unit " detects regular fill order table " detecting rule numbers and corresponding fill order, so that version detection module is called.
3) version detection unit as shown in Figure 8, mainly comprise: version repository linkage unit 801, version inventory reading unit 802, detection Rule unit 803, detection performance element 804, testing result output unit 805, be specifically described these unit below:
Version repository linkage unit 801, for connecting version repository servers, reads server address corresponding to version repository and deposits file system path, the bibliographic structure of version.
Version inventory reading unit 802, reads application version inventory information each version repository from database storage unit, wherein in inventory information, includes: the information such as version repository title, application version submission date, application system title, application version number.
Detect Rule unit 803, according to application version inventory, from database storage unit " detection rule list ", obtain the associated detection Rule Information of this application version.
Detect performance element 804, according to information such as obtained version repository, application version inventory, detection rules, each application version under version repository is detected by detecting rule.
Testing result output unit 805, output detections object information is to sense terminals and database storage unit.
4) version detection unit, concrete treatment scheme as shown in Figure 9, comprising:
Step 901: the circulation of version repository linkage unit connects each version repository, to each version repository is detected.
Step 902: version inventory reading unit reads version repository application version inventory to be submitted to successively.
Step 903: often read a version inventory record, all detection regularization term of this version association are obtained in detection Rule unit.
Step 904: detect actual version medium corresponding to performance element access, the to be detected regularization term associated according to this version detects version medium, judges whether to meet every detection rule, judges that whether this version is normal.
Step 905: judge that whether testing result is normal, as undesired, carry out 906; As normally, carry out 907.
Step 906: testing result output unit is preserved error message to database storage unit, so that sense terminals represents.
Step 907: testing result output unit is preserved correct information to database storage unit, so that sense terminals represents.
Step 908: version inventory reading unit judges whether all records of this version repository version inventory to be submitted to have read, as has read, and carries out 909; Do not complete, return to 902, continue circulation and read next version inventory record to be submitted to.
Step 909: testing result output unit sends testing result information to sense terminals, so that O&M personnel check result.
Step 910: version repository linkage unit judges whether all version repository records have read, as this detects to have read normal termination, as has not read, and returns to 901, is connected to next version repository and detects.
In this example, system manager uses sense terminals to initiate parameter maintenance request, version repository maintenance unit and detect regular maintenance unit and receive this request, carry out parameter maintenance operation, as version repository relevant configuration information is set, imports version repository version inventory to be submitted to, defines all detection rules, the associated detection rule of each application version needs under each version repository is set; System maintenance librarian use sense terminals is initiated version detection request, version detection unit receives this request, start the detection to version repository, detect interface can this version repository of real time inspection in the testing result of each application version, for detecting abnormal situation, can check detailed reason, to further rectify and improve perfect; System maintenance personnel can also use sense terminals to initiate the request of version statistics, version statistic unit receives this request, can check detection statistics analytical statement, same application version detection statistics form in different phase version repository of each version repository, to offer this application item group decision analysis.
Based on same inventive concept, in the embodiment of the present invention, also provide a kind of application version pick-up unit, as described in the following examples.Because the principle that application version pick-up unit is dealt with problems is similar to application version detection method, therefore the enforcement of application version pick-up unit can be referring to the enforcement of application version detection method, repeats part and repeat no more.Following used, term " unit " or " module " can realize the combination of software and/or the hardware of predetermined function.Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.Figure 10 is a kind of structured flowchart of the application version pick-up unit of the embodiment of the present invention, as shown in figure 10, comprising: reading unit 1001, acquiring unit 1002 and detecting unit 1003, describe this structure below.
Reading unit 1001, for reading the physical server address of application program of version to be measured from version repository;
Acquiring unit 1002, for obtaining the associated detection rule of application program predefined and described version to be measured from data-carrier store;
Detecting unit 1003, for the detection rule according to obtaining, detects the application program in described physical server address.
In one embodiment, above-mentioned application version pick-up unit also comprises: the first receiving element, for before the physical server address of application program of reading version to be measured from version repository, the detection request that the application program at least one version to be measured that reception user initiates by sense terminals detects; Addressed location, for accessing the version repository at application program place of described detection request institute request detection.
In one embodiment, the detection rule associated with the application program of described version to be measured comprises: general rule and/or User Defined detect rule.
In one embodiment, above-mentioned application version pick-up unit also comprises: regular generation unit, detects rule for generating in such a way User Defined: receive the detection rule name of user's input, and the detection rule type of user's selection; In the case of determining that the detection rule type that user selects is User Defined rule type, receive the custom rule content of user's input; Generation comprises that the User Defined that detects rule name and custom rule content detects rule, and described User Defined detection rule is saved in described data-carrier store.
In one embodiment, above-mentioned application version pick-up unit also comprises: the second receiving element, for before the physical server address of application program of reading version to be measured from version repository, receive the version repository maintenance request of user's input, wherein, described version repository maintenance request comprise following one of at least: 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 is stored the physical server address of the application program of multiple versions of at least one application program.
In one embodiment, described acquiring unit comprises: inventory acquisition module, for obtain the application manifest of described version to be measured from described version repository, wherein, in described application manifest, there is the indication information of the detection rule associated with the application program of described version to be measured; Rule acquisition module, for obtaining the associated detection rule of application program predefined and described version to be measured according to described application manifest.
In another embodiment, also provide a kind of software, the technical scheme that this software is described for carrying out above-described embodiment and preferred implementation.
In another embodiment, also provide a kind of storage medium, stored above-mentioned software in this storage medium, this storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc.
From above description, can find out, the embodiment of the present invention has realized following technique effect: the physical server address of determining application program to be measured from version repository, and then the detection rule of the application program of definite version to be measured, finally according to definite detection rule, the application program of this version is detected, thereby make no longer to need manually to detect.Solve by the way in prior art owing to adopting manual type each application version in version repository to be detected to the lower technical matters of detection efficiency causing, reached effective raising detection efficiency and improved the object of testing 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 can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the embodiment of the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the embodiment of the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (14)

1. an application version detection method, is characterized in that, comprising:
From version repository, read the physical server address of the application program of version to be measured;
From data-carrier store, obtain the associated detection rule of application program predefined and described version to be measured;
According to the detection rule of obtaining, the application program in described physical server address is detected.
2. the method for claim 1, is characterized in that, before the physical server address of application program of reading version to be measured from version repository, described method also comprises:
The detection request that the application program at least one version to be measured that reception user initiates by sense terminals detects;
Access the version repository at the application program place of described detection request institute request detection.
3. the method for claim 1, is characterized in that, the detection rule associated with the application program of described version to be measured comprises: general rule and/or User Defined detect rule.
4. method as claimed in claim 3, is characterized in that, described User Defined detects rule and generates in such a way:
Receive the detection rule name of user's input, and the detection rule type of user's selection;
In the case of determining that the detection rule type that user selects is User Defined rule type, receive the custom rule content of user's input;
Generation comprises that the User Defined that detects rule name and custom rule content detects rule, and described User Defined detection rule is saved in described data-carrier store.
5. the method for claim 1, is characterized in that, before the physical server address of application program of reading version to be measured from version repository, described method also comprises:
Receive the version repository maintenance request of user input, wherein, described version repository maintenance request comprise following one of at least: newly-increased version repository, delete version repository, revision storehouse;
According to described version repository maintenance request, version repository is safeguarded.
6. the method as described in any one in claim 1 to 5, is characterized in that, a version repository is stored the physical server address of the application program of multiple versions of at least one application program.
7. the method as described in any one in claim 1 to 5, is characterized in that, obtains the associated detection rule of application program predefined and described version to be measured from data-carrier store, comprising:
From described version repository, obtain the application manifest of described version to be measured, wherein, in described application manifest, have the indication information of the detection rule associated with the application program of described version to be measured;
Obtain the associated detection rule of application program predefined and described version to be measured according to described application manifest.
8. an application version pick-up unit, is characterized in that, comprising:
Reading unit, for reading the physical server address of application program of version to be measured from version repository;
Acquiring unit, for obtaining the associated detection rule of application program predefined and described version to be measured from data-carrier store;
Detecting unit, for the detection rule according to obtaining, detects the application program in described physical server address.
9. device as claimed in claim 8, is characterized in that, also comprises:
The first receiving element, for before the physical server address of application program of reading version to be measured from version repository, the detection request that the application program at least one version to be measured that reception user initiates by sense terminals detects;
Addressed location, for accessing the version repository at application program place of described detection request institute request detection.
10. device as claimed in claim 8, is characterized in that, the detection rule associated with the application program of described version to be measured comprises: general rule and/or User Defined detect rule.
11. devices as claimed in claim 10, is characterized in that, also comprise: regular generation unit, detects rule for generating in such a way User Defined:
Receive the detection rule name of user's input, and the detection rule type of user's selection;
In the case of determining that the detection rule type that user selects is User Defined rule type, receive the custom rule content of user's input;
Generation comprises that the User Defined that detects rule name and custom rule content detects rule, and described User Defined detection rule is saved in described data-carrier store.
12. devices as claimed in claim 8, is characterized in that, also comprise:
The second receiving element, for before the physical server address of application program of reading version to be measured from version repository, receive the version repository maintenance request of user input, wherein, described version repository maintenance request comprise following one of at least: newly-increased version repository, delete version repository, revision storehouse;
Maintenance unit, for safeguarding version repository according to described version repository maintenance request.
13. devices as described in any one in claim 8 to 12, is characterized in that, a version repository is stored the physical server address of the application program of multiple versions of at least one application program.
14. devices as described in any one in claim 8 to 12, is characterized in that, described acquiring unit comprises:
Inventory acquisition module, for obtain the application manifest of described version to be measured from described version repository, wherein, has the indication information of the detection rule associated with the application program of described version to be measured in described application manifest;
Rule acquisition module, for obtaining the associated detection rule of application program predefined and described version to be measured according to described application manifest.
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 true CN103810105A (en) 2014-05-21
CN103810105B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428788A (en) * 2017-09-05 2019-03-05 阿里巴巴集团控股有限公司 Function test method and system
CN109493165A (en) * 2018-10-18 2019-03-19 上海掌门科技有限公司 The test method and equipment of blacklist rule
CN110389903A (en) * 2019-07-19 2019-10-29 中国工商银行股份有限公司 Test environment dispositions method and device, electronic equipment and readable storage medium storing program for executing
CN111177176A (en) * 2019-11-18 2020-05-19 腾讯科技(深圳)有限公司 Data detection method, device and storage medium
CN113448855A (en) * 2021-07-07 2021-09-28 中国工商银行股份有限公司 Database version package detection method and device
CN114328184A (en) * 2021-12-01 2022-04-12 重庆长安汽车股份有限公司 Big data cloud test method based on vehicle-mounted Ethernet architecture
US11755098B2 (en) 2018-12-28 2023-09-12 Samsung Electronics Co., Ltd. Intelligent terminal energy saving method and device based on AI prediction

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 英业达股份有限公司 Method for managing mapping file version
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 英业达股份有限公司 Method for managing mapping file version
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428788A (en) * 2017-09-05 2019-03-05 阿里巴巴集团控股有限公司 Function test method and system
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
US11755098B2 (en) 2018-12-28 2023-09-12 Samsung Electronics Co., Ltd. Intelligent terminal energy saving method and device based on AI prediction
CN110389903A (en) * 2019-07-19 2019-10-29 中国工商银行股份有限公司 Test environment dispositions method and device, electronic equipment and readable storage medium storing program for executing
CN110389903B (en) * 2019-07-19 2023-08-22 中国工商银行股份有限公司 Test environment deployment method and device, electronic equipment and readable storage medium
CN111177176A (en) * 2019-11-18 2020-05-19 腾讯科技(深圳)有限公司 Data detection method, device and storage medium
CN111177176B (en) * 2019-11-18 2023-05-16 腾讯科技(深圳)有限公司 Data detection method, device and storage medium
CN113448855A (en) * 2021-07-07 2021-09-28 中国工商银行股份有限公司 Database version package detection method and device
CN114328184A (en) * 2021-12-01 2022-04-12 重庆长安汽车股份有限公司 Big data cloud test method based on vehicle-mounted Ethernet architecture
CN114328184B (en) * 2021-12-01 2024-05-17 重庆长安汽车股份有限公司 Big data cloud testing method based on vehicle-mounted Ethernet architecture

Also Published As

Publication number Publication date
CN103810105B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN103810105A (en) Method and device for detecting application program version
CN102736978B (en) A kind of method and device detecting the installment state of application program
US6182245B1 (en) Software test case client/server system and method
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
CN103631713B (en) ERP software automatization test system and method
CN105068929A (en) Test script generation method, test script generation device, testing method, testing device and testing system
US10599558B1 (en) System and method for identifying inputs to trigger software bugs
CN104899016A (en) Call stack relationship obtaining method and call stack relationship obtaining device
CN114116496A (en) Automatic testing method, device, equipment and medium
CN114490375A (en) Method, device and equipment for testing performance of application program and storage medium
US9842044B2 (en) Commit sensitive tests
CN110750434A (en) Interface testing method and device, electronic equipment and computer readable storage medium
CN107451058A (en) A kind of software development methodology and device
CN114356504A (en) Data migration method and device in cluster, electronic equipment and storage medium
CN116599881A (en) Cloud platform tenant modeling test method, device, equipment and storage medium
EP4025994A1 (en) Enhanced virtual machine image management system
CN116148636A (en) Method and device for testing embedded board card, electronic equipment and readable storage medium
CN114816470A (en) Metadata database management method and device, electronic equipment and medium
CN115686535A (en) Inspection method and device for Kubernets cluster and application
CN115794220A (en) Software source migration method, device and system, computing device and readable storage medium
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN111367796B (en) Application program debugging method and device
CN109062789B (en) Continuous integration method, device and equipment and readable storage medium
CN115437903A (en) Interface test method, device, apparatus, storage medium, and program
CN113434397A (en) Task system testing method and device, electronic equipment and storage medium

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