WO2013152576A1 - Method for implementing remote control automation tool - Google Patents

Method for implementing remote control automation tool Download PDF

Info

Publication number
WO2013152576A1
WO2013152576A1 PCT/CN2012/082435 CN2012082435W WO2013152576A1 WO 2013152576 A1 WO2013152576 A1 WO 2013152576A1 CN 2012082435 W CN2012082435 W CN 2012082435W WO 2013152576 A1 WO2013152576 A1 WO 2013152576A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
automation
project
automation tool
executed
Prior art date
Application number
PCT/CN2012/082435
Other languages
French (fr)
Chinese (zh)
Inventor
曾元清
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2013152576A1 publication Critical patent/WO2013152576A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Definitions

  • Step 9 the server calls the executable script file, starts the automation tool according to the parameter, and opens the corresponding project;
  • Step 13 The program ends.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Disclosed is a method for implementing a remote control automation tool. A remote control system is provided at a PC end, an automation tool is saved at a serving end, and the PC end and the serving end are connected. By building a website, content that needs to be executed is presented in the form of a web page. A project that needs to be executed is selected on the web page. A source code recognizable to the automation tool is obtained through a parsing algorithm. An automation command is submitted to a server, and the server invokes the automation tool to execute the corresponding automation command. The present invention has a simple operation interface. The automation test is completed by an ordinary test engineer, and the procedure is clear and simple. Local resources are released, time is saved, and efficiency is enhanced. Automation data management is regulated, and the test modules are clear. A module can be selected for execution. An automation test continues running after interruption without having to start from the beginning. Also, an automation test can be performed at any web page end that is capable of communicating with the serving end without installing an automation tool locally.

Description

