CN109445896B - Intelligent terminal user interface data acquisition system and method - Google Patents

Intelligent terminal user interface data acquisition system and method Download PDF

Info

Publication number
CN109445896B
CN109445896B CN201811274874.0A CN201811274874A CN109445896B CN 109445896 B CN109445896 B CN 109445896B CN 201811274874 A CN201811274874 A CN 201811274874A CN 109445896 B CN109445896 B CN 109445896B
Authority
CN
China
Prior art keywords
data acquisition
script
data
intelligent terminal
user interface
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.)
Active
Application number
CN201811274874.0A
Other languages
Chinese (zh)
Other versions
CN109445896A (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.)
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 CN201811274874.0A priority Critical patent/CN109445896B/en
Publication of CN109445896A publication Critical patent/CN109445896A/en
Application granted granted Critical
Publication of CN109445896B publication Critical patent/CN109445896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data acquisition system and a data acquisition method for an intelligent terminal user interface. The method mainly comprises the steps of connecting Android or IOS equipment with a PC terminal, executing a data acquisition script according to data acquisition requirements, setting data acquisition frequency and duration in real time if no current available script exists, carrying out multivariable assignment on a designated control, forming an applicability script in real time and executing a flow to carry out data acquisition. The method has good universality, is convenient for formatting and storing the data, has simple flow and strong reliability and expansibility, and is beneficial to obtaining good application experience by users. The method has important practical value for the integrated application of the mass data of the intelligent terminal.

Description

