CN106649097B - A kind of movement automation test method based on object separation management - Google Patents

A kind of movement automation test method based on object separation management Download PDF

Info

Publication number
CN106649097B
CN106649097B CN201610960727.3A CN201610960727A CN106649097B CN 106649097 B CN106649097 B CN 106649097B CN 201610960727 A CN201610960727 A CN 201610960727A CN 106649097 B CN106649097 B CN 106649097B
Authority
CN
China
Prior art keywords
test
value
management
test script
automatic 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.)
Active
Application number
CN201610960727.3A
Other languages
Chinese (zh)
Other versions
CN106649097A (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.)
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Original Assignee
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power 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 State Grid Jiangsu Electric Power Co Ltd, Jiangsu Electric Power Information Technology Co Ltd filed Critical State Grid Jiangsu Electric Power Co Ltd
Priority to CN201610960727.3A priority Critical patent/CN106649097B/en
Publication of CN106649097A publication Critical patent/CN106649097A/en
Application granted granted Critical
Publication of CN106649097B publication Critical patent/CN106649097B/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
    • 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

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of movement automation test methods based on object separation management, theory of this method based on object and automatic test script separation and object centralized management, the test object of mobile application is separated from automatic test script, simultaneously in view of quoting the same object there are multiple test scripts in program the case where, test object is summarised in Object Management group library and is managed concentratedly, executes automatic test in a manner of object driving.Through the invention, tester can management mobile test object quickly and efficiently, the maintenance cost of movement automation test script is greatly reduced.

Description