一种远程控制自动化工具的实现方法 Method for realizing remote control automation tool
技术领域 Technical field
本发明涉及一种用于PC端测试的自动化工具,特别是涉及一种远程控制自动化工具的实现方法。 The present invention relates to an automated tool for PC-side testing, and more particularly to a method for implementing a remote control automation tool.
背景技术 Background technique
目前的自动化工具均是自动化测试工程师在使用,其自动化的执行,细节调试均须自动化工程师执行。与测试工作关联最密切的黑盒测试员却不参与其中。并且自动化的运行必须在本机运行,无法在自动化进行之时进行其他工作。 The current automation tools are used by automated test engineers, and their automated execution and detailed debugging are performed by automation engineers. Black box testers who are most closely related to the test work are not involved. And the automated operation must be run locally, and no other work can be done while automation is in progress.
此种测试工作使用方法有以下缺陷:第一、自动化测试全由自动化工程师完成,缺少测试员的参与,这样的结果是自动化测试效果不明显;第二、无法并行进行自动化测试,本机自动化执行后无法进行其他工作,工作效率低下;第三、自动化测试的范围需要在代码层修改,不易于维护;第四、自动化测试项目作为一个整体存在,若中间出错则需要从最开始再次执行,浪费时间。 The use of such test work has the following defects: First, the automated test is completed by the automation engineer, lacking the participation of the tester, the result is that the automated test effect is not obvious; second, the automated test cannot be performed in parallel, and the machine is automatically executed. After the other work can not be carried out, the work efficiency is low; third, the scope of automated testing needs to be modified at the code level, not easy to maintain; Fourth, the automated test project exists as a whole, if the middle error occurs, it needs to be executed again from the beginning, waste time.
发明内容 Summary of the invention
本发明的目的在于克服现有技术的不足,提供一种远程控制自动化工具的实现方法,使自动化工具的运行可被远程操控、监测,不占用本地的资源。 The object of the present invention is to overcome the deficiencies of the prior art and provide a method for implementing a remote control automation tool, so that the operation of the automation tool can be remotely controlled and monitored without occupying local resources.
为了达到上述目的,本发明采用的技术方案是:一种远程控制自动化工具的实现方法,远程控制系统设置于PC端,自动化工具保存在服务端,PC端与服务端连接,通过构建网站,将所需执行的内容以网页形式展现,并在网页上选择需要执行的项目,通过解析算法得出自动化工具能够识别的源代码,将自动化命令提交至服务器,并由服务器调用自动化工具执行相应的自动化命令。 In order to achieve the above object, the technical solution adopted by the present invention is: a method for realizing a remote control automation tool, the remote control system is set on the PC, the automation tool is stored on the server, and the PC is connected to the server, and by constructing a website, The content to be executed is displayed in the form of a web page, and the items to be executed are selected on the web page, the source code that the automation tool can recognize is obtained through the parsing algorithm, the automation command is submitted to the server, and the automation tool is invoked by the server to perform the corresponding automation. command.
远程控制自动化工具的实现方法,步骤如下: The implementation method of the remote control automation tool is as follows:
步骤1、登录网站,此时服务端返回项目列表; Step 1. Log in to the website, and the server returns the item list at this time;
步骤2、在网页端选择需要执行的项目,此时服务端返回项目的各个模块及项目参数,参数包括项目编号、项目控制代码标识、项目名称; Step 2: Select a project to be executed on the webpage end, and the server returns various modules and project parameters of the project, and the parameter includes a project number, a project control code identifier, and a project name;
步骤3、在网页端选择需要执行的模块; Step 3. Select a module to be executed on the webpage side;
步骤4、在网页端解析所选模块,得出自动化工具能够执行的源代码; Step 4: parsing the selected module on the webpage side to obtain source code that the automation tool can execute;
步骤5、网页端将源代码以及项目参数提交至服务端; Step 5: The webpage submits the source code and the project parameters to the server;
步骤6、服务端接收到执行指令,检测当前是否有自动化任务正在执行,当前服务端有自动化任务在执行则执行步骤7,否则执行步骤8; Step 6, the server receives the execution instruction, detects whether there is an automatic task currently being executed, the current server has an automated task is executed, step 7 is performed, otherwise step 8 is performed;
步骤7、当前服务端有自动化任务在执行,则返回网页端信息,提示已有自动化测试在执行,程序结束; Step 7. If the current server has an automated task executing, the webpage end information is returned, indicating that an automated test is being executed, and the program ends;
步骤8、服务端无自动化任务执行,则服务端读取项目参数与源代码,通过解析项目参数,编译一可执行脚本文件,并将源代码写在服务器端的一文件内; Step 8, the server does not perform automatic task execution, the server reads the project parameters and the source code, compiles an executable script file by parsing the project parameters, and writes the source code in a file on the server side;
步骤9、服务端调用可执行脚本文件,根据参数启动自动化工具,打开对应项目; Step 9, the server calls the executable script file, starts the automation tool according to the parameter, and opens the corresponding project;
步骤10、自动化工具读取步骤8中生成的文件,获得源代码; Step 10, the automated tool reads the file generated in step 8, and obtains the source code;
步骤11、自动化执行源代码,此时自动化工具将执行网页端所选的模块内容; Step 11, automatically execute the source code, at this time, the automation tool will execute the module content selected on the webpage side;
步骤12、自动化执行完毕; Step 12, the automatic execution is completed;
步骤13、程序结束。 Step 13. The program ends.
进一步的,所述的网站为根据自动化工具需要执行项目构建的网站,并分布在网页端进行选择。 Further, the website is a website constructed according to an automation tool, and is distributed on the webpage for selection.
进一步的,通过传递项目控制代码,在服务端编译可执行文件并执行以实现远程控制。 Further, by passing the project control code, the executable file is compiled and executed on the server side to implement remote control.
进一步的,所述的自动化工具实现方法在任意PC机的网页端连接到服务端进行自动化测试控制。 Further, the automated tool implementation method is connected to the server at the webpage end of any PC for automated test control.
与现有技术相比,本发明的有益效果是:操作界面简单,自动化测试由普通的测试员完成,流程清晰明了;释放本地资源,节约了时间,提高了效率;规范自动化数据管理,测试模块明确;可选择模块执行,自动化测试中断后再次运行无需从头开始;可在任意能与服务端通讯的网页端进行自动化测试,无需本机安装自动化工具。 Compared with the prior art, the invention has the advantages that the operation interface is simple, the automatic test is completed by an ordinary tester, the process is clear, the local resources are released, the time is saved, the efficiency is improved, and the automatic data management and test module are standardized. Clear; optional module execution, automatic test after interruption, no need to start from scratch; can be automated test on any web page that can communicate with the server, without the need to install automation tools.
附图说明 DRAWINGS
图1为本发明的方法流程图。 Figure 1 is a flow chart of the method of the present invention.
具体实施方式 detailed description
本发明的主旨在于克服现有技术的不足,提供一种远程控制自动化工具的实现方法,将所需执行的内容以网页形式展现,在网页上选择需要执行的项目,并通过解析算法得出可被自动化工具识别的代码,提交至服务器让服务器调用自动化工具执行。使自动化工具的运行可被远程操控、监测,不占用本地的资源。 The main purpose of the present invention is to overcome the deficiencies of the prior art, and to provide a method for implementing a remote control automation tool, which displays the content to be executed in the form of a webpage, selects a project to be executed on the webpage, and obtains through an analytical algorithm. The code identified by the automated tool is submitted to the server for the server to invoke the automated tool to execute. Enables the operation of automated tools to be remotely controlled and monitored without taking up local resources.
下面结合实施例参照附图进行详细说明,以便对本发明的技术特征及优点进行更深入的诠释。 The detailed description of the technical features and advantages of the present invention will be described in detail below with reference to the accompanying drawings.
本发明的方法流程图如图1所示,远程控制系统设置于PC端,自动化工具保存在服务端,PC端与服务端连接,通过构建网站,将所需执行的内容以网页形式展现,并在网页上选择需要执行的项目,通过解析算法得出自动化工具能够识别的源代码,将自动化命令提交至服务器,并由服务器调用自动化工具执行相应的自动化命令。 The method of the method of the present invention is as shown in FIG. 1. The remote control system is set on the PC, the automation tool is stored on the server, and the PC is connected to the server. By constructing the website, the content to be executed is displayed in the form of a webpage, and Select the project to be executed on the webpage, obtain the source code that the automation tool can recognize through the parsing algorithm, submit the automation command to the server, and call the automation tool to execute the corresponding automation command.
自动化工具的测试项目包括主要包括专业的快速测试、图解测试等自动化工具创建的测试项目。 Test items for automated tools include test items created primarily by automated tools such as professional quick tests and graphical tests.
远程控制自动化工具的实现方法,步骤如下: The implementation method of the remote control automation tool is as follows:
步骤1、登录网站,此时服务端返回项目列表; Step 1. Log in to the website, and the server returns the item list at this time;
步骤2、在网页端选择需要执行的项目,此时服务端返回项目的各个模块及项目参数,参数包括项目编号、项目控制代码标识、项目名称; Step 2: Select a project to be executed on the webpage end, and the server returns various modules and project parameters of the project, and the parameter includes a project number, a project control code identifier, and a project name;
步骤3、在网页端选择需要执行的模块; Step 3. Select a module to be executed on the webpage side;
步骤4、在网页端解析所选模块,得出自动化工具能够执行的源代码; Step 4: parsing the selected module on the webpage side to obtain source code that the automation tool can execute;
步骤5、网页端将源代码以及项目参数提交至服务端; Step 5: The webpage submits the source code and the project parameters to the server;
步骤6、服务端接收到执行指令,检测当前是否有自动化任务正在执行,当前服务端有自动化任务在执行则执行步骤7,否则执行步骤8; Step 6, the server receives the execution instruction, detects whether there is an automatic task currently being executed, the current server has an automated task is executed, step 7 is performed, otherwise step 8 is performed;
步骤7、当前服务端有自动化任务在执行,则返回网页端信息,提示已有自动化测试在执行,程序结束; Step 7. If the current server has an automated task executing, the webpage end information is returned, indicating that an automated test is being executed, and the program ends;
步骤8、服务端无自动化任务执行,则服务端读取项目参数与源代码,通过解析项目参数,编译一可执行脚本文件,并将源代码写在服务器端的一文件内; Step 8, the server does not perform automatic task execution, the server reads the project parameters and the source code, compiles an executable script file by parsing the project parameters, and writes the source code in a file on the server side;
步骤9、服务端调用可执行脚本文件,根据参数启动自动化工具,打开对应项目; Step 9, the server calls the executable script file, starts the automation tool according to the parameter, and opens the corresponding project;
步骤10、自动化工具读取步骤8中生成的文件,获得源代码; Step 10, the automated tool reads the file generated in step 8, and obtains the source code;
步骤11、自动化执行源代码,此时自动化工具将执行网页端所选的模块内容; Step 11, automatically execute the source code, at this time, the automation tool will execute the module content selected on the webpage side;
步骤12、自动化执行完毕; Step 12, the automatic execution is completed;
步骤13、程序结束。 Step 13. The program ends.
进一步的,所述的网站为根据自动化工具需要执行项目构建的网站,并分布在网页端进行选择。 Further, the website is a website constructed according to an automation tool, and is distributed on the webpage for selection.
进一步的,通过传递项目控制代码,在服务端编译可执行文件并执行以实现远程控制。 Further, by passing the project control code, the executable file is compiled and executed on the server side to implement remote control.
进一步的,所述的自动化工具实现方法在任意PC机的网页端连接到服务端进行自动化测试控制。 Further, the automated tool implementation method is connected to the server at the webpage end of any PC for automated test control.
本发明操作界面简单,自动化测试由普通的测试员完成,流程清晰明了;释放本地资源,节约了时间,提高了效率;规范自动化数据管理,测试模块明确;可选择模块执行,自动化测试中断后再次运行无需从头开始;可在任意能与服务端通讯的网页端进行自动化测试,无需本机安装自动化工具。 The operation interface of the invention is simple, the automatic test is completed by an ordinary tester, the process is clear and clear; the local resources are released, the time is saved, the efficiency is improved; the automated data management is standardized, the test module is clear; the module execution can be selected, and the automatic test is interrupted again. The operation does not need to start from the beginning; it can be automated tested on any web page that can communicate with the server, without the need to install automation tools locally.
以上所述为本发明较佳的实施例,在不脱离本发明的发明构思的前提下,任何显而易见的替换均在本发明的保护范围之内。 The above is a preferred embodiment of the present invention, and any obvious alternatives are within the scope of the present invention without departing from the inventive concept.

