CN110287122A - A kind of automated testing method, device, terminal and storage medium - Google Patents

A kind of automated testing method, device, terminal and storage medium Download PDF

Info

Publication number
CN110287122A
CN110287122A CN201910582535.7A CN201910582535A CN110287122A CN 110287122 A CN110287122 A CN 110287122A CN 201910582535 A CN201910582535 A CN 201910582535A CN 110287122 A CN110287122 A CN 110287122A
Authority
CN
China
Prior art keywords
mobile terminal
measured
operating system
port
test
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.)
Granted
Application number
CN201910582535.7A
Other languages
Chinese (zh)
Other versions
CN110287122B (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201910582535.7A priority Critical patent/CN110287122B/en
Publication of CN110287122A publication Critical patent/CN110287122A/en
Application granted granted Critical
Publication of CN110287122B publication Critical patent/CN110287122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

This application discloses a kind of automated testing method, device and terminals, by the facility information for obtaining N number of mobile terminal to be measured;Based on different operating system, the effective ports several again of at least two on each mobile terminal to be measured or 2 are determined;According to the effective port determined on each mobile terminal to be measured, the connection of Appium service and the mobile terminal to be measured is established, every Appium service is connect with a mobile terminal to be measured;Start the test case in the process execution Appium service in each mobile terminal to be measured, N number of mobile terminal parallel to be measured is made to execute N number of process implementation of test cases.By automated testing method disclosed above, while multiple mobile terminals being allowed to test by test case APP product, found the problem efficiency and regression test efficiency to improve automatic test APP product.

Description

A kind of automated testing method, device, terminal and storage medium
Technical field
The present invention relates to field of communication technology, specially a kind of automated testing method, device, terminal and storage medium.
Background technique
Mobile terminal is the equipment inseparable with our life.Very APP product can be installed in the terminal.Mesh It is preceding in the development process of APP product, in order to improve the stability of APP product, need to survey the APP product of mobile terminal Examination.
In the prior art, the automated test frames such as Uiautomator, Robotium are generallyd use to realize to mobile whole The test of the APP product at end.But since Uiautomator, Robotium etc. automated test frame in same operation are It unites under environment, such as mac environment or windows environment or linux environment, a shifting can only be controlled by perform script Dynamic terminal executes a set of test case, and cannot be across multiple APP products.Therefore, very big using existing automated test frame Limit the efficiency of efficiency and regression test that automatic test is found the problem
Summary of the invention
In view of this, the embodiment of the invention provides a kind of automated testing method, device, terminal and storage mediums, together When allow multiple mobile terminals to test by test case APP product, with reach improve automatic test APP product hair The purpose of existing problem efficiency and regression test efficiency.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
The application first aspect discloses a kind of automated testing method, comprising:
The facility information of N number of mobile terminal to be measured is obtained, the N is the positive integer greater than 1;
Based on different operating system, the live ends several again of at least two on each mobile terminal to be measured or 2 are determined Mouthful, the effective port refers to unappropriated port in the mobile terminal to be measured;
According to the effective port determined on each mobile terminal to be measured, Appium service and the movement to be measured are established The connection of terminal, every Appium service are connect with a mobile terminal to be measured;
Start the test case in the process execution Appium service in each mobile terminal to be measured, makes N number of The mobile terminal parallel to be measured executes N number of process implementation of test cases.
Optionally, the facility information for obtaining N number of mobile terminal to be measured, comprising:
Adb order is called based on pre-stored python script and is executed, and the mobile terminal of attended operation system is obtained Facility information;
Based on the facility information of the mobile terminal, N number of mobile terminal to be measured is determined.
Optionally, based on different operating system, the multiple of at least two on each mobile terminal to be measured or 2 is determined A effective port, comprising:
Judge that N number of mobile terminal to be measured connects based on the sys.platform constant in pre-stored python script The type of the operating system connect;
Call the whether occupied order in the corresponding port of certain type of operating system to each mobile terminal to be measured Port detected, determine the effective ports several again of at least two on each mobile terminal to be measured or 2.
Optionally, it is described call the whether occupied order in the corresponding port of certain type of operating system to it is each it is described to It is detected the port for surveying mobile terminal, comprising:
When determining the operating system system is windows operating system, netstat-ano is called | findstr life It enables, the port of each mobile terminal to be measured is detected;
When determining the operating system system is mac operating system or linux operating system, lsof-i order is called, The port of each mobile terminal to be measured is detected.
The application second aspect discloses a kind of automatic test device, comprising:
Acquiring unit, for obtaining the facility information of N number of mobile terminal to be measured, the N is the positive integer greater than 1;
Determination unit, for determining at least two or 2 on each mobile terminal to be measured based on different operating system Effective ports several again, the effective port refers to unappropriated port in the mobile terminal to be measured;
Unit is established, for establishing Appium service according to the effective port determined on each mobile terminal to be measured With the connection of the mobile terminal to be measured, every Appium service is connect with a mobile terminal to be measured;
Start unit, for starting the survey in the execution Appium service of a process in each mobile terminal to be measured Example on probation makes N number of mobile terminal parallel to be measured execute N number of process implementation of test cases.
Optionally, the acquiring unit, comprising:
Subelement is obtained, for calling adb order based on pre-stored python script and executing, obtains attended operation The facility information of the mobile terminal of system;
It determines subelement, for the facility information based on the mobile terminal, determines N number of mobile terminal to be measured.
Optionally, the determination unit, comprising:
Subelement is determined, for judging N number of institute based on the sys.platform constant in pre-stored python script State the type of the operating system of mobile terminal connection to be measured;
Detection sub-unit, for calling the whether occupied order in the corresponding port of certain type of operating system to each institute The port for stating mobile terminal to be measured is detected, determine at least two on each mobile terminal to be measured or 2 it is several again effectively Port.
Optionally, the detection sub-unit, comprising:
First detection sub-module, for calling when determining the operating system system is windows operating system Netstat-ano | findstr order detects the port of each mobile terminal to be measured;
Second detection sub-module, for being mac operating system or linux operating system when the determining operating system system When, lsof-i order is called, the port of each mobile terminal to be measured is detected.
The application third aspect discloses a kind of automated terminal test, including above-mentioned automatic test disclosed in the present application Device.
The application fourth aspect discloses a kind of storage medium, and the storage medium includes the program of storage, wherein in institute Equipment where controlling the storage medium when stating program operation executes above-mentioned automated testing method disclosed in the present application.
As shown in the above, a kind of automated testing method, device, terminal and storage medium disclosed in the present application lead to Cross the facility information for obtaining N number of mobile terminal to be measured;Based on different operating system, determine on each mobile terminal to be measured At least two or 2 effective ports several again;According to the effective port determined on each mobile terminal to be measured, establish The connection of Appium service and the mobile terminal to be measured, every Appium service are connect with a mobile terminal to be measured;It opens The test case in the process execution Appium service in each mobile terminal to be measured is moved, N number of shifting to be measured is made Dynamic terminal executes N number of process implementation of test cases parallel.By automated testing method disclosed above, while allowing multiple movements Terminal tests APP product by test case, thus improve automatic test APP product find the problem efficiency and return Return testing efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of automated testing method flow chart provided in an embodiment of the present invention;
Fig. 2 is another automated testing method flow chart provided in an embodiment of the present invention;
Fig. 3 is another automated testing method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of automatic test device structural schematic diagram provided in an embodiment of the present invention;
Fig. 5 is another automatic test device structural schematic diagram provided in an embodiment of the present invention;
Fig. 6 is another automatic test device structural schematic diagram provided in an embodiment of the present invention;
Fig. 7 is another automatic test device structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In this application, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element There is also other identical elements in journey, method, article or equipment.
The embodiment of the present invention provides a kind of automated testing method, and referring to Fig. 1, the above method includes at least following steps:
Step S101: the facility information of N number of mobile terminal to be measured is obtained.
In step s101, the N is the positive integer greater than 1.The mobile terminal to be measured, which refers to, is able to carry out test Mobile terminal.The facility information of the mobile terminal to be measured refers to the identifier and the mobile terminal to be measured of mobile terminal to be measured State, corresponding mobile terminal to be measured can be found by the identifier.
It should be noted that bridge (Android can be debugged by calling by obtaining the facility information of N number of mobile terminal to be measured Debug Bridge, adb) order, and execute the facility information that N number of mobile terminal to be measured is got after adb order.
During executing step S101, as shown in Fig. 2, specific implementation procedure the following steps are included:
Step S201: adb order is called based on pre-stored python script and is executed, attended operation system is obtained The facility information of mobile terminal.
It should be noted that python script is to be compiled in advance by technical staff, it is then stored in advance in automation Script in test device.
During executing step S201, the adb order in python script is called, adb order is executed and obtains connection The facility information of the mobile terminal of operating system.
The facility information of the mobile terminal includes at least: the unique identifier of mobile terminal.
Step S202: the facility information based on the mobile terminal determines N number of mobile terminal to be measured.
During executing step S202, in the facility information based on the execution step S201 mobile terminal got only One identifier is counted, and can determine the quantity of mobile terminal to be measured.
Optionally, all N number of mobile terminals to be measured being connected with operating system can be determined, it can also be from all determinations In mobile terminal to be measured, N number of mobile terminal to be measured is chosen.
Step S102: based on different operating system, times of at least two on each mobile terminal to be measured or 2 is determined Several effective ports.
In step s 102, the effective port refers to unappropriated port in the mobile terminal to be measured.
It should be noted that mobile terminal and Appium service establish connection and need at least two effective port, wherein one A port is the port of python script and Appium communication for service, and a port is Appium service and communication of mobile terminal Port.Therefore, it is necessary at least determine the effective ports several again of 2 or 2 on each mobile terminal to be measured, to guarantee to move The connection and script of terminal and Appium service and the connection of Appium service.
It should be noted that being directed to different operating system, the confirmation of effective port uses different validation testings.
Step S103: according to the effective port determined on each mobile terminal to be measured, Appium service and institute are established The connection of mobile terminal to be measured is stated, every Appium service is connect with a mobile terminal to be measured.
In step s 103, because each mobile terminal to be measured is carried out the process implementation of test cases in Appium service, Therefore, it is necessary to Appium services to be first connected with each mobile terminal to be measured, just can guarantee that each mobile terminal to be measured is able to carry out Process implementation of test cases in Appium service.
During executing step S103, N number of Appium is opened by python script execution Appium order and is serviced Service, and the connection of Appium service and the mobile terminal to be measured is established, every Appium service and a movement to be measured Terminal connection.N number of Appium service can be established to connect with N number of mobile terminal to be measured.
Step S104: the test that a process in each mobile terminal to be measured of starting executes in Appium service is used Example makes N number of mobile terminal parallel to be measured execute N number of process implementation of test cases.
In step S104, the test case is the test case being stored in advance in Appium service.One to be measured Mobile terminal needs to open a process implementation of test cases.
During executing step S104, python script is based on the mobile terminal to be measured for executing step S101 acquisition Facility information controls the corresponding test case of mobile terminal execution to be measured.
The facility information that the application passes through the N number of mobile terminal to be measured of acquisition;Based on different operating system, each institute is determined State the effective ports several again of at least two on mobile terminal to be measured or 2;Had according to what is determined on each mobile terminal to be measured Port is imitated, the connection of Appium service and the mobile terminal to be measured, every Appium service and a movement to be measured are established Terminal connection;Start the test case in the process execution Appium service in each mobile terminal to be measured, makes N number of The mobile terminal parallel to be measured executes N number of process implementation of test cases.By automated testing method disclosed above, simultaneously It allows multiple mobile terminals to test by use-case APP product, finds the problem effect to improve automatic test APP product Rate and regression test efficiency.
Based on automated testing method disclosed above, during executing step S102 shown in Fig. 1, such as Fig. 3 It is shown, specific implementation procedure the following steps are included:
Step S301: judged based on the sys.platform constant in pre-stored python script N number of described to be measured The type of the operating system of mobile terminal connection.
It should be noted that the sys.platform constant due to each operating system has differences, it can be based on Sys.platform constant in pre-stored python script judges the class of the operating system of N number of mobile terminal connection to be measured Type.
If the value of operating system windows, sys.platform are windows or win32.
If the value of operating system mac, sys.platform are darwin.
If the value of operating system Linux, sys.platform are linux.
Step S302: call the whether occupied order in the corresponding port of certain type of operating system to each described to be measured The port of mobile terminal is detected, and determines the effective ports several again of at least two on each mobile terminal to be measured or 2.
During executing step S302, according to the type for executing the operating system that step S301 is determined, calls and determine The corresponding port of operating system it is whether occupied order the port of each mobile terminal to be measured is detected.
Since the type of operating system is different, whether occupied port order be also different.
When determining the operating system is windows operating system, netstat-ano is called | findstr order, it is right It is detected the port of each mobile terminal to be measured.
When determining the operating system is mac operating system or linux operating system, lsof-i order is called, to every It is detected the port of one mobile terminal to be measured.
How above-mentioned steps determine the effective port on mobile terminal to be measured in order to facilitate understanding, below illustrated detection The program code of effective port on mobile terminal to be measured.
Such as:
defport_is_used(self,port):
Command=" "
ifutil.is_window():
Command='netstat-ano | findstr:'+str (port)
else:
Command='lsof-i:'+str (port)
Result=os.popen (command) .readlines ()
iflen(result)>0:
returnTrue
else:
returnFalse
Further, detect whether the port of mobile terminal to be measured is to have based on the whether occupied order in the port of above-mentioned determination The process of effect port is illustrated.
Such as: a mobile terminal to be measured has 10 ports, and currently determining operating system is windows operating system, The whether occupied order in port is netstat-ano | findstr order.Based on the netstat-ano | findstr order is treated Survey mobile terminal 10 ports successively detected, if the port 1 of the mobile terminal to be measured be it is vacant, determine that the port is Effective port, label port 1 can be used, then, continue to test, until determining the effective ports several again stopping for having 2 or 2 altogether.
The application is N number of described to be measured by being judged based on the sys.platform constant in pre-stored python script The type of the operating system of mobile terminal connection;Call the whether occupied order pair in the corresponding port of certain type of operating system The port of each mobile terminal to be measured is detected, and determines the multiple of at least two on each mobile terminal to be measured or 2 A effective port.It is adopted when being detected to the port in different operating system by automated testing method disclosed above It is detected with the whether occupied order in the corresponding port of operating system, is finally reached effective port in detection mobile terminal to be measured Purpose.
Corresponding with automated testing method disclosed in above-mentioned the embodiment of the present application, the embodiment of the present application discloses one kind certainly Dynamicization test device, as shown in figure 4, shown automatic test device, comprising:
Acquiring unit 401, for obtaining the facility information of N number of mobile terminal to be measured;
Determination unit 402, for determining at least two on each mobile terminal to be measured based on different operating system Or 2 effective ports several again, the effective port refers to unappropriated port in the mobile terminal to be measured;
Unit 403 is established, for establishing Appium clothes according to the effective port determined on each mobile terminal to be measured The connection of business and the mobile terminal to be measured, every Appium service are connect with a mobile terminal to be measured;
Start unit 404 executes in Appium service for starting a process in each mobile terminal to be measured Test case, so that N number of mobile terminal parallel to be measured is executed N number of process implementation of test cases.
Preferably, as shown in figure 5, the acquiring unit 401, comprising:
Subelement 501 is obtained, for calling adb order based on pre-stored python script and executing, obtains connection The facility information of the mobile terminal of operating system;
It determines subelement 502, for the facility information based on the mobile terminal, determines N number of mobile terminal to be measured.
Preferably, as shown in fig. 6, the determination unit 402, comprising:
Determine subelement 601, it is N number of for being judged based on the sys.platform constant in pre-stored python script The type of the operating system of the mobile terminal connection to be measured;
Detection sub-unit 602, for calling the whether occupied order in the corresponding port of certain type of operating system to every The port of one mobile terminal to be measured is detected, determine at least two on each mobile terminal to be measured or 2 it is several again Effective port.
Preferably, as shown in fig. 7, the detection sub-unit 602, comprising:
First detection sub-module 701, for calling when determining the operating system system is windows operating system Netstat-ano | findstr order detects the port of each mobile terminal to be measured;
Second detection sub-module 702, for being that mac operating system or linux are operated when the determining operating system system When system, lsof-i order is called, the port of each mobile terminal to be measured is detected.
It should be noted that each unit and module tool in automatic test device disclosed in the embodiments of the present invention The principle and implementation procedure of body, it is identical as automated testing method disclosed in the embodiments of the present invention, reference can be made to above-mentioned hair Corresponding part, is not discussed here in automated testing method disclosed in bright embodiment.
The application obtains the facility information of N number of mobile terminal to be measured by acquiring unit;Determination unit is based on different behaviour Make system, determines the effective ports several again of at least two on each mobile terminal to be measured or 2;Unit is established according to each The effective port determined on the mobile terminal to be measured establishes the connection of Appium service and the mobile terminal to be measured, each Appium service is connect with a mobile terminal to be measured;Start unit start one in each mobile terminal to be measured into Test case in Cheng Zhihang Appium service makes N number of mobile terminal parallel to be measured execute N number of process and executes test use Example.By automatic test device disclosed above, while multiple mobile terminals being allowed to test by use-case APP product, It finds the problem efficiency and regression test efficiency to improve automatic test APP product.
Corresponding with automated testing method disclosed in above-mentioned the embodiment of the present application and device, the embodiment of the present application also provides It include that the disclosed automation of above-mentioned the embodiment of the present application is surveyed in a kind of automatization test system, in the automatization test system Trial assembly is set, and principle is identical, here with regard to no longer being repeated.
The application obtains the facility information of N number of mobile terminal to be measured by acquiring unit;Determination unit is based on different behaviour Make system, determines the effective ports several again of at least two on each mobile terminal to be measured or 2;Unit is established according to each The effective port determined on the mobile terminal to be measured establishes the connection of Appium service and the mobile terminal to be measured, each Appium service is connect with a mobile terminal to be measured;Start unit start one in each mobile terminal to be measured into Test case in Cheng Zhihang Appium service makes N number of mobile terminal parallel to be measured execute N number of process and executes test use Example.By automatic test device disclosed above, while multiple mobile terminals being allowed to test by use-case APP product, It finds the problem efficiency and regression test efficiency to improve automatic test APP product.
A kind of storage medium, for storing program, wherein when described program is run, for controlling the storage medium institute Automated testing method described in the application any embodiment is executed in equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.System and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of automated testing method characterized by comprising
The facility information of N number of mobile terminal to be measured is obtained, the N is the positive integer greater than 1;
Based on different operating system, the effective ports several again of at least two on each mobile terminal to be measured or 2 are determined, The effective port refers to unappropriated port in the mobile terminal to be measured;
According to the effective port determined on each mobile terminal to be measured, Appium service and the mobile terminal to be measured are established Connection, every Appium service connect with a mobile terminal to be measured;
Start the test case in the process execution Appium service in each mobile terminal to be measured, makes N number of described Mobile terminal parallel to be measured executes N number of process implementation of test cases.
2. the method according to claim 1, wherein the facility information for obtaining N number of mobile terminal to be measured, packet It includes:
Adb order is called based on pre-stored python script and is executed, and setting for the mobile terminal of attended operation system is obtained Standby information;
Based on the facility information of the mobile terminal, N number of mobile terminal to be measured is determined.
3. the method according to claim 1, wherein being determined each described to be measured based on different operating system On mobile terminal at least two or 2 effective ports several again, comprising:
N number of mobile terminal connection to be measured is judged based on the sys.platform constant in pre-stored python script The type of operating system;
Call the whether occupied order in the corresponding port of certain type of operating system to the end of each mobile terminal to be measured It mouthful is detected, determines the effective ports several again of at least two on each mobile terminal to be measured or 2.
4. according to the method described in claim 3, it is characterized in that, described call the corresponding port of certain type of operating system Whether occupied order detects the port of each mobile terminal to be measured, comprising:
When determining the operating system system is windows operating system, netstat-ano is called | findstr order, it is right It is detected the port of each mobile terminal to be measured;
When determining the operating system system is mac operating system or linux operating system, lsof-i order is called, to every It is detected the port of one mobile terminal to be measured.
5. a kind of automatic test device characterized by comprising
Acquiring unit, for obtaining the facility information of N number of mobile terminal to be measured, the N is the positive integer greater than 1;
Determination unit, for based on different operating system, determining times of at least two on each mobile terminal to be measured or 2 Several effective ports, the effective port refer to unappropriated port in the mobile terminal to be measured;
Unit is established, for establishing Appium service and institute according to the effective port determined on each mobile terminal to be measured The connection of mobile terminal to be measured is stated, every Appium service is connect with a mobile terminal to be measured;
Start unit is used for starting the test in the execution Appium service of a process in each mobile terminal to be measured Example makes N number of mobile terminal parallel to be measured execute N number of process implementation of test cases.
6. device according to claim 5, which is characterized in that the acquiring unit, comprising:
Subelement is obtained, for calling adb order based on pre-stored python script and executing, obtains attended operation system Mobile terminal facility information;
It determines subelement, for the facility information based on the mobile terminal, determines N number of mobile terminal to be measured.
7. device according to claim 5, which is characterized in that the determination unit, comprising:
Determine subelement, for based on the sys.platform constant in pre-stored python script judge it is N number of described in Survey the type of the operating system of mobile terminal connection;
Detection sub-unit, for call the corresponding port of certain type of operating system it is whether occupied order to it is each it is described to The port for surveying mobile terminal is detected, and determines the live ends several again of at least two on each mobile terminal to be measured or 2 Mouthful.
8. device according to claim 7, which is characterized in that the detection sub-unit, comprising:
First detection sub-module, for calling netstat-when determining the operating system system is windows operating system Ano | findstr order detects the port of each mobile terminal to be measured;
Second detection sub-module, for when determine the operating system system be mac operating system or linux operating system when, Lsof-i order is called, the port of each mobile terminal to be measured is detected.
9. a kind of automated terminal test, which is characterized in that filled including automatic test described in any one of claim 5-8 It sets.
10. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment execute automated testing method according to any one of claims 1 to 5.
CN201910582535.7A 2019-06-29 2019-06-29 Automatic test method, device, terminal and storage medium Active CN110287122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910582535.7A CN110287122B (en) 2019-06-29 2019-06-29 Automatic test method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910582535.7A CN110287122B (en) 2019-06-29 2019-06-29 Automatic test method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110287122A true CN110287122A (en) 2019-09-27
CN110287122B CN110287122B (en) 2023-08-11

Family

ID=68021431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910582535.7A Active CN110287122B (en) 2019-06-29 2019-06-29 Automatic test method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110287122B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427776A (en) * 2020-03-12 2020-07-17 甄十信息科技(上海)有限公司 Automatic testing method and device for intelligent equipment
CN111427740A (en) * 2020-02-05 2020-07-17 香港乐蜜有限公司 Development environment maintenance method and device for mobile terminal
CN112256569A (en) * 2020-10-16 2021-01-22 四川长虹电器股份有限公司 Automatic testing method for simultaneous operation of multiple mobile phones based on apium + python
CN112395192A (en) * 2020-11-16 2021-02-23 北京五八信息技术有限公司 Information processing method and device
CN112468564A (en) * 2020-11-20 2021-03-09 浙江百应科技有限公司 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium
CN113986373A (en) * 2021-10-21 2022-01-28 北京鲸鲮信息系统技术有限公司 Module, system and method for simultaneously operating automation scripts by multiple access devices
CN114095197A (en) * 2020-12-29 2022-02-25 京东科技控股股份有限公司 Method, device, electronic equipment, system and storage medium for preventing network attack
CN116483690A (en) * 2023-03-20 2023-07-25 中国人民财产保险股份有限公司 Application business process testing method, testing equipment, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250307A (en) * 2016-07-20 2016-12-21 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
CN106844213A (en) * 2017-01-21 2017-06-13 江苏千米网络科技股份有限公司 A kind of front end method of testing and device
US9747191B1 (en) * 2015-10-05 2017-08-29 Amazon Technologies, Inc. Tool to replicate actions across devices in real time for improved efficiency during manual application testing
CN107704396A (en) * 2017-10-20 2018-02-16 平安科技(深圳)有限公司 The method of testing and device of application program
CN108287789A (en) * 2017-12-29 2018-07-17 五八有限公司 Batch-automated test method, device and electronic equipment
US20180287926A1 (en) * 2017-03-29 2018-10-04 Mobile Integration Technologies MCellblock for Parallel Testing of Multiple Devices
CN108920376A (en) * 2018-07-13 2018-11-30 北京京东金融科技控股有限公司 Test method, device and the medium of application program
CN109614324A (en) * 2018-12-03 2019-04-12 北京云测网络科技有限公司 A kind of method for generating test case and device
CN109815110A (en) * 2018-12-11 2019-05-28 北京城市网邻信息技术有限公司 A kind of network port management method, device, terminal device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9747191B1 (en) * 2015-10-05 2017-08-29 Amazon Technologies, Inc. Tool to replicate actions across devices in real time for improved efficiency during manual application testing
CN106250307A (en) * 2016-07-20 2016-12-21 福建省农村信用社联合社 A kind of bank's mobile phone application automated testing method and system
CN106844213A (en) * 2017-01-21 2017-06-13 江苏千米网络科技股份有限公司 A kind of front end method of testing and device
US20180287926A1 (en) * 2017-03-29 2018-10-04 Mobile Integration Technologies MCellblock for Parallel Testing of Multiple Devices
CN107704396A (en) * 2017-10-20 2018-02-16 平安科技(深圳)有限公司 The method of testing and device of application program
CN108287789A (en) * 2017-12-29 2018-07-17 五八有限公司 Batch-automated test method, device and electronic equipment
CN108920376A (en) * 2018-07-13 2018-11-30 北京京东金融科技控股有限公司 Test method, device and the medium of application program
CN109614324A (en) * 2018-12-03 2019-04-12 北京云测网络科技有限公司 A kind of method for generating test case and device
CN109815110A (en) * 2018-12-11 2019-05-28 北京城市网邻信息技术有限公司 A kind of network port management method, device, terminal device and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BACON刘: "基于Appium、Python的自动化测试", pages 1 - 14, Retrieved from the Internet <URL:https://www.cnblogs.com/baconLiu/p/6735441.html?utm_source=debugrun&utm_medium=referral> *
明凡: "面向移动终端的软件自动化测试系统研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 138 - 777 *
陈学亮 等: "Android应用并行自动化测试技术研究与实现", 《广东通信技术》 *
陈学亮 等: "Android应用并行自动化测试技术研究与实现", 《广东通信技术》, no. 11, 30 November 2016 (2016-11-30), pages 4 - 5 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427740A (en) * 2020-02-05 2020-07-17 香港乐蜜有限公司 Development environment maintenance method and device for mobile terminal
CN111427776A (en) * 2020-03-12 2020-07-17 甄十信息科技(上海)有限公司 Automatic testing method and device for intelligent equipment
CN112256569A (en) * 2020-10-16 2021-01-22 四川长虹电器股份有限公司 Automatic testing method for simultaneous operation of multiple mobile phones based on apium + python
CN112395192A (en) * 2020-11-16 2021-02-23 北京五八信息技术有限公司 Information processing method and device
CN112468564A (en) * 2020-11-20 2021-03-09 浙江百应科技有限公司 Method for realizing automatic multi-machine parallel of terminal APP UI based on Apdium
CN114095197A (en) * 2020-12-29 2022-02-25 京东科技控股股份有限公司 Method, device, electronic equipment, system and storage medium for preventing network attack
CN113986373A (en) * 2021-10-21 2022-01-28 北京鲸鲮信息系统技术有限公司 Module, system and method for simultaneously operating automation scripts by multiple access devices
CN116483690A (en) * 2023-03-20 2023-07-25 中国人民财产保险股份有限公司 Application business process testing method, testing equipment, equipment and storage medium

Also Published As

Publication number Publication date
CN110287122B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN110287122A (en) A kind of automated testing method, device, terminal and storage medium
CA2496738C (en) Method and system for configuration control in telecommunications networks
US6269150B1 (en) Reliable, unattended, automated testing system and method for complex telecommunication systems
JPH06284189A (en) Test system of subscriber design call processing program
CN112291621B (en) System upgrading automation test method, device and test equipment
CN103973858B (en) The Auto-Test System of mobile terminal
CN110658400B (en) Embedded test method, microcontroller and system
CN110213121A (en) Test platform, test method and the test device of virtual communication product
CN110209520A (en) A kind of method, apparatus, computer equipment and storage medium improving SSD testing efficiency
CN105827333A (en) System and method of baseband chip automatic test
CN101916200A (en) Method for terminal upgrading, method for backoff of terminal upgrading and upgrading management center
CN108228465A (en) A kind of Software function test method and device
CN109240278A (en) Automated diagnostic method, apparatus and system
CN107682219A (en) A kind of method of testing and device of the testing number based on Android system
CN109815076A (en) A kind of network interface card boot option detection method, system, terminal and storage medium
CN111050333A (en) Base station automatic test method and system
CN109101420A (en) Determine the method, apparatus and system, terminal of Test Strategy
CN105933518B (en) A kind of operator&#39;s icon display method and mobile terminal
CN112202951A (en) Mobile phone compatibility testing method and related device
CN107509215A (en) A kind of wireless authentication automated testing method and system
CN104601679A (en) Equipment software testing method, mobile terminal and server
CN105323093A (en) Fault information collection method, device and system
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN101251824B (en) Method for testing public objects request proxy structure and tools
CN113536318B (en) Information processing method and related 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
GR01 Patent grant
GR01 Patent grant