Intelligent terminal user interface data acquisition system and method
Technical Field
The invention relates to the technical field of computer industry, in particular to a data acquisition system and a data acquisition method for an intelligent terminal user interface.
Background
Currently, an intelligent terminal has become one of the main ways for people to obtain various types of information, wherein the data volume of text-type data in a User Interface (UI) is very large. These text-like data are often embodied as unstructured data and, often due to the computational power of the mobile-side processor, it is difficult to directly process and analyze these data. UI data acquisition is performed by using the automatic script, so that the labor cost can be obviously reduced. However, for data acquisition of different devices such as Android, IOS and the like, the data acquisition method is required to have good universality.
In addition, the user interface is often displayed in parallel for multiple controls, and is oriented to a specific user, and the user often has a data demand only for a designated control on the interface. Meanwhile, the scripting language belongs to an interpretation type language, has the characteristic of instantly executing instant translation, and when different users acquire data of the same control, repeated translation may occur, so that the efficiency is reduced.
Therefore, a UI text data acquisition method facing a designated control and suitable for different devices such as Android, IOS and the like is urgently needed to be developed, and the acquisition efficiency of the automation platform on UI data can be ensured.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a data acquisition system and a data acquisition method of an intelligent terminal user interface, which have good universality and can acquire data in real time and efficiently.
In order to achieve the purpose, the invention adopts the following technical scheme:
a data acquisition system of an intelligent terminal user interface runs in a PC terminal, and an intelligent terminal is in communication connection with the PC terminal; the data acquisition system includes:
a user interface mapping module: the intelligent terminal is used for mapping a user interface of the intelligent terminal on a display of the PC end in real time and allowing a user to enter a data acquisition page according to data acquisition requirements;
a script library: the data acquisition script is used for storing data acquisition scripts meeting various data acquisition requirements;
a script selection module: the data acquisition system is used for displaying information of each data acquisition script on a display according to the data acquisition scripts stored in the script library, so that a user can select the corresponding data acquisition script according to the data acquisition requirement and call the corresponding data acquisition script according to the selection of the user to add the data acquisition script into the data acquisition execution list;
a data acquisition module: the data acquisition execution list is used for executing data acquisition and acquiring data of the data acquisition page;
a control selection module: the method is used for enabling a user to select a control on the data acquisition page when no data acquisition script capable of meeting the data acquisition requirement exists in the script library;
the data acquisition script generation module: and the device is used for carrying out multivariable assignment setting on the control selected by the control selection module, setting data acquisition duration, acquisition frequency and variable output attribute name, generating a data acquisition script and storing the data acquisition script in a script library.
The data acquisition method by using the data acquisition system of the intelligent terminal user interface comprises the following steps:
s1, connecting the intelligent terminal with the PC end through the USB interface, and mapping the user interface of the intelligent terminal to the display of the PC end in real time by the user interface mapping module to keep real-time communication and information interaction;
s2, entering a data acquisition page by a user according to the data acquisition requirement;
s3, the script selection module displays the information of the data acquisition script stored in the script library on a display; if the data acquisition script meeting the data acquisition requirement exists in the script library, the user can directly select the data acquisition script to add into the data acquisition execution list and directly perform the step S5, otherwise, the step S4 is skipped;
s4, if no data acquisition script meeting the data acquisition requirement exists in the script library, the user selects a control for data acquisition in the data acquisition page through the control selection module; then, performing multivariable assignment setting on the selected control through a data acquisition script generation module, setting data acquisition duration, acquisition frequency and variable output attribute names, then storing the data acquisition script in a script library, selecting the data acquisition script through a script selection module, adding the data acquisition script into a data acquisition execution list, and jumping to step S5;
and S5, the data acquisition module executes the data acquisition execution list and acquires data on the data acquisition page until the data acquisition is finished.
Further, the intelligent terminal comprises Android equipment and IOS equipment.
Furthermore, the PC terminal is used as a data acquisition terminal, the operating system adopts a Windows, Linux or Mac system, and the language environment is Java.
Further, the data collection page is not changeable during each data collection process.
Further, in step S3, each data acquisition script has a unique identification ID, and the unique identification ID is also used as a reference identification of each data acquisition script; the script selection module 303 displays information of the data acquisition script, which includes the unique identification ID of the data acquisition script, on the display 101 in the form of an operation list.
Further, the data acquisition execution list is an execution list, and the steps S5 are sequentially executed according to the execution order in the data acquisition execution list.
The invention has the beneficial effects that:
(1) the method can be used for acquiring the data of the user interface of the intelligent terminal in real time, and has important practical value for the integrated application of the mass data of the intelligent terminal.
(2) The technical method of the invention applies multivariable assignment, is convenient for formatted storage and has strong reliability and expansibility.
(3) The method is suitable for Android and IOS equipment and has good universality.
(4) The invention avoids the compiling of the repeated data acquisition script, effectively improves the acquisition efficiency and is convenient for users to obtain good application experience.
Drawings
FIG. 1 is a schematic diagram of a system in accordance with an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method implemented in the embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings, and it should be noted that the following examples are provided to illustrate the detailed embodiments and specific operations based on the technical solutions of the present invention, but the scope of the present invention is not limited to the examples.
As shown in fig. 1, in the data acquisition system of the user interface of the intelligent terminal, the data acquisition system 300 operates in the PC terminal 100, and the intelligent terminal 200 is in communication connection with the PC terminal 100; the data acquisition system 300 includes:
user interface mapping module 301: the intelligent terminal 200 is used for mapping a user interface of the intelligent terminal 200 on a display 101 of the PC end in real time and enabling a user to enter a data acquisition page according to data acquisition requirements;
the script library 302: the data acquisition script is used for storing data acquisition scripts meeting various data acquisition requirements;
the script selection module 303: the data acquisition execution list is used for displaying information of each data acquisition script on the display 101 according to the data acquisition scripts stored in the script library 302, so that a user can select the corresponding data acquisition script according to the data acquisition requirement, and the corresponding data acquisition script is called and added into the data acquisition execution list according to the selection of the user;
the data acquisition module 304: the data acquisition execution list is used for executing data acquisition and acquiring data of the data acquisition page;
the control selection module 305: the method is used for enabling a user to select a control on the data acquisition page when no data acquisition script capable of meeting the data acquisition requirement exists in the script library 302;
data collection script generation module 306: the method is used for performing multivariate assignment setting on the control selected by the control selection module 305, setting data acquisition duration, acquisition frequency and variable output attribute name, generating a data acquisition script and storing the data acquisition script in the script library 302.
As shown in fig. 2, the method for acquiring data by using the data acquisition system of the user interface of the intelligent terminal includes the following steps:
s1, connecting the intelligent terminal 200 with the PC terminal 100 through the USB interface 102, and mapping the user interface of the intelligent terminal 200 onto the display 101 of the PC terminal 100 in real time by the user interface mapping module 301 to keep real-time communication and information interaction;
s2, entering a data acquisition page by a user according to the data acquisition requirement;
s3, the script selection module 303 displays the information of the data acquisition script stored in the script library 302 on the display 101; if a data acquisition script meeting the data acquisition requirement exists in the script library 302, the user can directly select the data acquisition script to add into the data acquisition execution list, and directly perform the step S5, otherwise, the step S4 is skipped;
s4, if no data acquisition script meeting the data acquisition requirement exists in the script library 302, the user selects a control for data acquisition in the data acquisition page through the control selection module 305; then, performing multivariable assignment setting on the selected control through a data acquisition script generation module 306, setting data acquisition duration, acquisition frequency and variable output attribute names, then storing the data acquisition script in a script library 302, and selecting the data acquisition script to add into a data acquisition execution list through a script selection module 303;
the control is selected as visual operation at the PC end, and the operation mode includes but is not limited to single click, double click and the like of the mouse 103 on the designated control;
the multi-variable assignment is mainly directed to text-type controls, i.e., the multi-variable assignment can be performed when the type of the collected data is text-type data. The multi-variable assignment setting refers to assigning values of a plurality of controls to a plurality of different custom variables simultaneously or respectively. The executable range of the data acquisition frequency is larger than 0.1 second/time, the data acquisition time is not limited, and the variable output attribute name is set to facilitate the understanding of a user on the user-defined variable output.
S5, the data collection module 304 executes the data collection execution list, and collects data on the data collection page until the collection is completed.
Further, the intelligent terminal 200 includes an Android device and an IOS device.
Further, the PC terminal 100 serves as a data acquisition terminal, the operating system adopts a Windows, Linux, or Mac system, and the language environment is Java.
Further, the data collection page is not changeable during each data collection process.
Further, in step S3, each data acquisition script has a unique identification ID, and the unique identification ID is also used as a reference identification of each data acquisition script; the script selection module 303 displays information of the data acquisition script, which includes the unique identification ID of the data acquisition script, on the display 101 in the form of an operation list.
Further, the data acquisition execution list is an execution list, and the steps S5 are sequentially executed according to the execution order in the data acquisition execution list.
Example 1
(1) A HuaweiP9 smart phone is connected with a PC end through a USB interface, and a real-time user interface of the smart phone is mapped on a display of the PC end to keep communication and information interaction;
(2) the data acquisition requirement is that real-time data acquisition is carried out on the net value and the amplitude of the fund X, and the net value and the amplitude of the fund X enter a fund X net value and amplitude display page in the mobile phone to serve as a data acquisition page;
(3) if no data acquisition script meeting the current requirement exists in the script library, selecting a display control of net value and breadth of fund X on a data acquisition page;
(4) performing multi-variable assignment setting, assigning the value of the net value control to a variable A, assigning the value of the amplitude-expanding control to a variable B, setting the data acquisition frequency to be 10 seconds/time, the acquisition time to be 60 seconds, the name of the output attribute of the variable A to be a net value, and the name of the output attribute of the variable B to be amplitude;
(5) the list of data acquisition executions is executed every 10 seconds until the end of the 60 second period.
After all actions are finished, the collected data are shown in table 1 as a list of net value items and amplitude items:
TABLE 1
Figure BDA0001845821150000061
Figure BDA0001845821150000071
Example 2
(1) An iphone7 smart phone is connected with a PC end through a USB interface, and a real-time user interface of the smart phone is mapped on a display of the PC end to keep communication and information interaction;
(2) the data acquisition demand is that real-time data acquisition is carried out on air quality (pm2.5) of Beijing, Nanjing and Changchun, and air quality real-time display pages of various places in the mobile phone are entered to be used as data acquisition pages;
(3) the data acquisition system has a data acquisition script meeting the current requirement, and the script is selected as the data acquisition script to be added into the data acquisition execution list.
Note: the data acquisition script performs multivariate assignment setting on display controls of Beijing, Nanjing and Changchun pm2.5 values on a data acquisition page, assigns the value of the Beijing pm2.5 display control to a variable A, assigns the value of the Nanjing pm2.5 display control to a variable B, assigns the value of the Changchun pm2.5 display control to a variable C, sets data acquisition frequency to be 30 seconds/time, acquisition time to be 400 seconds, defines the output attribute name of the variable A to be Beijing/pm 2.5, defines the output attribute name of the variable B to be Nanjing/pm 2.5 and defines the variable C to be Changchun/pm 2.5;
(4) the list of data acquisition executions is executed every 30 seconds until the 400 second period ends.
After all actions are finished, the collected data are shown in table 2 as a list of net value items and amplitude items:
TABLE 2
Figure BDA0001845821150000072
Figure BDA0001845821150000081
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.