Claims (4)

  1. 一种远程控制自动化工具的实现方法,其特征在于,远程控制系统设置于PC端,自动化工具保存在服务端,PC端与服务端连接,通过构建网站,将所需执行的内容以网页形式展现,并在网页上选择需要执行的项目,通过解析算法得出自动化工具能够识别的源代码,将自动化命令提交至服务器,并由服务器调用自动化工具执行相应的自动化命令,所述的实现方法步骤如下:A method for realizing a remote control automation tool is characterized in that a remote control system is set on a PC, an automation tool is stored on a server, and a PC is connected to a server. By constructing a website, the content to be executed is displayed in the form of a webpage. And selecting the project to be executed on the webpage, obtaining the source code recognizable by the automation tool through the parsing algorithm, submitting the automation command to the server, and invoking the automation tool to execute the corresponding automation command by the server, the implementation method steps are as follows :
    步骤1、登录网站,此时服务端返回项目列表;Step 1. Log in to the website, and the server returns the item list at this time;
    步骤2、在网页端选择需要执行的项目,此时服务端返回项目的各个模块及项目参数,参数包括项目编号、项目控制代码标识、项目名称;Step 2: Select a project to be executed on the webpage end, and the server returns various modules and project parameters of the project, and the parameter includes a project number, a project control code identifier, and a project name;
    步骤3、在网页端选择需要执行的模块;Step 3. Select a module to be executed on the webpage side;
    步骤4、在网页端解析所选模块,得出自动化工具能够执行的源代码;Step 4: parsing the selected module on the webpage side to obtain source code that the automation tool can execute;
    步骤5、网页端将源代码以及项目参数提交至服务端;Step 5: The webpage submits the source code and the project parameters to the server;
    步骤6、服务端接收到执行指令,检测当前是否有自动化任务正在执行,当前服务端有自动化任务在执行则执行步骤7,否则执行步骤8;Step 6, the server receives the execution instruction, detects whether there is an automatic task currently being executed, the current server has an automated task is executed, step 7 is performed, otherwise step 8 is performed;
    步骤7、当前服务端有自动化任务在执行,则返回网页端信息,提示已有自动化测试在执行,程序结束;Step 7. If the current server has an automated task executing, the webpage end information is returned, indicating that an automated test is being executed, and the program ends;
    步骤8、服务端无自动化任务执行,则服务端读取项目参数与源代码,通过解析项目控制代码标识,编译一可执行脚本文件,并将源代码写在服务器端的一文件内;Step 8, the server does not perform automatic task execution, the server reads the project parameters and the source code, compiles an executable script file by parsing the project control code identifier, and writes the source code in a file on the server side;
    步骤9、服务端调用可执行脚本文件,根据参数启动自动化工具,打开对应项目;Step 9, the server calls the executable script file, starts the automation tool according to the parameter, and opens the corresponding project;
    步骤10、自动化工具读取步骤8中生成的文件,获得源代码;Step 10, the automated tool reads the file generated in step 8, and obtains the source code;
    步骤11、自动化执行源代码,此时自动化工具将执行网页端所选的模块内容;Step 11, automatically execute the source code, at this time, the automation tool will execute the module content selected on the webpage side;
    步骤12、自动化执行完毕;Step 12, the automatic execution is completed;
    步骤13、程序结束。Step 13. The program ends.
  2. 根据权利要求1所述的远程控制自动化工具的实现方法,其特征在于:所述的网站为根据自动化工具需要执行项目构建的网站,并分布在网页端进行选择。The method for implementing a remote control automation tool according to claim 1, wherein the website is a website constructed according to an automation tool, and is distributed on the web page for selection.
  3. 根据权利要求2所述的远程控制自动化工具的实现方法,其特征在于:通过传递项目控制代码,在服务端编译可执行文件并执行以实现远程控制。 The method for implementing a remote control automation tool according to claim 2, wherein the executable file is compiled and executed on the server side by the project control code to implement remote control.
  4. 根据权利要求3所述的远程控制自动化工具的实现方法,其特征在于:所述的自动化工具实现方法在任意PC机的网页端连接到服务端进行自动化测试控制。The method for implementing a remote control automation tool according to claim 3, wherein the automated tool implementation method is connected to the server at any webpage end of any PC for automated test control.
