Summary of the invention
In view of this, cannot carry out the problem of real-time off-line test activity to solve the existing test management platform based on C/S or B/S framework, technical scheme is as follows:
A kind of software testing management framework establishment method, comprising:
Create test and management framework, described test and management framework comprises testing service module, test client module, test and management module;
For described testing service module, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively;
Create configuration management system/library;
When described testing service module, test client module, test and management module are in off-line state, described test client module completes product test work, when described testing service module, test client module, test and management module are in line states, described configuration management tool is utilized to be committed in described configuration management system/library by test job product.
Preferably, in above-mentioned software testing management framework establishment method, also comprise:
Independently storage space is distributed for each test event in described configuration management system/library, unique work space is created for each tester in described storage space, wherein, described work space is for storing the test job product having and be committed to described work space authority, and each described work space has unique space address;
After getting the first test job product and being committed to the submission instruction of the first work space, judge whether described first test job product has the authority of accessing described first work space, if had, then:
Obtain the first space address of described first work space, according to described first space address, described first test job product is committed to described first work space.
Preferably, in above-mentioned software testing management framework establishment method, also comprise:
After the instruction getting the first test job product in described first work space of the second test job product amendment, judge whether described second test job product has the authority of accessing described first work space, if do not had, then:
Obtain the second work space that described second test job product has access rights;
By described first test job product copy in described second work space, in described second work space, revise the first test job product after copying;
Amended first test job product is kept in described second work space.
Preferably, in above-mentioned software testing management framework establishment method, describedly judge whether described first test job product has the authority of accessing described first work space, comprising:
Input the log-on message of described first test job product, access the tester's database pre-set, wherein, the log-on message that described tester's database purchase has checking to log in;
The described log-on message of the first test job product and the log-on message of storage are compared, judges whether described first test job product has the authority of accessing described first work space.
Preferably, in above-mentioned software testing management framework establishment method, described configuration management tool is SVN, or, there is the configuration management tool of SVN function.
The embodiment of the present invention provides a kind of software testing management framework establishment device, comprising:
First creating unit, for creating test and management framework, described test and management framework comprises testing service module, test client module, test and management module;
Embedded unit, for embedding for described testing service module, test client module, test and management module the configuration management tool supporting off-line operation function respectively;
Second creating unit, for creating configuration management system/library;
Commit unit, for when described testing service module, test client module, test and management module are in off-line state, described test client module completes product test work, when described testing service module, test client module, test and management module are in line states, described configuration management tool is utilized to be committed in described configuration management system/library by test job product.
Preferably, in above-mentioned software testing management framework establishment device, also comprise:
Space allocation unit, for distributing independently storage space for each test event in described configuration management system/library, unique work space is created for each tester in described storage space, wherein, described work space is for storing the test job product having and be committed to described work space authority, and each described work space has unique space address;
First processing unit, for after getting the first test job product and being committed to the submission instruction of the first work space, judge whether described first test job product has the authority of accessing described first work space, if had, then: the first space address obtaining described first work space, according to described first space address, described first test job product is committed to described first work space.
Preferably, in above-mentioned software testing management framework establishment device, also comprise:
Second processing unit, for after the instruction getting the first test job product in described first work space of the second test job product amendment, judge whether described second test job product has the authority of accessing described first work space, if do not had, then:
Obtain the second work space that described second test job product has access rights;
By described first test job product copy in described second work space, in described second work space, revise the first test job product after copying;
Amended first test job product is kept in described second work space.
Preferably, in above-mentioned software testing management framework establishment device, described first processing unit, comprising:
Database access module, for inputting the log-on message of described first test job product, accesses the tester's database pre-set, wherein, and the log-on message that described tester's database purchase has checking to log in;
Authority judge module, for the described log-on message of the first test job product and the log-on message of storage being compared, judges whether described first test job product has the authority of accessing described first work space.
Preferably, in above-mentioned software testing management framework establishment device, described configuration management tool is SVN, or, there is the configuration management tool of SVN function.
There is in technique scheme following beneficial effect:
Known via above-mentioned technical scheme, compared with prior art, the scheme that the embodiment of the present invention provides, testing service module in test and management framework, test client module, test and management module embeds the configuration management tool supporting off-line operation function respectively, in testing service module, test client module, when test and management module is in off-line state, test client module completes product test work, when testing service module, test client module, when test and management module is in line states, configuration management tool is utilized to be committed in configuration management system/library by test job product.Therefore, based on embedding the test and management framework supporting off-line operation functional configuration management tool, can need to carry out off-line test according to real work, then during presence, again test products or test result are submitted in configuration management system/library, test activity need not be carried out by real-time online, solve the problem that the existing test management platform based on C/S or B/S framework cannot carry out real-time off-line test activity.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, the embodiment of the present invention provides a kind of software testing management framework establishment method, comprising:
Step 110: create test and management framework, test and management framework comprises testing service module, test client module, test and management module.
Step 120: for testing service module, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively.
Step 130: create configuration management system/library.
Step 140: when testing service module, test client module, test and management module are in off-line state, test client module completes product test work; When testing service module, test client module, test and management module are in line states, configuration management tool is utilized to be committed in configuration management system/library by test job product.
The scheme that the embodiment of the present invention provides, testing service module in test and management framework, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively, when testing service module, test client module, test and management module are in off-line state, test client module completes product test work, when testing service module, test client module, test and management module are in line states, configuration management tool is utilized to be committed in configuration management system/library by test job product.Therefore, based on embedding the test and management framework supporting off-line operation functional configuration management tool, can need to carry out off-line test according to real work, then during presence, again test products or test result are submitted in configuration management system/library, test activity need not be carried out by real-time online, solve the problem that the existing test management platform based on C/S or B/S framework cannot carry out real-time off-line test activity.
See Fig. 2, the embodiment of the present invention provides a kind of software testing management framework establishment method, comprising:
Step 210: create test and management framework, test and management framework comprises testing service module, test client module, test and management module.Test and management framework as shown in Figure 5.
Testing service module ETserver is used for management misconduct room level test data, and testing service module ETserver can comprise tester's database, testing apparatus database and bulleted list database.When new product test project is uploaded, need these new projects to add bulleted list database, after adding, these new projects are exactly legal test event, will add up the information of this project during data statistics as: dependence test laboratory.
Test client module ETframework is used for concrete test job, and submits test job product to.Test client module ETframework needs with testing service module ETserver mutual when performing the operations such as login authentication, change of secret code and project submission, wherein login authentication and change of secret code action need access tester database, project submit operation needs access project list database.
Test and management module ETmanager is used for project management and personal management, and further, for the management of product test project in testing service module, and test client module submits the management of test job product to.Test and management module ETmanager needs with testing service module ETserver mutual when performing the operations such as login authentication, change of secret code, project additions and deletions and personal management, wherein login authentication, change of secret code, personal management action need access tester database, project additions and deletions action need access project list database.
Step 220: for testing service module, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively.
This configuration management tool can be SVN (subversion), or, there is the configuration management tool of SVN function.
Step 230: create configuration management system/library.
Corresponding to above-mentioned SVN, this configuration management system/library is SVN storehouse.
Step 240: distribute independently storage space for each test event in configuration management system/library, unique work space is created for each tester in storage space, wherein, work space is for storing the test job product having and be committed to work space authority, and each work space has unique space address.
SVN storehouse is for storing multiple test item destination data, and be assigned with independently storage space for each test event, as storage space 1, the storage space 2 of project P2, the storage space 3 etc. of project P3 of project P1, unique work space is created for each tester, as having work space 1, work space 2, work space 3 etc. in the storage space 1 of project P1 in each storage space.Wherein, each work space is for storing the test job product having and be committed to work space authority, and each work space has unique space address.
Step 250: when testing service module, test client module, test and management module are in off-line state, test client module completes product test work; When testing service module, test client module, test and management module are in line states, after getting the first test job product and being committed to the submission instruction of the first work space, judge whether the first test job product has the authority of access first work space, if had, then: the first space address obtaining the first work space, according to the first space address, the first test job product is committed to the first work space.
Further, judge whether the first test job product has the authority of access first work space, comprising: the log-on message obtaining the first test job product, access the tester's database pre-set, wherein, tester's database purchase has the log-on message that checking logs in; The log-on message of the first test job product and the log-on message of storage are compared, judges whether the first test job product has the authority of access first work space.The first space address obtaining the first work space comprises: access project list database, stores the described space address for each described work space in bulleted list database; First address in the first test job product work space is obtained from bulleted list database.
As ETframework1 wants the work product of a certain project, as the first test job product be submitted to the work space of a certain tester in SVN storehouse time, need the log-on message of input first test job product, log-on message can comprise username and password.After the log-on message getting the first test job product, access the tester's database pre-set, ETmanager configures tester's database, by the username and password that ETframework1 inputs, tester's database judges can whether ETframework1 has authority to this project in SVN storehouse, be imported in the work space of this project by work product.Secondly access project list database, obtains the work space address in SVN storehouse corresponding to this project.
The scheme that the embodiment of the present invention provides, testing service module in test and management framework, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively, when testing service module, test client module, test and management module are in off-line state, test client module completes product test work, when testing service module, test client module, test and management module are in line states, configuration management tool is utilized to be committed in configuration management system/library by test job product.Therefore, based on embedding the test and management framework supporting off-line operation functional configuration management tool, can need to carry out off-line test according to real work, then during presence, again test products or test result are submitted in configuration management system/library, test activity need not be carried out by real-time online, solve the problem that the existing test management platform based on C/S or B/S framework cannot carry out real-time off-line test activity.
Further, such as ETframework1 for project P2 without any authority, have permission for project P1, so the work product being under the jurisdiction of P1 can be uploaded in the space of project P1 according to priority assignation after accessing tester's database by ETframework1, but the work product being under the jurisdiction of P2 cannot be submitted to, such tester can only submit the work product of the work space of oneself to, avoids data collision.
Further, laboratory-scale test data comprises tester's database, testing apparatus database and bulleted list database, laboratory-scale test data is managed by testing service module ETserver, this module disposes separately laboratory-scale test data, thus avoids the conflict of laboratory-scale test data.Project level test data, is managed by test and management module ETmanager, this module independent deploying projects level test data, thus avoids the conflict of project level test data.Be under the jurisdiction of the test data in project, managed by test client module ETframework, additionally add founder ID when these type of data store as inner uniquely identified component units, so, although this module can be disposed by multimachine, data collision can't be there is.
See Fig. 3, the embodiment of the present invention provides a kind of software testing management framework establishment method, comprising:
Step 310: create test and management framework, test and management framework comprises testing service module, test client module, test and management module.
Testing service module ETserver is used for management misconduct room level test data, and testing service module ETserver management can comprise tester's database, testing apparatus database and bulleted list database.When new product test project is uploaded, need these new projects to add bulleted list database, after adding, these new projects are exactly legal test event, will add up the information of this project during data statistics as: dependence test laboratory.
Test client module ETframework is used for concrete test job, and submits test job product to.Test client module ETframework needs with testing service module ETserver mutual when performing the operations such as login authentication, change of secret code and project submission, wherein login authentication and change of secret code action need access tester database, project submit operation needs access project list database.
Test and management module ETmanager is used for project management and personal management, and further, for the management of product test project in testing service module, and test client module submits the management of test job product to.Test and management module ETmanager needs with testing service module ETserver mutual when performing the operations such as login authentication, change of secret code, project additions and deletions and personal management, wherein login authentication, change of secret code, personal management action need access tester database, project additions and deletions action need access project list database.
Step 320: for testing service module, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively.
This configuration management tool can be SVN (subversion), or, there is the configuration management tool of SVN function.
Step 330: create configuration management system/library.
Corresponding to above-mentioned SVN, this configuration management system/library is SVN storehouse.
Step 340: distribute independently storage space for each test event in configuration management system/library, unique work space is created for each tester in storage space, wherein, work space is for storing the test job product having and be committed to work space authority, and each work space has unique space address.
SVN storehouse is for storing multiple test item destination data, and be assigned with independently storage space for each test event, as storage space 1, the storage space 2 of project P2, the storage space 3 etc. of project P3 of project P1, unique work space is created for each tester, as having work space 1, work space 2, work space 3 etc. in the storage space 1 of project P1 in each storage space.Wherein, each work space is for storing the test job product having and be committed to work space authority, and each work space has unique space address.
Step 350: when testing service module, test client module, test and management module are in off-line state, test client module completes product test work; When testing service module, test client module, test and management module are in line states, after getting the first test job product and being committed to the submission instruction of the first work space, judge whether the first test job product has the authority of access first work space, if had, then: the first space address obtaining the first work space, according to the first space address, the first test job product is committed to the first work space.
Step 360: after getting the second test job product and revising the instruction of the first test job product in the first work space, judge whether the second test job product has the authority of access first work space, if no, then: obtain the second work space that the second test job product has access rights; By the first test job product copy in the second work space, in the second work space, revise the first test job product after copying; Amended first test job product is kept in the second work space.
Such as, there are two test client module ETframework, be respectively ETframework1 and ETframework2, and the work space that ETframework1 is corresponding is work space 1, the work space that ETframework2 is corresponding is work space 2, that is work product is submitted to work space 1, ETframework2 and work product is submitted to work space 2 by ETframework1.As ETframework2 wants the work product in modification space 1, ETframework2 does not directly revise in work space 1, but copy the work product in work space 1 to work space 2, modify at work space 2 pairs of work products, amendment result is kept in work space 2, and the record modification time in work space 2 simultaneously, in work space 1, still preserve unmodified front work product.Make be no matter oneself work product or to the amendment of other people work product or deletion, be all recorded in the work space of oneself.
It is pointed out that all work products are when creating, and identify as inner unique identification using product identification+founder, as ProductID+StaffID, in order to avoid clash when test data is integrated.Due to the existence of founder's mark, multiple person cooperational can be walked abreast, and need not worry that the interiors of products mark created separately is conflicted mutually and cannot be integrated.Just there are two versions in the work product like this with identical product mark+founder mark, one is before amendment, and one is after amendment, when loading test event, traveling through all work spaces, amendment result nearest for this work product being shown.
The scheme that the embodiment of the present invention provides, testing service module in test and management framework, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively, when testing service module, test client module, test and management module are in off-line state, test client module completes product test work, when testing service module, test client module, test and management module are in line states, configuration management tool is utilized to be committed in configuration management system/library by test job product.Therefore, based on embedding the test and management framework supporting off-line operation functional configuration management tool, can need to carry out off-line test according to real work, then during presence, again test products or test result are submitted in configuration management system/library, test activity need not be carried out by real-time online, solve the problem that the existing test management platform based on C/S or B/S framework cannot carry out real-time off-line test activity.
Further, such as ETframework1 for project P2 without any authority, have permission for project P1, so the work product being under the jurisdiction of P1 can be uploaded in the space of project P1 according to priority assignation after accessing tester's database by ETframework1, but the work product being under the jurisdiction of P2 cannot be submitted to, such tester can only submit the work product of the work space of oneself to, avoids data collision.
Further, laboratory-scale test data comprises tester's database, testing apparatus database and bulleted list database, laboratory-scale test data is managed by testing service module ETserver, this module disposes separately laboratory-scale test data, thus avoids the conflict of laboratory-scale test data.Project level test data, is managed by test and management module ETmanager, this module independent deploying projects level test data, thus avoids the conflict of project level test data.Be under the jurisdiction of the test data in project, managed by test client module ETframework, additionally add founder ID when these type of data store as inner uniquely identified component units, so, although this module can be disposed by multimachine, data collision can't be there is.
Further, work product can only be committed to the work space with authority by tester, but can obtain the work space without authority, and access is even revised, deleted the work product without authority work space.Wherein: when amendment does not have the work product of authority work space, retouching operation does not directly act on this work product, but by the revised context of work product, modification time, inner unique identification and above-mentioned product identification+founder identify to be stored in oneself to be had in the work space of authority, judges the current state of work product and shown by modification time; When deletion does not have the work product of authority work space, deletion action does not directly act on this work product, but the inside unique identification of work product, revised context and modification time are stored in oneself have in the work space of authority, judge that whether work product is deleted by delete flag.Further, to amendment, the deletion of other people work product, still be stored in the work space of oneself, in other words, tester can not revise, the product deleted in other people work space, thus guarantee that each work space is safeguarded by its founder, avoid many people and operate identical file and the conflict caused.
See Fig. 4, the embodiment of the present invention provides a kind of software testing management framework establishment device, comprising:
First creating unit U110, for creating test and management framework, test and management framework comprises testing service module, test client module, test and management module;
Embedded unit U120, for embedding for testing service module, test client module, test and management module the configuration management tool supporting off-line operation function respectively;
Second creating unit U130, for creating configuration management system/library;
Commit unit U140, for when testing service module, test client module, test and management module are in off-line state, test client module completes product test work, when testing service module, test client module, test and management module are in line states, configuration management tool is utilized to be committed in described configuration management system/library by test job product.
The scheme that the embodiment of the present invention provides, testing service module in test and management framework, test client module, test and management module embed the configuration management tool supporting off-line operation function respectively, when testing service module, test client module, test and management module are in off-line state, test client module completes product test work, when testing service module, test client module, test and management module are in line states, configuration management tool is utilized to be committed in configuration management system/library by test job product.Therefore, based on embedding the test and management framework supporting off-line operation functional configuration management tool, can need to carry out off-line test according to real work, then during presence, again test products or test result are submitted in configuration management system/library, test activity need not be carried out by real-time online, solve the problem that the existing test management platform based on C/S or B/S framework cannot carry out real-time off-line test activity.
Further, in other embodiments of the present invention, device also comprises:
Space allocation unit, for distributing independently storage space for each test event in configuration management system/library, unique work space is created for each tester in storage space, wherein, work space is for storing the test job product having and be committed to work space authority, and each work space has unique space address;
First processing unit, for after getting the first test job product and being committed to the submission instruction of the first work space, judge whether the first test job product has the authority of access first work space, if had, then: the first space address obtaining the first work space, according to the first space address, the first test job product is committed to the first work space.
Further, in other embodiments of the present invention, device also comprises:
Second processing unit, for after getting the second test job product and revising the instruction of the first test job product in the first work space, judges whether the second test job product has the authority of access first work space, if do not had, then:
Obtain the second work space that the second test job product has access rights;
By the first test job product copy in the second work space, in the second work space, revise the first test job product after copying;
Amended first test job product is kept in the second work space.
Further, in other embodiments of the present invention, the first processing unit, comprising:
Database access module, for inputting the log-on message of the first test job product, accesses the tester's database pre-set, wherein, and the log-on message that tester's database purchase has checking to log in;
Authority judge module, for the log-on message of the first test job product and the log-on message of storage being compared, judges whether the first test job product has the authority of access first work space.
Further, in other embodiments of the present invention, above-mentioned configuration management tool is SVN, or, there is the configuration management tool of SVN function.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Finally, also it should be noted that, in this article, the such as relational terms of first, second grade and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.