A kind of cloud test method and cloud testing service device
Technical field
The present invention relates to cloud the field of test technology more particularly to a kind of cloud test method and cloud testing service devices.
Background technique
Cloud test is a kind of novel test scheme based on cloud computing.Cloud testing service device provides a variety of test platforms, uses
Family passes through browser for software upload to be tested to cloud test platform, so that it may this is run on cloud test platform, realization pair
The test of software.
Cloud test provides a whole set of test environment, and tester logs on to the test environment using means such as virtual desktops,
It can be unfolded to test immediately.Software and hardware installation, environment configurations, the cost of environment maintenance are transferred to cloud testing service quotient by this.
With present virtualization technology, hardware configuration, software stack (operating system, middleware, software tool), net are formulated in tester
After network topology, creates a set of new test environment and only require a very short time;If tester can receive to have created
Standard test environment, then can log in and be tested immediately.In the way of cloud test, test environment is considerably reduced
It builds the time, such as machine and network prepare, operating system is installed, various testing tool software installations will all save, it is only necessary to
The configuration surroundings of needs are informed into cloud testing service quotient in advance, then direct use improves Efficiency of Software Testing, and save
About cost.
When being tested using cloud test macro, software to be tested is uploaded to cloud test by browser by tester
Server (Server), cloud test Server are deployed on cloud test client (Client);Cloud tests Client to this
Software is tested, and the test result of generation is uploaded to cloud test Server;Read the test knot in the cloud test end Server
Fruit, and test result is shown in browser.
Currently, cloud test macro can only identify and support common single byte font;But in dbase to be tested often
There is the unrecognized symbol of the clouds test macro such as double byte font or additional character, causes cloud test macro that can not identify that this is soft
The title of part, so cause the software to will appear when carrying out cloud test upload does not pass through, messy code, test function obstacle etc. are asked
Topic.
Summary of the invention
The embodiment of the invention provides a kind of cloud test methods and cloud testing service device, can not know to containing in title
The software of other symbol carries out proper testing.
The technical solution of the embodiment of the present invention is achieved in that
A kind of cloud test method, comprising:
Cloud testing service device receive user upload software to be tested, judge the software to be tested Old Name whether without
Method identification, if can not identify, for the identifiable newname of Software Create to be tested, save the software to be tested and its
Newname, and save the corresponding relationship of the Old Name and newname;
Software and its newname to be tested are shown to cloud test client.
The above method further comprises:
Cloud testing service device receives the test result comprising dbase of cloud test client feedback, searches the correspondence
With the presence or absence of Old Name corresponding to the dbase in relationship;If it is present the dbase in test result is replaced
For the Old Name, the test result comprising the Old Name is shown to user.
In the above method, the cloud testing service device receives the mode for the software to be tested that user uploads are as follows: cloud test clothes
Business device receives the software to be tested that user is uploaded by browser;
The cloud testing service device shows the mode of the test result comprising Old Name to user are as follows: cloud testing service device exists
Browser shows the test result comprising Old Name.
In the above method, cloud testing service judges that the whether unrecognized mode of the Old Name of software to be tested can be with are as follows:
Whether judge in the Old Name comprising the unrecognized character of cloud test macro, if it is, determine it is described to
The Old Name of test software can not identify.
In the above method, cloud testing service device is that the mode of the identifiable newname of Software Create to be tested can be with are as follows:
Cloud testing service device is that software to be tested generates identifiable newname at random, or from pre-save it is multiple can
A newname as the software to be tested is selected in identification title, or being according to preset title create-rule should
The identifiable newname of Software Create to be tested.
A kind of cloud testing service device, comprising:
User interactive module, for receiving the software to be tested of user's upload;
Title processing module, for judging whether the Old Name of the software to be tested can not identify, if can not identify,
It is then the identifiable newname of Software Create to be tested;
Preserving module for saving the software to be tested and its newname, and saves the Old Name and newname
Corresponding relationship;
Client interactive module, for showing software and its newname to be tested to cloud test client.
In above-mentioned cloud testing service device,
Client interactive module can be also used for, and receive the test knot comprising dbase of cloud test client feedback
Fruit;
Title processing module can be also used for, and search in the corresponding relationship with the presence or absence of the software for including in test result
Old Name corresponding to title;If it is present the dbase in test result is replaced with the Old Name;
User interactive module can be also used for, and show the test result comprising the Old Name to user.
In above-mentioned cloud testing service device, user interactive module can receive user uploaded by browser it is to be tested soft
Part, and the test result comprising Old Name is shown in browser.
In above-mentioned cloud testing service device, whether title processing module may determine that can not comprising cloud test macro in Old Name
The character of identification, if it is, determining that the Old Name of the software to be tested can not identify.
Title processing module can generate identifiable newname for software to be tested at random, or more from what is pre-saved
A newname as the software to be tested is selected in a recognizable title, or according to preset title create-rule
For the identifiable newname of Software Create to be tested.
As it can be seen that cloud test method proposed by the present invention and cloud testing service device, are receiving the to be tested soft of user's upload
When part, if the Old Name of the software can not identify, for the new recognizable title of the Software Create, and Old Name and new is recorded
The corresponding relationship of title;In facing cloud test client, the newname of the software is shown to cloud test client, to guarantee
Such software can be normally carried out test.
Detailed description of the invention
Fig. 1 is cloud test method implementation flow chart proposed by the present invention;
Fig. 2 is software to be tested in the embodiment of the present invention one and the transmission flow figure of test result;
Fig. 3 is the structural schematic diagram of cloud testing service device proposed by the present invention.
Specific embodiment
The present invention proposes a kind of cloud test method, if Fig. 1 is this method implementation flow chart, comprising:
Step 101: cloud testing service device receives the software to be tested that user uploads, and judges the original name of the software to be tested
Claim whether not identifying, if can not identify, thens follow the steps 102;
Step 102: cloud testing service device is the identifiable newname of Software Create to be tested, and it is to be tested soft to save this
Part and its newname, and save the corresponding relationship of the Old Name and newname;
Step 103: showing software and its newname to be tested to cloud test client.
In this way, cloud testing service device is when receiving software to be tested, more by the unrecognized Old Name of software to be tested
It is changed to the newname that can be identified, and (including cloud testing service device and cloud test client) shows and make in cloud test macro
With newname, to guarantee proper testing of the software in cloud test macro.
This method further comprises:
Cloud testing service device receives the test result comprising dbase of cloud test client feedback, searches the correspondence
With the presence or absence of Old Name corresponding to the dbase in relationship;If it is present the dbase in test result is replaced
For the Old Name, the test result comprising the Old Name is shown to user.
The unrecognized Old Name of software is changed to the process of identifiable newname by cloud testing service device, and will be surveyed
The process that newname in test result is changed to Old Name is transparent for user;User only needs to upload software to be tested,
And check the test result comprising software Old Name to be tested.But the change of title is had been completed in cloud test macro, is protected
The proper testing of software of the card comprising additional character.
In the above method, the mode that cloud testing service device receives the software to be tested that user uploads can be with are as follows: cloud test clothes
Business device receives the software to be tested that user is uploaded by browser;Cloud testing service device shows the test comprising Old Name to user
As a result mode can be with are as follows: cloud testing service device shows the test result comprising Old Name in browser.
In above-mentioned steps 101, cloud testing service judges that the whether unrecognized mode of the Old Name of software to be tested can be with
Are as follows: judge whether comprising the unrecognized character of cloud test macro in Old Name, if it is, determining the software to be tested
Old Name can not identify.Currently, the unrecognized character of cloud test macro include: double byte font (as Chinese), Mars word (i.e.
Carry out the netspeak of watch sound using phonetically similar word, the nearly word of sound, additional character etc.), additional character etc..
In above-mentioned steps 102, cloud testing service device is that the mode of the identifiable newname of Software Create to be tested can be with are as follows:
Cloud testing service device is that software to be tested generates identifiable newname at random, or from pre-save it is multiple can
A newname as the software to be tested is selected in identification title, or being according to preset title create-rule should
The identifiable newname of Software Create to be tested.
Below in conjunction with attached drawing, lifts specific embodiment and the present invention is described in detail.
Embodiment one:
If Fig. 2 is software to be tested in the embodiment of the present invention one and the transmission flow figure of test result.Detailed process includes:
Step 201: user tests Server to cloud by browser and uploads software to be tested, the title of the software to be tested
For the unrecognized Old Name of cloud test macro.
Step 202: after cloud test Server judges that the title of the software to be tested can not identify, for the Software Create cloud
The identifiable newname of test macro saves the software and its newname to be tested, realizes the successful upload of the software to be tested.
Also, cloud tests the corresponding relationship that Server saves Old Name and newname.
Old Name and newname can be stored in individual database, be saved using specific data list.
Step 203: when cloud tests Server facing cloud test Client, showing the software to be tested to cloud test Client
And its newname.
Step 204: cloud tests the software to be tested that Client downloading has newname, tests the software, obtains
And test result is recorded, the test result comprising newname is returned to cloud test Server.
Step 205: cloud tests Server and receives test result, and the corresponding relationship saved in finding step 202 finds this
There are corresponding Old Names for title in test result, then the title in the test result are replaced with Old Name.
Step 206: user is checked or is downloaded the test result of software by browser, includes software in the test result
Old Name.
As seen from the above-described embodiment, cloud test Server when receiving software to be tested, if the title of the software without
Method identification, then replace with the newname that cloud test macro can identify for its title;Cloud test macro side (including cloud test
Server and cloud test Client) newname is used, Old Name is used in user oriented.In this way, both ensure that test software
It can be normally carried out test in cloud test macro, and user will not be had an impact.
The present invention also proposes a kind of cloud testing service device, such as the structural schematic diagram that Fig. 3 is the cloud testing service device, comprising:
User interactive module 301, for receiving the software to be tested of user's upload;
Title processing module 302, for judging whether the Old Name of the software to be tested can not identify, if can not know
It not, then is the identifiable newname of Software Create to be tested;
Preserving module 303 for saving the software to be tested and its newname, and saves the Old Name and newname
Corresponding relationship;
Client interactive module 304, for showing software and its newname to be tested to cloud test client.
In above-mentioned cloud testing service device,
Client interactive module 304 can be also used for, and receive the test comprising dbase of cloud test client feedback
As a result;
Title processing module 302 can be also used for, and searching, which whether there is in test result in the corresponding relationship, includes
Old Name corresponding to dbase;If it is present the dbase in test result is replaced with the Old Name;
User interactive module 301 can be also used for, and show the test result comprising the Old Name to user.
In above-mentioned cloud testing service device, user interactive module 301 receives the software to be tested that user is uploaded by browser,
And the test result comprising Old Name is shown in browser.
In above-mentioned cloud testing service device, whether title processing module 302 judges in the Old Name comprising cloud test macro
Unrecognized character, if it is, determining that the Old Name of the software to be tested can not identify.
Title processing module 302 generates identifiable newname for software to be tested at random, or more from what is pre-saved
A newname as the software to be tested is selected in a recognizable title, or according to preset title create-rule
For the identifiable newname of Software Create to be tested.
To sum up, cloud test method proposed by the present invention and cloud testing service device are receiving the to be measured of user's upload
When trying software, if the Old Name of the software can not identify, for the new recognizable title of the Software Create, and Old Name is recorded
With the corresponding relationship of newname;In facing cloud test client, the newname of the software is shown to cloud test client, thus
Guarantee that such software can be normally carried out test.After the test result for receiving cloud test client feedback, then by the test
As a result the newname for including in is revised as Old Name, displays for a user the test result comprising Old Name.Due to the process renamed
It is transparent to user, therefore user will not be had an impact.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.