CN115268956A - Android automation environment building method based on RPA - Google Patents

Android automation environment building method based on RPA Download PDF

Info

Publication number
CN115268956A
CN115268956A CN202210949213.3A CN202210949213A CN115268956A CN 115268956 A CN115268956 A CN 115268956A CN 202210949213 A CN202210949213 A CN 202210949213A CN 115268956 A CN115268956 A CN 115268956A
Authority
CN
China
Prior art keywords
android
rpa
mobile terminal
development environment
configuration file
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
CN202210949213.3A
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.)
Hangzhou Bifurcated Intelligent Technology Co ltd
Original Assignee
Hangzhou Bifurcated Intelligent 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 Hangzhou Bifurcated Intelligent Technology Co ltd filed Critical Hangzhou Bifurcated Intelligent Technology Co ltd
Priority to CN202210949213.3A priority Critical patent/CN115268956A/en
Publication of CN115268956A publication Critical patent/CN115268956A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The invention discloses an android automatic environment building method based on RPA, which comprises an RPA robot and comprises the following steps: step 1, automatically detecting whether a current computer has an android development environment configuration file by using an RPA robot, if not, downloading the android development environment configuration file from a cloud end, and executing step 2; step 2: determining an android automatic service interface, starting an automatic thread in the RPA robot, setting a port number as the port number of the android automatic service interface, and integrating the required android development environment variable into the currently running automatic thread; and step 3: the android automation service interface is connected with the mobile terminal, the computer terminal starts http service through an automation thread, and the computer terminal monitors messages from the mobile terminal and sends commands to the mobile terminal. According to the android development system and method, the android development environment can be automatically built, the complex building difficulty is reduced, and the convenience of use of a user is improved.

Description