Claims (7)

1. A data acquisition system of an intelligent terminal user interface is characterized in that the data acquisition system runs in a PC terminal, and an intelligent terminal is in communication connection with the PC terminal; the data acquisition system includes:
a user interface mapping module: the intelligent terminal is used for mapping a user interface of the intelligent terminal on a display of the PC end in real time and allowing a user to enter a data acquisition page according to data acquisition requirements;
a script library: the data acquisition script is used for storing data acquisition scripts meeting various data acquisition requirements;
a script selection module: the data acquisition system is used for displaying information of each data acquisition script on a display according to the data acquisition scripts stored in the script library, so that a user can select the corresponding data acquisition script according to the data acquisition requirement and call the corresponding data acquisition script according to the selection of the user to add the data acquisition script into the data acquisition execution list;
a data acquisition module: the data acquisition execution list is used for executing data acquisition and acquiring data of the data acquisition page;
a control selection module: the method is used for enabling a user to select a control on the data acquisition page when no data acquisition script capable of meeting the data acquisition requirement exists in the script library;
the data acquisition script generation module: and the device is used for carrying out multivariable assignment setting on the control selected by the control selection module, setting data acquisition duration, acquisition frequency and variable output attribute name, generating a data acquisition script and storing the data acquisition script in a script library.
2. The method for collecting data by using the data collection system of the intelligent terminal user interface as claimed in claim 1, comprising the steps of:
s1, connecting the intelligent terminal with the PC end through the USB interface, and mapping the user interface of the intelligent terminal to the display of the PC end in real time by the user interface mapping module to keep real-time communication and information interaction;
s2, entering a data acquisition page by a user according to the data acquisition requirement;
s3, the script selection module displays the information of the data acquisition script stored in the script library on a display; if the data acquisition script meeting the data acquisition requirement exists in the script library, the user can directly select the data acquisition script to add into the data acquisition execution list and directly perform the step S5, otherwise, the step S4 is skipped;
s4, if no data acquisition script meeting the data acquisition requirement exists in the script library, the user selects a control for data acquisition in the data acquisition page through the control selection module; then, performing multivariable assignment setting on the selected control through a data acquisition script generation module, setting data acquisition duration, acquisition frequency and variable output attribute names, then storing the data acquisition script in a script library, selecting the data acquisition script through a script selection module, adding the data acquisition script into a data acquisition execution list, and jumping to step S5;
and S5, the data acquisition module executes the data acquisition execution list and acquires data on the data acquisition page until the data acquisition is finished.
3. The method according to claim 2, wherein the intelligent terminal comprises Android equipment and IOS equipment.
4. The method of claim 2, wherein the PC terminal is used as a data acquisition terminal, the operating system is Windows, Linux or Mac system, and the language environment is Java.
5. The method of claim 2, wherein the data collection page is not variable during each data collection.
6. The method according to claim 2, wherein in step S3, each data collection script has a unique identification ID, and the unique identification ID is also used as a reference identification of each data collection script; the script selection module 303 displays information of the data acquisition script, which includes the unique identification ID of the data acquisition script, on the display 101 in the form of an operation list.
7. The method according to claim 2, wherein the data collection execution list is a row list, and the step S5 is executed in sequence according to the execution order in the data collection execution list.
CN201811274874.0A 2018-10-29 2018-10-29 Intelligent terminal user interface data acquisition system and method Active CN109445896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811274874.0A CN109445896B (en) 2018-10-29 2018-10-29 Intelligent terminal user interface data acquisition system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811274874.0A CN109445896B (en) 2018-10-29 2018-10-29 Intelligent terminal user interface data acquisition system and method

