CN103914384B - A kind of demand changes the automated testing method driven - Google Patents

A kind of demand changes the automated testing method driven Download PDF

Info

Publication number
CN103914384B
CN103914384B CN201410142482.4A CN201410142482A CN103914384B CN 103914384 B CN103914384 B CN 103914384B CN 201410142482 A CN201410142482 A CN 201410142482A CN 103914384 B CN103914384 B CN 103914384B
Authority
CN
China
Prior art keywords
class
development object
development
type
request
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
CN201410142482.4A
Other languages
Chinese (zh)
Other versions
CN103914384A (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 Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Jiangsu Electric Power 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 Corp of China SGCC, State Grid Jiangsu Electric Power Co Ltd, Jiangsu Electric Power Information Technology Co Ltd, Information and Telecommunication Branch of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410142482.4A priority Critical patent/CN103914384B/en
Publication of CN103914384A publication Critical patent/CN103914384A/en
Application granted granted Critical
Publication of CN103914384B publication Critical patent/CN103914384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of demand and change the automated testing method driven, change the request of rear generation from SAP system, the development object comprised under analysis request at every turn.Then for the anti-coverage looking into this object of the corresponding mode of dissimilar employing of development object, consider the situation that some program object multi-layer is quoted simultaneously, finally gather and produce the whole coverage changing request, thus automatically generate test plan, the execution of automatic test is driven with this.By the present invention, tester can determine the coverage changed fast and accurately, significantly improves testing efficiency.

Description

A kind of demand changes the automated testing method driven
Technical field
The present invention relates to a kind of automated testing method, specifically a kind of demand provided for SAP tester changes the automated testing method driven.
Background technology
Along with being on the increase of company ERP system secondary development, the complexity of software test, test period and testing cost are also more and more higher.For this reason, many enterprises adopt the means of automatic test one after another, to improving testing efficiency, reduce labour cost.
At present, automatic test drives primarily of following three kinds of modes:
1) simple recording/replaying: the process of operation and data are recorded by the mode recorded by instrument, carries out the process that playback gets final product analog manual operation afterwards.Data under this pattern and script mix into together with, almost the corresponding test case of script, causes maintenance cost very high.Even if simple change occurs at interface, script also must be recorded again, and reusable rate is low.
2) automatic test of data-driven (datadriven): by by variable parameter, import data file into test script, test data and test case one_to_one corresponding.This pattern achieves the problem of test script and data, substantially increases utilization factor and the maintainability of script, but its impact by interface change still very greatly.
3) key word drives the automatic test of (keyworddriven): key word drives test to be that the one that data-driven is tested improves type, test logic decomposes according to key word by it, form data file, the service logic of key word correspondence encapsulation.Key word mainly comprises three types: operand (Item), operation (Operation) and value (value), can show as Item.Operation (Value) by OO form.Key word data-driven script with the basis of data separating also achieves testing inner object is separated with interface element, test description is separated with specific implementation details.
The driving of above-mentioned three kinds of forms is all intended to the reusability improving script, but carry out for many wheel regression tested situations for needs, tester is after each programing change, still need the coverage of artificial determining program, then test one by one the program in coverage, its automaticity is still not high.On the other hand, owing to there being the multiple conventional development object such as Domain, DataElement, Table, Class, Program in SAP system, meanwhile, certain development object also can may quote other development objects again, occurs repeatedly the situation that recurrence is quoted.At this moment, the mode that tester combines often through experience and manual search is searched its coverage, finally accordingly with artificial patten's design and write test plan, so not only wastes time and energy, and be easy to cause omission, make defect be difficult to Timeliness coverage.
Summary of the invention
For the problem run in SAP system testing, the object of this invention is to provide a kind of demand and change the automated testing method driven, by the method, tester can determine the coverage changed fast and accurately, significantly improves testing efficiency.
Object of the present invention is achieved through the following technical solutions:
Demand changes the automated testing method driven, and it is characterized in that the method comprises the following steps:
1) request of change number is obtained;
2) development object lists all under getting this request by transmission request number;
3) judge whether object is empty, if be sky, jumps out end;
4) each object of circulation fetch program list object;
5) judge object type, Domain goes to 6); Class goes to 9); Include goes to 10), other, go to 13);
6) the anti-development object looking into the development object quoting this Domain type;
7) the anti-development object looking into the development object quoting this field type;
8) the anti-development object looking into the development object referring to this form types, goes to 13);
9) particular type of this class object is judged: if whole class, go to 13); If the attribute of class, go to 13); If the method for class, go to 11);
10) the anti-development object looking into the mainprogram type of the development object quoting this include type;
11) anti-the class referring to the method is looked into;
12) all methods under such are obtained;
13) anti-the development object referred to is looked into;
14) the anti-development object found is added in output listing;
15) judge in list, whether next development object is empty: if for empty, go to 16), if non-NULL, go to 5);
16) all affected development object inventories under exporting this transmission request;
17) test plan is generated according to the anti-list object looked into;
18) call corresponding test script in test plan, perform automatic test.
The present invention changes the request of rear generation from SAP system at every turn, the development object comprised under analysis request.Then for the anti-coverage looking into this object of the corresponding mode of dissimilar employing of development object, consider the situation that some program object multi-layer is quoted simultaneously, finally gather and produce the whole coverage changing request, thus automatically generate test plan, the execution of automatic test is driven with this.
By the present invention, tester can determine the coverage changed fast and accurately, significantly improves testing efficiency.
Accompanying drawing explanation
Fig. 1 is that demand changes the process schematic driving automatic test.
Embodiment
Demand changes the automated testing method driven, and the realization of requirement drive have employed two classes, transmission request class (use class ZP001CL_TRANSREQ to define in the present embodiment, but be not limited thereto title); Instead look into class (use class ZP001CL_WHERE_USED to define in the present embodiment, but be not limited thereto title).
The function of transmission request class ZP001CL_TRANSREQ main method is as follows:
GET_TRANS_INFOR: the transmission information obtaining request;
GET_PRO_VERSIONS: obtain the version information that request is corresponding;
SET_E07T: obtain object text;
GET_AS4TEXT: obtain request text;
GET_COLLECTION: obtain object set;
GET_INCLUDE_PROGRAMS: obtain the development object comprised.
The anti-function looking into class ZP001CL_WHERE_USED main method is as follows:
GET_WHERE_USED_DOMA: obtain the development object quoting Domain type;
GET_WHERE_USED_FIED: the development object obtaining reference field type;
GET_WHERE_USED_TABL: obtain the development object quoting form types;
GET_WHERE_USED_INCL: obtain the development object quoting include type;
GET_WHERE_USED_ClAS: obtain the development object quoting include type;
GET_WHERE_USED_PROG: obtain the development object quoting Program type;
GET_WHERE_USED_LIST: obtain the lower all affected development objects of transmission request.
As shown in Figure 1, the concrete steps of demand change driving process are as follows:
Step1: obtain the request of change number.
Step2: development object lists all under getting this request by transmission request number.Transmission request number:
SAP be used for manage transmission procedure, configuration one mechanism, be similar to version number.
Step3: judge whether object is empty, if be sky, jumps out end.
Step4: each object of circulation fetch program list object.
Step5: judge object type: Domain goes to Step6; Class goes to Step9; Include goes to Step10, and other, go to Step13.
Step6: the anti-development object looking into the development object quoting this Domain type.
Step7: the anti-development object looking into the development object quoting this field type.
Step8: the anti-development object looking into the development object referring to this form types, goes to Step13.
Step9: the particular type judging this class object: if whole class, go to Step13; If the attribute of class, go to Step13; If the method for class, go to Step11.
Step10: the anti-development object looking into the mainprogram type of the development object quoting this include type.
Step11: instead look into the class referring to the method,
Step12: obtain all methods under such.
Step13: instead look into the development object referred to.
Step14: the anti-development object found is added in output listing.
Step15: judge in list, whether next development object is empty: if for empty, go to Step16, if non-NULL, go to Step5.
Step16: all affected development object inventories under exporting this transmission request.
Step17: generate test plan according to the anti-list object looked into.
Step18: call corresponding test script in test plan, performs automatic test.
By the present invention, tester can determine the coverage changed fast and accurately, significantly improves testing efficiency.