Android automation environment building method based on RPA
Technical Field
The invention relates to the technical field of RPA, in particular to an android automatic environment building method based on RPA.
Background
The RPA is called robot Process Automation (robot Process Automation), and the main function is to execute the interaction between the working information and the service according to the designed Process by the robot, and the unmanned operation can work continuously for 24 hours. Android (Android) is a Linux kernel (containing no GNU components) based operating system of free and open source code. The Android development environment is configured more fussy, and a software package needs to be installed: (1) Java Development Kit (JDK): the tool package for developing the Java program comprises a Java running environment, java tools and a Java-based class library; (2) Android SDK: providing Android development related general tools, such as adb and other (3) Appium: starting an http service for receiving and forwarding related operation instructions; the three software packages are necessary for Android development, a user needs to go to an official website in sequence to download the software packages with required versions, environment variables need to be configured after the JDK and the Android SDK are installed, installation path addresses of the JDK and the Android SDK need to be set in the apple, and the building of the environment is difficult for ordinary users without development experience.
Disclosure of Invention
The invention aims to provide an android automation environment building method based on RPA. According to the android development system and the android development method, the android development environment can be automatically built, the complex building difficulty is reduced, and the convenience of use of a user is improved.
The technical scheme provided by the invention is as follows: an android automation environment building method based on RPA comprises an RPA robot and comprises the following steps:
step 1, automatically detecting whether a current computer has an android development environment configuration file by using an RPA robot, and if not, downloading the android development environment configuration file from a cloud and then executing step 2;
and 2, step: determining an android automatic service interface, starting an automatic thread in the RPA robot, setting a port number as the port number of the android automatic service interface, and integrating the required android development environment variable into the currently running automatic thread;
and 3, step 3: the android automation service interface is connected with the mobile terminal, the http service is started by the computer terminal through an automation thread, and the information of the mobile terminal is monitored and a command is sent to the mobile terminal.
According to the android automatic environment building method based on the RPA, in the step 1, when the android development environment configuration file is downloaded at the cloud, the total size of the file is obtained, then the byte stream transmitted from the cloud is obtained, the transmitted byte stream and the total size are divided, the downloading progress is calculated in real time, and the downloading progress is displayed back to the interface.
According to the android automatic environment building method based on the RPA, after the android development environment configuration file is downloaded, the android development environment configuration file is decompressed, the decompression is to read all the file quantity under the android development environment configuration file, each file under the compressed android development environment configuration file is obtained through continuous circulation, the decompression progress is obtained in real time, and the decompression progress is displayed back to the interface.
According to the RPA-based android automation environment construction method, the RPA robot is provided with the monitoring thread, the monitoring thread acquires information of the currently connected mobile terminal at regular intervals, then intersection query is carried out on the information and the currently connected mobile terminal, and if a new mobile terminal is found, the information is connected through an android automation service interface and is updated to an interface in real time.
Compared with the prior art, the android development environment can be automatically established by using the RPA robot, so that a user does not need to worry about complicated software downloading and installation and configuration of environment variables, and the use threshold of the user is reduced; according to the method, the android development environment configuration file can be downloaded from the cloud, so that the size of the RPA robot software installation package is reduced, and the space occupation of the related environment can be reduced for users who do not need to move end automation; the invention can also automatically run and start the monitoring service without configuring the application and other operations, thereby reducing the use threshold and the use steps; the invention can lead the user not to worry about the occurrence of incompatible situation caused by version problem; according to the invention, the device information of the mobile terminal does not need to be manually input, and the mobile terminal can be accessed into the RPA robot by only connecting the USB with a computer and a mobile phone and authorizing access, so that the method is convenient and quick.
Detailed Description
The present invention is further illustrated by the following examples, which are not to be construed as limiting the invention.
Example (b): a screen picture recording method for the operation of an RPA robot comprises the RPA robot, wherein the RPA robot is a knife robot and can be downloaded and installed through a webpage, and the RPA robot consists of an instruction set, a flow designer, a result debugger, a flow manager, a global variable manager and a toolbar.
The instruction set: the RPA command storage management system is used for storing and managing RPA commands, and a user can select a required command to be added to a flow designer in a double-click or drag mode to carry out free design.
A flow designer: and providing a visual RPA flow editing platform for a user.
And a result debugger: and the system is used for displaying program error information, log information and other debugging data.
A flow manager: and managing flow files such as RPA flows, python scripts and the like.
Global variable manager: managing global variables.
Tool bars: the method comprises the functions of flow arrangement, debugging, intelligent recording and the like.
In this embodiment, the RPA robot is used to automatically detect whether the current computer has an android development environment configuration file, including detecting whether the following files exist in a% alluser software%/ShadowBot/support _ { arch }/mobile folder of the user:
(1)AndroidSDK\build-tools\29.0.3\apksigner.bat
(2)JavaSDK\jdk1.8.0_241\bin\java.exe
(3)NodeJS\node.exe
if not, the user can download the android development environment configuration file from the cloud and then execute the step 2; because the size of the android development environment configuration file is generally more than 400M, if the configuration file is issued along with the RPA robot client, the size of the installation file of the RPA robot client can be increased, and the pluggable files can be placed at the cloud end and can be installed and used by a user when the user needs the configuration file. Because the installation files of the environment can be prepared in advance to be placed in the cloud OOS for storage, when a user clicks 'immediate configuration', a request connection is established through the HttpClient library, the files are downloaded from the cloud in real time, and at the moment, the RPA robot can perform real-time monitoring of the downloading progress and real-time monitoring of the decompressing progress:
(1) The real-time monitoring technology of the downloading progress is realized as follows:
after the request is established, a contentLength field of Content, headers, can be obtained from the response of the request, so that the total size of the file is obtained, the byte stream transmitted from the server can be obtained in real time through a ReadAsStreamaSync method of the Content, the download progress can be calculated in real time by dividing the transmitted byte stream and the total file size, and the download progress can be obtained in real time and displayed back to an interface through monitoring an event DownloadProgressChanged.
(2) The real-time monitoring technology of the decompression progress is realized:
in order to reduce the space occupation of a server, a software package (android development environment configuration file) to be installed is stored in a zip compressed file format, when the file is downloaded locally, decompression needs to be performed, a zip file needing to be decompressed is opened through a ZipInputStream type of a library ICSharpCode.
Step 2: after downloading and decompressing the related android development environment configuration file, automatically starting the related service:
firstly, determining an ANDROID automation service interface, defaulting 4723, if the ANDROID automation service interface is occupied, judging whether the port is occupied by a netstat-ano | findstr { port number }, if the port is occupied, continuously adding 2 to the port number until an available port number is found and returning, then starting a Process automation thread (ShadowBot. Mobile Server. Exe) in an RPA robot through a Process class, setting the port number as the port number of the ANDROID automation service interface, setting dictionary items JAVA _ HOME, NODEJS _ HOME and ANDROID _ HOME of the StartInfo.Environmentable of the Process as access paths after the JAVA _ HOME, NODEJS _ HOME and ANDROID _ HOME are set as access paths, and integrating the required ANDROID development environment variables into the currently running automation thread;
and 3, step 3: after the automatic thread (Process) is started, the android automatic service interface is used for connecting the mobile terminal, the application Settings applications can be automatically installed at the mobile phone terminal (mobile terminal), the http service is started by the computer terminal through the automatic thread, and the messages of the mobile terminal are monitored and commands are sent to the mobile terminal.
The RPA robot is provided with a monitoring thread, the monitoring thread executes an adddevices command every second, acquires information (including equipment name, state and the like) of a currently connected mobile terminal, then performs intersection query with the currently connected mobile terminal, and if a new mobile terminal is found, the new mobile terminal is connected through an android automatic service interface and is updated to an interface in real time; the same real-time updates to the interface are made if the connected device status has changed (e.g., from online to wireless).

