CN109710526A - One kind being based on cloud service automatic test script recording and playback system and method - Google Patents

One kind being based on cloud service automatic test script recording and playback system and method Download PDF

Info

Publication number
CN109710526A
CN109710526A CN201811583817.0A CN201811583817A CN109710526A CN 109710526 A CN109710526 A CN 109710526A CN 201811583817 A CN201811583817 A CN 201811583817A CN 109710526 A CN109710526 A CN 109710526A
Authority
CN
China
Prior art keywords
script
cell phone
user
module
recording
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.)
Pending
Application number
CN201811583817.0A
Other languages
Chinese (zh)
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.)
Beijing Testin Information Technology Co Ltd
Original Assignee
Beijing Testin Information Technology Co 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 Beijing Testin Information Technology Co Ltd filed Critical Beijing Testin Information Technology Co Ltd
Priority to CN201811583817.0A priority Critical patent/CN109710526A/en
Publication of CN109710526A publication Critical patent/CN109710526A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses one kind to be based on cloud service automatic test script recording and playback system and method, system includes that mobile phone enables module, mapping block, records switch module, using selecting and installing module, script generation module, script playback module, and method includes the following steps: S1, enables mobile phone;S2, it opens and records;S3, selection application;S4, installation application;S5, mobile phone is operated, generates script;S6, playback script.The present invention may be implemented that user is allowed to carry out very easily test and execution for script.

Description

