CN103150251A - Method for intelligently acquiring automated test object - Google Patents

Method for intelligently acquiring automated test object Download PDF

Info

Publication number
CN103150251A
CN103150251A CN 201310066783 CN201310066783A CN103150251A CN 103150251 A CN103150251 A CN 103150251A CN 201310066783 CN201310066783 CN 201310066783 CN 201310066783 A CN201310066783 A CN 201310066783A CN 103150251 A CN103150251 A CN 103150251A
Authority
CN
China
Prior art keywords
web
test
automated test
code
acquiring
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
CN 201310066783
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 CN 201310066783 priority Critical patent/CN103150251A/en
Publication of CN103150251A publication Critical patent/CN103150251A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method for intelligently acquiring an automated test object. The method comprises the following steps: 1) acquiring a web object by traversing codes of a tested system or a tested function module and according to mark of a web component, and automatically finishing the acquisition work of an object in a business flow automated test frame so as to shorten the establishing time of an automated test script and improve the automated test efficiency; 2) traversing the codes of the tested system or function module, loading the codes and the catalogue structure of the tested system or module for a system, and reading each source code file by programming language and according to the file reading mode; and 3) acquiring the web object according to the mark of the web component, acquiring the attribute and operation of the web object through the mark of button and test of the web object, and adding into an automated test object library.

Description

A kind of intelligence is obtained the method for robotization tested object
Technical field
The present invention relates to the software automated testing field, be specifically related to a kind ofly obtain the robotization tested object by intelligence, the automatic test script of reduction service based flow process framework builds the system and method for time.
Background technology
To becoming stronger day by day of software function, and for the high-quality requirement of software version, automatic test is applied to the various aspects of software test gradually, for huge contribution has been made in software test efficiently.
The automated test frame of service based flow process be a kind of typical, use automated test frame more widely, its main flow process is: the domain expert writes operation flow, the automatic test slip-stick artist manually grasps measurand, writes automatic test script, carry out test etc., wherein manually grasping measurand is specially the Test Engineer and starts library of object management, click not measurand, carry out the Add operation, its workload is big well imagines.
Propose a kind of intelligence for this reason and obtain the system and method for robotization tested object, the method travels through by automatic, automatic capturing, interpolation automatically, the acquisition time of reduction measurand, thereby raising automatic test efficient.
Summary of the invention
The purpose of this invention is to provide a kind of intelligence and obtain the method for robotization tested object.
The objective of the invention is to realize in the following manner, obtaining step is as follows:
1) by traveling through the code of system under test (SUT) or tested functional module, obtain the web object according to the sign of web assembly, automatically the work of obtaining of object in finishing service process automation test frame with the structure time of reduction automatic test script, improves automatic test efficient;
2) code of traversal system under test (SUT) or functional module, be code and the bibliographic structure of system loads system under test (SUT) or module, utilizes programming language to read each sound code file according to the mode of file reading;
3) obtain the web object according to the sign of web assembly, obtain web attribute and operation by the sign of web object button, text in code, and add the automatic test library of object.
The invention has the beneficial effects as follows: in automatic finishing service process automation test frame, the work of obtaining of object namely in service based flow chart element framework is built the process of automatic test script, has been saved the operation that manually adds tested object, and advantage is as follows:
1) automatically travel through system under test (SUT) or module: native system allows the tester to add the source code of system under test (SUT) or module, automatically performs traversal;
2) the web object of automatic capturing system under test (SUT) or module: native system automatically according to the sign of web object in code, obtains web attribute and operation when traversal;
3) automatically add the web object of system under test (SUT) or module: native system is after having obtained the web object, and automatic powder adding is added to the measurand storehouse, uses for script edit.
Description of drawings
Fig. 1 is based on the process flow diagram of the automatized script structure of business process frame;
Fig. 2 is the workflow diagram of system.
Embodiment
With reference to Figure of description, method of the present invention is described in detail below.
For the huge problem of automatic test object acquisition workload, a kind of intelligence of special proposition is obtained the method for robotization tested object.Concrete obtaining step is as follows:
A. accompanying drawing 1 is the operation flow test pattern, and native system and method are applied to the establishment of library of object;
B. build the initial stage at automatized script, the tester is loaded into the source code of system under test (SUT) or module in this system, carries out traversing operation, and the essence of this traversing operation is each project file of traversal;
C. after traversal is completed, this system acquisition web object exists in the mode of attribute+operation, for example: control Text1, attribute Text, property value is empty, Locked False, ScrollBars False etc., the operation of its correspondence is definite according to the control type, and the essence of this grasping movement is the attribute information in intercepting web label;
D. after obtaining, automatic powder adding is added to the tested object storehouse, for the tester who writes automatized script.
Except the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (1)