Claims (4)

1. The android automatic environment building method based on the RPA comprises an RPA robot and is characterized in that: the method comprises the following steps:
step 1, automatically detecting whether a current computer has an android development environment configuration file by using an RPA robot, and if not, downloading the android development environment configuration file from a cloud and then executing step 2;
step 2: determining an android automatic service interface, starting an automatic thread in the RPA robot, setting a port number as the port number of the android automatic service interface, and integrating required android development environment variables into the currently running automatic thread;
and step 3: the android automation service interface is connected with the mobile terminal, the http service is started by the computer terminal through an automation thread, and the information of the mobile terminal is monitored and a command is sent to the mobile terminal.
2. The RPA-based android automation environment construction method of claim 1, characterized in that: in the step 1, when the android development environment configuration file is downloaded at the cloud, the total size of the file is obtained, then the byte stream transmitted from the cloud is obtained, the transmitted byte stream is divided by the total size, the downloading progress is calculated in real time, and the downloading progress is displayed back to an interface.
3. The RPA-based android automation environment construction method of claim 1, characterized in that: when the android development environment configuration file is downloaded, decompressing the android development environment configuration file, wherein the decompressing includes reading the number of all files under the android development environment configuration file, continuously and circularly acquiring each file under the compressed android development environment configuration file, acquiring a decompressing progress in real time and displaying the decompressing progress to an interface.
4. The RPA-based android automation environment construction method of claim 1, characterized in that: the RPA robot is provided with a monitoring thread, the monitoring thread acquires information of a mobile terminal which is connected currently at regular intervals, then intersection query is carried out on the information and the mobile terminal which is connected currently, if a new mobile terminal is found, the information and the mobile terminal are connected through an android automatic service interface, and the interface is updated in real time.
CN202210949213.3A 2022-08-09 2022-08-09 Android automation environment building method based on RPA Pending CN115268956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210949213.3A CN115268956A (en) 2022-08-09 2022-08-09 Android automation environment building method based on RPA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210949213.3A CN115268956A (en) 2022-08-09 2022-08-09 Android automation environment building method based on RPA

Publications (1)

Publication Number Publication Date
CN115268956A true CN115268956A (en) 2022-11-01

Family

ID=83749164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210949213.3A Pending CN115268956A (en) 2022-08-09 2022-08-09 Android automation environment building method based on RPA

Country Status (1)

Country Link
CN (1) CN115268956A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115686540A (en) * 2023-01-03 2023-02-03 杭州实在智能科技有限公司 RPA control method and system based on Hongmong system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115686540A (en) * 2023-01-03 2023-02-03 杭州实在智能科技有限公司 RPA control method and system based on Hongmong system

Similar Documents

Publication Publication Date Title
US11467816B1 (en) Method and system of running an application
CN109344065B (en) Remote debugging method, debugging server and target machine
US6378125B1 (en) Debugger thread identification points
CN106844136B (en) Method and system for collecting program crash information
US5680542A (en) Method and apparatus for synchronizing data in a host memory with data in target MCU memory
US6658649B1 (en) Method, apparatus and article of manufacture for debugging a user defined region of code
US8910166B2 (en) Automatic transcoding and semantic adaptation between scripting and workflow systems
US7299456B2 (en) Run into function
US20160188450A1 (en) Automated application test system
US20070074168A1 (en) Automated step type determination
US7900198B2 (en) Method and system for parameter profile compiling
US7178135B2 (en) Scope-based breakpoint selection and operation
US20090320001A1 (en) System, method and program product for monitoring changes to data within a critical section of a threaded program
US8495590B2 (en) User-specific software debugging
CN110457211B (en) Script performance test method, device and equipment and computer storage medium
US8806438B2 (en) Collaborative software debugging in a distributed system with variable-specific messages
US9645911B2 (en) System and method for debugging firmware/software by generating trace data
EP2733613B1 (en) Controller and program
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN115268956A (en) Android automation environment building method based on RPA
CN114115838A (en) Data interaction method and system based on distributed components and cloud platform
CN112650674A (en) Method for remotely acquiring and debugging webpage log, computer equipment and storage medium
US6983454B2 (en) Extended “run to” function
CN116244186A (en) Operating system test management method and device and computing equipment
CN112579460B (en) Multi-level debugging method based on multi-core embedded 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