One kind being based on cloud service automatic test script recording and playback system and method
Technical field
The present invention relates to mobile phone automatized testing fields, and in particular to one kind is recorded based on cloud service automatic test script Playback system and method.
Background technique
Currently, in script recording, application interface has simple variation just to need to record again, and script reusability is very Difference, only by simply recording and playing back the requirement that can not reach automatic test, and workload is huge and maintainable It is weaker.
Summary of the invention
In view of the deficiencies of the prior art, the present invention is intended to provide a kind of be based on cloud service automatic test script recording and playback Method may be implemented that user is allowed to carry out very easily test and execution for script.
One kind being based on cloud service automatic test script recording and playback system, comprising:
Mobile phone enables module: for showing the model and brand of launchable cell phone apparatus in front end, required for selection After the cell phone apparatus of enabling, the cell phone apparatus will with establish connection from the background, open socket;
Mapping block: for the screen of the cell phone apparatus enabled to be mapped in front end in real time;
Record switch module: for opening or closing the process of script recording in front-end operations for user;
Using selection and installation module: for being shown in front end alternative after opening the process that script is recorded The list of application for carrying out script recording is selected for user;After the application needed for selection, front end sends installation to backstage, and this is answered Socket order executes the process for installing the application in the cell phone apparatus enabled from the background;
Script generation module: for generating script information when front end handset device operates in user and saving;
Script playback module: for playing back the script generated in script generation module according to actual needs in front end for user Information.
Further, the mobile phone enables module and is used to show that mobile phone enables button in front end, clicks mobile phone and enables button Front end is the model and brand for showing launchable cell phone apparatus afterwards;The corresponding position of the cell phone apparatus of each model and brand is aobvious It is shown with enabling button, enables the corresponding cell phone apparatus of the i.e. optional enabling of button when clicking, which will be upper with backstage Position machine establishes connection, opens socket.
Further, it records switch module to be used to show recording switch button in front end, when switch button is recorded in click Open or close the process of script recording.
The present invention also provides a kind of using above system based on cloud service automatic test script recording and replaying method, packet Include following steps:
S1, mobile phone enable module and show the model and brand of launchable cell phone apparatus in front end, and user clicks selection institute The cell phone apparatus needed, the cell phone apparatus and host computer establish connection, open socket;
The screen of the cell phone apparatus enabled in step S1 is mapped in front end by S2, mapping block in real time;
S3, user open the process that script is recorded by recording switch module;
S4, alternative list of application for carrying out script recording, user are shown in front end using selection and installation module It is clicked on list of application after selecting corresponding application as needed, front end is that the socket life for installing the application is sent to backstage It enables, executes the process for installing the application on cell phone apparatus from the background;
S5, after applying and being installed on cell phone apparatus, the application of user on the handset device of front end is remotely grasped Make, script generation module is by recording and generating script information and save;User is by recording switching molding after script is recorded Block closes script recording process;
S6, user return as desired by the script information that script playback module selection script generation module generates It puts.
Further, in step S5, user needs when the application on the handset device of front end remotely operates, after Platform sends control information by websocket forward end, and the control information includes the attribute of different controls and not on the page With control on the page corresponding coordinate position, the coordinate position and mouse that canvas passes through control on the conversion page in front end The position slipped over, to draw to different controls, frame takes out different controls, the control that user takes out frame in front end into Row, which operates and generates socket instruction, is sent to backstage, and triggering cell phone apparatus executes corresponding operation to the mobile phone page.
Further, in step S5, user can record the script generated to each operating procedure in script generation module The attribute of information is configured.
The beneficial effects of the present invention are:
1) present invention has higher accuracy for the identification of control, carries out especially for the text in mapping screen Identification, significantly embodies flexibility and functionality.
2) present invention for different operating procedures can generate the part of corresponding attributes edit, and user can be in life After script information, different operating procedures is edited accordingly, then the attribute in each operating procedure also can With change, so as to execute corresponding replay procedure, the efficiency for recording script is greatly improved.
Detailed description of the invention
Fig. 1 is the implementation process diagram of the embodiment of the present invention.
Specific embodiment
Below with reference to attached drawing, the invention will be further described, it should be noted that the present embodiment is with this technology side Premised on case, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to this reality Apply example.
Embodiment 1
The present embodiment provides one kind to be based on cloud service automatic test script recording and playback system, comprising:
Mobile phone enables module: for showing the model and brand of launchable cell phone apparatus in front end, required for selection After the cell phone apparatus of enabling, the cell phone apparatus will with establish connection from the background, open socket;
Mapping block: for the screen of the cell phone apparatus enabled to be mapped in front end in real time;
Record switch module: for opening or closing the process of script recording in front-end operations for user;
Using selection and installation module: for being shown in front end alternative after opening the process that script is recorded The list of application for carrying out script recording is selected for user;After the application needed for selection, front end sends installation to backstage, and this is answered Socket order executes the process for installing the application in the cell phone apparatus enabled from the background;
Script generation module: for generating script information when front end handset device operates in user and saving;
Script playback module: for playing back the script generated in script generation module according to actual needs in front end for user Information.
In the present embodiment, specifically, the mobile phone enables module and is used to show that mobile phone enables button in front end, puts hitter Front end is the model and brand for showing launchable cell phone apparatus after machine enables button;The cell phone apparatus pair of each model and brand The position answered shows enabling button, enables the corresponding cell phone apparatus of the i.e. optional enabling of button when clicking, which will Connection is established with the host computer on backstage, opens socket.
In the present embodiment, specifically, it records switch module to be used to show recording switch button in front end, be recorded when clicking The process of script recording is opened or closed when switch button.
Embodiment 2
The present embodiment provides a kind of using system described in embodiment 1 based on cloud service automatic test script recording and playback Method, as shown in Figure 1, including the following steps:
S1, mobile phone enable module and show the model and brand of launchable cell phone apparatus in front end, and user clicks selection institute The cell phone apparatus needed, the cell phone apparatus and host computer establish connection, open socket;
The screen of the cell phone apparatus enabled in step S1 is mapped in front end by S2, mapping block in real time;
S3, user open the process that script is recorded by recording switch module;
S4, alternative list of application for carrying out script recording, user are shown in front end using selection and installation module It is clicked on list of application after selecting corresponding application as needed, front end is that the socket life for installing the application is sent to backstage It enables, executes the process for installing the application on cell phone apparatus from the background;
S5, after applying and being installed on cell phone apparatus, the application of user on the handset device of front end is remotely grasped Make, script generation module is recorded and generated script information to each operating procedure and saves;User after script is recorded Script recording process is closed by recording switch module;
S6, user return as desired by the script information that script playback module selection script generation module generates It puts.
In the present embodiment, in step S5, user passes through the tool that the application on host computer handset device is operated Body process are as follows: control information is sent by websocket forward end from the background, the control information includes different controls on the page Attribute and different control corresponding coordinate position on the page, the coordinate bit that canvas passes through control on the conversion page in front end It sets and the position of mouse-over, to draw to different controls, frame takes out different controls, and user takes frame in front end Control out clicked, slided, being double-clicked, long-pressing etc. operates and generates socket instruction and is sent to backstage, triggers cell phone apparatus Corresponding operation is carried out to the mobile phone page.
In the present embodiment, in step S5, user can record generation to each operating procedure in script generation module The attribute of script information is configured, for example carries out attribute setting to text, id, class, xpath etc., and different step is corresponding Attribute be it is inconsistent, thereby executing script replay procedure.
In practical applications, different recording modes can be arranged according to the precise degrees of recording to select for user, such as It is divided into ordinary recording and precisely records.
For those skilled in the art, it can be provided various corresponding according to above technical solution and design Change and modification, and all these change and modification, should be construed as being included within the scope of protection of the claims of the present invention.

