CN105373481A - Automated object library building and maintaining method - Google Patents

Automated object library building and maintaining method Download PDF

Info

Publication number
CN105373481A
CN105373481A CN201510952601.7A CN201510952601A CN105373481A CN 105373481 A CN105373481 A CN 105373481A CN 201510952601 A CN201510952601 A CN 201510952601A CN 105373481 A CN105373481 A CN 105373481A
Authority
CN
China
Prior art keywords
library
storehouse
main
object library
maintaining method
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
CN201510952601.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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510952601.7A priority Critical patent/CN105373481A/en
Publication of CN105373481A publication Critical patent/CN105373481A/en
Pending legal-status Critical Current

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

Abstract

The invention discloses an automated object library building and maintaining method. The building and maintaining method comprises the following contents: changing an object library management mode; unifying structures and naming rules of objects in the object library; and unifying object addition and deletion rules in the object library. Aiming at the problems that an existing automated testing object library is not uniform in management standard, is difficult to modify and inquire, and is non-traceable and the like, the object library management method is provided. The management mode of the object library is changed; a plurality of automation engineers utilize one object library; one object library is built for a project; a mode of the structure and naming is adopted by each object in the object library; object library combination follows a fixed rule; object repetition is reduced; the object library is kept as simple as possible; and only one manager carries out addition and deletion management on the object library and maintains the change record of the object library, so that tracing is facilitated.

Description