Claims (4)

1. demand changes the automated testing method driven, and it is characterized in that the method comprises the following steps:
1) request of change number is obtained;
2) development object lists all under obtaining this request by transmission request number;
3) judge whether object is empty, if be sky, jumps out end;
4) each object of fetch program list object successively;
5) judge object type, Domain goes to 6); Class goes to 9); Include goes to 10), other, go to 13);
6) the anti-development object looking into the development object quoting this Domain type;
7) the anti-development object looking into the development object of reference field type;
8) the anti-development object looking into the development object referring to form types, goes to 13);
9) particular type of this class object is judged: if whole class, go to 13); If the attribute of class, go to 13); If the method for class, go to 11);
10) the anti-development object looking into the mainprogram type of the development object quoting this include type; Go to 13);
11) anti-the class referring to the method is looked into;
12) all methods under such are obtained;
13) anti-the development object referred to is looked into;
14) the anti-development object found is added in output listing;
15) judge in list, whether next development object is empty: if for empty, go to 16), if non-NULL, go to 5);
16) all affected development object inventories under exporting this transmission request;
17) test plan is generated according to the anti-list object looked into;
18) call corresponding test script in test plan, perform automatic test.
2. demand according to claim 1 changes the automated testing method driven, and it is characterized in that: described class comprises, transmission request class and instead look into class.
3. demand according to claim 2 changes the automated testing method driven, and it is characterized in that: in transmission request class, use class ZP001CL_TRANSREQ definition; Instead look in class, use class ZP001CL_WHERE_USED definition.
4. demand according to claim 3 changes the automated testing method driven, and it is characterized in that: transmission request class ZP001CL_TRANSREQ comprises as follows:
GET_TRANS_INFOR: the transmission information obtaining request;
GET_PRO_VERSIONS: obtain the version information that request is corresponding;
SET_E07T: obtain object text;
GET_AS4TEXT: obtain request text;
GET_COLLECTION: obtain object set;
GET_INCLUDE_PROGRAMS: obtain the development object comprised;
The anti-class ZP001CL_WHERE_USED that looks into comprises as follows:
GET_WHERE_USED_DOMA: obtain the development object quoting Domain type;
GET_WHERE_USED_FIED: the development object obtaining reference field type;
GET_WHERE_USED_TABL: obtain the development object quoting form types;
GET_WHERE_USED_INCL: obtain the development object quoting include type;
GET_WHERE_USED_ClAS: obtain the development object quoting include type;
GET_WHERE_USED_PROG: obtain the development object quoting Program type;
GET_WHERE_USED_LIST: obtain the lower all affected development objects of transmission request.
CN201410142482.4A 2014-04-10 2014-04-10 A kind of demand changes the automated testing method driven Active CN103914384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410142482.4A CN103914384B (en) 2014-04-10 2014-04-10 A kind of demand changes the automated testing method driven

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410142482.4A CN103914384B (en) 2014-04-10 2014-04-10 A kind of demand changes the automated testing method driven

