CN103885882A - Testing script based on SAP platform and parameter integration method - Google Patents

Testing script based on SAP platform and parameter integration method Download PDF

Info

Publication number
CN103885882A
CN103885882A CN201410141629.8A CN201410141629A CN103885882A CN 103885882 A CN103885882 A CN 103885882A CN 201410141629 A CN201410141629 A CN 201410141629A CN 103885882 A CN103885882 A CN 103885882A
Authority
CN
China
Prior art keywords
script
parameter
test
sap platform
function
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
CN201410141629.8A
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.)
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 CN201410141629.8A priority Critical patent/CN103885882A/en
Publication of CN103885882A publication Critical patent/CN103885882A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a testing script based on an SAP platform and a parameter integration method. Script templates for a test of the SAP platform are classified and sorted, then a general test script is automatically generated through a program according to the scrip templates, parameter information of the script templates is extracted, script object linkage correlation of a parameter object and a structure is formed, a script executing test is unified by dynamically calling an ECA TT scrip, a Function and the like, and the practically generated general script has the uniform input parameter; a parameter object list is obtained through the script object, then parameter value information is obtained according to the provided parameter object, the script templates are dynamically called, a parameter is filled in to conduct test operation, and the general script and execution unification are achieved. Generation of the general script is automatically executed through the program, and the general script does not need to be manually generated, so that test working load is reduced.

Description

A kind of test script and parameter integration method based on SAP platform
Technical field
The present invention relates to a kind of script and parameter integration technology, integrate for the script and the parameter that can be used for test in SAP platform, unified to reach various test scripts and parameter integration.
Background technology
Under SAP platform, the test of program is part and parcel very, and the testing tool of SAP self and third-party instrument are all confined in test function separately, dissimilar script needs different mode, different instruments to go test, the common mode desintegration of neither one and use these scripts, needs tester to spend a large amount of time and removes the test script different to different tool makings.
Under SAP platform, the parameter of test script is also varied at present, current existing testing tool is only for input and output by abstract parameter, there is no finer differentiation, and the function input parameter of SAP also has CHANGING parameter (be input be also output) and form parameter except input and output, and form parameter also needs to confirm that according to actual situation it is input or output parameter, while making tester make script, also need to understand actual parameter purposes, increased a lot of test job amounts.
Summary of the invention
The object of this invention is to provide a kind of test script and parameter integration method based on SAP platform, this method by by the test script unified integration of the program of SAP and ECATT to carrying out together taxonomic revision, and automatically generate general test script for test, thereby reach, the test script of different testing tools is integrated to utilization, no longer need to make the test script of a large amount of identical functions, can accomplish the recycling of script.
Object of the present invention is achieved through the following technical solutions:
Test script based on SAP platform and a parameter integration method, is characterized in that the method comprises the following steps:
1) script template of needs being tested arranges, and these script templates are classified and safeguarded and arrange;
2) script template parameter type is extracted to the unified structure type that is encapsulated as parameter class object and parameter;
3) corresponding relation of constructing variable object and scripting object, utilize script template to generate general test script, its general parameter is scripting object, the parameter object that obtains script template according to scripting object for, script, parameter and relation information utilize DB storage;
4) universal test script is unified is functional form in SAP platform;
5) encapsulation of carrying out function to ECATT script, function, program and T-CODE under SAP platform, only having a Changing parameter is scripting object;
6) in function, by coding, ECATT script, function, program and T-CODE are called to execution dynamically, before execution, utilize the scripting object object that gets parms, for the actual test script calling is inserted parameter information, after execution, result is recorded to equally to the output parameter object in scripting object; Complete test script and parameter integration.
In the present invention, in object, comprising parameter kind has Importing, Exporting, Changing, Table; The structure type of parameter has Table, Structure, Variable.
This method is by script template (the ECATT script in corresponding SAP platform of Gong the test to SAP platform, function F unction etc.) carry out taxonomic revision, automatically produce general test script by program according to script template again, extract the parameter information of script template, form parameter object associated with the scripting object of structure, script is carried out test and is adopted dynamic call ECATT script, the modes such as Function are unified, the actual generic script producing has unified input parameter: scripting object class, obtain parameter object list by scripting object class, again according to the parameter object that the provides value information that gets parms, dynamic call script template, insert parameter and carry out test run, accomplish that script is general and it is unified to carry out, the generation of generic script is automatically performed by program, manually make generic script without user, reduce test job amount.
All parameter types that the present invention relates to script all extract and integrate, various parameters are encapsulated in the mode of parameter object, utilize the mode of parameter object that various script arguments are united, no longer need to make the test script of a large amount of identical functions, be conducive to the integration of script, can accomplish the recycling of script; Also more effective management parameters of while, has reduced test job amount.
Accompanying drawing explanation
Fig. 1 is that in the present invention, script is integrated process flow diagram.
Embodiment
In the present invention, the explanation of nouns of relevant technical terms is as follows: ECATT: the Computer Aided Test Tool of expansion, a kind of testing tool in SAP platform; Importing: input parameter; Exporting: output parameter; Changing: input/output argument (be input parameter be also output parameter); Table: form types parameter, same to two-dimensional array, in function, be input parameter be also output parameter; Structure: structured parameter, same to one-dimension array; Variable: fundamental type parameter; Transaction code in T-CODE:SAP platform, for carrying out a function.
A kind of test script and parameter integration method based on SAP platform, by by the test script unified integration of the program of SAP and ECATT to carrying out together taxonomic revision, and automatically generate general test script for test, thereby reach, the test script of different testing tools is integrated to utilization, no longer need to make the test script of a large amount of identical functions, can accomplish the recycling of script.Concrete steps are as follows:
1. the script template that pair needs are tested arranges, and these script templates are classified and safeguarded and arrange.
2. pair script template parameter type extracts, and unification is encapsulated as parameter class object, comprises the structure type (Table, Structure, Variable) of parameter kind (Importing, Exporting, Changing, Table) and parameter in object.
3. the corresponding relation of constructing variable object and scripting object, utilize script template to generate general test script, its general parameter is scripting object, the parameter object that obtains script template according to scripting object for, script, parameter and relation information utilize DB storage.
4. universal test script is unified is functional form in SAP platform.
5. the encapsulation of carrying out function of ECATT script, function, program and T-CODE under pair SAP platform, only having a Changing parameter is scripting object.
6. in function, by coding, ECATT script, function, program and T-CODE are called to execution dynamically, before execution, utilize the scripting object object that gets parms, for the actual test script calling is inserted parameter information, after execution, result is recorded to equally to the output parameter object in scripting object.

