CN112468564A - Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium - Google Patents

Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium Download PDF

Info

Publication number
CN112468564A
CN112468564A CN202011308479.7A CN202011308479A CN112468564A CN 112468564 A CN112468564 A CN 112468564A CN 202011308479 A CN202011308479 A CN 202011308479A CN 112468564 A CN112468564 A CN 112468564A
Authority
CN
China
Prior art keywords
terminal
app
state
automation
idle
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
CN202011308479.7A
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.)
Zhejiang Baiying Technology Co Ltd
Original Assignee
Zhejiang Baiying 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 Zhejiang Baiying Technology Co Ltd filed Critical Zhejiang Baiying Technology Co Ltd
Priority to CN202011308479.7A priority Critical patent/CN112468564A/en
Publication of CN112468564A publication Critical patent/CN112468564A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for realizing automatic multi-machine parallel of a terminal APP UI based on an APP, which comprises the following steps: calling an http agent by using the case script to acquire a terminal which is in a connection state and is idle; the http agent returns the terminal to the use case script; starting a corresponding Apdium Server by the use case script according to the information of the terminal; associating the AppIUM Server with a terminal to create an AppIUM instance; and the test case sends a corresponding UI event according to the Apdium instance to finish the UI automation action.

Description

Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium
Technical Field
The invention relates to the field of automation, in particular to a method for realizing automatic multi-machine parallel of an APP UI (user interface) of a terminal based on an APP (application).
Background
The appum open source framework is a popular App UI automation framework in the industry and can be used to test native and mixed mobile-end applications, but it does not provide a good multi-machine parallel solution. And the problem of overlong execution time exists in the operation of the AppUI automation single machine, which is unacceptable for the current agile development and the requirement of realizing rapid automation return. The problems of overlong automatic regression time and overhigh time cost exist.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for realizing automatic multi-machine parallel of an APP UI (application user interface) of a terminal based on an APP, and the technical scheme of realizing the multi-machine automatic parallel use case is realized through an APP Server and a terminal in an idle state.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a method for realizing automatic multi-machine parallel of a terminal APP UI based on an APP, which comprises the following steps:
calling an http agent by using the case script to acquire a terminal which is in a connection state and is idle;
the http agent returns to the terminal to the use case script;
the use case script starts a corresponding Apium Server according to the information of the terminal;
associating the Apdium Server with the terminal to create an Apdium instance;
and the test case sends a corresponding UI event according to the Apium instance to finish UI automation actions.
Preferably, the using case script calling the http agent to acquire the idle terminal in the connected state includes:
the http agent reads an idle terminal from the configuration file;
and judging whether the terminal is in a connection state, if so, changing the state of the terminal into a used state in a configuration file.
Preferably, after the UI automation action is completed, the state of the terminal is modified to be idle.
Preferably, when the terminal is in an unconnected state, the state of the terminal is changed to unconnected in a configuration file.
Preferably, when the configuration file changes the state of the terminal to the used state, the http agent reads the idle terminal from the configuration file again.
The invention has the beneficial effects that:
the invention provides a method for realizing terminal APP UI automatic multi-machine parallel based on an Appium, which solves the problems that the execution time of the APP UI automatic single-machine operation is too long and the multi-machine parallel operation cannot be realized, thereby realizing the automatic distribution of cases to different terminals for execution at the same time, changing the single-machine execution case into the multi-machine parallel execution case, realizing the automatic management and the dispatching of mobile phone resources, shortening the execution time of the case and the cost of the APP UI automatic execution time, and realizing the efficient agile development, the automatic test collection and the release.
Drawings
Fig. 1 is a system architecture diagram for implementing an automatic multi-machine parallel method for a terminal APP UI based on an APP according to an embodiment of the present invention;
fig. 2 is a method for implementing terminal APP UI automation multi-machine parallel based on an APP according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to specific embodiments, and it is obvious that the described embodiments are only a part of embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The appum open source framework is a popular App UI automation framework in the industry and can be used to test native and mixed mobile-end applications, but it does not provide a good multi-machine parallel solution. And the problem of overlong execution time of the App UI automatic single machine operation is solved, so that the problem that the realization of rapid automatic return is required for the current agile development is not acceptable. The problems of overlong automatic regression time and overhigh time cost exist.
In order to solve the technical problems, embodiments of the present invention provide a method for implementing automatic multi-machine parallel of an APP UI of a terminal based on an APP, and implement a technical scheme for implementing multi-machine automatic parallel use-case through an APP Server and a terminal in an idle state.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Please refer to fig. 1, which illustrates a system architecture diagram of a method for implementing terminal APP UI automation for multiple computers in parallel according to an embodiment of the present invention, including a use case script, an http agent, multiple APP servers, and a mobile phone terminal corresponding to the multiple APP servers, where for convenience of understanding, in fig. 1, the APP servers are labeled as APP Server1, APP Server2, APP Server3, and APP Server4, and the corresponding terminals are mobile phone 1, mobile phone 2, mobile phone 3, and mobile phone 4, respectively, where APP Server1 is associated with mobile phone 1, APP Server2 is associated with mobile phone 2, APP Server3 is associated with mobile phone 3, APP Server4 is associated with mobile phone 4, after a connection state is obtained by the use case script through the http agent and is in an idle terminal, the corresponding APP instance is sent after being associated with the corresponding mobile phone, so as to complete automatic operation of the same use case.
Referring to fig. 2, a method for implementing terminal APP UI automation multi-machine parallel based on Appium according to an embodiment of the present invention is shown, where the method includes:
s101, calling an http agent by using a case script to obtain a terminal which is in a connection state and is idle;
s102, the http agent returns the terminal to the use case script;
s103, the use case script starts a corresponding Apdium Server according to the information of the terminal;
s104, associating the Apdium Server with the terminal to create an Apdium instance;
and S105, the test case sends a corresponding UI event according to the Apium instance to finish UI automation actions.
And step S105, after the UI automation action is finished, modifying the state of the terminal to be idle.
In one example, the using case script calling the http agent to obtain the idle terminal in the connected state includes:
the http agent reads an idle terminal from the configuration file;
and judging whether the terminal is in a connection state, if so, changing the state of the terminal into a used state in a configuration file.
In one example, when the terminal is in an unconnected state, the state of the terminal is changed to unconnected in a configuration file.
It can be understood that the number of the terminals in the configuration file may be a single number or a plurality of numbers or 0, and the http agent reads the idle terminals from the configuration file in sequence and determines whether the currently read idle-state terminal is connected.
In one example, when the configuration file changes the terminal state to used failure, the http agent reads the idle terminal from the configuration file again.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, which are within the protection scope of the present invention.