Publications (2)

Publication Number Publication Date
CN103914384A CN103914384A (en) 2014-07-09
CN103914384B true CN103914384B (en) 2016-04-27

Family

ID=51040086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410142482.4A Active CN103914384B (en) 2014-04-10 2014-04-10 A kind of demand changes the automated testing method driven

Country Status (1)

Country Link
CN (1) CN103914384B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590644A (en) * 2017-08-28 2018-01-16 北京福田戴姆勒汽车有限公司 Management information system and method are implemented in change in the work
CN107491941A (en) * 2017-08-28 2017-12-19 北京福田戴姆勒汽车有限公司 Engineering change management information processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662394A (en) * 2009-09-15 2010-03-03 中兴通讯股份有限公司 Automated testing system and automated testing method
CN102096632A (en) * 2009-12-10 2011-06-15 Sap股份公司 Bridging code changes and testing
CN102521700A (en) * 2011-12-13 2012-06-27 广东电网公司信息中心 Electrical network informatization evaluation rapid test system
CN103019928A (en) * 2011-09-27 2013-04-03 北京新媒传信科技有限公司 Automatic testing method and system
CN103176895A (en) * 2011-12-22 2013-06-26 阿里巴巴集团控股有限公司 Method and system of regression testing
CN103699488A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Call relation dependence graph based regression testing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040154001A1 (en) * 2003-02-05 2004-08-05 Haghighat Mohammad R. Profile-guided regression testing
EP2175373B1 (en) * 2008-10-09 2016-06-08 Accenture Global Services Limited Test data creation and execution system for service oriented architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662394A (en) * 2009-09-15 2010-03-03 中兴通讯股份有限公司 Automated testing system and automated testing method
CN102096632A (en) * 2009-12-10 2011-06-15 Sap股份公司 Bridging code changes and testing
CN103019928A (en) * 2011-09-27 2013-04-03 北京新媒传信科技有限公司 Automatic testing method and system
CN102521700A (en) * 2011-12-13 2012-06-27 广东电网公司信息中心 Electrical network informatization evaluation rapid test system
CN103176895A (en) * 2011-12-22 2013-06-26 阿里巴巴集团控股有限公司 Method and system of regression testing
CN103699488A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Call relation dependence graph based regression testing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Scenario Based Functional Regression Testing Using Petri Net Models";Farooq Ahmad等;《2013 12th International Conference on Machine Learning and Applications》;20131207;第572-577页 *