Publications (2)

Publication Number Publication Date
CN109445896A CN109445896A (en) 2019-03-08
CN109445896B true CN109445896B (en) 2021-04-30

Family

ID=65549778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811274874.0A Active CN109445896B (en) 2018-10-29 2018-10-29 Intelligent terminal user interface data acquisition system and method

Country Status (1)

Country Link
CN (1) CN109445896B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416448A (en) * 2020-12-08 2021-02-26 北京中亦安图科技股份有限公司 Operating system information acquisition method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361022A (en) * 2014-10-22 2015-02-18 浪潮软件集团有限公司 Method based on collected data statistics and foreground display
CN104679644A (en) * 2013-11-28 2015-06-03 比亚迪股份有限公司 Testing method and system for application program in mobile terminal
CN105988924A (en) * 2015-02-10 2016-10-05 中国船舶工业综合技术经济研究院 Automatic testing method for non-intrusive type embedded software graphical user interface
CN106056449A (en) * 2016-05-26 2016-10-26 黑龙江省容维投资顾问有限责任公司 Stock information push system and push method
CN107168841A (en) * 2017-05-25 2017-09-15 北京云测信息技术有限公司 The remote test method and device of a kind of mobile device
CN107800735A (en) * 2016-09-02 2018-03-13 中兴通讯股份有限公司 Data acquisition implementation method and device, collecting method, apparatus and system
CN108334619A (en) * 2018-02-07 2018-07-27 政采云有限公司 A kind of collecting method, device, computing device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7707198B2 (en) * 2006-12-12 2010-04-27 Yahoo! Inc. Harvesting of media objects from searched sites without a user having to enter the sites

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679644A (en) * 2013-11-28 2015-06-03 比亚迪股份有限公司 Testing method and system for application program in mobile terminal
CN104361022A (en) * 2014-10-22 2015-02-18 浪潮软件集团有限公司 Method based on collected data statistics and foreground display
CN105988924A (en) * 2015-02-10 2016-10-05 中国船舶工业综合技术经济研究院 Automatic testing method for non-intrusive type embedded software graphical user interface
CN106056449A (en) * 2016-05-26 2016-10-26 黑龙江省容维投资顾问有限责任公司 Stock information push system and push method
CN107800735A (en) * 2016-09-02 2018-03-13 中兴通讯股份有限公司 Data acquisition implementation method and device, collecting method, apparatus and system
CN107168841A (en) * 2017-05-25 2017-09-15 北京云测信息技术有限公司 The remote test method and device of a kind of mobile device
CN108334619A (en) * 2018-02-07 2018-07-27 政采云有限公司 A kind of collecting method, device, computing device and storage medium

