Background technology
Cloud test is a kind of novel test scheme based on cloud computing.Cloud testing server provides multiple test platform, and user arrives cloud test platform by browser by software upload to be tested, just can on cloud test platform, move this, realizes the test to software.
Cloud test provides a whole set of test environment, and tester utilizes the means such as virtual desktop to sign in to this test environment, just can launch immediately test.This cost by software and hardware installation, environment configurations, environment maintenance is transferred to cloud testing service business.With present Intel Virtualization Technology, formulate after hardware configuration, software stack (operating system, middleware, Software tool), network topology tester, create a set of new test environment and only require a very short time; If the standard test environment that tester can accept to have created, can login and test immediately.Utilize the mode of cloud test, greatly reduce building the time of test environment, as machine and network preparation, operating system installation, the installation of various testing tool software etc. all will be saved, only need in advance the configuration surroundings of needs to be informed to cloud testing service business, then directly use, improve Efficiency of Software Testing, and cost-saving.
While using cloud test macro to test, tester is uploaded to cloud testing server (Server) by software to be tested by browser, and cloud test Server is deployed on cloud test client (Client); Cloud test Client tests this software, and the test result of generation is uploaded to cloud test Server; Cloud test Server end reads this test result, and test result is shown at browser.
At present, common byte font can only be identified and support to cloud test macro; But, in dbase to be tested, often there is the symbol of the cloud test macro None-identifieds such as double byte font or additional character, cause the title of this software of cloud test macro None-identified, and then cause this software to there will be and do not upload by problems such as, mess code, test function obstacles carrying out cloud when test.
Summary of the invention
The embodiment of the present invention provides a kind of cloud method of testing and cloud testing server, can carry out proper testing to the software of the symbol that contains None-identified in title.
The technical scheme of the embodiment of the present invention is achieved in that
A kind of cloud method of testing, comprising:
Cloud testing server receives the software to be tested that user uploads, judge the whether None-identified of Old Name of described software to be tested, if None-identified, it is the discernible newname of described Software Create to be tested, preserve this software to be tested and newname thereof, and preserve the corresponding relation of described Old Name and newname;
Show software to be tested and newname thereof to cloud test client.
Said method further comprises:
Cloud testing server receives the test result that comprises dbase of cloud test client feedback, searches in described corresponding relation, whether there is the corresponding Old Name of this dbase; If existed, the dbase in test result is replaced with to described Old Name, show the test result that comprises described Old Name to user.
In said method, the mode of the software to be tested that described cloud testing server reception user uploads is: cloud testing server receives the software to be tested that user uploads by browser;
Described cloud testing server shows that to user the mode of the test result that comprises Old Name is: the test result that cloud testing server comprises Old Name in browser display.
In said method, the Old Name that cloud testing service the judges software to be tested whether mode of None-identified can be:
Judge the character that whether comprises cloud test macro None-identified in described Old Name, if so, judge the Old Name None-identified of described software to be tested.
In said method, cloud testing server is that the mode of the discernible newname of Software Create to be tested can be:
Cloud testing server is the discernible newname of the random generation of software to be tested, or newname as this software to be tested of selection from multiple distinguished names of preserving in advance claim, or be the discernible newname of this Software Create to be tested according to predefined title create-rule.
A kind of cloud testing server, comprising:
User interactive module, the software to be tested of uploading for receiving user;
Title processing module, for judging the whether None-identified of Old Name of described software to be tested, if None-identified is the discernible newname of described Software Create to be tested;
Preserve module, for preserving described software to be tested and newname thereof, and preserve the corresponding relation of described Old Name and newname;
Client interactive module, for showing software to be tested and newname thereof to cloud test client.
In above-mentioned cloud testing server,
Client interactive module can also be used for, and receives the test result that comprises dbase of cloud test client feedback;
Title processing module can also be used for, and searches in described corresponding relation, whether there is the corresponding Old Name of the dbase comprising in test result; If exist, the dbase in test result replaced with to described Old Name;
User interactive module can also be used for, and shows the test result that comprises described Old Name to user.
In above-mentioned cloud testing server, user interactive module can receive the software to be tested that user uploads by browser, and the test result that comprises Old Name in browser display.
In above-mentioned cloud testing server, title processing module can judge the character that whether comprises cloud test macro None-identified in Old Name, if so, judges the Old Name None-identified of described software to be tested.
Title processing module can be the discernible newname of the random generation of software to be tested, or newname as this software to be tested of selection from multiple distinguished names of preserving in advance claim, or be the discernible newname of this Software Create to be tested according to predefined title create-rule.
Visible, cloud method of testing and cloud testing server that the present invention proposes, in the time receiving the software to be tested that user uploads, if the Old Name None-identified of this software, claim for the new distinguished name of this Software Create, and record the corresponding relation of Old Name and newname; In the time of facing cloud test client, show the newname of this software to cloud test client, thereby ensure that such software can normally test.
Embodiment
The present invention proposes a kind of cloud method of testing, if Fig. 1 is the method realization flow figure, comprising:
Step 101: cloud testing server receives the software to be tested uploaded of user, judges the whether None-identified of Old Name of described software to be tested, if None-identified performs step 102;
Step 102: cloud testing server is the discernible newname of described Software Create to be tested, preserves this software to be tested and newname thereof, and preserve the corresponding relation of described Old Name and newname;
Step 103: show software to be tested and newname thereof to cloud test client.
Like this, cloud testing server is in the time receiving software to be tested, the Old Name of the None-identified of software to be tested is changed to the newname that can identify, and in cloud test macro, (comprise cloud testing server and cloud test client) and show and use newname, thereby ensure the proper testing of this software in cloud test macro.
The method further comprises:
Cloud testing server receives the test result that comprises dbase of cloud test client feedback, searches in described corresponding relation, whether there is the corresponding Old Name of this dbase; If existed, the dbase in test result is replaced with to described Old Name, show the test result that comprises described Old Name to user.
Cloud testing server changes to the Old Name of software None-identified the process of discernible newname, and the process that the newname in test result is changed to Old Name is transparent for user; User only need to upload software to be tested, and checks the test result that comprises software Old Name to be tested.But in cloud test macro, complete the change of title, ensured the proper testing of the software that comprises additional character.
In said method, the mode of the software to be tested that cloud testing server reception user uploads can be: cloud testing server receives the software to be tested that user uploads by browser; Cloud testing server shows that to user the mode of the test result that comprises Old Name can be: the test result that cloud testing server comprises Old Name in browser display.
In above-mentioned steps 101, the Old Name that cloud testing service the judges software to be tested whether mode of None-identified can be: judge the character that whether comprises cloud test macro None-identified in Old Name, if so, judge the Old Name None-identified of described software to be tested.At present, the character of cloud test macro None-identified comprises: double byte font (as Chinese), Mars word (carrying out the netspeak of watch sound by homophone, the nearly word of sound, additional character etc.), additional character etc.
In above-mentioned steps 102, cloud testing server is that the mode of the discernible newname of Software Create to be tested can be:
Cloud testing server is the discernible newname of the random generation of software to be tested, or newname as this software to be tested of selection from multiple distinguished names of preserving in advance claim, or be the discernible newname of this Software Create to be tested according to predefined title create-rule.
Below in conjunction with accompanying drawing, lift specific embodiment the present invention is described in detail.
Embodiment mono-:
If Fig. 2 is the transfer process figure of software to be tested and test result in the embodiment of the present invention one.Detailed process comprises:
Step 201: user uploads software to be tested by browser to cloud test Server, and the name of this software to be tested is called the Old Name of cloud test macro None-identified.
Step 202: cloud test Server judges after the title None-identified of this software to be tested, for the discernible newname of this Software Create cloud test macro, preserves this software to be tested and newname thereof, realizes the success of this software to be tested and uploads.And cloud test Server preserves the corresponding relation of Old Name and newname.
Old Name and newname can be kept in independent database, adopt specific data list to preserve.
Step 203: when cloud test Server facing cloud test Client, Client shows this software to be tested and newname thereof to cloud test.
Step 204: cloud test Client downloads the software to be tested with newname, and this software is tested, and obtains and logging test results, and Server returns to the test result that comprises newname to cloud test.
Step 205: cloud test Server receives test result, the corresponding relation of preserving in finding step 202, there is corresponding Old Name in the title finding in this test result, the title in this test result is replaced with to Old Name.
Step 206: user is checked or downloaded the test result of software by browser, comprises the Old Name of software in this test result.
As seen from the above-described embodiment, cloud test Server is in the time receiving software to be tested, if the title None-identified of this software replaces with by its title the newname that cloud test macro can be identified; Use newname in cloud test macro side (comprising cloud test Server and cloud test Client), in the time of user oriented, use Old Name.Like this, both ensured that testing software can normally test in cloud test macro, can not exert an influence to user again.
The present invention also proposes a kind of cloud testing server, as the structural representation that Fig. 3 is this cloud testing server, comprising:
User interactive module 301, the software to be tested of uploading for receiving user;
Title processing module 302, for judging the whether None-identified of Old Name of described software to be tested, if None-identified is the discernible newname of described Software Create to be tested;
Preserve module 303, for preserving described software to be tested and newname thereof, and preserve the corresponding relation of described Old Name and newname;
Client interactive module 304, for showing software to be tested and newname thereof to cloud test client.
In above-mentioned cloud testing server,
Client interactive module 304 can also be used for, and receives the test result that comprises dbase of cloud test client feedback;
Title processing module 302 can also be used for, and searches in described corresponding relation, whether there is the corresponding Old Name of the dbase comprising in test result; If exist, the dbase in test result replaced with to described Old Name;
User interactive module 301 can also be used for, and shows the test result that comprises described Old Name to user.
In above-mentioned cloud testing server, user interactive module 301 receives the software to be tested that user uploads by browser, and the test result that comprises Old Name in browser display.
In above-mentioned cloud testing server, title processing module 302 judges the character that whether comprises cloud test macro None-identified in described Old Name, if so, judges the Old Name None-identified of described software to be tested.
Title processing module 302 is the discernible newname of the random generation of software to be tested, or newname as this software to be tested of selection from multiple distinguished names of preserving in advance claim, or be the discernible newname of this Software Create to be tested according to predefined title create-rule.
As fully visible, cloud method of testing and cloud testing server that the present invention proposes, in the time receiving the software to be tested that user uploads, if the Old Name None-identified of this software, claim for the new distinguished name of this Software Create, and record the corresponding relation of Old Name and newname; In the time of facing cloud test client, show the newname of this software to cloud test client, thereby ensure that such software can normally test.Receiving after the test result of cloud test client feedback, then the newname comprising in this test result is being revised as to Old Name, for user shows the test result that comprises Old Name.Because the process of renaming is to user transparent, therefore can not exert an influence to user.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.