Also Published As

Publication number Publication date
CN103914384A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
CN111443940B (en) Complete software life cycle management method and system based on DevOps
CN109522025B (en) Code issuing system based on git
US8525830B2 (en) Point cloud generation system
CN104407971A (en) Method for automatically testing embedded software
US10996660B2 (en) Augmented manufacturing system
WO2016090929A1 (en) Method, server and system for software system fault diagnosis
CN109857668A (en) UI automated function test method, test device, test equipment and storage medium
CN109409533A (en) A kind of generation method of machine learning model, device, equipment and storage medium
CN111611711B (en) Automatic driving data processing method and device and electronic equipment
CN102253997B (en) Food tracing and inquiry terminal based on internet of things technology
CN101059695A (en) Programmatic access to controller construct and variable names
US20160049019A1 (en) Methods for generating multiple data reports in vehicles
Eriksson et al. Applying digital twin technology in higher education: An automation line case study
US11256608B2 (en) Generating test plans for testing computer products based on product usage data
CN103914384B (en) A kind of demand changes the automated testing method driven
CN105095059A (en) Method and device for automated testing
CN107918572A (en) A kind of high-volume hard disk detection method, device and platform
CN1797331A (en) Rfid enabled information systems utiling a business application
CN115408367A (en) Data testing method, storage medium and electronic device
CN108984408A (en) The detection method and device of SQL code in a kind of application system
Egor Digital Transformation of Industrial Companies: What is Management 4.0?
KR101009424B1 (en) Method and apparatus for automatizing test of graphical user interface software
CN106649097B (en) A kind of movement automation test method based on object separation management
CN115098472A (en) Digital twinning method, device and equipment for full life cycle of physical entity
EP4365731A1 (en) Device deployment method for ai model, system, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: JIANGSU ELECTRIC POWER COMPANY JIANGSU ELECTRIC PO

Free format text: FORMER OWNER: JIANGSU ELECTRIC POWER COMPANY JIANGSU ELECTRIC POWER INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20140911

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140911

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant after: State Grid Corporation of China

Applicant after: Jiangsu Electric Power Company

Applicant after: Jiangsu Electric Power Information Technology Co., Ltd.

Applicant after: Information & Telecommunication Branch of State Grid Jiangsu Electric Power Company

Address before: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant before: State Grid Corporation of China

Applicant before: Jiangsu Electric Power Company

Applicant before: Jiangsu Electric Power Information Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant