CN113556269B - SAP client performance test method, system, electronic equipment and storage medium - Google Patents

SAP client performance test method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113556269B
CN113556269B CN202110865517.7A CN202110865517A CN113556269B CN 113556269 B CN113556269 B CN 113556269B CN 202110865517 A CN202110865517 A CN 202110865517A CN 113556269 B CN113556269 B CN 113556269B
Authority
CN
China
Prior art keywords
sap
script
recording
client
test
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
CN202110865517.7A
Other languages
Chinese (zh)
Other versions
CN113556269A (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.)
China Electric Power Research Institute Co Ltd CEPRI
Original Assignee
China Electric Power Research Institute Co Ltd CEPRI
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 China Electric Power Research Institute Co Ltd CEPRI filed Critical China Electric Power Research Institute Co Ltd CEPRI
Priority to CN202110865517.7A priority Critical patent/CN113556269B/en
Publication of CN113556269A publication Critical patent/CN113556269A/en
Application granted granted Critical
Publication of CN113556269B publication Critical patent/CN113556269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a SAP client performance test method, a system, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing private protocol connection with an SAP client; capturing session and operation flow of the SAP client by adopting flow recording, and storing a recording script; triggering the SAP client to play back the stored recording script by using the private collaboration; by comparing the flow content during playback and recording, replacing relevant parameters according to actual test requirements, and completing script optimization; and performing SAP client performance test by executing the optimized script, and automatically generating a test report after the test is finished. The SAP GUI client is connected through a proprietary protocol without requiring the installation of additional agents. This can save machine resources, reduce configuration complexity, and improve execution efficiency.

Description