A kind of movement automation test method based on object separation management
Technical field
The present invention provides the method for managing object of new mobile application for movement automation tester, can be quickly high The test object of the management mobile application of effect, optimizes the management of movement automation test script with this.
Background technique
With the continuous updating of mobile application new business being continuously increased with original service application, mobile application test is answered Miscellaneous degree, test period and testing cost are higher and higher.For this purpose, the means that many enterprises use movement automation to test one after another, To improve testing efficiency, testing cost is reduced.
Currently, movement automation test is the mode of Robot FrameWork-ride+Appium using more scheme, Robot FrameWork-ride is mainly responsible for management and the editor of automatic test script, and Appium is responsible for being connected to PC machine and hand Machine, and test script is executed in mobile phone terminal.Robot FrameWork-ride: being a lightweight, intuitive Robot FrameWork test script editing machine.Appium: being an open source for primary mixing and mobile Web Application testing Frame.It uses WebDriver protocol-driven IOS and Android application program.
Robot FrameWork-ride is a kind of test frame of expansible crucial word drive based on Python, usually For end to end can receive test and and its driving exploitation, can be used for test be related to the distribution of multiple technologies and interface Formula, isomery application system.Keyword driving test: the programing work of test script is separated, allows and does not program skill Skilful people can also develop automatic test script.The creation of test script is divided into two stages by keyword driving test method: Planning phase and implementation phase.Robot FrameWork-ride carries out pipe to automatic test script by tree structure level Reason, and test object is all placed in automatic test script, is not managed test object individually, therefore in mobile application Page object when changing, modification automatic test script need to be taken a significant amount of time, cause maintenance workload larger, safeguarded Higher cost.
Summary of the invention
Aiming at the problem that encountering in movement automation test, the object of the present invention is to provide one kind to be based on object separation management Movement automation test method, this method based on object and automatic test script separation and object centralized management theory, The test object of mobile application is separated from automatic test script, while in view of there are multiple test scripts to draw in program Test object is summarised in Object Management group library and manages concentratedly by the case where with the same object, in a manner of object driving Execute automatic test.
The purpose of the present invention is achieved through the following technical solutions:
A kind of movement automation test method based on object separation management, it is characterised in that: this method be based on object and The theory of automatic test script separation and object centralized management, by the test object of mobile application from automatic test script Test object is summarised in pair by separation, while the case where in view of quoting the same object there are multiple test scripts in program Orthicon reason is managed concentratedly in library, executes automatic test in a manner of object driving;It is specific as follows:
1) library of object is separated, attribute value class is obtained;
2) specific step is as follows for the automatic test script implementation procedure of separation library of object:
Step1: selection test use cases;
Step2: the automatic test script that implementation of test cases is concentrated;
Step3: the business keyword in automatic test script is executed;
Step4: the operation object in positioning service keyword;
Step5: the method query object attribute value in DLXX_GETOBJ_VALUE class is called;
Step6: according to the specified attribute of operation object, the corresponding method for obtaining attribute value is called to go in library of object to inquire Attribute value;
Step7: the object attribute values inquired are returned to;
Step8: according to the object attribute values of return, the object in the page is navigated to, executes business keyword;
Step9: the page of manipulator's generator terminal;
Step10: repeating step2, until completing the automatic test script that selected test case is concentrated.
In step 1) of the present invention, the function of obtaining attribute value class DLXX_GETOBJ_VALUE method is as follows:
GET_ID_VALUE: the value of object ID is obtained;
GET_Name_VALUE: the value of object Name is obtained;
GET_Xpath_VALUE: the value of object Xpath is obtained.
Through the invention, tester can management mobile test object quickly and efficiently, movement automation is greatly reduced The maintenance cost of test script.
Detailed description of the invention
Fig. 1 illustrates the Object Management group hierarchical structure of separation library of object;
Fig. 2 illustrates the process for executing movement automation test script.
Specific embodiment
A kind of movement automation test method based on object separation management, this method are based on object and automatic test foot The theory of this separation and object centralized management, the test object of mobile application is separated from automatic test script, is examined simultaneously Consider in program there are multiple test scripts quote the same object the case where, by test object be summarised in Object Management group library into Row centralized management executes automatic test in a manner of object driving.
The realization for separating library of object uses 1 class, obtains attribute value class and (uses class DLXX_GETOBJ_ in the present embodiment VALUE definition, but not limited to this title).Fig. 1 illustrates the Object Management group hierarchical structure of separation library of object.
The function of obtaining attribute value class DLXX_GETOBJ_VALUE main method is as follows:
GET_ID_VALUE: the value of object ID is obtained;
GET_Name_VALUE: the value of object Name is obtained;
GET_Xpath_VALUE: the value of object Xpath is obtained;
As shown in Fig. 2, specific step is as follows for the automatic test script implementation procedure of separation library of object:
Step1: selection test use cases.
Step2: the automatic test script that implementation of test cases is concentrated.
Step3: the business keyword in automatic test script is executed.
Step4: the operation object in positioning service keyword.
Step5: the method query object attribute value in DLXX_GETOBJ_VALUE class is called;
Step6: according to the specified attribute of operation object, the corresponding method (GET_ID_VALUE/ for obtaining attribute value is called GET_Name_VALUE/ GET_Xpath_VALUE) go querying attributes value in library of object;
Step7: the object attribute values inquired are returned to;
Step8: according to the object attribute values of return, the object in the page is navigated to, executes business keyword.
Step9: the page of manipulator's generator terminal.
Step10: repeating step2, until completing the automatic test script that selected test case is concentrated.
In this way, tester can management mobile test object quickly and efficiently, movement automation is greatly reduced The maintenance cost of test script.

Claims (2)

1. a kind of movement automation test method based on object separation management, it is characterised in that: this method is based on object and certainly The theory of the separation of dynamicization test script and object centralized management, the object of mobile application is separated from automatic test script, Simultaneously in view of quoting the same object there are multiple test scripts in program the case where, object is summarised in Object Management group library It is managed concentratedly, executes automatic test in a manner of object driving;It is specific as follows:
1) library of object is separated, attribute value class is obtained;
2) specific step is as follows for the automatic test script implementation procedure of separation library of object:
Step1: selection test use cases;
Step2: the automatic test script that implementation of test cases is concentrated;
Step3: the business keyword in automatic test script is executed;
Step4: the operation object in positioning service keyword;
Step5: the method query object attribute value in DLXX_GETOBJ_VALUE class is called;
Step6: according to the specified attribute of object, the corresponding method for obtaining attribute value is called to go querying attributes value in library of object;
Step7: the object attribute values inquired are returned to;
Step8: according to the object attribute values of return, the object in the page is navigated to, executes business keyword;
Step9: the page of manipulator's generator terminal;
Step10: repeating Step 2, until completing the automatic test script that selected test case is concentrated.
2. the movement automation test method according to claim 1 based on object separation management, it is characterised in that: step 1) in, the function of obtaining attribute value class method is as follows:
GET_ID_VALUE: the value of object ID is obtained;
GET_Name_VALUE: the value of object Name is obtained;
GET_Xpath_VALUE: the value of object Xpath is obtained.
CN201610960727.3A 2016-11-04 2016-11-04 A kind of movement automation test method based on object separation management Active CN106649097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610960727.3A CN106649097B (en) 2016-11-04 2016-11-04 A kind of movement automation test method based on object separation management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610960727.3A CN106649097B (en) 2016-11-04 2016-11-04 A kind of movement automation test method based on object separation management

Publications (2)

Publication Number Publication Date
CN106649097A CN106649097A (en) 2017-05-10
CN106649097B true CN106649097B (en) 2019-01-22

Family

ID=58821409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610960727.3A Active CN106649097B (en) 2016-11-04 2016-11-04 A kind of movement automation test method based on object separation management

Country Status (1)

Country Link
CN (1) CN106649097B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255702A (en) * 2017-09-21 2018-07-06 平安科技(深圳)有限公司 A kind of test case creation method, apparatus, equipment and storage medium
CN108427642A (en) * 2018-03-05 2018-08-21 深圳市买买提信息科技有限公司 The method and apparatus of components testing in a kind of interface
CN113360385A (en) * 2021-06-16 2021-09-07 北京光启元数字科技有限公司 Test method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484269A (en) * 2014-11-27 2015-04-01 北京广利核系统工程有限公司 Method for automatically generating testing script
CN104899150A (en) * 2015-06-30 2015-09-09 上海斐讯数据通信技术有限公司 Object-oriented based automatic testing method and system and automatic platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9223684B2 (en) * 2013-09-25 2015-12-29 Microsoft Technology Licensing, Llc Online application testing across browser environments

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484269A (en) * 2014-11-27 2015-04-01 北京广利核系统工程有限公司 Method for automatically generating testing script
CN104899150A (en) * 2015-06-30 2015-09-09 上海斐讯数据通信技术有限公司 Object-oriented based automatic testing method and system and automatic platform

Also Published As

Publication number Publication date
CN106649097A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106649097B (en) A kind of movement automation test method based on object separation management
CN105389402A (en) Big-data-oriented ETL (Extraction-Transformation-Loading) method and device
CN105262616A (en) Failure repository-based automated failure processing system and method
CN104834537A (en) Data processing method, server and client
CN107992686B (en) Wire harness path generation system for full-automatic wiring machine
CN106126528B (en) A kind of moonlet test basic information generation method based on platform model
CN104463355A (en) Mini-satellite testing and planning system based on testing model
CN105117421B (en) Based on the matched social network analysis method of graph structure
CN101059695A (en) Programmatic access to controller construct and variable names
CN202339542U (en) Software product test system
CN105243167A (en) Data processing method and device
CN105159783A (en) System task distribution method
CN104778118A (en) Improvement method for automatic testing technology
CN104020756A (en) Logic network topology sorting and storing method for fault diagnosing system
CN104199667A (en) Method and system for newly establishing MTK project and submitting codes
CN103902757A (en) System and method for rapid creation and interaction of three-dimensional model
Wang et al. LLM^ 3: Large Language Model-based Task and Motion Planning with Motion Failure Reasoning
CN102789420B (en) The Dynamic Slicing system of track is performed based on program
CN103593228A (en) Practical test instrument program control command emulator and application method thereof
CN105527920A (en) B/S-based numerical control machine tool fault diagnosis system
CN104572876A (en) Method and device for reading configuration file corresponding to software
CN104765800A (en) Big data based efficient search method
CN204557558U (en) Based on the aviation teaching Work tool Visualized management system of RFID
CN107330173B (en) Integrated circuit back end design automation system
CN103488712A (en) Automatized testing method and automatized testing 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