CN103914384A - Automatic request-change driven testing method - Google Patents

Automatic request-change driven testing method Download PDF

Info

Publication number
CN103914384A
CN103914384A CN201410142482.4A CN201410142482A CN103914384A CN 103914384 A CN103914384 A CN 103914384A CN 201410142482 A CN201410142482 A CN 201410142482A CN 103914384 A CN103914384 A CN 103914384A
Authority
CN
China
Prior art keywords
class
development object
request
development
looking
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
CN201410142482.4A
Other languages
Chinese (zh)
Other versions
CN103914384B (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
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 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

Abstract

The invention discloses an automatic request-change driven testing method. The automatic request-change driven testing method includes starting from a request generated after each change of an SAP (systems, applications and products in data processing) system and analyzing development objects included in the request; pegging influence scope of the objects in corresponding manners according to different types of the development objects, considering multi-hierarchy quotations of some program objects, gathering the entire influence scope of the change request, and accordingly, automatically generating a test plane so as to drive implementation of automatic testing. By the automatic request-change driven testing method, testers can quickly but accurately determine the influence scope of the change, and test efficiency can be greatly improved.

Description

A kind of demand changes the automated testing method driving
Technical field
The present invention relates to a kind of automated testing method, specifically a kind of demand providing for SAP tester changes the automated testing method driving.
Robotization type of drive, location requirement changes coverage fast and accurately, drives the execution of automatic test with this.
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 is mainly driven by following three kinds of modes:
1) simple recording/replaying: by instrument, the process of operation and data are recorded by the mode of recording, carried out afterwards the process that playback can analog manual operation.Data under this pattern and script mix into together with, almost a corresponding test case of script, causes maintenance cost very high.Even if simple variation 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 is corresponding one by one with test case.This pattern has realized the problem of test script and data, has greatly improved utilization factor and the maintainability of script, but its be subject to interface change impact still very greatly.
3) key word drives the automatic test of (keyworddriven): it is the one improvement type of data-driven test that key word drives test, and it decomposes test logic according to key word, form data file, the service logic of the corresponding encapsulation of key word.Key word mainly comprises three types: operand (Item), operation (Operation) and value (value), can show as Item.Operation (Value) by OO form.Key word has also realized on the basis of data-driven script and data separating that testing inner object separates with interface element, test description separates with specific implementation details.
The driving of above-mentioned three kinds of forms is all intended to improve the reusability of script, but for needs carry out many wheel regression tested situations, tester is after each programing change, still need the coverage of artificial determining program, then the program in coverage is tested one by one, its automaticity is still not high.On the other hand, owing to there being the multiple conventional development objects such as Domain, DataElement, Table, Class, Program in SAP system, meanwhile, certain development object may also can be quoted other development objects again, occurs repeatedly the situation that recurrence is quoted.At this moment, the mode that tester often combines by self experience and manual search is searched its coverage, last designing and write test plan by artificial mode accordingly, so not only wastes time and energy, and be easy to cause omission, make defect be difficult to timely discovery.
Summary of the invention
For the problem running in SAP system testing, the object of this invention is to provide a kind of demand and change the automated testing method driving, by the method, tester can determine the coverage changing 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 driving, and it is characterized in that the method comprises the following steps:
1) obtain the request of change number;
2) get development object lists all under this request by the transmission number of request;
3) judge whether object is empty, and sky is jumped out end if;
4) each object of circulation fetch program list object;
5) judge object type, Domain goes to 6); Class goes to 13); Include goes to 10), other, go to 13);
6) the counter development object of looking into the development object of quoting this Domain type;
7) the counter development object of looking into the development object of quoting this field type;
8) the counter development object of looking into the development object that refers to this form types, goes to 13);
9) judge the particular type of this class object: if whole class goes to 13); If the attribute of class goes to 13); If the method for class goes to 11);
10) development object of the counter mainprogram type of looking into the development object of quoting this include type;
11) the anti-class that refers to the method for looking into;
12) obtain all methods under such;
13) the anti-development object referring to of looking into;
14) the anti-development object of finding is added in output listing;
15) judge in list, whether next development object is empty: empty if, go to 16), if non-NULL goes to 5);
16) export all affected development object inventories under this transmission request;
17) generate test plan according to the anti-list object of looking into;
18) call corresponding test script in test plan, carry out automatic test.
The present invention is from the each request producing after changing of SAP system, the development object comprising under analysis request.Then for the counter coverage of 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 the coverage that produces whole change request, thereby automatically generate test plan, drive the execution of automatic test with this.
By the present invention, tester can determine the coverage changing fast and accurately, significantly improves testing efficiency.
Accompanying drawing explanation
Fig. 1 is that demand changes the process schematic diagram that drives automatic test.
Embodiment
Demand changes the automated testing method driving, and the realization that demand drives has adopted two classes, transmission request class (use class ZP001CL_TRANSREQ definition in the present embodiment, but be not limited to this title); The anti-class (use class ZP001CL_WHERE_USED definition in the present embodiment, but be not limited to this title) of looking into.
The function of transmission request class ZP001CL_TRANSREQ main method is as follows:
GET_TRANS_INFOR: the transmission information that obtains request;
GET_PRO_VERSIONS: the version information that the request of obtaining is corresponding;
SET_E07T: obtain object text;
GET_AS4TEXT: obtain request text;
GET_COLLECTION: obtain object set;
GET_INCLUDE_PROGRAMS: obtain the development object comprising.
The counter function of looking into class ZP001CL_WHERE_USED main method is as follows:
GET_WHERE_USED_DOMA: obtain the development object of quoting Domain type;
GET_WHERE_USED_FIED: the development object that obtains reference field type;
GET_WHERE_USED_TABL: obtain the development object of quoting form types;
GET_WHERE_USED_INCL: obtain the development object of quoting include type;
GET_WHERE_USED_ClAS: obtain the development object of quoting include type;
GET_WHERE_USED_PROG: obtain the development object of 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: get development object lists all under this request by the transmission number of request.Transmission request number:
SAP is used for managing the one mechanism of transmission procedure, configuration, is similar to version number.
Step3: judge whether object is empty, and sky is jumped out end if.
Step4: each object of circulation fetch program list object.
Step5: judge object type: Domain goes to Step6; Class goes to Step13; Include goes to Step10, and other, go to Step13.
Step6: the counter development object of looking into the development object of quoting this Domain type.
Step7: the counter development object of looking into the development object of quoting this field type.
Step8: the counter development object of looking into the development object that refers to this form types, goes to Step13.
Step9: the particular type that judges this class object: if whole class goes to Step13; If class
Attribute, go to Step13; If the method for class goes to Step11.
Step10: the development object of the counter mainprogram type of looking into the development object of quoting this include type.
Step11: the anti-class that refers to the method for looking into,
Step12: obtain all methods under such.
Step13: the anti-development object referring to of looking into.
Step14: the anti-development object of finding is added in output listing.
Step15: judge in list, whether next development object is empty: empty if, go to Step16, if non-NULL goes to Step5.
Step16: export all affected development object inventories under this transmission request.
Step17: generate test plan according to the anti-list object of looking into.
Step18: call corresponding test script in test plan, carry out automatic test.
By the present invention, tester can determine the coverage changing fast and accurately, significantly improves testing efficiency.

Claims (4)

1. demand changes the automated testing method driving, and it is characterized in that the method comprises the following steps:
1)obtain the request of change number;
2)get development object lists all under this request by the transmission number of request;
3)judge whether object is empty, and sky is jumped out end if;
4)each object of circulation fetch program list object;
5)judge object type, Domain goes to 6); Class goes to 13); Include goes to 10), other, go to 13);
6)the counter development object of looking into the development object of quoting this Domain type;
7)the counter development object of looking into the development object of quoting this field type;
8)the counter development object of looking into the development object that refers to this form types, goes to 13);
9)judge the particular type of this class object: if whole class goes to 13); If the attribute of class goes to 13); If the method for class goes to 11);
10)the development object of the counter main program type of looking into the development object of quoting this include type;
11)the anti-class that refers to the method for looking into;
12)obtain all methods under such;
13)the anti-development object referring to of looking into;
14)the anti-development object of finding is added in output listing;
15)judge in list, whether next development object is empty: empty if, go to 16), if non-NULL goes to 5);
16)export all affected development object inventories under this transmission request;
17)generate test plan according to the anti-list object of looking into;
18)call corresponding test script in test plan, carry out automatic test.
2. demand according to claim 1 changes the automated testing method driving, and it is characterized in that: described class comprises, transmission request class and the anti-class of looking into.
3. demand according to claim 2 changes the automated testing method driving, and it is characterized in that: in transmission request class, use class ZP001CL_TRANSREQ definition; Counter looking in class, is used class ZP001CL_WHERE_USED definition.
4. demand according to claim 3 changes the automated testing method driving, and it is characterized in that:
Transmission request class ZP001CL_TRANSREQ comprises as follows:
GET_TRANS_INFOR: the transmission information that obtains request;
GET_PRO_VERSIONS: the version information that the request of obtaining is corresponding;
SET_E07T: obtain object text;
GET_AS4TEXT: obtain request text;
GET_COLLECTION: obtain object set;
GET_INCLUDE_PROGRAMS: obtain the development object comprising;
The anti-class ZP001CL_WHERE_USED that looks into comprises as follows:
GET_WHERE_USED_DOMA: obtain the development object of quoting Domain type;
GET_WHERE_USED_FIED: the development object that obtains reference field type;
GET_WHERE_USED_TABL: obtain the development object of quoting form types;
GET_WHERE_USED_INCL: obtain the development object of quoting include type;
GET_WHERE_USED_ClAS: obtain the development object of quoting include type;
GET_WHERE_USED_PROG: obtain the development object of 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 true CN103914384A (en) 2014-07-09
CN103914384B 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)

Cited By (2)

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

Citations (8)

* 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
CN101662394A (en) * 2009-09-15 2010-03-03 中兴通讯股份有限公司 Automated testing system and automated testing method
US20100095276A1 (en) * 2008-10-09 2010-04-15 Accenture S.A. Test data creation and execution system for service oriented architecture
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

Patent Citations (8)

* 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
US20100095276A1 (en) * 2008-10-09 2010-04-15 Accenture S.A. Test data creation and execution system for service oriented architecture
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
FAROOQ AHMAD等: ""Scenario Based Functional Regression Testing Using Petri Net Models"", 《2013 12TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS》 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN103914384B (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN103176895B (en) A kind of regression testing method and system
US8525830B2 (en) Point cloud generation system
CN104407971B (en) Method for automatically testing embedded software
US11093370B1 (en) Impact analysis for software testing
CN107943463B (en) Interactive mode automation big data analysis application development system
CN106095592A (en) A kind of prospect application scenarios synchronous method and device, system
WO2016090929A1 (en) Method, server and system for software system fault diagnosis
EP2960799A1 (en) Defect localization in software integration tests
US20150193331A1 (en) Systems and methods for processing software application metadata associated with a software application
CN101101205A (en) Inspection apparatus for inspecting articles
CN105138386A (en) Logic design verification continuous integration platform based on Jenkins and vManager
CN104699613B (en) A kind of spacecraft-testing demand automatic creation system and its method
CN103678093A (en) Automatic testing framework and testing method
CN103646090A (en) Application program recommendation method and optimization method and device for program starting speeds
CN103180834B (en) Automatic operation system test frame
CN105095059A (en) Method and device for automated testing
US20160049019A1 (en) Methods for generating multiple data reports in vehicles
KR102543064B1 (en) System for providing manufacturing environment monitoring service based on robotic process automation
CN107918572A (en) A kind of high-volume hard disk detection method, device and platform
CN105279089A (en) Method and device for obtaining page element
CN105183658A (en) Software code testing method and device
CN115327270A (en) Transformer small sample fault diagnosis system based on data-model driving
KR101009424B1 (en) Method and apparatus for automatizing test of graphical user interface software
CN103914384B (en) A kind of demand changes the automated testing method driven
US9817748B2 (en) Unified interface for development and testing of deployment resource architecture

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