PCT/CN2012/082435 2012-04-12 2012-09-29 Method for implementing remote control automation tool WO2013152576A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012101065146A CN102707943A (en) 2012-04-12 2012-04-12 Implementation method of remote control automation tool
CN201210106514.6 2012-04-12

Publications (1)

Publication Number Publication Date
WO2013152576A1 true WO2013152576A1 (en) 2013-10-17

Family

ID=46900767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082435 WO2013152576A1 (en) 2012-04-12 2012-09-29 Method for implementing remote control automation tool

Country Status (2)

Country Link
CN (1) CN102707943A (en)
WO (1) WO2013152576A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119599A (en) * 2019-05-21 2019-08-13 国网福建省电力有限公司 A kind of basic software platform automation safety encryption and system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294119B (en) * 2015-06-24 2021-05-25 北京京东尚科信息技术有限公司 Test scheduling system and method and terminal equipment
CN106598829A (en) * 2015-10-15 2017-04-26 腾讯科技(深圳)有限公司 Webpage automation test method and apparatus
CN106933712A (en) * 2017-03-31 2017-07-07 中国电子科技集团公司第二十九研究所 Networking remote test system and method based on B/S frameworks
CN112711534A (en) * 2020-12-28 2021-04-27 广州品唯软件有限公司 Automatic testing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090083578A1 (en) * 2007-09-26 2009-03-26 International Business Machines Corporation Method of testing server side objects
CN101414930A (en) * 2007-10-16 2009-04-22 英业达股份有限公司 Prompting system and method for remote test
CN102043714A (en) * 2010-12-10 2011-05-04 成电汽车电子产业园(昆山)有限公司 Automatic testing system of embedded software
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012863A (en) * 2010-11-23 2011-04-13 中国科学技术大学 Reaction type system testing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090083578A1 (en) * 2007-09-26 2009-03-26 International Business Machines Corporation Method of testing server side objects
CN101414930A (en) * 2007-10-16 2009-04-22 英业达股份有限公司 Prompting system and method for remote test
CN102043714A (en) * 2010-12-10 2011-05-04 成电汽车电子产业园(昆山)有限公司 Automatic testing system of embedded software
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119599A (en) * 2019-05-21 2019-08-13 国网福建省电力有限公司 A kind of basic software platform automation safety encryption and system

Also Published As

Publication number Publication date
CN102707943A (en) 2012-10-03

Similar Documents

Publication Publication Date Title
WO2013152576A1 (en) Method for implementing remote control automation tool
CN104778124B (en) A kind of software application automated testing method
WO2014015573A1 (en) Wireless automation test apparatus and method for mobile device
JP2017097862A (en) System and method for generation of automatic request for base test case for safety critical software
CN100512163C (en) Device and method for forming topological map and detecting topological structure
CN108647037A (en) Automatically dispose method and system based on shell scripts
CN101814964B (en) Simulation system of carrier concentrator
CN102662828A (en) A method and device for achieving software automatic testing
CN105808432A (en) Software automated testing system and method for rail traffic drive control unit/ tractive control unit (DCU/TCU)
CN105760296A (en) Automation testing control method, device and terminal
CN105117346A (en) Automatic testing method and system for distributed system of virtualization platform
WO2012173355A2 (en) Device and method for executing task files in a game server
CN100451986C (en) Automatic verification method of network chip
CN103116656B (en) Based on circuit fault diagnosis system and its implementation of fault logic interpreter
CN102880474A (en) Test method for parallel source code generation, compilation and driven execution
CN102479152A (en) Method and device for obtaining tool automatic test results on basis of Android platform
CN104123397A (en) Automatic test device and method for Web page
CN106371868A (en) Automatic test method, system and test device
Jian-Ping et al. Application analysis of automated testing framework based on robot
CN111290934A (en) Jenkins-based vehicle-mounted network product cloud testing method and system
WO2016017944A1 (en) System and method for notifying abnormal state of automated process
WO2009116748A2 (en) Reserved component container-based software development method and apparatus
JP2010140407A (en) Source code inspection device
JP5212508B2 (en) Debug device
CN113031969A (en) Equipment deployment inspection method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12874040

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12874040

Country of ref document: EP

Kind code of ref document: A1