Claims (5)

1. An APP UI automation multi-machine parallel method based on an APP (application), which is characterized in that the method
The method comprises the following steps:
calling an http agent by using the case script to acquire a terminal which is in a connection state and is idle;
the http agent returns to the terminal to the use case script;
the use case script starts a corresponding ApigumServer according to the information of the terminal;
associating the Apium Server with the terminal to create an Apium instance;
and the test case sends a corresponding UI event according to the Apium instance to finish UI automation actions.
2. The apparatus of claim 1, wherein the apparatus is adapted to implement APPUI automation of multiple computers in parallel based on the Appium
The method is characterized in that the using case script calls the http agent to obtain the idle terminal in the connection state comprises the following steps:
the http agent reads an idle terminal from the configuration file;
and judging whether the terminal is in a connection state, if so, changing the state of the terminal into a used state in a configuration file.
3. The apparatus of claim 1, wherein the apparatus is adapted to implement APPUI automation of multiple computers in parallel based on the Appium
The method is characterized in that after the UI automation action is completed, the state of the terminal is modified to be idle.
4. The apparatus of claim 2, wherein the apparatus is adapted to implement automation of a terminal APP UI based on an APP
The method is characterized in that when the terminal is in an unconnected state, the state of the terminal is changed to be unconnected in a configuration file.
5. The apparatus of claim 2, wherein the apparatus is adapted to implement automation of a terminal APP UI based on an APP
The method is characterized in that when the configuration file changes the state of the terminal into the used state, the http agent reads the idle terminal from the configuration file again.
CN202011308479.7A 2020-11-20 2020-11-20 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium Pending CN112468564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011308479.7A CN112468564A (en) 2020-11-20 2020-11-20 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011308479.7A CN112468564A (en) 2020-11-20 2020-11-20 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium

Publications (1)

Publication Number Publication Date
CN112468564A true CN112468564A (en) 2021-03-09

Family

ID=74837441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011308479.7A Pending CN112468564A (en) 2020-11-20 2020-11-20 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium

Country Status (1)

