CN102999424B - Parallel remote automated testing method - Google Patents

Parallel remote automated testing method Download PDF

Info

Publication number
CN102999424B
CN102999424B CN201210490171.8A CN201210490171A CN102999424B CN 102999424 B CN102999424 B CN 102999424B CN 201210490171 A CN201210490171 A CN 201210490171A CN 102999424 B CN102999424 B CN 102999424B
Authority
CN
China
Prior art keywords
server
web page
test
automation
automatic
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.)
Expired - Fee Related
Application number
CN201210490171.8A
Other languages
Chinese (zh)
Other versions
CN102999424A (en
Inventor
李亥峻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201210490171.8A priority Critical patent/CN102999424B/en
Publication of CN102999424A publication Critical patent/CN102999424A/en
Application granted granted Critical
Publication of CN102999424B publication Critical patent/CN102999424B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of method of parallel remote automation test
Technical field
The present invention relates to a kind of method of parallel remote automation test.
Background technology
In the automatic test that current PC holds, generally, a PC can only run an automatic chemical industry instrument simultaneously, therefore when needing multiple testing scheme to perform, multiple pc can be adopted to run simultaneously.But when multiple pc runs, need staff to exercise supervision, test report also needs to artificially collect and distinguishes management, this process waste of manpower, and data are also quite scattered, are unfavorable for the management of test report simultaneously.
Meanwhile, because automation tools is much independent operating, if after using remote activation (as web page server), automation tools just independently gets up, depart from the control of control desk start-up routine, and automatic test does not also contact with control desk before completing again.Cause control desk cannot hold the automatic operating state of each PC.And, when by result write into Databasce, write conflict can be produced, when multiple automation tools runs same use-case, mutually write respective result simultaneously, cause report 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, realizes controlling multiple pc, allow it all can controlled control, and run phase not interfere with each other, when robotization is carried out, write report is separate simultaneously.
In order to achieve the above object, the technical solution used in the present invention is, a kind of method of parallel remote automation test, by the web page server test multiple stage automatic test PC end of a PC end, comprises the following steps:
Step 1, arbitrarily web page server start;
Step 2, tester log in the web page server of any PC end by browser, be defined as A server;
Step 3, enter into the Automated condtrol webpage of web page server, the information that each automatic test PC of page end request A server holds;
Step 4, A server are held from each automatic test of trend PC and are sent HTTP request, obtain the automatic operating state of destination server;
The web page server of step 5, each PC end receives request, and whether detect currently has automation tools to run, and running status is not returned to A server in operation to run to neutralize;
The running status that each station server returns is fed back to page end by step 6, A server, shows each PC end whether can carry out automatic test at the page;
Step 7, tester select can automatic operating PC end, be set to S server herein, after confirmation, start automatic operating;
Step 8, A server receive the HTTP request that tester sends from page end, according to the mark of the S server selected, are got the mailing address of S server by database, send the HTTP request starting automatic test to S server;
Step 9, S server receive the HTTP request of robotization, check whether current PC end runs robotization again;
If step 10 S server runs robotization, then return to A server by HTTP request;
Step 11, A server feedback information, to page end, are shown to tester S server just at automatic operating, please attempt other PC and hold, and return step 2;
If step 12 S server does not carry out automatic test, then generate a new record in a database, and obtain the unique identification webseq of the web page server distribution that new record generates;
Step 13, S startup of server automation tools, and webseq and automatic test information are sent to automation tools; Meanwhile, feed back to server A, then be sent to page end by server A, and point out in automatic operating;
The server automated instrument start-up of step 14, S, saves as global variable by unique identification webseq, runs robotization according to automatic test information;
Step 15, automation tools need preserve test result to database time, test result is stored in database together with unique identification webseq, to distinguish each robotization result;
Step 16, automatic operating are complete, and automation tools is closed automatically;
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 controls to open automation tools and detect automation tools to run.
Further, test result is stored in database by the unique identification webseq that described automation tools distributes according to web page server.
Further, described page end extracts report content according to unique identification webseq, generates test report by query statistic.
Further, multiple pc simultaneously controlledly can carry out automatic test, 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, manages the PC of each Institute of Automation; The second, web page server is collected the robotization state of other servers and is shown, and the running status of each service all can represent; Three, control other servers by arbitrary web page server and carry out robotization; Four, 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.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention.
Embodiment
Be described in detail, to be interpretated more in-depth technical characteristic of the present invention and advantage with reference to accompanying drawing below in conjunction with embodiment.
Purport of the present invention is to overcome the deficiencies in the prior art, and provide a kind of method of parallel remote automation test, adopt the form control automation tools of web page server, test result is preserved in usage data storehouse.Its platform architecture comprises multiple pc end, and the PC end of every platform automatic test all sets up web page server; The web page server that each PC holds arranges common data base; Whether web page server only controls to open automation tools and detect automation tools to run; Test result is stored in database by the unique identification that automation tools distributes according to web page server; Page end extracts report content according to unique identification, generates test report by query statistic.The present invention realizes controlling multiple pc, allows it all can controlled controls, and runs phase simultaneously and do not interfere with each other, and when robotization is carried out, write is reported separate.
As shown in Figure 1, a kind of method of parallel remote automation test, by the web page server test multiple stage automatic test PC end of a PC end, comprises the following steps method flow diagram of the present invention:
Step 1, arbitrarily web page server start, and are the web page server of any 1 PC end herein, because 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 A server, defining A server is herein master server, is namely controlled other PC end by A server;
Step 3, enter into the Automated condtrol webpage of web page server, the information that each automatic test PC of page end request A server holds, each automatic test PC end herein refers to the automatic test information that other PC under platform hold;
Step 4, A server are held from each automatic test of trend PC and are sent HTTP(Chinese: HTTP; English name: hypertext transport protocol; Definition: the rule of a kind of specified in more detail communication mutually between browser and Web server, the data transfer protocol of web documents is transmitted by the Internet) request, obtain the automatic operating state of destination server, HTTP request herein refers to the request message from client to server end, comprise in message first trip, to the agreement of the requesting method of resource, the identifier of resource and use, if HTTP/1.0 server receives simple request, it must respond the simple response of a HTTP/0.9 form;
The web page server of step 5, each PC end receives request, and whether detect currently has automation tools to run, and running status is returned to A server with (true) in running with not running (false);
The running status that each station server returns is fed back to page end by step 6, A server, show each PC end at the page and whether can carry out automatic test, show herein and hold operation automatic test of whether having the ability to judge to each PC, so that the PC end carrying out automatic test more further to having the ability is tested;
Step 7, tester select can automatic operating PC end, be set to S server herein, after confirmation, start automatic operating;
Step 8, A server receive the web request of tester, according to the mark of the S server selected, are got the mailing address of S server by database, send the HTTP request starting automatic test to S server;
Step 9, S server receive the HTTP request of robotization, check whether current PC end runs robotization again;
If step 10 S server runs robotization, then return to A server by HTTP request;
Step 11, A server feedback information, to page end, are shown to tester S server just at automatic operating, please attempt other PC and hold, and return step 2;
If step 12 S server does not carry out automatic test, then generate a new record in a database, and obtain the unique identification webseq of the web page server distribution that new record generates, (this webseq generates at every turn and automatically progressively increases, uniquely and do not repeat), such as original unique identification webseq overrides by new;
Step 13, S startup of server automation tools, and webseq and automatic test information are sent to automation tools, wherein automated information comprises: the content of this test, the path of test script; Meanwhile, feed back to server A, then be sent to page end by server A, and point out in automatic operating;
The server automated instrument start-up of step 14, S, saves as global variable by unique identification webseq, makes it all can use in automatic test course, script information in rear reading automatic test information again, runs robotization;
Step 15, automation tools need preserve test result to database time, test result is stored in database together with unique identification webseq, to distinguish each robotization result;
Step 16, automatic operating are complete, and automation tools is closed automatically;
Step 17, tester check operation result at page end, distinguish each robotization result with unique identification.
The present invention, by the form of multiple pc framework web page server, manages the PC of each Institute of Automation; Web page server is collected the robotization state of other servers and is shown, and the running status of each service all can represent; Control other servers by arbitrary web page server and carry out robotization; Automatic test result does 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 specific embodiment of the invention is confined to above explanation.For those skilled in the art, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, within the protection domain that the claim that all should be considered as being submitted to by the present invention is determined.

Claims (6)

1. a method for parallel remote automation test, is characterized in that, the PC end of every platform automatic test all sets up web page server, by the web page server test multiple stage automatic test PC end of a PC end, comprises the following steps:
Step 1, arbitrarily web page server start;
Step 2, tester log in the web page server of any PC end by browser, be defined as A server;
Step 3, enter into the Automated condtrol webpage of web page server, the information that each automatic test PC of page end request A server holds;
Step 4, A server are held from each automatic test of trend PC and are sent HTTP request, obtain the automatic operating state of destination server;
The web page server of step 5, each PC end receives request, and whether detect currently has automation tools to run, and running status is not returned to A server in operation to run to neutralize;
The running status that each station server returns is fed back to page end by step 6, A server, shows each PC end whether can carry out automatic test at the page;
Step 7, tester select can automatic operating PC end, be set to S server herein, after confirmation, start automatic operating;
Step 8, A server receive the HTTP request that tester sends from page end, according to the mark of the S server selected, are got the mailing address of S server by database, send the HTTP request starting automatic test to S server;
Step 9, S server receive the HTTP request of robotization, check whether current PC end runs automation tools again;
If step 10 S server runs automation tools, then return to A server by HTTP request;
Step 11, A server feedback information, to page end, are shown to tester S server just at automatic operating, please attempt other PC and hold, and return step 2;
If step 12 S server does not carry out automatic test, then generate a new record in a database, and obtain the unique identification webseq of the web page server distribution that new record generates;
Step 13, S startup of server automation tools, and webseq and automatic test information are sent to automation tools; Meanwhile, feed back to server A, then be sent to page end by server A, and point out in automatic operating;
The server automated instrument start-up of step 14, S, saves as global variable by unique identification webseq, runs robotization according to automatic test information;
Step 15, automation tools need preserve test result to database time, test result is stored in database together with unique identification webseq, to distinguish each robotization result;
Step 16, automatic operating are complete, and automation tools is closed automatically;
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, is characterized in that: the web page server of described PC end is provided with common data base.
3. the method for parallel remote automation test according to claim 2, is characterized in that: whether described web page server controls to open automation tools and detect automation tools to run.
4. the method for parallel remote automation test according to claim 3, is characterized in that: test result is stored in database by the unique identification webseq that described automation tools distributes according to web page server.
5. the method for parallel remote automation test according to claim 4, is characterized in that: described page end extracts report content according to unique identification webseq, generates test report by query statistic.
6. the method for parallel remote automation test according to claim 5, is characterized in that: multiple pc end is simultaneously controlled carries out automatic test, does not separately interfere.
CN201210490171.8A 2012-11-27 2012-11-27 Parallel remote automated testing method Expired - Fee Related CN102999424B (en)

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 CN102999424A (en) 2013-03-27
CN102999424B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
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
CN109508289B (en) * 2018-10-25 2021-06-29 创新先进技术有限公司 Test method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100568808C (en) * 2006-10-12 2009-12-09 国际商业机器公司 Method and apparatus to a plurality of webserver parallel work-flows

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
WEB应用测试执行引擎的设计与实现;贺斌 等;《计算机技术与发展》;20110630;第21卷(第6期);第28-31页 *

Also Published As

Publication number Publication date
CN102999424A (en) 2013-03-27

Similar Documents

Publication Publication Date Title
CN102999424B (en) Parallel remote automated testing method
CN104579822B (en) Mobile application automated performance testing system and method based on Http agreements
CN102819591B (en) A kind of content-based Web page classification method and system
CN105099811A (en) Interface testing method and device
CN103428042B (en) Server is carried out the method and system of stress test
CN102761628B (en) Pan-domain name identification and processing device and method
US20160299482A1 (en) Automatic inspection and monitoring method based on time domain slotting control
CN104750760A (en) Application software recommending method and device
CN107168844B (en) Performance monitoring method and device
CN109408763B (en) Method and system for managing resume of different templates
CN104537496B (en) Intelligent terminal device use condition statistical analysis method and device
CN103475749A (en) Cross-domain communication method and device
CN111200649A (en) Scheduling method and device and scheduling model generation method and device
CN113360376A (en) Buried point testing method and device
CN104320415B (en) A kind of substation equipment kinematic insert formula specification analytic method
CN103513986A (en) Method for using CGI technology for achieving dynamic web server in no-operation system
CN103647663A (en) Resource management method in server cluster
CN114221988B (en) Content distribution network hotspot analysis method and system
CN104980409A (en) Internet behavior management method and device
US8938520B2 (en) Methods and systems for smart adapters in a social media content analytics environment
CN104994181A (en) Method for displaying dynamic MAC address table in distributed OLT system
CN105407150A (en) Remote control method of application program
CN103856373B (en) Web system robustness testing method based on HTTP mutation
CN107483294B (en) Method and device for monitoring network request
CN103326892B (en) The operating method and device of web interface

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