SAP client performance test method, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of software testing technologies, and in particular, to a method, a system, an electronic device, and a storage medium for testing performance of an SAP client.
Background
The system applications and products (System Applications and Products, simply SAP) are products developed by SAP corporation. It is the first ERP software currently worldwide. The functions of the SAP include: product cost, project accounting, profit analysis, price inquiry quotes, order management, and the like. In the prior art mode, an Agent program needs to be additionally installed on the SAP GUI client, the normal operation of the Agent program is necessary, a loop is added in the whole test chain, corresponding system knowledge and skills are also needed, and the overall maintenance cost is relatively high.
Disclosure of Invention
The embodiment of the invention provides a SAP client performance test method, a system, electronic equipment and a storage medium, which are connected with an SAP GUI client through a private protocol without installing an additional agent program. This can save machine resources, reduce configuration complexity, and improve execution efficiency.
The invention provides a SAP client performance test method, which comprises the following steps: establishing private protocol connection with an SAP client; capturing session and operation flow of the SAP client by adopting flow recording, and storing a recording script; triggering the SAP client to play back the stored recording script by using the private collaboration; by comparing the flow content during playback and recording, replacing relevant parameters according to actual test requirements, and completing script optimization; and performing the performance test of the SAP client through the optimized script executed by the pressure dispatcher, and automatically generating a test report after the test is finished.
According to the testing method provided by the embodiment of the invention, the private protocol connection is established, the additional installation of the proxy program is avoided, the direct communication between the SAP client and the SAP server is realized, the intermediate environment is reduced in the testing process, the SAP performance test which is linked front and back and can be executed on line is realized, the environmental interference factor is reduced, and the efficiency and quality of software delivery are improved.
Further preferably, the private protocol includes establishing an SSL encryption tunnel between the SAP test server and the SAP client, and utilizing the SSL encryption tunnel to perform data transmission and information exchange at a transport layer and an application layer of the network.
According to the SAP client performance test method provided by the embodiment, compared with a mode that an agent program is installed on an SAP GUI client to collect data and then transmit the data in a traditional mode, the data processing efficiency is greatly improved and improved, and the real-time performance of test data is also improved.
Preferably, in any of the foregoing embodiments, editing the recorded script after the recording is finished; and during editing, directly reading the file through the virtual view. In the embodiment, the virtual view is adopted to remotely view and edit the file based on the tcp/ip protocol and the http protocol, and the file does not need to be actually transmitted, so that precious network resources and network traffic are reduced.
In any one of the foregoing embodiments, preferably, the saving the recording script includes: and storing the recording script on a local disk and/or storing the recording script on a cloud server.
The embodiment of the other aspect of the invention also provides a performance test system based on the SAP protocol, which comprises a private protocol connection module, a script recording tool and an automatic test tool; the private protocol connection module is used for establishing private protocol connection with the SAP client; the script recording tool is used for recording the flow of the session and the operation flow of the SAP client and storing the recording script; the automatic testing tool is used for triggering the SAP client to play back the stored recording script by using the established private protocol connection; by comparing the flow content during playback and recording, replacing relevant parameters according to actual test requirements, and completing script optimization; and performing the performance test of the SAP client through the optimized script executed by the pressure dispatcher, and automatically generating a test report after the test is finished.
According to the test system provided by the embodiment of the invention, the private protocol connection is established, the additional installation of the proxy program is avoided, the direct communication between the SAP client and the SAP server is realized, the intermediate environment is reduced in the test process, the SAP performance test which is linked front and back and can be executed on line is realized, the environmental interference factor is reduced, and the efficiency and quality of software delivery are improved.
In any of the foregoing embodiments, preferably, the SAP server further includes a traffic scheduler, where the traffic scheduler is configured to trigger the SAP client to play back the recording script.
The preferred embodiment of any one of the above embodiments, further comprising a script editor, wherein the script editor is used for editing the recorded script after the recording is finished; and during editing, directly reading the file through the virtual view. In the embodiment, the virtual view is adopted to remotely view and edit the file based on the tcp/ip protocol and the http protocol, and the file does not need to be actually transmitted, so that precious network resources and network traffic are reduced.
Preferably in any one of the foregoing embodiments, the private protocol includes establishing an SSL encryption tunnel between the SAP test server and the SAP client, and using the SSL encryption tunnel to perform data transmission and information exchange between a transport layer and an application layer of the network. Compared with the mode that the agent program is installed on the SAP GUI client for data acquisition and then transmission in the traditional mode, the data processing efficiency is greatly improved and improved, and the real-time performance of test data is also improved.
The invention also provides an electronic device, which comprises a processor and a memory; the memory is used for storing instructions executable by the processor; the processor is used for executing the SAP client performance test method.
The present invention also provides a storage medium storing a computer program for executing the above-described SAP client performance test method.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram of SAP system testing for setting up an agent program as set forth in the background art;
FIG. 2 is a flow chart of a method for testing the performance of an SAP client according to the present invention;
fig. 3 is a block diagram of a performance test system based on SAP protocol according to the present invention.
Detailed Description
The invention will be described in detail below with reference to the drawings in connection with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
The following detailed description is exemplary and is intended to provide further details of the invention. Unless defined otherwise, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the invention.
As shown in FIG. 2, the present invention provides a method for testing the performance of an SAP client, wherein the SAP performance test is mainly in the form of software codes, simulates the operation of a GUI interface, and performs a pressure test by generating a certain load; mainly comprises the following steps:
s1, establishing private protocol connection with an SAP client; further preferably, the private protocol includes establishing an SSL encryption tunnel between the SAP test server and the SAP client, and utilizing the SSL encryption tunnel to perform data transmission and information exchange at a transport layer and an application layer of the network.
S2, capturing session and operation flow of the SAP client by adopting flow recording, and storing a recording script; the storing of the recording script comprises storing the recording script on a local disk and/or storing the recording script on a cloud server. In one embodiment of the present application, after the SAP client performs traffic recording, the recording script is stored locally; or after the SAP client performs flow recording, storing the recording script in the cloud server. Editing the recorded script after the recording is finished; and during editing, directly reading the file through the virtual view. Virtual view: a script file opening and browsing mode supports remote file viewing and editing based on tcp/ip protocol and http protocol without actually transmitting files, which is beneficial to reducing precious network resources and network traffic. The editing and saving of the network-based script is achieved by virtually attempting to read the file directly without actually transmitting or downloading the file.
S3, triggering the SAP client to play back the stored recording script by using private cooperative connection; and when the recorded script is modified and stored, and relevant parameters are replaced, script optimization is completed.
S4, performing performance test of the SAP client through the optimized script executed by the pressure dispatcher, and automatically generating a test report after the test is finished. During playback, relevant parameters are read and replaced according to the setting, interaction is carried out with the SAP server side, and playback of SAP GUI operation is triggered by the pressure dispatcher. The pressure dispatcher is a testing tool at the server side of performance testing and is responsible for specific dispatching execution of pressure. For example, after the script is recorded, a plurality of users need to be simulated to operate or create a session, the user names can be collected to form a user name set, the set is placed in the script, the pressure scheduler simulates the flow pressure of multiple users to form a pressure load, and the pressure test is completed.
As shown in fig. 3, another embodiment of the present invention further provides a performance testing system based on SAP protocol, including an SAP client, an SAP test server, a script recording tool and an automation testing tool; the SAP client and the SAP test server are connected through a private protocol; the private protocol comprises the steps of establishing an SSL encryption tunnel between an SAP test server and an SAP client, and carrying out data transmission and information exchange on a transmission layer and an application layer of the network by utilizing the SSL encryption tunnel.
The SAP client is used for acquiring the session and the operation flow input by the user;
the script recording tool is used for recording the flow of the session and the operation flow of the SAP client and storing the recording script; the script editor is used for editing the recorded script after the recording is finished; and during editing, directly reading the file through the virtual view. Virtual view: a script file opening and browsing mode supports remote file viewing and editing based on tcp/ip protocol and http protocol without actually transmitting files, which is beneficial to reducing precious network resources and network traffic. The editing and saving of the network-based script is achieved by virtually attempting to read the file directly without actually transmitting or downloading the file.
The SAP server sends the stored recording script back to the SAP client for playback; the SAP server further comprises a flow scheduler, and the flow scheduler is used for triggering the SAP client to play back the recording script. And after the recorded script is modified and stored and related parameters are replaced, the script optimization is completed, and then the pressure dispatcher triggers the playback of SAP GUI operation. The pressure dispatcher is a testing tool at the server side of performance testing and is responsible for specific dispatching execution of pressure.
The automatic testing tool is used for executing the optimized script to conduct SAP client performance test, and automatically generating a test report after the test is finished. The storing of the recording script comprises storing the recording script on a local disk and/or storing the recording script on a cloud server. During playback, relevant parameters are read and replaced according to the settings, and interaction is performed with the SAP server. For example, after the script is recorded, a plurality of users need to be simulated to operate or conduct conversation, the user names can be collected to form a user name set, the set is placed into the script, the pressure scheduler simulates the flow pressure of multiple users to form pressure load, and the pressure test is completed.
The invention also provides an electronic device, which comprises a processor and a memory; the memory is used for storing instructions executable by the processor; the processor is used for executing the SAP client performance test method.
The present invention also provides a storage medium storing a computer program for executing the above-described SAP client performance test method.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be appreciated by those skilled in the art that the present invention can be carried out in other embodiments without departing from the spirit or essential characteristics thereof. Accordingly, the above disclosed embodiments are illustrative in all respects, and not exclusive. All changes that come within the scope of the invention or equivalents thereto are intended to be embraced therein.