A kind of Automation object storehouse builds and maintaining method
Technical field
The present invention relates to software testing technology field, be specifically related to a kind of Automation object storehouse build and maintaining method, mainly for current automatic test for library of object managerial confusion, the maintenance cost high and automatic test that causes greatly because of the multiplexing difficulty of the library of object problem such as unsuccessfully, propose a kind of Automation object storehouse to build and maintaining method, by change library of object management mode, the address in Compatible object storehouse, name, regulation library of object merges, additions and deletions rule, improve the efficiency of management for Automation object storehouse, be convenient to the maintenance of later stage library of object and multiplexing, thus reduce the cost of library of object management, improve automatic test success ratio.
Background technology
The how quality of improving product and competitive power, efficient software test plays very important effect undoubtedly.Automatic test is wished exactly can by automated test tool or other means, and test automatically according to the scheduled plan of Test Engineer, object is the labor capacity alleviating manual test, thus reach the object improving software quality.
Based on the automated test tool that GUI object technology realizes, can the operand on interface be identified accurately and manage, and can be related to automatic test normally accurately perform.For QTP, object can be divided into tested object, when namely QTP records script, automatic powder adding is added to the object in library of object, and another kind is practical object, the web element namely in application program, tested object and practical object one_to_one corresponding in principle, practical object is mapped to tested object, is identified by QTP.Library of object refers to the set of tested object in automatic test project.
Current automatic test is generally for the structure of library of object: multiple automatic test slip-stick artist is in the process of compile script, object is added library of object by testing tool (such as: QTP) automatically, a corresponding library of object of Action, an object may be present in multiple library of object, and multiple library of object is different for the name of this object, when tested software web element variation, the difficulty that the tested object searching, change its correspondence becomes, is easy to the failure causing automatic test.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention proposes a kind of method that Automation object storehouse builds and safeguards.
The technical solution adopted in the present invention is:
A kind of Automation object storehouse builds and maintaining method, and described structure and maintaining method content comprise:
1) library of object management mode is changed: the corresponding library of object of all automatic test scripts, an i.e. corresponding library of object of project, at the beginning of Automation object storehouse builds, by multiple automatic test slip-stick artist according to script needs, build the library of object of individual respectively, rear library of object to be merged;
2) structure of object and naming rule in Compatible object storehouse: the page layer aggregated(particle) structure following tested software, the practical object of tested software is named the tested object be mapped as in library of object, reduce the object duplication of name phenomenon of different browsers, the different page, different operating level as much as possible;
3) in Compatible object storehouse, the additions and deletions of object are regular: after library of object is tentatively built up, and unified this library of object that uses of all automatic test personnel is carried out the design of automatized script and writes, and specifies unique library of object keeper.
The rule followed when described library of object merges is as follows:
1) specify a main library of object, other library of object are from library of object, are progressively added in main library of object from the object library of object;
2) when consistent with the object in main library of object from the object oriented in library of object, object properties, object structure, then this object is not added to main library of object;
3) when consistent with the object in main library of object from the object properties in library of object, object structure, but when object oriented is inconsistent, be then analogical object both assert, consider whether object naming mistake;
4) when from library of object object oriented, object structure consistent with object in main library of object, but when object properties are inconsistent, then be different object both assert, add this object to main library of object, and rename the object of new interpolation;
5) when from library of object object oriented, object properties consistent with object in main library of object, but when object structure is inconsistent, then be different object both assert, add this object to main library of object, do not need the object renaming new interpolation.
In described library of object, the structure of object adopts Browser-Page-Control three-decker.
In described library of object, the naming rule of object is as follows:
1) tested object title is relevant to practical object title, sees that name knows justice;
2) English name, follows hump sign format;
3) title is not containing special character;
4) 15 characters are no more than.
When tested software interface changes, or when script needs to increase new object, in described library of object, the additions and deletions rule of object is as follows:
1), in additions and deletions library of object during object, library of object keeper need be obtained and agree to;
2), after keeper receives and increases object requests, whether there is this object in query object storehouse, if do not exist, add, during interpolation, follow object structure and naming rule, and be recorded to library of object change record;
3) after keeper receives deleting object request, notify all robotization writers, confirm whether this object is not used or really for repeating objects, after confirmation, deleting object, and be recorded to library of object change record.
Described structure and maintaining method specific implementation process as follows:
1) automatic test library of object build at the beginning of, the needs write according to personal code by automatic test slip-stick artist, design object storehouse, in library of object object structure, name follow unified rule;
2), after multiple library of object builds, set a main library of object, other library of object are from library of object, compare one by one from the object library of object and main library of object; According to comparison principle, if object exists, then do not add, if there is no, then add, form new main library of object, comparison is remaining from library of object successively, until all library of object comparisons are complete;
3), after library of object is formed, call for all automatic test slip-stick artists, the library of object of the individual used before abolishment;
4) library of object keeper has the unique administration authority to library of object, comprises additions and deletions object and maintenance variation record, when other staff need additions and deletions object, need follow flow process and obtain the agreement of keeper.
Beneficial effect of the present invention is:
Problems such as the present invention is directed to current automatic test library of object management regulation disunity, revise inquiry difficulty, can not review, the method of this library of object management is proposed, change the management mode of library of object: multiple Mechanic Engineer uses a library of object, project library of object; In library of object, object adopts the mode of structure+name, and library of object merges follows unalterable rules, reduces the repetition of object, makes library of object as far as possible succinct; The management that unique keeper increases library of object, delete, and service object storehouse change record, be convenient to review.
accompanying drawing illustrates:
Fig. 1 is that library of object of the present invention builds and maintenance process figure.
Embodiment
With reference to the accompanying drawings, in conjunction with embodiment, the present invention is further described:
Embodiment 1:
A kind of Automation object storehouse builds and maintaining method, and described structure and maintaining method content comprise:
1) library of object management mode is changed: the corresponding library of object of all automatic test scripts, an i.e. corresponding library of object of project, at the beginning of Automation object storehouse builds, by multiple automatic test slip-stick artist according to script needs, build the library of object of individual respectively, rear library of object to be merged;
2) structure of object and naming rule in Compatible object storehouse: the page layer aggregated(particle) structure following tested software, the practical object of tested software is named the tested object be mapped as in library of object, reduce the object duplication of name phenomenon of different browsers, the different page, different operating level as much as possible;
3) in Compatible object storehouse, the additions and deletions of object are regular: after library of object is tentatively built up, and unified this library of object that uses of all automatic test personnel is carried out the design of automatized script and writes, and specifies unique library of object keeper.
Embodiment 2:
On the basis of embodiment 1, the rule followed when library of object merges described in the present embodiment is as follows:
1) specify a main library of object, other library of object are from library of object, are progressively added in main library of object from the object library of object;
2) when consistent with the object in main library of object from the object oriented in library of object, object properties, object structure, then this object is not added to main library of object;
3) when consistent with the object in main library of object from the object properties in library of object, object structure, but when object oriented is inconsistent, be then analogical object both assert, consider whether object naming mistake;
4) when from library of object object oriented, object structure consistent with object in main library of object, but when object properties are inconsistent, then be different object both assert, add this object to main library of object, and rename the object of new interpolation;
5) when from library of object object oriented, object properties consistent with object in main library of object, but when object structure is inconsistent, then be different object both assert, add this object to main library of object, do not need the object renaming new interpolation.
Embodiment 3:
On the basis of embodiment 1, in library of object described in the present embodiment, the structure of object adopts Browser-Page-Control three-decker.
Embodiment 4:
On the basis of embodiment 1, in library of object described in the present embodiment, the naming rule of object is as follows:
1) tested object title is relevant to practical object title, sees that name knows justice;
2) English name, follows hump sign format;
3) title is not containing special character;
4) 15 characters are no more than.
Embodiment 5:
On the basis of embodiment 1, the present embodiment is when tested software interface changes, or when script needs to increase new object, in described library of object, the additions and deletions rule of object is as follows:
1), in additions and deletions library of object during object, library of object keeper need be obtained and agree to;
2), after keeper receives and increases object requests, whether there is this object in query object storehouse, if do not exist, add, during interpolation, follow object structure and naming rule, and be recorded to library of object change record;
3) after keeper receives deleting object request, notify all robotization writers, confirm whether this object is not used or really for repeating objects, after confirmation, deleting object, and be recorded to library of object change record.
Embodiment 6:
On the basis that embodiment 1-5 is arbitrary, described in the present embodiment build and maintaining method specific implementation process as follows:
1) automatic test library of object build at the beginning of, the needs write according to personal code by automatic test slip-stick artist, design object storehouse, in library of object object structure, name follow unified rule;
2), after multiple library of object builds, set a main library of object, other library of object are from library of object, compare one by one from the object library of object and main library of object; According to comparison principle, if object exists, then do not add, if there is no, then add, form new main library of object, comparison is remaining from library of object successively, until all library of object comparisons are complete, in the process, can by library of object comparison instrument, as BeyondCompare, RepositoriesMergeUtility;
3), after library of object is formed, call for all automatic test slip-stick artists, the library of object of the individual used before abolishment;
4) library of object keeper has the unique administration authority to library of object, comprises additions and deletions object and maintenance variation record, when other staff need additions and deletions object, need follow flow process and obtain the agreement of keeper.
Thus, complete structure and the maintenance of library of object, unified, simple and direct, can review, contribute to the success of automatic test.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (6)

1. Automation object storehouse builds and a maintaining method, and it is characterized in that, described structure and maintaining method content comprise:
1) change library of object management mode: the corresponding library of object of all automatic test scripts, at the beginning of Automation object storehouse builds, by multiple automatic test slip-stick artist according to script needs, builds the library of object of individual respectively, rear library of object to be merged;
2) structure of object and naming rule in Compatible object storehouse: the page layer aggregated(particle) structure following tested software, the practical object of tested software is named the tested object be mapped as in library of object, reduce the object duplication of name phenomenon of different browsers, the different page, different operating level as much as possible;
3) in Compatible object storehouse, the additions and deletions of object are regular: after library of object is tentatively built up, and unified this library of object that uses of all automatic test personnel is carried out the design of automatized script and writes, and specifies unique library of object keeper.
2. a kind of Automation object storehouse according to claim 1 builds and maintaining method, and it is characterized in that, the rule followed when described library of object merges is as follows:
1) specify a main library of object, other library of object are from library of object, are progressively added in main library of object from the object library of object;
2) when consistent with the object in main library of object from the object oriented in library of object, object properties, object structure, then this object is not added to main library of object;
3) when consistent with the object in main library of object from the object properties in library of object, object structure, but when object oriented is inconsistent, be then analogical object both assert, consider whether object naming mistake;
4) when from library of object object oriented, object structure consistent with object in main library of object, but when object properties are inconsistent, then be different object both assert, add this object to main library of object, and rename the object of new interpolation;
5) when from library of object object oriented, object properties consistent with object in main library of object, but when object structure is inconsistent, then be different object both assert, add this object to main library of object, do not need the object renaming new interpolation.
3. a kind of Automation object storehouse according to claim 1 builds and maintaining method, it is characterized in that: in described library of object, the structure of object adopts Browser-Page-Control three-decker.
4. a kind of Automation object storehouse according to claim 1 builds and maintaining method, and it is characterized in that, in described library of object, the naming rule of object is as follows:
1) tested object title is relevant to practical object title, sees that name knows justice;
2) English name, follows hump sign format;
3) title is not containing special character;
4) 15 characters are no more than.
5. a kind of Automation object storehouse according to claim 1 builds and maintaining method, it is characterized in that, in described library of object, the additions and deletions rule of object is as follows:
1), in additions and deletions library of object during object, library of object keeper need be obtained and agree to;
2), after keeper receives and increases object requests, whether there is this object in query object storehouse, if do not exist, add, during interpolation, follow object structure and naming rule, and be recorded to library of object change record;
3) after keeper receives deleting object request, notify all robotization writers, confirm whether this object is not used or really for repeating objects, after confirmation, deleting object, and be recorded to library of object change record.
6. build and maintaining method according to the arbitrary described a kind of Automation object storehouse of claim 1-5, it is characterized in that, described structure and maintaining method specific implementation process as follows:
1) automatic test library of object build at the beginning of, the needs write according to personal code by automatic test slip-stick artist, design object storehouse, in library of object object structure, name follow unified rule;
2), after multiple library of object builds, set a main library of object, other library of object are from library of object, compare one by one from the object library of object and main library of object; According to comparison principle, if object exists, then do not add, if there is no, then add, form new main library of object, comparison is remaining from library of object successively, until all library of object comparisons are complete;
3), after library of object is formed, call for all automatic test slip-stick artists, the library of object of the individual used before abolishment;
4) library of object keeper has the unique administration authority to library of object, comprises additions and deletions object and maintenance variation record, when other staff need additions and deletions object, need follow flow process and obtain the agreement of keeper.
CN201510952601.7A 2015-12-18 2015-12-18 Automated object library building and maintaining method Pending CN105373481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510952601.7A CN105373481A (en) 2015-12-18 2015-12-18 Automated object library building and maintaining method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510952601.7A CN105373481A (en) 2015-12-18 2015-12-18 Automated object library building and maintaining method

Publications (1)

Publication Number Publication Date
CN105373481A true CN105373481A (en) 2016-03-02

Family

ID=55375699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510952601.7A Pending CN105373481A (en) 2015-12-18 2015-12-18 Automated object library building and maintaining method

Country Status (1)

Country Link
CN (1) CN105373481A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444307A (en) * 2020-06-11 2020-07-24 平安国际智慧城市科技股份有限公司 Similarity value-based entity encoding method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250499A1 (en) * 2006-04-21 2007-10-25 Simon Widdowson Method and system for finding data objects within large data-object libraries
CN104184826A (en) * 2014-09-05 2014-12-03 浪潮(北京)电子信息产业有限公司 Multi-data-center storage environment managing method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250499A1 (en) * 2006-04-21 2007-10-25 Simon Widdowson Method and system for finding data objects within large data-object libraries
CN104184826A (en) * 2014-09-05 2014-12-03 浪潮(北京)电子信息产业有限公司 Multi-data-center storage environment managing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈涵超: "QTP 中的对象库的设计、研究和实现", 《科技信息》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444307A (en) * 2020-06-11 2020-07-24 平安国际智慧城市科技股份有限公司 Similarity value-based entity encoding method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104123227A (en) Method for automatically generating testing cases
CN106649771A (en) Data model updating method and system for database
CN106682077B (en) Mass time sequence data storage implementation method based on Hadoop technology
CN104598376A (en) Data driving layered automation test system and method
CN104133772A (en) Automatic test data generation method
CN102665231B (en) Method of automatically generating parameter configuration file for LTE (Long Term Evolution) system
CN103544319A (en) Multi-tenant database sharing method and multi-tenant database as-a-service system
CN104298595A (en) Automatic testing method and testing system
CN103793475B (en) A kind of method of Distributed File System Data migration
CN103488706A (en) Processing method and device for mass data base
Zhao et al. Multiple nested schema of HBase for migration from SQL
CN104317864A (en) Automatic identification method of information model based on IEC61850 logical nodes
CN105608126A (en) Method and apparatus for establishing secondary indexes for massive databases
CN110799961A (en) System and method for creating and deleting tenants in database
CN105808775A (en) Method and device for synchronizing layout file information into database
CN102096671A (en) Method and equipment for generating business and operation support system (BOSS) database upgrading script
CN105224663A (en) A kind of data-accessing tasks management method based on multiple data source and device
CN103441988B (en) Across GIS platform data migration method
CN109165262A (en) Fragmentation clustering system and fragmentation method of relational large table
CN105373481A (en) Automated object library building and maintaining method
CN105354283A (en) Resource searching method and apparatus
CN111177191A (en) Key index calculation analysis method based on carbon emission transaction
CN104572730A (en) Method and device for importing and exporting digital resources
CN103761188B (en) A kind of automated testing method of electronic document management system
CN102314495A (en) Method for maintaining database object

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160302