Country Link
CN (1) CN112468564A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023888A (en) * 2012-11-26 2013-04-03 北京奇虎科技有限公司 Data monitoring method and data monitoring system
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals
CN106250307A (en) * 2016-07-20 2016-12-21 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
CN108932194A (en) * 2018-06-21 2018-12-04 北京京东金融科技控股有限公司 Automated testing method, device, system, medium and electronic equipment
CN110188043A (en) * 2019-05-27 2019-08-30 上海上湖信息技术有限公司 A kind of method and control equipment of the test of control multiple devices
CN110287122A (en) * 2019-06-29 2019-09-27 广州华多网络科技有限公司 A kind of automated testing method, device, terminal and storage medium
US10430319B1 (en) * 2018-05-04 2019-10-01 Fmr Llc Systems and methods for automatic software testing
CN111124919A (en) * 2019-12-24 2020-05-08 浙江诺诺网络科技有限公司 User interface testing method, device, equipment and storage medium
CN111294252A (en) * 2019-07-29 2020-06-16 展讯半导体(成都)有限公司 Cluster test system
CN111367812A (en) * 2020-03-12 2020-07-03 北京奇艺世纪科技有限公司 Test method, electronic device and readable storage medium
CN111538650A (en) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 User interface automatic testing method and related equipment
CN111913886A (en) * 2020-08-07 2020-11-10 平安科技(深圳)有限公司 Mobile phone APP automatic test method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals
CN103023888A (en) * 2012-11-26 2013-04-03 北京奇虎科技有限公司 Data monitoring method and data monitoring system
CN106250307A (en) * 2016-07-20 2016-12-21 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
US10430319B1 (en) * 2018-05-04 2019-10-01 Fmr Llc Systems and methods for automatic software testing
CN108932194A (en) * 2018-06-21 2018-12-04 北京京东金融科技控股有限公司 Automated testing method, device, system, medium and electronic equipment
CN110188043A (en) * 2019-05-27 2019-08-30 上海上湖信息技术有限公司 A kind of method and control equipment of the test of control multiple devices
CN110287122A (en) * 2019-06-29 2019-09-27 广州华多网络科技有限公司 A kind of automated testing method, device, terminal and storage medium
CN111294252A (en) * 2019-07-29 2020-06-16 展讯半导体(成都)有限公司 Cluster test system
CN111124919A (en) * 2019-12-24 2020-05-08 浙江诺诺网络科技有限公司 User interface testing method, device, equipment and storage medium
CN111367812A (en) * 2020-03-12 2020-07-03 北京奇艺世纪科技有限公司 Test method, electronic device and readable storage medium
CN111538650A (en) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 User interface automatic testing method and related equipment
CN111913886A (en) * 2020-08-07 2020-11-10 平安科技(深圳)有限公司 Mobile phone APP automatic test method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104239132B (en) A kind of wake up the method for alignment, device and terminal up
CN102298532B (en) Startup-item-based management method and device
CN105468409A (en) Application program closing method and device and electronic equipment
US20180262284A1 (en) Method, apparatus and terminal device for sending broadcast
CN102713820A (en) Operation interface management method, apparatus and mobile terminal
CN110493892B (en) Network connection method and device, storage medium and communication terminal
CN103294553A (en) Method and device for managing multimedia resources of mobile terminal
CN109167820A (en) A kind of method for down loading of application program, device, storage medium and terminal
CN110650164B (en) File uploading method and device, terminal and computer storage medium
CN110825448A (en) Method, device, electronic equipment and storage medium for realizing mutual calling of multiple service modules
CN104809045A (en) Operation method and device of monitoring script
CN105204814A (en) Sound card switching method and system of Android system
WO2012065393A1 (en) Method, mobile terminal and system for implementing data synchronization
CN102880549A (en) Method and device for production test
CN106851595B (en) Ordered broadcast processing method, device and terminal device
CN103237050A (en) Method and system for intelligent voice interaction
CN112468564A (en) Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium
CN109144850B (en) Method and system for testing interactive communication of mobile terminal
CN111131741B (en) Multi-party video call method, electronic equipment, device and computer readable storage medium
CN103561458A (en) Method and system for synchronizing data to Bluetooth watch
CN105491223B (en) Information processing method, related equipment and system
CN106569848A (en) Terminal and starting management method for application program thereof
CN112737896B (en) Bandwidth data checking method, device, medium and electronic equipment
CN116303276A (en) Method for realizing file export by spring batch nested script
CN101212472B (en) Method for enabling mobile terminals to establish a plurality of point-to-point connections

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

Application publication date: 20210309

RJ01 Rejection of invention patent application after publication