Claims (6)

1. A method for testing the performance of an SAP (system application and product) client, comprising the steps of:
establishing private protocol connection with an SAP client;
capturing session and operation flow of the SAP client by adopting flow recording, and storing a recording script; the storing and recording script comprises: storing the recording script on a local disk and/or storing the recording script on a cloud server;
triggering the SAP client to play back the stored recording script by using private protocol connection;
by comparing the flow content during playback and recording, replacing relevant parameters according to actual test requirements, and completing script optimization;
performing the performance test of the SAP client by the optimized script through the pressure scheduler, and generating a test report;
the private protocol comprises the steps of establishing an SSL encryption tunnel between an SAP test server and an SAP client, and carrying out data transmission and information exchange on a transmission layer and an application layer of the network by utilizing the SSL encryption tunnel.
2. The SAP client performance test method of claim 1, further comprising editing the recorded script after the recording is completed; and during editing, directly reading the file through the virtual view.
3. A SAP (System application and product) client performance test system is characterized by comprising a private protocol connection module, a script recording tool and an automatic test tool;
the private protocol connection module is used for establishing private protocol connection with the SAP client;
the script recording tool is used for recording the flow of the session and the operation flow of the SAP client and storing the recording script;
the automatic testing tool is used for triggering the SAP client to play back the stored recording script by using the established private protocol connection; and the script optimization is completed by comparing the flow content during playback and recording and replacing related parameters according to the actual test requirement; performing the performance test of the SAP client through the optimized script executed by the pressure dispatcher, and automatically generating a test report after the test is finished;
the SAP test server further comprises a flow scheduler, wherein the flow scheduler is used for triggering the SAP client to play back the recording script;
the private protocol comprises the steps of establishing an SSL encryption tunnel between an SAP test server and an SAP client, and carrying out data transmission and information exchange on a transmission layer and an application layer of the network by utilizing the SSL encryption tunnel.
4. The SAP client performance test system as in claim 3 further comprising a script editor for editing the recorded script after recording is completed; and during editing, directly reading the file through the virtual view.
5. An electronic device includes a processor and a memory; the memory is used for storing instructions executable by the processor; the processor configured to perform the SAP client performance test method of any one of claims 1-2.
6. A storage medium storing a computer program for executing the SAP client performance test method of any one of the preceding claims 1-2.
CN202110865517.7A 2021-07-29 2021-07-29 SAP client performance test method, system, electronic equipment and storage medium Active CN113556269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110865517.7A CN113556269B (en) 2021-07-29 2021-07-29 SAP client performance test method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110865517.7A CN113556269B (en) 2021-07-29 2021-07-29 SAP client performance test method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113556269A CN113556269A (en) 2021-10-26
CN113556269B true CN113556269B (en) 2023-04-28