Claims (6)

1. one kind is based on cloud service automatic test script recording and playback system characterized by comprising
Mobile phone enables module: for showing the model and brand of launchable cell phone apparatus in front end, enabling required for selection Cell phone apparatus after, the cell phone apparatus will with establish connection from the background, open socket;
Mapping block: for the screen of the cell phone apparatus enabled to be mapped in front end in real time;
Record switch module: for opening or closing the process of script recording in front-end operations for user;
Using selection and installation module: for showing alternative progress in front end after opening the process that script is recorded The list of application that script is recorded is selected for user;After the application needed for selection, front end is to send to install the application to backstage Socket order executes the process for installing the application in the cell phone apparatus enabled from the background;
Script generation module: for generating script information when front end handset device operates in user and saving;
Script playback module: believe for playing back the script generated in script generation module according to actual needs in front end for user Breath.
2. according to claim 1 be based on cloud service automatic test script recording and playback system, which is characterized in that described Mobile phone enables module and is used to show that mobile phone enables button in front end, clicks front end after mobile phone enables button and shows launchable hand The model and brand of machine equipment;The corresponding position of the cell phone apparatus of each model and brand shows enabling button, when click is opened It may be selected to enable corresponding cell phone apparatus with button, which establishes connection for the host computer with backstage, opens socket。
3. according to claim 1 be based on cloud service automatic test script recording and playback system, which is characterized in that record Switch module, which is used to show in front end, records switch button, and script recording is opened or closed when clicking and recording switch button Process.
4. it is a kind of using any of the above-described system described in claim 1 based on cloud service automatic test script recording and playback side Method, which comprises the steps of:
S1, mobile phone enable module and show the model and brand of launchable cell phone apparatus in front end, and user clicks needed for selection Cell phone apparatus, the cell phone apparatus and host computer establish connection, open socket;
The screen of the cell phone apparatus enabled in step S1 is mapped in front end by S2, mapping block in real time;
S3, user open the process that script is recorded by recording switch module;
S4, using select and installation module front end show it is alternative carry out script recording list of application, user according to After needing to click the corresponding application of selection on list of application, front end is that the socket order for installing the application is sent to backstage, Backstage executes the process for installing the application on cell phone apparatus;
S5, after applying and being installed on cell phone apparatus, the application of user on the handset device of front end remotely operates, foot This generation module is by recording and generating script information and save;User is closed by recording switch module after script is recorded Script recording process;
S6, user play back as desired by the script information that script playback module selection script generation module generates.
5. according to the method described in claim 4, it is characterized in that, user needs on the handset device of front end in step S5 Application when being remotely operated, control information is sent by websocket forward end from the background, the control information includes page The attribute of different controls and different control corresponding coordinate positions on the page on face, canvas passes through the conversion page in front end The coordinate position of upper control and the position of mouse-over, to draw to different controls, frame takes out different controls, uses Family, which is operated in the control that frame is taken out in front end and generates socket instruction, is sent to backstage, triggers cell phone apparatus to mobile phone page Face executes corresponding operation.
6. according to the method described in claim 4, it is characterized in that, user is in script generation module to each in step S5 The attribute that operating procedure records the script information generated is configured.
CN201811583817.0A 2018-12-24 2018-12-24 One kind being based on cloud service automatic test script recording and playback system and method Pending CN109710526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811583817.0A CN109710526A (en) 2018-12-24 2018-12-24 One kind being based on cloud service automatic test script recording and playback system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811583817.0A CN109710526A (en) 2018-12-24 2018-12-24 One kind being based on cloud service automatic test script recording and playback system and method

Publications (1)

Publication Number Publication Date
CN109710526A true CN109710526A (en) 2019-05-03

Family

ID=66257222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811583817.0A Pending CN109710526A (en) 2018-12-24 2018-12-24 One kind being based on cloud service automatic test script recording and playback system and method

Country Status (1)

Country Link
CN (1) CN109710526A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928787A (en) * 2019-11-22 2020-03-27 北京博睿宏远数据科技股份有限公司 Automatic test script recording and playback method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866414A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for testing application program
CN106021095A (en) * 2016-05-06 2016-10-12 北京邮电大学 A push mechanism-based Android application automated testing method
CN106874206A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 Method, device and electronic equipment for cross-platform automatic test
CN106897225A (en) * 2017-02-27 2017-06-27 网易(杭州)网络有限公司 Record method, device and the electronic equipment of test script
US20180293157A1 (en) * 2017-04-10 2018-10-11 Fmr Llc Automated script creation and source code generation for testing mobile devices
CN108763086A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Script method for recording, terminal and computer readable storage medium based on remote real machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866414A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for testing application program
CN106021095A (en) * 2016-05-06 2016-10-12 北京邮电大学 A push mechanism-based Android application automated testing method
CN106874206A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 Method, device and electronic equipment for cross-platform automatic test
CN106897225A (en) * 2017-02-27 2017-06-27 网易(杭州)网络有限公司 Record method, device and the electronic equipment of test script
US20180293157A1 (en) * 2017-04-10 2018-10-11 Fmr Llc Automated script creation and source code generation for testing mobile devices
CN108763086A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Script method for recording, terminal and computer readable storage medium based on remote real machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928787A (en) * 2019-11-22 2020-03-27 北京博睿宏远数据科技股份有限公司 Automatic test script recording and playback method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104461894B (en) The operation record device and method of Android software
CN104375934B (en) Method for testing reliability of Android mobile phone software
CN106547689B (en) A kind of automatic test cases development system and method based on web
CN104424022B (en) Screen recording method and device
CN102419732B (en) Android-platform-based automated testing method and testing tool
CN105608258B (en) A kind of Model-based diagnosis and information flow visual simulation system and method
CN106021099A (en) System and method for achieving UI automatic test of intelligent terminal
CN104699591A (en) Reappearing method and device of test scenes
CN102938800B (en) A kind of radio communication quality Auto-Test System and method
CN105740153A (en) Cloud testing method and device
WO2011137746A2 (en) Method, device and system for tracking user behavior in touch screen terminal
CN101930399A (en) Method for recording software test
CN104572428A (en) Complicated control testing method based on windows operating system
CN102122337A (en) Method and system for playing back data of instrument-control simulation system of nuclear power station
CN102999419B (en) A kind of Android test incident record back method and device
CN103631590A (en) Method for editing automated testing script
CN104866420A (en) Precisely recorded mobile phone software testing method
CN106843675A (en) The generation method and device of shortcut
CN116933566B (en) Data recording, data playback and data analysis method based on simulation system
CN109710526A (en) One kind being based on cloud service automatic test script recording and playback system and method
CN102411538A (en) Method for restoring test script of graphical user interface based on event reachability mode
US11813538B2 (en) Videogame telemetry data and game asset tracker for session recordings
CN108459848A (en) A kind of script acquisition methods and system applied to Excel softwares
CN108803973B (en) Video information component grouping display method for mobile terminal
CN104536565A (en) Application program control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190503