Also Published As

Publication number Publication date
CN109445896A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
WO2020155777A1 (en) Ui automated function testing method, testing device, testing apparatus, and storage medium
CN106897215A (en) A kind of method gathered based on WebView webpages loading performance and user behavior flow data
CN103678637A (en) Method and device for acquiring test question information
CN103744787A (en) Cellphone automated testing method
CN104461895A (en) Editing method and system of testing sequence and automatic testing system
CN103246606B (en) The performance test methods of ESB platform and system
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
CN114501501B (en) Configuration management method, device, equipment and medium for mobile communication network target range
CN105677306A (en) Automation script compiling method and device
CN110795085A (en) Mobile application visual editing method and tool
CN105704487A (en) Television stability testing method and device
CN106598615A (en) Recipe program code generation method and recipe compiling cloud platform system
CN114003451B (en) Interface testing method, device, system and medium
CN103631590A (en) Method for editing automated testing script
CN110471585A (en) Function of application icon methods of exhibiting, device and computer equipment
CN109902251A (en) Scheme Choice method, apparatus, terminal and readable storage medium storing program for executing based on decision tree
CN109445896B (en) Intelligent terminal user interface data acquisition system and method
CN109871321A (en) A kind of method and test case management platform of test case Code automatic build
CN104834594B (en) Web system method of testing and device
CN112698772A (en) Document template processing method and device and document creating method and device
CN115543324B (en) Method, device, equipment and medium for generating interactive interface
CN110457219A (en) The method and apparatus of selection of time when a kind of test script is recorded
CN106407062B (en) Industry control chip debugging system and adjustment method
CN106250346B (en) A kind of realization method and system of intelligent computer
CN103035146B (en) Intelligent prompt method of electric power enterprise resource planning (EPR) service simulation system

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
GR01 Patent grant
GR01 Patent grant