Family

ID=78104846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110865517.7A Active CN113556269B (en) 2021-07-29 2021-07-29 SAP client performance test method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113556269B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634904A (en) * 2016-01-19 2016-06-01 深圳前海达闼云端智能科技有限公司 SSLVPN proxy method, server, client and processing method thereof
CN106790590A (en) * 2016-12-28 2017-05-31 珠海国芯云科技有限公司 Terminal communication of internet of things managing and control system and its method based on cloud platform
CN107819649A (en) * 2017-11-16 2018-03-20 北京卫星信息工程研究所 A kind of proprietary protocol method of testing of the satellite communication network based on magnanimity terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102227716B (en) * 2009-03-30 2014-01-01 株式会社野村综合研究所 Operation verification device, operation verification method, and operation verification system
US20100281467A1 (en) * 2009-04-29 2010-11-04 Hexaware Technologies, Inc. Method and apparatus for automatic software testing
CN103885882A (en) * 2014-04-10 2014-06-25 国家电网公司 Testing script based on SAP platform and parameter integration method
CN105302728B (en) * 2015-11-27 2018-03-23 中国民生银行股份有限公司 The method of testing and device of SAP interfaces
CN106302507A (en) * 2016-08-31 2017-01-04 北京盛世光明软件股份有限公司 A kind of method based on SSL network data analytic technique
MX2019011590A (en) * 2017-03-31 2019-11-08 Velocity Tech Solutions Inc Methods and systems for testing web applications.

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634904A (en) * 2016-01-19 2016-06-01 深圳前海达闼云端智能科技有限公司 SSLVPN proxy method, server, client and processing method thereof
CN106790590A (en) * 2016-12-28 2017-05-31 珠海国芯云科技有限公司 Terminal communication of internet of things managing and control system and its method based on cloud platform
CN107819649A (en) * 2017-11-16 2018-03-20 北京卫星信息工程研究所 A kind of proprietary protocol method of testing of the satellite communication network based on magnanimity terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董晓慧 ; 李春琳 ; 王建林 ; .基于构件的网络ERP系统框架研究.CAD/CAM与制造业信息化.2009,(04),全文. *

Also Published As

Publication number Publication date
CN113556269A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN109118347B (en) Automatic cooperation method and system
CN105335293B (en) A kind of automatization test system and method based on interface concurrent
US20050283414A1 (en) Remote system management
CN106933729A (en) A kind of method of testing and system based on cloud platform
CN110908875B (en) Inspection method and device based on operation terminal
CN102693183A (en) Method and system for realizing automatic software testing
CN104424095A (en) Automatic testing method and system of mobile terminal
CN110990228A (en) Data interface monitoring method and device
CA2578390A1 (en) Method and system for managing mobile applications
CN103544095A (en) Server program monitoring method and system of server program
US20130198333A1 (en) Method and device for recording and reproducing web operation
CN113626002A (en) Service execution method and device
CN111245671B (en) Automatic integrated test system for ground test of satellite laser communication terminal
CN114465867B (en) Maintenance method and device of server, storage medium and processor
CN111324480A (en) Large host transaction fault positioning system and method
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN113946328A (en) Service processing method and system, storage medium and electronic equipment
CN113360413A (en) Code testing method and device
CN113556269B (en) SAP client performance test method, system, electronic equipment and storage medium
CN116634100B (en) Information interaction method and system based on IPC
CN111258893A (en) Mobile terminal application automatic testing device for randomly assembling transaction path
CN113348778B (en) Generalized satellite comprehensive test system based on DDS system
CN114092169A (en) Ordering test method and system and equipment for executing ordering test method
CN110427260B (en) Host job scheduling method, device and system
CN117349153A (en) Data recording and playback platform, method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant