CN108491329A - A kind of performance test methods and testing tool of SSR clients - Google Patents

A kind of performance test methods and testing tool of SSR clients Download PDF

Info

Publication number
CN108491329A
CN108491329A CN201810280290.8A CN201810280290A CN108491329A CN 108491329 A CN108491329 A CN 108491329A CN 201810280290 A CN201810280290 A CN 201810280290A CN 108491329 A CN108491329 A CN 108491329A
Authority
CN
China
Prior art keywords
xml file
ssr
test
clients
window
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
CN201810280290.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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810280290.8A priority Critical patent/CN108491329A/en
Publication of CN108491329A publication Critical patent/CN108491329A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the invention discloses a kind of performance test methods and testing tool of SSR clients, test method includes instantiation window class object, and the execution parameter of configuration testing, forms XML file in the window;The XML file is loaded and parsed, test thread is created, print structure information simultaneously generates test report.The process that the present invention tests SSR client performances need not rely on centralized management platform can complete independently, accelerate SSR products research and development progress, improve efficiency of research and development.

Description

A kind of performance test methods and testing tool of SSR clients
Technical field
The present invention relates to operating system security technical field, specifically a kind of performance test methods of SSR clients And testing tool.
Background technology
SSR (system security reinforcement, operating system security enhance system) client is as SSR The important component of product plays a crucial role the security monitoring of operating system.SSR products include centralized management Platform and SSR client two parts, centralized management platform belong to management end, and SSR clients input background server, each to concentrate The registrable multiple SSR clients of management platform.In the R&D process of SSR products, to test the entirety of SSR clients comprehensively Performance needs to rely on the instruction that concentrate tube platform issues for it.
Based on existing research and development situation, centralized management platform belongs to different team collaborations from SSR clients and develops, and develops Language is different, and centralized management platform uses Java language, and SSR clients use c++ language.Need the two in research and development to centainly Stage can just concentrate the test for carrying out SSR client performances, cause not knowing SSR client in time during concurrent development Performance is held, research and development time and cost are extended.
Invention content
A kind of performance test methods and testing tool of SSR clients are provided in the embodiment of the present invention, it is existing to solve Technology can not know SSR client performances in time in SSR product concurrent developments, extend asking for research and development time and cost Topic.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
First aspect present invention provides a kind of performance test methods of SSR clients, includes the following steps:
Window class object is instantiated, in the window the execution parameter of configuration testing, forms XML file;
The XML file is loaded and parsed, test thread is created, print structure information simultaneously generates test report.
With reference to first aspect, in first aspect in the first possible realization method, the execution parameter of the test includes Test name, test execution number and time-out time.
With reference to first aspect, in second of possible realization method of first aspect, the XML file is one or more, Before loading the XML file, the XML file that needs load is checked.
With reference to first aspect, in second of possible realization method of first aspect, if XML file parsing failure, beats It misprints false information, reconfigures the execution parameter of test, and the XML file newly formed is loaded and parsed.
With reference to first aspect, in first aspect in the third possible realization method, the structural information includes system CPU The consumption figures of the consumption figures of occupancy, memory, the memory includes the peak value and mean value of memory consumption.
Second aspect of the present invention provides a kind of performance testing tool of SSR clients, and the testing tool includes
Communication module is communicatively coupled by interprocess communication and the SSR clients in operating system;
XML assists configuration module, and for providing window type input, the execution parameter of configuration testing generates XML file;
Configuration processing module creates test thread according to XML file, executes system for obtaining and loading the XML file The performance test of system;
Logging modle, for showing the structural information tested and generating test report.
In conjunction with second aspect, in second aspect in the first possible realization method, the SSR clients include business mould Block and basic platform, the basic platform include network communication unit, the performance testing tool by communication module with it is described Network communication unit carries out process communication.
In conjunction with second aspect, in second aspect in the first possible realization method, the XML auxiliary configuration module includes
Window creation unit creates window type input for instantiating window class object;
Edit cell, the execution parameter for the configuration testing in the window of establishment;
XML file generation unit generates XML file according to the execution parameter of configuration, and the XML file is 1 or more It is a.
In conjunction with second aspect, in second aspect second in possible realization method, the configuration processing module includes
Order line administrative unit is used for the order of input processing XML file;
Command process unit includes checking, load and parsing to XML file for handling XML file;
Test cell for creating test thread, and records the test data of each thread.
The performance testing tool of the SSR clients of second aspect of the present invention can realize first aspect and first aspect Each realization method in method, and obtain identical effect.
The effect provided in invention content is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution has the following advantages that or advantageous effect:
1, it by instantiating window class object, is configured using window interface and executes parameter, and form XML file, operated Simple, intuitive, those of ordinary skill can configure, and save manpower;Test report is formed to test result, is realized to SSR visitors The monitoring of family end performance state variation reports that interior data provide data supporting for the optimization of client framework, and entirely to SSR visitors The process of family end performance test need not rely on centralized management platform can complete independently, accelerate SSR products research and development progress, carry High efficiency of research and development.
2, time-out time input frame is set in window interface, prevents some characteristic in test process from not returning to processing knot slowly Fruit leads to pressure test congestion situations always, improves testing efficiency.
3, one or more XML files are set, one or more test items are set in each XML file, realize XML texts The flexible configuration of part meets different testing requirements, expands the application range of the present invention.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is the flow diagram of test method of the present invention;
Fig. 2 is the flow diagram of step S2 in test method of the present invention;
Fig. 3 is the structural schematic diagram of testing tool of the present invention and SSR clients;
Fig. 4 is the structural schematic diagram of testing tool of the present invention.
Specific implementation mode
In order to clarify the technical characteristics of the invention, below by specific implementation mode, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, the method being tested for the property to SSR clients includes the following steps:
S1 instantiates window class object, in the window the execution parameter of configuration testing, forms XML file;
S2 loads and parses the XML file, creates test thread, and print structure information simultaneously generates test report.
In step S1, instantiation window class object is realized using the new functions of C# language, such as Form2f2=new Form2 ();By calling class members's function show come display window, such as f2.show ().The execution parameter configured in the window includes surveying Try title, test execution number and time-out time, corresponding XML file is automatically formed after being provided with.
When configuration executes parameter, according to testing requirement, different test names can be can configure in a window, it is corresponding Different test features also can only configure a test feature.
As shown in Fig. 2, executing cmd_ctl programs, display command row administration interface inputs list in order line administration interface Order, checks the XML file that can be loaded, according to testing requirement, the XML file of selection test needs.Input load orders, load And parse the XML file that test needs, judge XML file whether successfully resolved, if successfully resolved, print error message, and The execution parameter for reconfiguring test is loaded and is parsed to the XML file newly formed;If successfully resolved, according to XML texts Three test threads of content creating of part, and the handling result of each test thread is counted, after client main program end of run, Simultaneously interrecord structure message is printed, test report is formed.
The test thread of establishment is respectively to send thread, receiving thread and monitoring thread, and record is sent out respectively in test process The sending time of every message of line sending journey, every message of receiving thread receive the time and monitoring thread is printed and is recorded The data such as the consumption figures of CPU usage and memory.
API (Application that offer in the calling libraries BOOST (libraries c++ of increasing income) is passed through to the parsing of XML file Programming Interface, application programming interface) it realizes, whether judge in XML file comprising being held needed for test Row parameter.The configuration messages of record include CPU usage, the extreme value of memory consumption, the executive condition of mean value and SSR clients. The executive condition of wherein SSR clients includes the item number of reception/processing business, failure/successful record and handling duration.Test The flowing water information in test process, including test name, test time started, the title of input order, order are recorded in report Execute the time, order executive condition etc..
As shown in figure 3, performance testing tool includes communication module, XML auxiliary configuration module, configuration processing module and record Module.Communication module is communicatively coupled by interprocess communication and the SSR clients in operating system, by json language with SSR clients carry out interprocess communication;XML auxiliary configuration modules are inputted for providing window type, the execution parameter of configuration testing, Generate XML file;Configuration processing module creates test thread for obtaining and loading the XML file, according to XML file, holds The performance test of row system;Logging modle is used to show the structural information of test and generates test report.
SSR clients include business module and basic platform, and business module is for the protection and control to operating system security System, including NS software unit, movable storage device control unit, HIPS (host based intrusion Prevention system, the Intrusion Prevention System of Intrusion Detection based on host) unit and baseline (security baseline) unit.Basis is flat Platform for realizing with centralized management platform communication and to the task management of operating system, including network communication unit, task into It spends detection unit, share timing unit and log management unit.
As shown in figure 4, XML auxiliary configuration modules include window creation unit, edit cell and XML file generation unit. Window creation unit creates window type input for instantiating window class object;Edit cell in the window of establishment for matching Set the execution parameter of test;XML file generation unit generates XML file according to the execution parameter of configuration, and the XML file is 1 It is a or multiple.
Configuration processing module includes order line administrative unit, command process unit and test cell.Order line administrative unit Order for input processing XML file;Command process unit for handling XML file, include to XML file check plus It carries and parses;Test cell records the test data of each thread for creating test thread.
The above is the preferred embodiment of the present invention, for those skilled in the art, Without departing from the principles of the invention, several improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection domain.

Claims (9)

1. a kind of performance test methods of SSR clients, it is characterized in that:Include the following steps:
Window class object is instantiated, in the window the execution parameter of configuration testing, forms XML file;
The XML file is loaded and parsed, test thread is created, print structure information simultaneously generates test report.
2. a kind of performance test methods of SSR clients according to claim 1, it is characterized in that:The execution of the test Parameter include test name, test execution number and time-out time.
3. a kind of performance test methods of SSR clients according to claim 1, it is characterized in that:The XML file is 1 It is a or multiple, before loading the XML file, check the XML file that needs load.
4. a kind of performance test methods of SSR clients according to claim 3, it is characterized in that:If XML file parsing is lost It loses, then print error message, reconfigures the execution parameter of test, and the XML file newly formed is loaded and parsed.
5. a kind of performance test methods of SSR clients according to claim 1, it is characterized in that:The structural information packet The consumption figures of system CPU occupancy rate, memory is included, the consumption figures of the memory includes the peak value and mean value of memory consumption.
6. a kind of performance testing tool of SSR clients, it is characterized in that:The testing tool includes
Communication module is communicatively coupled by interprocess communication and the SSR clients in operating system;
XML assists configuration module, and for providing window type input, the execution parameter of configuration testing generates XML file;
Configuration processing module creates test thread according to XML file, executes system for obtaining and loading the XML file Performance test;
Logging modle, for showing the structural information tested and generating test report.
7. a kind of performance testing tool of SSR clients according to claim 6, it is characterized in that:The SSR clients packet Business module and basic platform are included, the basic platform includes network communication unit, and the performance testing tool is by communicating mould Block carries out process communication with the network communication unit.
8. a kind of performance testing tool of SSR clients according to claim 7, it is characterized in that:The XML auxiliary configuration Module includes
Window creation unit creates window type input for instantiating window class object;
Edit cell, the execution parameter for the configuration testing in the window of establishment;
XML file generation unit generates XML file according to the execution parameter of configuration, and the XML file is one or more.
9. a kind of performance testing tool of SSR clients according to claim 7, it is characterized in that:The configuration handles mould Block includes
Order line administrative unit is used for the order of input processing XML file;
Command process unit includes checking, load and parsing to XML file for handling XML file;
Test cell for creating test thread, and records the test data of each thread.
CN201810280290.8A 2018-04-02 2018-04-02 A kind of performance test methods and testing tool of SSR clients Pending CN108491329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810280290.8A CN108491329A (en) 2018-04-02 2018-04-02 A kind of performance test methods and testing tool of SSR clients

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810280290.8A CN108491329A (en) 2018-04-02 2018-04-02 A kind of performance test methods and testing tool of SSR clients

Publications (1)

Publication Number Publication Date
CN108491329A true CN108491329A (en) 2018-09-04

Family

ID=63317410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810280290.8A Pending CN108491329A (en) 2018-04-02 2018-04-02 A kind of performance test methods and testing tool of SSR clients

Country Status (1)

Country Link
CN (1) CN108491329A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240932A (en) * 2018-09-21 2019-01-18 郑州云海信息技术有限公司 A kind of test method, device and the equipment of unified storage management software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555014A (en) * 2003-12-26 2004-12-15 中兴通讯股份有限公司 Human-machine order testing method
CN102355384A (en) * 2011-10-13 2012-02-15 纳龙(苏州)信息技术有限公司 Communication standard of automated testing for monitoring system
CN105139892A (en) * 2015-09-23 2015-12-09 浪潮(北京)电子信息产业有限公司 Data driving test method and system applied to storage product
CN106874202A (en) * 2017-02-14 2017-06-20 网易无尾熊(杭州)科技有限公司 Method, device and readable storage medium storing program for executing for unit testing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555014A (en) * 2003-12-26 2004-12-15 中兴通讯股份有限公司 Human-machine order testing method
CN102355384A (en) * 2011-10-13 2012-02-15 纳龙(苏州)信息技术有限公司 Communication standard of automated testing for monitoring system
CN105139892A (en) * 2015-09-23 2015-12-09 浪潮(北京)电子信息产业有限公司 Data driving test method and system applied to storage product
CN106874202A (en) * 2017-02-14 2017-06-20 网易无尾熊(杭州)科技有限公司 Method, device and readable storage medium storing program for executing for unit testing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240932A (en) * 2018-09-21 2019-01-18 郑州云海信息技术有限公司 A kind of test method, device and the equipment of unified storage management software

Similar Documents

Publication Publication Date Title
CN107562635B (en) Embedded software test auxiliary system
US8893087B2 (en) Automating functionality test cases
US11176030B2 (en) Conducting automated software testing using centralized controller and distributed test host servers
US7130881B2 (en) Remote execution model for distributed application launch and control
US8234633B2 (en) Incident simulation support environment and business objects associated with the incident
EP2251787B1 (en) Network adapater framework (NAF)
US10223248B2 (en) Conducting automated software testing using centralized controller and distributed test host servers
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
US7827273B2 (en) Machine cluster topology representation for automated testing
US10644973B2 (en) Monitoring of availability data for system management environments
US20200117587A1 (en) Log File Analysis
CN111355622A (en) Container traffic monitoring method, system and computer readable storage medium
CN109800081A (en) A kind of management method and relevant device of big data task
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN115907683A (en) Realization system and method of workflow engine based on financial product management
US8271407B2 (en) Method and monitoring system for the rule-based monitoring of a service-oriented architecture
CN108491329A (en) A kind of performance test methods and testing tool of SSR clients
US20180006902A1 (en) Network workflow replay tool
CN106897060A (en) Based on patterned data processing method and device
US8027362B2 (en) Methods and systems for pushing and pulling network data in user interface design
CN115052054B (en) Communication message configuration method, device, readable storage medium and equipment
US20030115252A1 (en) Methods to develop remote applications with built in feedback ability for use in a distributed test framework
US7231437B2 (en) Task submission systems and methods for a distributed test framework
CN110618943A (en) Security service test method and device, electronic equipment and readable storage medium
Shenoy et al. A multi-dimensional testing approach for an ESB

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180904

RJ01 Rejection of invention patent application after publication