CN102999424A - Parallel remote automated testing method - Google Patents
Parallel remote automated testing method Download PDFInfo
- Publication number
- CN102999424A CN102999424A CN2012104901718A CN201210490171A CN102999424A CN 102999424 A CN102999424 A CN 102999424A CN 2012104901718 A CN2012104901718 A CN 2012104901718A CN 201210490171 A CN201210490171 A CN 201210490171A CN 102999424 A CN102999424 A CN 102999424A
- Authority
- CN
- China
- Prior art keywords
- server
- web page
- test
- automatic
- automation
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 80
- 239000000284 extract Substances 0.000 claims abstract description 4
- 238000000034 method Methods 0.000 claims description 17
- 230000007812 deficiency Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- General Factory Administration (AREA)
Abstract
The invention discloses a parallel remote automated testing method. The parallel remote automated testing method is characterized in that a form control automated tool of a web page server is adopted, and testing results are stored by utilizing a database; a platform structure comprises a plurality of PC (personal computer) terminals, and the web page server is established at each automated testing PC terminal; the web page server of each PC terminal is provided with a public database; the web page servers only control the starting of the automated tool and detect whether the automated tool runs; the automated tool stores the testing results into the database according to an unique identification distributed by the web page server; and a web page terminal extracts the report content according to the unique identification, and a testing report is generated through inquiry statistics. According to the invention, multiple PCs are controlled, can be controlled by a console, and run synchronously without mutual interference, and write-in reports are mutually individual in carrying out automation.
Description
Technical field
The present invention relates to a kind of method of parallel remote automation test.
Background technology
In the automatic test of present PC end, generally speaking, a PC can only move an automatic chemical industry instrument simultaneously, therefore need can adopt multiple pc to move in a plurality of testing schemes carry out simultaneously.But in the multiple pc operation, need staff to exercise supervision, test report also needs to artificially collect and distinguish management simultaneously, this process waste of manpower, and data are also quite scattered, are unfavorable for the management of test report.
Simultaneously, because automation tools much is independent operating, if after using remote activation (such as web page server), just automation tools independently gets up, break away from the control of control desk start-up routine, and automatic test does not contact with control desk before finishing yet again.Cause control desk can't hold the automatic operating state of each PC.And, with write into Databasce as a result the time, can produce and write conflict, when running the same use-case simultaneously, a plurality of automation tools mutually write result separately, cause reporting inaccurate.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of method of parallel remote automation test is provided, realize multiple pc is controlled, allow it all can controlled control, and do not interfere with each other mutually when moving simultaneously, when robotization is carried out, write report separate.
In order to achieve the above object, the technical solution used in the present invention is that a kind of method of parallel remote automation test is tested many automatic test PC ends by the web page server of PC end, may further comprise the steps:
Step 1, arbitrarily web page server startup;
Step 2, tester log in the web page server of any PC end by browser, be defined as the A server;
Step 3, enter into the robotization control webpage of web page server, the information of each automatic test PC end of page end request A server;
Step 4, A server send the HTTP request from each automatic test of trend PC end, obtain the automatic operating state of destination server;
The web page server of step 5, each PC end is received request, and whether detects currently has automation tools to move, and with running status with in service and do not return to the A server in operation;
Step 6, A server feed back to page end with the running status that each station server returns, and show at the page whether each PC end can carry out automatic test;
But step 7, tester select the PC end of automatic operating, are made as the S server herein, begin automatic operating after the affirmation;
Step 8, A server receive that the tester from the HTTP request that page end sends, according to the sign of the S server of selecting, gets access to the mailing address of S server by database, send the HTTP request of beginning automatic test to the S server;
Step 9, S server receive the HTTP request of robotization, check again whether the current PC end is moving robotization;
If step 10 S server is moving robotization, then return to the A server by the HTTP request;
Step 11, A server feedback information are shown to tester S server just at automatic operating to page end, please attempt other PC ends, and return step 2;
If step 12 S server does not carry out automatic test, then in database, generate a new record, and obtain the unique identification webseq of the web page server distribution of new record generation;
Step 13, S startup of server automation tools, and webseq and automatic test information sent to automation tools; Simultaneously, feed back to server A, be sent to page end by server A again, and in the prompting automatic operating;
Step 14, S server automation tools start, and unique identification webseq is saved as global variable, according to automatic test information operation robotization;
Step 15, when automation tools need to be preserved test result to database, test result is stored in the database with unique identification webseq, to distinguish each robotization result;
Step 16, automatic operating are complete, the automation tools autoshutdown;
Step 17, tester check operation result at page end, distinguish each robotization result with unique identification.
Further, described web page server is arranged on the PC end of automatic test.
Further, the web page server of described PC end is provided with common data base.
Further, whether described web page server control is opened automation tools and is detected automation tools and move.
Further, described automation tools is stored in database according to the unique identification webseq that web page server distributes with test result.
Further, described page end extracts report content according to unique identification webseq, generates test report by query statistic.
Further, multiple pc is the controlled automatic test that carries out simultaneously, does not separately interfere.
Compared with prior art, the invention has the beneficial effects as follows: the first, the form of multiple pc framework web page server, the PC that each Institute of Automation is used manages; The second, web page server is collected the robotization state of other servers and is shown, the running status of each service all can represent; Three, can control other servers by web page server arbitrarily and carry out robotization; Four, the automatic test result does not interfere with each other mutually; Five, browsed as control desk and report by webpage, simple but quick, do not need client.
Description of drawings
Fig. 1 is method flow diagram of the present invention.
Embodiment
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, in order to technical characterictic of the present invention and advantage are carried out more deep annotation.
Purport of the present invention is to overcome the deficiencies in the prior art, and a kind of method of parallel remote automation test is provided, and adopts the form control automation tools of web page server, and test result is preserved in the usage data storehouse.Its platform architecture comprises the multiple pc end, and the PC end of every automatic test is all set up web page server; The web page server of each PC end arranges common data base; Whether web page server is only controlled the unlatching automation tools and is detected automation tools and move; Automation tools is stored in database according to the unique identification that web page server distributes with test result; Page end extracts report content according to unique identification, generates test report by query statistic.The present invention realizes multiple pc is controlled, and allows it all can controlled control, and does not interfere with each other mutually when moving simultaneously, when robotization is carried out, writes report separate.
Method flow diagram of the present invention as shown in Figure 1, a kind of method of parallel remote automation test, many automatic test PC ends of web page server test by PC end may further comprise the steps:
Step 1, arbitrarily web page server startup are the web page server of any 1 PC end herein, because the multiple pc end forms a test platform, as long as start a web page server;
Step 2, tester log in the web page server of any PC end by browser, be defined as the A server, and defining the A server herein is master server, are namely come other PC ends are controlled by the A server;
Step 3, enter into the robotization control webpage of web page server, the information of each automatic test PC end of page end request A server, each automatic test PC end herein refers to the automatic test information of other PC ends under the platform;
Step 4, A server send the HTTP(Chinese from each automatic test of trend PC end: HTTP; English name: hypertext transport protocol; Definition: a kind of specified in more detail the mutual rule of communication between browser and the Web server, transmit the data transfer protocol of web documents by the Internet) request, obtain the automatic operating state of destination server, HTTP request herein refers to the request message from the client to the server end, comprise in the message first trip, to the requesting method of resource, the identifier of resource and the agreement of use, if the HTTP/1.0 server is received simple request, it must respond the simple response of a HTTP/0.9 form;
The web page server of step 5, each PC end is received request, detects the current automation tools operation that whether has, and with running status with (true) in service with do not return to the A server moving (false);
Step 6, A server feed back to page end with the running status that each station server returns, show at the page whether each PC end can carry out automatic test, show that herein whether each PC end is had the ability to move automatic test is judged, test in order to further carry out again the PC end of automatic test to having the ability;
But step 7, tester select the PC end of automatic operating, are made as the S server herein, begin automatic operating after the affirmation;
Step 8, A server are received tester's web request, according to the sign of the S server of selecting, get access to the mailing address of S server by database, send the HTTP request of beginning automatic test to the S server;
Step 9, S server receive the HTTP request of robotization, check again whether the current PC end is moving robotization;
If step 10 S server is moving robotization, then return to the A server by the HTTP request;
Step 11, A server feedback information are shown to tester S server just at automatic operating to page end, please attempt other PC ends, and return step 2;
If step 12 S server does not carry out automatic test, then in database, generate a new record, and the unique identification webseq of the web page server distribution of acquisition new record generation, (the each generation of this webseq is progressively increased automatically, unique and do not repeat), for example original unique identification webseq will be by new overriding;
Step 13, S startup of server automation tools, and webseq and automatic test information sent to automation tools, wherein automated information comprises: the content of this test, the path of test script; Simultaneously, feed back to server A, be sent to page end by server A again, and in the prompting automatic operating;
Step 14, S server automation tools start, and unique identification webseq is saved as global variable, and it all can be used in automatic test course again, after read script information in the automatic test information, move robotization;
Step 15, when automation tools need to be preserved test result to database, test result is stored in the database with unique identification webseq, to distinguish each robotization result;
Step 16, automatic operating are complete, the automation tools autoshutdown;
Step 17, tester check operation result at page end, distinguish each robotization result with unique identification.
The present invention is by the form of multiple pc framework web page server, and the PC that each Institute of Automation is used manages; Web page server is collected the robotization state of other servers and is shown, the running status of each service all can represent; Can control other servers by web page server arbitrarily and carry out robotization; Automatic test is the result do not interfere with each other mutually; Browsed as control desk and report by webpage, simple but quick, do not need client.
Above content is in conjunction with concrete optimal way further description made for the present invention, should not assert that implementation of the present invention is confined to above explanation.For those skilled in the art, without departing from the inventive concept of the premise, can also make some simple deduction or replace, within the protection domain that the claim that all should be considered as being submitted to by the present invention is determined.
Claims (7)
1. the method for a parallel remote automation test is characterized in that, many automatic test PC ends of web page server test by PC end may further comprise the steps:
Step 1, arbitrarily web page server startup;
Step 2, tester log in the web page server of any PC end by browser, be defined as the A server;
Step 3, enter into the robotization control webpage of web page server, the information of each automatic test PC end of page end request A server;
Step 4, A server send the HTTP request from each automatic test of trend PC end, obtain the automatic operating state of destination server;
The web page server of step 5, each PC end is received request, and whether detects currently has automation tools to move, and with running status with in service and do not return to the A server in operation;
Step 6, A server feed back to page end with the running status that each station server returns, and show at the page whether each PC end can carry out automatic test;
But step 7, tester select the PC end of automatic operating, are made as the S server herein, begin automatic operating after the affirmation;
Step 8, A server receive that the tester from the HTTP request that page end sends, according to the sign of the S server of selecting, gets access to the mailing address of S server by database, send the HTTP request of beginning automatic test to the S server;
Step 9, S server receive the HTTP request of robotization, check again whether the current PC end is moving robotization;
If step 10 S server is moving robotization, then return to the A server by the HTTP request;
Step 11, A server feedback information are shown to tester S server just at automatic operating to page end, please attempt other PC ends, and return step 2;
If step 12 S server does not carry out automatic test, then in database, generate a new record, and obtain the unique identification webseq of the web page server distribution of new record generation;
Step 13, S startup of server automation tools, and webseq and automatic test information sent to automation tools; Simultaneously, feed back to server A, be sent to page end by server A again, and in the prompting automatic operating;
Step 14, S server automation tools start, and unique identification webseq is saved as global variable, according to automatic test information operation robotization;
Step 15, when automation tools need to be preserved test result to database, test result is stored in the database with unique identification webseq, to distinguish each robotization result;
Step 16, automatic operating are complete, the automation tools autoshutdown;
Step 17, tester check operation result at page end, distinguish each robotization result with unique identification.
2. the method for parallel remote automation test according to claim 1, it is characterized in that: described web page server is arranged on the PC end of automatic test.
3. the method for parallel remote automation test according to claim 2, it is characterized in that: the web page server of described PC end is provided with common data base.
4. the method for parallel remote automation test according to claim 3, it is characterized in that: whether described web page server control is opened automation tools and is detected automation tools and move.
5. the method for parallel remote automation test according to claim 4, it is characterized in that: described automation tools is stored in database according to the unique identification webseq that web page server distributes with test result.
6. the method for parallel remote automation test according to claim 5, it is characterized in that: described page end extracts report content according to unique identification webseq, generates test report by query statistic.
7. the method for parallel remote automation test according to claim 6, it is characterized in that: the multiple pc end is the controlled automatic test that carries out simultaneously, does not separately interfere.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210490171.8A CN102999424B (en) | 2012-11-27 | 2012-11-27 | Parallel remote automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210490171.8A CN102999424B (en) | 2012-11-27 | 2012-11-27 | Parallel remote automated testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102999424A true CN102999424A (en) | 2013-03-27 |
CN102999424B CN102999424B (en) | 2015-06-17 |
Family
ID=47928021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210490171.8A Expired - Fee Related CN102999424B (en) | 2012-11-27 | 2012-11-27 | Parallel remote automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102999424B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105205003A (en) * | 2015-10-28 | 2015-12-30 | 努比亚技术有限公司 | Automated testing method and device based on clustering system |
CN104102578B (en) * | 2014-06-27 | 2017-01-25 | 百度在线网络技术(北京)有限公司 | Test method and system and operation terminal |
CN106383782A (en) * | 2016-09-06 | 2017-02-08 | 北京邮电大学 | Application remote testing method and apparatus |
CN106649109A (en) * | 2016-12-14 | 2017-05-10 | 工业和信息化部电信研究院 | Web testing method and system of intelligent terminal |
CN108073515A (en) * | 2017-12-06 | 2018-05-25 | 郑州云海信息技术有限公司 | A kind of Multi-server automated testing methods and system |
CN109508289A (en) * | 2018-10-25 | 2019-03-22 | 阿里巴巴集团控股有限公司 | Test method and device, electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080091775A1 (en) * | 2006-10-12 | 2008-04-17 | International Business Machines Corporation | Method and apparatus for parallel operations on a plurality of network servers |
CN102123191A (en) * | 2011-01-21 | 2011-07-13 | 广东欧珀移动通信有限公司 | Mobile phone automatic testing method |
CN102394797A (en) * | 2011-11-16 | 2012-03-28 | 深圳市赛格导航科技股份有限公司 | Embedded automatic network communication device test method and system |
-
2012
- 2012-11-27 CN CN201210490171.8A patent/CN102999424B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080091775A1 (en) * | 2006-10-12 | 2008-04-17 | International Business Machines Corporation | Method and apparatus for parallel operations on a plurality of network servers |
CN102123191A (en) * | 2011-01-21 | 2011-07-13 | 广东欧珀移动通信有限公司 | Mobile phone automatic testing method |
CN102394797A (en) * | 2011-11-16 | 2012-03-28 | 深圳市赛格导航科技股份有限公司 | Embedded automatic network communication device test method and system |
Non-Patent Citations (1)
Title |
---|
贺斌 等: "WEB应用测试执行引擎的设计与实现", 《计算机技术与发展》, vol. 21, no. 6, 30 June 2011 (2011-06-30), pages 28 - 31 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104102578B (en) * | 2014-06-27 | 2017-01-25 | 百度在线网络技术(北京)有限公司 | Test method and system and operation terminal |
CN105205003A (en) * | 2015-10-28 | 2015-12-30 | 努比亚技术有限公司 | Automated testing method and device based on clustering system |
CN106383782A (en) * | 2016-09-06 | 2017-02-08 | 北京邮电大学 | Application remote testing method and apparatus |
CN106649109A (en) * | 2016-12-14 | 2017-05-10 | 工业和信息化部电信研究院 | Web testing method and system of intelligent terminal |
CN108073515A (en) * | 2017-12-06 | 2018-05-25 | 郑州云海信息技术有限公司 | A kind of Multi-server automated testing methods and system |
CN109508289A (en) * | 2018-10-25 | 2019-03-22 | 阿里巴巴集团控股有限公司 | Test method and device, electronic equipment |
CN109508289B (en) * | 2018-10-25 | 2021-06-29 | 创新先进技术有限公司 | Test method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102999424B (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102999424B (en) | Parallel remote automated testing method | |
CN103428042B (en) | Server is carried out the method and system of stress test | |
CN105447147B (en) | A kind of data processing method and device | |
CN107957940B (en) | Test log processing method, system and terminal | |
CN104536965B (en) | A kind of data query display systems under the conditions of big data and method | |
CN105302885B (en) | full-text data extraction method and device | |
EP3269161A1 (en) | Method and apparatus for fast communication of information during bluetooth discovery phase | |
CN103246963B (en) | Based on the staffs training system of Internet of Things | |
CN107168844B (en) | Performance monitoring method and device | |
CN108667840A (en) | Injection loophole detection method and device | |
CN104750760A (en) | Application software recommending method and device | |
CN105637488A (en) | Tracing source code for end user monitoring | |
CN102761628A (en) | Pan-domain name identification and processing device and method | |
CN104182681A (en) | Hook-based iOS (iPhone operating system) key behavior detection device and detection method thereof | |
CN113360376A (en) | Buried point testing method and device | |
CN108228432A (en) | A kind of distributed link tracking, analysis method and server, global scheduler | |
CN103513986A (en) | Method for using CGI technology for achieving dynamic web server in no-operation system | |
CN114221988B (en) | Content distribution network hotspot analysis method and system | |
KR101840430B1 (en) | Remote meter reading system using publishing and subscription method | |
CN105677912A (en) | Displaying method and system for mass data of online electronic map | |
US8938520B2 (en) | Methods and systems for smart adapters in a social media content analytics environment | |
CN115002011B (en) | Flow bidirectional test method and device, electronic equipment and storage medium | |
CN115242684B (en) | Full-link pressure measurement method and device, computer equipment and storage medium | |
CN103856373B (en) | Web system robustness testing method based on HTTP mutation | |
CN103297480A (en) | System and method for automatically detecting application service |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150617 |