Claims (3)

1. the test script based on SAP platform and a parameter integration method, is characterized in that the method comprises the following steps:
1) script template of needs being tested arranges, and these script templates are classified and safeguarded and arrange;
2) script template parameter type is extracted to the unified structure type that is encapsulated as parameter class object and parameter;
3) corresponding relation of constructing variable object and scripting object, utilize script template to generate general test script, its general parameter is scripting object, the parameter object that obtains script template according to scripting object for, script, parameter and relation information utilize DB storage;
4) universal test script is unified is functional form in SAP platform;
5) encapsulation of carrying out function to ECATT script, function, program and T-CODE under SAP platform, only having a Changing parameter is scripting object;
6) in function, by coding, ECATT script, function, program and T-CODE are called to execution dynamically, before execution, utilize the scripting object object that gets parms, for the actual test script calling is inserted parameter information, after execution, result is recorded to equally to the output parameter object in scripting object; Complete test script and parameter integration.
2. test script and the parameter integration method based on SAP platform according to claim 1, is characterized in that: step 2) in, in object, comprising parameter kind has Importing, Exporting, Changing, Table; The structure type of parameter has Table, Structure, Variable.
3. test script and the parameter integration method based on SAP platform according to claim 1, is characterized in that: in step 1), the script template that need to test comprises: the ECATT script in SAP platform, function F unction.
CN201410141629.8A 2014-04-10 2014-04-10 Testing script based on SAP platform and parameter integration method Pending CN103885882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410141629.8A CN103885882A (en) 2014-04-10 2014-04-10 Testing script based on SAP platform and parameter integration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410141629.8A CN103885882A (en) 2014-04-10 2014-04-10 Testing script based on SAP platform and parameter integration method

Publications (1)

Publication Number Publication Date
CN103885882A true CN103885882A (en) 2014-06-25

Family

ID=50954790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410141629.8A Pending CN103885882A (en) 2014-04-10 2014-04-10 Testing script based on SAP platform and parameter integration method

Country Status (1)

Country Link
CN (1) CN103885882A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550099A (en) * 2015-12-08 2016-05-04 江苏电力信息技术有限公司 SAP system state evaluation method
CN106874001A (en) * 2017-02-17 2017-06-20 济南浪潮高新科技投资发展有限公司 A kind of script method for packing and device and script operation method and device
CN107703773A (en) * 2017-07-27 2018-02-16 北京长城华冠汽车科技股份有限公司 A kind of method for testing software and device based on hardware-in-loop simulation system
CN109154885A (en) * 2016-03-21 2019-01-04 澳大利亚国家Ict有限公司 Business processing on block platform chain executes
CN109299005A (en) * 2018-09-05 2019-02-01 北京邮电大学 The generation method and device of test script
CN110162365A (en) * 2019-04-28 2019-08-23 苏宁云计算有限公司 A kind of method and system being automatically brought into operation SAP business software
CN110659870A (en) * 2019-08-14 2020-01-07 平安普惠企业管理有限公司 Business audit test method, device, equipment and storage medium
CN113556269A (en) * 2021-07-29 2021-10-26 中国电力科学研究院有限公司 SAP client performance test method, system, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160322A1 (en) * 2004-01-13 2005-07-21 West John R. Method and system for conversion of automation test scripts into abstract test case representation with persistence
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN101043543A (en) * 2006-03-24 2007-09-26 中兴通讯股份有限公司 Automatized test tool and method for program controlled exchanger
CN101221504A (en) * 2008-01-23 2008-07-16 中兴通讯股份有限公司 Test script processing method and its scheduling and executing system
CN101770423A (en) * 2009-12-25 2010-07-07 中兴通讯股份有限公司 Test data generation method and test system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160322A1 (en) * 2004-01-13 2005-07-21 West John R. Method and system for conversion of automation test scripts into abstract test case representation with persistence
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN101043543A (en) * 2006-03-24 2007-09-26 中兴通讯股份有限公司 Automatized test tool and method for program controlled exchanger
CN101221504A (en) * 2008-01-23 2008-07-16 中兴通讯股份有限公司 Test script processing method and its scheduling and executing system
CN101770423A (en) * 2009-12-25 2010-07-07 中兴通讯股份有限公司 Test data generation method and test system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘丹: ""基于eCATT软件的SAP系统回归测试应用分析"", 《软件产业与工程》, no. 2, 10 March 2014 (2014-03-10), pages 43 - 48 *
江鲸: ""软件自动化测试系统的研究与实现"", 《中国优秀硕士学位论文全文数据库·信息科技辑》, vol. 2006, no. 12, 15 December 2006 (2006-12-15), pages 138 - 200 *
黄盛: ""基于SAP项目的自动化测试脚本开发技术研究"", 《计算机工程》, vol. 30, 31 December 2004 (2004-12-31) *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550099A (en) * 2015-12-08 2016-05-04 江苏电力信息技术有限公司 SAP system state evaluation method
CN105550099B (en) * 2015-12-08 2018-05-01 江苏电力信息技术有限公司 A kind of SAP system method for evaluating state
CN109154885A (en) * 2016-03-21 2019-01-04 澳大利亚国家Ict有限公司 Business processing on block platform chain executes
CN109154885B (en) * 2016-03-21 2023-05-12 澳大利亚国家Ict有限公司 Business process execution on a blockchain platform
CN106874001A (en) * 2017-02-17 2017-06-20 济南浪潮高新科技投资发展有限公司 A kind of script method for packing and device and script operation method and device
CN107703773A (en) * 2017-07-27 2018-02-16 北京长城华冠汽车科技股份有限公司 A kind of method for testing software and device based on hardware-in-loop simulation system
CN109299005A (en) * 2018-09-05 2019-02-01 北京邮电大学 The generation method and device of test script
CN109299005B (en) * 2018-09-05 2020-07-07 北京邮电大学 Test script generation method and device
CN110162365A (en) * 2019-04-28 2019-08-23 苏宁云计算有限公司 A kind of method and system being automatically brought into operation SAP business software
CN110162365B (en) * 2019-04-28 2022-12-02 苏宁云计算有限公司 Method and system for automatically operating SAP service software
CN110659870A (en) * 2019-08-14 2020-01-07 平安普惠企业管理有限公司 Business audit test method, device, equipment and storage medium
CN113556269A (en) * 2021-07-29 2021-10-26 中国电力科学研究院有限公司 SAP client performance test method, system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN103885882A (en) Testing script based on SAP platform and parameter integration method
CN107451663B (en) Algorithm componentization, modeling method and device based on algorithm components and electronic equipment
Fraikin et al. SeDiTeC-testing based on sequence diagrams
US9141521B2 (en) Method and apparatus for automatically generating a test script for a graphical user interface
CN104317589A (en) Automatic code generating method and automatic code generating device for loading dynamic link library
CN109739759A (en) A method of verifying Black-box testing Cases design integrity
CN110309498B (en) Method and device for generating audit report based on parameters and method for generating audit report by using same
CN110196720B (en) Optimization method for generating dynamic link library by Simulink
CN105426309A (en) Test case automatic generation method and apparatus
WO2019075994A1 (en) Method, device and system for mock data at ios end, and storage medium
WO2016141685A1 (en) Telecommunications engineering drawing generation method and drawing design client
Frenkel et al. Towards a benchmark suite for Modelica compilers: Large models
CN105117566B (en) A kind of method and device analyzed PCIe eye patterns
CN111679808A (en) RPA robot application requirement evaluation method and device
CN107766242A (en) A kind of interface test method based on JMETER
US8494820B2 (en) Computing device and method for analyzing scattering parameters passivity
CN107423216B (en) Debugging tool configuration method, readable storage medium and debugging tool configuration device
CN109271323A (en) Processing method, device, test equipment and the storage medium of page elements
CN104850478A (en) Method for establishing model of tested object, and virtual test method
CN113900633A (en) Low-code development method and device for scene of Internet of things, storage medium and development platform
CN105045698A (en) Method for analyzing chip verification progress by using MATPLOTLIB of PYTHON
CN109376045A (en) A kind of BIOS parameter automatization verifying device and verification method
Ulmer et al. Virtual testing of high lift systems
CN105843973B (en) A kind of description method and system of the design knowledge based on case
CN104199771B (en) Central processing unit performance testing method and system

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: 20140919

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

Effective date of registration: 20140919

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.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140625