1. an intelligence is obtained the method for robotization tested object, it is characterized in that obtaining step is as follows:
1) by traveling through the code of system under test (SUT) or tested functional module, obtain the web object according to the sign of web assembly, automatically the work of obtaining of object in finishing service process automation test frame with the structure time of reduction automatic test script, improves automatic test efficient;
2) code of traversal system under test (SUT) or functional module, be code and the bibliographic structure of system loads system under test (SUT) or module, utilizes programming language to read each sound code file according to the mode of file reading;
3) obtain the web object according to the sign of web assembly, obtain web attribute and operation by the sign of web object button, text in code, and add the automatic test library of object.
CN 201310066783 2013-03-04 2013-03-04 Method for intelligently acquiring automated test object Pending CN103150251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310066783 CN103150251A (en) 2013-03-04 2013-03-04 Method for intelligently acquiring automated test object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310066783 CN103150251A (en) 2013-03-04 2013-03-04 Method for intelligently acquiring automated test object

Publications (1)

Publication Number Publication Date
CN103150251A true CN103150251A (en) 2013-06-12

Family

ID=48548346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310066783 Pending CN103150251A (en) 2013-03-04 2013-03-04 Method for intelligently acquiring automated test object

Country Status (1)

Country Link
CN (1) CN103150251A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN104407978A (en) * 2014-12-12 2015-03-11 浪潮(北京)电子信息产业有限公司 Automatic test method of software and device thereof
CN109840197A (en) * 2018-05-04 2019-06-04 上海聆播信息科技有限公司 A kind of system and method for automatic test library of object
CN112180189A (en) * 2020-09-09 2021-01-05 杭州涂鸦信息技术有限公司 Automatic detection method, device and system based on multi-class intelligent module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN104407978A (en) * 2014-12-12 2015-03-11 浪潮(北京)电子信息产业有限公司 Automatic test method of software and device thereof
CN109840197A (en) * 2018-05-04 2019-06-04 上海聆播信息科技有限公司 A kind of system and method for automatic test library of object
CN112180189A (en) * 2020-09-09 2021-01-05 杭州涂鸦信息技术有限公司 Automatic detection method, device and system based on multi-class intelligent module

Similar Documents

Publication Publication Date Title
CN103425572B (en) Code analysis methods and code analysis system
EP3115902B1 (en) Framework for automated testing of mobile apps
CN103164328B (en) The regression testing method of a kind of business function, Apparatus and system
CN102368216B (en) Process implementation method based on automatic project building
CN108345532A (en) A kind of automatic test cases generation method and device
CN103678097A (en) Method and device for selecting regression test case
US9823991B2 (en) Concurrent workload simulation for application performance testing
CN105446799A (en) Method and system for performing rule management in computer system
CN105138386A (en) Logic design verification continuous integration platform based on Jenkins and vManager
CN106649771A (en) Data model updating method and system for database
CN103235759A (en) Method and device for generating test cases
CN104932973A (en) Version compatibility test method and apparatus
CN103645900A (en) Method and device for releasing software
CN103150251A (en) Method for intelligently acquiring automated test object
CN106484613A (en) A kind of interface automated test frame based on fitnese
CN102955739B (en) A kind of method improving performance test script reuse rate
CN104360837A (en) Method for realizing evidence collection and analysis of electronic data in evidence collection software based on custom scripts
CN105279092A (en) Software testing method and apparatus
CN106557419B (en) Program testing method and device
CN109739492B (en) Method, terminal, equipment and medium for generating script code
CN103699478A (en) Test case generation system and test case generation method
CN103885754A (en) Automatic data model generating system and automatic data model generating method
CN103455337A (en) Method for using dynamic library under Android development environment
US20170220336A1 (en) System and method for automatic api candidate generation
CN104407978A (en) Automatic test method of software and device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130612