CN106445761A - Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol - Google Patents

Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol Download PDF

Info

Publication number
CN106445761A
CN106445761A CN201610993815.3A CN201610993815A CN106445761A CN 106445761 A CN106445761 A CN 106445761A CN 201610993815 A CN201610993815 A CN 201610993815A CN 106445761 A CN106445761 A CN 106445761A
Authority
CN
China
Prior art keywords
cpu
information
module
time
internal memory
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
CN201610993815.3A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610993815.3A priority Critical patent/CN106445761A/en
Publication of CN106445761A publication Critical patent/CN106445761A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The invention belongs to the field of test of electronic devices, and provides a test method and a system for regularly recording a CPU and a memory based on an SSH (Secure Shell) protocol. The test method comprises the following steps: establishing a recording file for recording the current time, memory information and CPU information of a to-be-tested device; setting a cycle value i for limiting the maximum number of cycles; recording the current time in the recording file; logging in the to-be-tested device through the SSH protocol; exporting remaining memory information and CPU using information of the to-be-tested device, and recording the remaining memory information and the CPU using information into the recording file so as to correspond the remaining memory information and the CPU using information to the current time one by one; saving the recording file and waiting; judging whether the current number of cycles exceeds the cycle value i, and if the current number of cycles exceeds the cycle value i, ending; if the current number of cycles does not exceed the cycle value i, circulating the former steps. The test method and the system have the advantages as follows: test steps are simplified, the test accuracy is improved, the test cost is reduced and the like.

Description

Method of testing based on SSH agreement time recording CPU and internal memory and system
Technical field
The invention belongs to the field tests of electronic installation, it is related to a kind of survey based on SSH agreement time recording CPU and internal memory Method for testing and system.
Background technology
With the continuous development of IT art, conventional informationization service and increasingly powerful cloud computing service pair The stability requirement more and more higher of WIFI product.It is right that a WIFI product is either required in development or production phase Product carries out system pressure test, thus the stability of this product of strict guarantee.CPU, the stability of internal memory are the most important thing, with Toward the many stability to test CPU, internal memory using full load pressure, load during its real user's practical application is often repeatedly high Low change, meet the diversified demand of different user it is ensured that the stable, reliable of various applied environment is that we have to accomplish 's.
Wherein, stress test is to ensure that the important test job of software quality, in software resource requirement(Internal memory, CPU etc.) Carry out test job, the method for testing of existing CPU and internal memory is all for manually recorded, and tester is to be measured under conditions of scarcity Device carries out stress test and starts, and records current time in Excel, and then under test system serial ports, input free orders manually Order, then observes free memory and is manually recorded in Excel, then inputs top order again in serial ports, then observes CPU's Service condition and manually recorded to Excel, wait 15 minutes, tester repeats operation above, the shortcoming of this mode It is:Test is loaded down with trivial details, and tester need to continuously repeat operation, and false failure rate is high, and manual test can not be carried out for 72 hours, expends tester Member's time, affect testing progress.
Also the method having exploitation automatic pressure test in prior art, such as Chinese patent literature [publication number 104375914A] A kind of disclosed server internal pressure change automatic test approach, the method is mainly automatic by SHELL script herein The special translation and compiling environment of Itanium platform being installed, testing tool automatically being installed according to system information although removing artificial installation from simultaneously Operational error, and carry out CPU, internal memory load change test, simulate the application scenarios of client.
Though above-mentioned art solutions have its advantage, this patent method of testing is mainly used for relatively large service Device product and be for specific system, the suitability is narrower, and is not suitable for some small-sized WIFI products, and entirely surveys Method for testing is complicated, and test period is longer, and whole testing cost is higher.
Content of the invention
The technical problem to be solved is the present situation for prior art, and provides a kind of SSH agreement that is based on to determine The method of testing of Shi Jilu CPU and internal memory and system, make CPU, internal memory can follow for a long time by this method of testing and system simultaneously Ring under different loads, reaches CPU, memory subsystem stability test purpose, simplifies testing procedure, improves test accuracy, Mitigate tester's workload, shorten test period, reduce testing cost.
The present invention solves the technical scheme that adopted of above-mentioned technical problem:
A kind of method of testing based on SSH agreement time recording CPU and internal memory, it comprises the following steps:
S1, establishment one log file, for recording current time, internal memory and the CPU information of test system;
S2, one cycle values i of setting, for limiting maximum cycle;
S3, derivation current time, record current time in described log file;
S4, pass through test system described in SSH protocol entry;
S5, the free memory information deriving this test system and CPU use information, described free memory information and CPU are used Information record, in described log file, makes a pair of described free memory information and CPU use information and described current time 1 Should;
S6, the described log file of preservation are simultaneously waited;
S7, judge that whether current cycle time exceeds described cycle values i, beyond then terminating;Without departing from then circulation step S3-S6 Step.
The measure taken for optimizing such scheme specifically includes:
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, described step S1 specially calls the xlwt.Workbook order in xlwt module to create a log file, calls book.add_sheet Order creates a worksheet in this log file.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, step S3 Specially call time.strftime order in time module to derive current time, call sheet.write by current time Write worksheet carries out recording current time.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, step S3 When carrying out recording current time, current time is write the i-th row first row of worksheet.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, described Step S4 specially calls the client.connect order in paramiko module to pass through SSH protocol entry test system.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, described Step S5 is specially:Call the client.exec_command in paramiko module and input order free order derivation and treat Survey device memory information, by cyclical function, test system memory information is exported line by line and mated the residue of needs line by line Memory information.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, described Step S5 is to call sheet.write that free memory information is write the i-th row secondary series of worksheet, calls simultaneously CPU use information is write the i-th row the 3rd row of worksheet by sheet.write.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, described Exec_command input order " top-n1 " that step S5 is also included in call instruction paramiko module enters to test system Performance evaluation of row simultaneously derives test system performance parameter, by cyclical function, performance parameter is exported line by line and carries out Mate the CPU usage information of needs line by line.
Further, in a kind of above-mentioned method of testing based on SSH agreement time recording CPU and internal memory, described Step S6 specially calls book.save specified path keeping records file, calls time.sleep order and waits 15 minutes.
To achieve these goals, another aspect of the present invention also provides and based on SSH agreement time recording CPU and internal memory is System, it includes:
Call unit, described call unit is used for transferring the order in modules;
Xlwt module, described xlwt module is connected with call unit and is used for creating a log file and in this log file Create a worksheet;
Time module, described time module is connected with call unit and is used for deriving current time, and records current time;
Paramiko module, described paramiko module be connected with call unit and be used for deriving test system memory information with And coupling records memory information, paramiko module is used for deriving test system performance parameter and mates and record CPU simultaneously Utilization rate information;
Preserving module, described preserving module is connected with call unit and is used for keeping records file.
A kind of method of testing based on SSH agreement time recording CPU and internal memory and system that the present invention provides, by this Bright method of testing and system, make CPU, internal memory can circulate for a long time under different loads simultaneously, reach CPU, memory subsystem steady Qualitative test purpose, which simplify testing procedure, improves test accuracy, alleviates tester's workload, shortens survey In the examination cycle, reduce testing cost.
Brief description
Fig. 1 is the flow chart of the method for testing based on SSH agreement time recording CPU and internal memory.
Fig. 2 is the system block diagram based on SSH agreement time recording CPU and internal memory.
In figure, call unit 1;Xlwt module 2;Time module 3;Paramiko module 4;Preserving module 5.
Specific embodiment
The following is the preferred embodiments of the present invention and combine accompanying drawing, technical scheme is further described, But the present invention is not limited to these embodiments.
The method of testing based on SSH agreement time recording CPU and internal memory for the present embodiment and system are primarily used to test Internal memory in WIFI product and the pressure condition of CPU usage, in software automated testing work, tester passes through to write Test script controls test process, carries out stress test, as shown in Fig. 2 be based on SSH agreement time recording CPU and internal memory herein System mainly include, including:Call unit 1, xlwt module 2, time module 3, paramiko module 4 and preserving module 5.
Call unit 1 is used for transferring the order in modules herein, and xlwt module 2 is connected with call unit 1 and is used for Create a log file and create worksheet in log file, need exist for explanation is the log file of establishment is really one Individual EXCEL file, the worksheet of establishment is sheet in EXCEL file;Time module 3 is connected with call unit 1 and is used for leading Go out current time, and record current time, paramiko module 4 is connected with call unit 1 and is used for deriving test system internal memory Information and coupling record memory information, and paramiko module 4 is used for deriving test system performance parameter and mates simultaneously simultaneously Record CPU usage information, preserving module 5 is connected with call unit 1 and is used for keeping records file, by time module 3 He Being implemented in combination with current time write log file of xlwt module 2, realizes internal memory by way of being implemented in combination between function In information and CPU usage write log file, realize current time, memory information, CPU usage one-to-one corresponding, by certainly Dynamicization script is realized SSH login test system and is carried out the order control to test system;Realize the real-time preservation of log file.
Automatic test is a kind of process being converted into machine execution with the artificial behavioral test driving.Generally, setting After having counted test case and having passed through evaluation, test is executed step by step by code according to described in test case for the tester, Obtain the comparison of actual result and expected result.
As shown in figure 1, the present embodiment mainly included based on the method for testing of SSH agreement time recording CPU and internal memory following Step:
Step S1, establishment one log file, for recording current time, internal memory and the CPU information of test system.
Specially call the xlwt.Workbook order in xlwt module 2 to create a log file herein, call Book.add_sheet order creates a worksheet in this log file, and xlwt module 2 is write log file herein Expander tool, it is possible to achieve specified list, the write of designating unit lattice, creates worksheet and is mainly used to record follow-up internal memory letter Breath and CPU use information.
Step S2, one cycle values i of setting, for limiting maximum cycle.Herein according to being manually entered expectation script The cycle-index of program, shell script can read the cycle criterion that this numerical value is below and prepare, and main herein pass through circulation Function pair performance parameter is exported line by line and is mated the CPU use information of needs line by line.
Step S3, derivation current time, record current time record current time in described log file.Specifically For calling the time.strftime order in time module 3 to derive current time, sheet.write is called to write current time Enter worksheet to carry out recording current time, when carrying out recording current time, current time is write the i-th row first of worksheet Row, the record CPU being timed here by derivation current time and record current time and the test case of internal memory.
The Main Function of time.strftime order herein may be employed to obtain current time, can be by time format For character string, format command concrete manifestation form is what day writes a Chinese character in simplified form of %a, %A what day full name, divide the %b month write a Chinese character in simplified form, %B The full name in month, the time on the date of %c standard string, the rear two digits in %C time, monthly which of %d decimal representation My god, the %D month/sky/year, %e in two character fields, which sky monthly of decimal representation, %F year-month-day, rear the two of the %g time Bit digital, using based on all years, %G fraction of the year, using the month name write a Chinese character in simplified form based on all years, %h, the hour of %H24 hour, % When the hour of I12 hour, which annual sky of %j decimal representation, the month of %m decimal representation, %M ten, tabulation is shown The display of equal value of local AM or PM of the number of minutes, %n new-line character, %p, the time of %r12 hour, %R display hour and minute:hh: The metric number of seconds of mm, %S, %t horizontal tabulation symbol, %T display Hour Minute Second:hh:mm:Ss, %u which sky weekly, Monday is First day(From 0 to 6, Monday is 0 to value), 1 year which week of %U, Sunday as first day(It is worth from 0 to 53), %V every Year which week, using based on all years, %w decimal representation what day(From 0 to 6, Sunday is 0 to value), %W annual Several weeks, Monday as first day(It is worth from 0 to 53), the date string of %x standard, the time string of %X standard, %y is without century The decimal scale time(It is worth from 0 to 99), ten times processed with century part for the %Y, %Z time zone title, if time zone title can not be obtained Then return NUL, %% percentage sign etc..
Step S4, the safety in order to improve test, pass through SSH protocol entry test system in test.It is specially herein The client.connect order in paramiko module 4 is called to pass through SSH protocol entry test system, paramiko is to use The module that python language is write, it then follows SSH2 agreement, support by encrypt and certification in the way of, carry out the company of remote server Connect, due to using the such language being capable of cross-platform operation of python, so the platform that all python support, such as Linux, Solaris, BSD, MacOS X, Windows etc., paramiko can support, if remote server herein Only one or two is all right, if there are N platform in addition it is also necessary to be configured by platform, or when needing to carry out above operation using code, Method above is just inconvenient, can be very good to solve problem above using paramiko module 4, compared with side above Method, it only needs to install corresponding software on the ground at this(Python and PyCrypto), remote server is configured without will Ask, for connecting multiple servers, the attended operation carrying out complexity is particularly helpful.
In addition, SSH is the abbreviation of Secure Shell, by the network group of IETF herein(Network Working Group)Formulated;SSH is the security protocol set up on the basis of application layer and transport layer.SSH is relatively reliable at present, aims at Telnet session and the agreement of other network services offer safety.Remote management can effectively be prevented using SSH agreement During information leakage problem, herein this method of testing need when carrying out SSH protocol entry to carry out debarkation authentication, Yong Huxu Log-on message to be arranged, wherein, logon information is to inclusion:Username and password to and/or public key and private key equity, Ran Houji In SSH agreement by log-on message to being sent to tested product, then and record test process in implementation procedure and test knot Really, include stating test process herein include but is not limited to:The normal stage tests information, test of abnormal stage information, test Default other test processs to be checked of personnel etc..Test result includes but is not limited to:Successfully tested rate, test whether to lead to Cross, so can be easy to tester and carry out batch testing, without manual operation, thus avoiding what artificial participation was brought The shortcomings of testing efficiency is low, error rate is high, in addition, when the information of test abnormal, stopping test in time, being conducive to tester Member is processed in time;Also have and tested according to default debarkation authentication order, can be consistent with actual operation, be conducive to surveying Test result provides data supporting for true traffic-operating period, and verification process to be tested includes herein:User name cipher authentication is surveyed Examination, then create-rule is the rule generating user name, password according to default user name length and Password Length at random.And for example, Verification process to be tested includes:Key authentication is tested, then create-rule be select default key generator generate public key, The rule of private key, for another example verification process to be tested include:Key authentication test and version authentication test, then create-rule bag Include:Default key generator is selected to generate public key and private key, and the rule of build version number, key generator is mainly Puttygen instrument etc., passes through when being authenticated to analyze form, quantity and the acquired log-on message type of logon information In at least one determining corresponding authentication test program.For example, acquired logon information for text formatting it is determined that institute Corresponding authentication test program is cipher authentication test program.
Step S5, the free memory information deriving this test system and CPU use information, by described free memory information and CPU use information recorded in described log file, makes described free memory information and CPU use information and described current time Correspond.
Specifically call the client.exec_command in paramiko module 4 and input order free order and lead Go out test system memory information, by cyclical function, test system memory information is exported line by line and mated needs line by line Free memory information is write the i-th row secondary series of worksheet by calling sheet.write, herein by free memory information Free order Main Function is with idle in display system, physical memory and swap internal memory, and can be used by kernel Buffer, in the instrument of system monitoring, free order be most frequently with one of order, herein during Memory Allocation Total represents total physical memory size, and used represents allocated size it is noted that any for operating system used Internal memory is all used;Free represents unassigned physical memory size;Shared represents shared drive size, be mainly used in into Communicate between journey, such as Oracle can use the shared drive of upper GB, buffers represents and is mainly used in block device data buffering, example Metadata as log file system(Catalogue, authority etc. information);Cached represent be mainly used in file content buffering etc..
Also include deriving top information herein, mate and record the utilization rate of CPU, the performance that TOP order herein is conventional is divided Analysis instrument, can in real-time display system each process resource occupation situation, TOP is a Dynamic Announce process, you can with Current state is constantly refreshed by user key-press, if executing this order on foreground, it will be exclusive in foreground, until user terminates Till this program. more accurately say, top order provides the Stateful Inspection to system processor in real time, display is by it The task list of CPU " sensitive " in system. this order can be used by CPU. and internal memory is arranged to task using with execution time Sequence;And a lot of characteristics of this order by interactive command or can be set, specifically in personal customization file For exec_command input order " top-n1 " in call instruction paramiko module 4, test system is carried out disposably Can analyze and derive test system performance parameter, by cyclical function, performance parameter be exported line by line and mated line by line The CPU usage information needing, calls sheet.write that CPU use information is write the i-th row the 3rd row of worksheet.
Step S6, keeping records file are simultaneously waited, and specifically, specially call book.save specified path to protect Deposit log file, call time.sleep order and wait 15 minutes, here by internal self-loopa test in 15 minutes, and protect Deposit the information of corresponding memory information and CPU usage, see if fall out cycle values i, beyond then terminating;Without departing from then following Ring step S3-S6 step, mainly passes through book.save specified path keeping records file, cyclical function is to performance parameter herein Exported and mated line by line the CPU use information of needs line by line, by realizing the real-time preservation of log file, simplify and survey Try is rapid, improves test accuracy, mitigates tester's workload, shortens test period, reduces testing cost.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general Computing device realizing, they can concentrate on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored To be executed by computing device in the storage device, or they be fabricated to multiple integrated circuit modules respectively, or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So the present invention be not restricted to any specifically hard Part and software combine.
Compared with prior art, it is an advantage of the current invention that:By time module and xlwt module be implemented in combination with current In time write log file, realize memory information and CPU usage write record by way of being implemented in combination between function In file, realize current time, memory information, CPU usage one-to-one corresponding, SSH login is realized by automatized script to be measured Device carries out the order to test system and controls, and preferably supports the process of stress test, realizes the real-time guarantor of log file Deposit, simplify testing procedure, improve test accuracy, mitigate tester's workload, shorten test period, reduce testing cost.
Described above illustrate and describes several preferred embodiments of the present invention, but as previously mentioned it should be understood that the present invention Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and can be used for various other combinations, Modification and environment, and can be in invention contemplated scope described herein, by technology or the knowledge of above-mentioned teaching or association area It is modified.And the change that those skilled in the art are carried out and change without departing from the spirit and scope of the present invention, then all should be at this In the protection domain of bright claims.

Claims (10)

1. a kind of method of testing based on SSH agreement time recording CPU and internal memory, is characterized in that comprising the following steps:
S1, establishment one log file, for recording current time, internal memory and the CPU information of test system;
S2, one cycle values i of setting, for limiting maximum cycle;
S3, derivation current time, record current time in described log file;
S4, pass through test system described in SSH protocol entry;
S5, the free memory information deriving this test system and CPU use information, described free memory information and CPU are used Information record, in described log file, makes a pair of described free memory information and CPU use information and described current time 1 Should;
S6, the described log file of preservation are simultaneously waited;
S7, judge that whether current cycle time exceeds described cycle values i, beyond then terminating;Without departing from then circulation step S3-S6 Step.
2. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 1 is it is characterised in that walk Rapid S1 is specially:Call the xlwt.Workbook order in xlwt module to create a log file, call book.add_ Sheet order creates a worksheet in this log file.
3. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 1 is it is characterised in that walk Rapid S3 specially calls the time.strftime order in time module to derive current time, calls sheet.write current Time write worksheet carries out recording current time.
4. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 3 is it is characterised in that walk Current time is write the i-th row first row of worksheet by rapid S3 when carrying out recording current time.
5. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 1 is it is characterised in that walk Rapid S4 specially calls the client.connect order in paramiko module to pass through SSH protocol entry test system.
6. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 1 is it is characterised in that walk Rapid S5 is specially:Call the client.exec_command in paramiko module and input order free order derive to be measured Test system memory information is exported and is mated line by line the remaining interior of needs line by line by device memory information by cyclical function Deposit information.
7. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 6 is it is characterised in that walk Rapid S5 is to call sheet.write that free memory information is write the i-th row secondary series of worksheet, calls simultaneously CPU use information is write the i-th row the 3rd row of worksheet by sheet.write.
8. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 1 is it is characterised in that walk Exec_command input order " top-n1 " that rapid S5 is also included in call instruction paramiko module is carried out to test system Performance evaluation simultaneously derives test system performance parameter, by cyclical function, performance parameter is exported line by line and is carried out by The CPU usage information that row coupling needs.
9. the method for testing based on SSH agreement time recording CPU and internal memory according to claim 8 is it is characterised in that walk Rapid S6 specially calls book.save specified path keeping records file, calls time.sleep order and waits 15 minutes.
10. a kind of system based on SSH agreement time recording CPU and internal memory is it is characterised in that include:
Call unit, described call unit is used for transferring the order in modules;
Xlwt module, described xlwt module is connected with call unit and is used for creating a log file and in this log file Create a worksheet;
Time module, described time module is connected with call unit and is used for deriving current time, and records current time;
Paramiko module, described paramiko module be connected with call unit and be used for deriving test system memory information with And coupling records memory information, paramiko module is used for deriving test system performance parameter and mates and record CPU simultaneously Utilization rate information;
Preserving module, described preserving module is connected with call unit and is used for keeping records file.
CN201610993815.3A 2016-11-09 2016-11-09 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol Pending CN106445761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610993815.3A CN106445761A (en) 2016-11-09 2016-11-09 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610993815.3A CN106445761A (en) 2016-11-09 2016-11-09 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol

Publications (1)

Publication Number Publication Date
CN106445761A true CN106445761A (en) 2017-02-22

Family

ID=58207352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610993815.3A Pending CN106445761A (en) 2016-11-09 2016-11-09 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol

Country Status (1)

Country Link
CN (1) CN106445761A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763042A (en) * 2018-05-24 2018-11-06 广东睿江云计算股份有限公司 A kind of Cloud Server performance data acquisition method and device based on python
CN108923997A (en) * 2018-05-24 2018-11-30 广东睿江云计算股份有限公司 A kind of cloud service node automatic test approach and device based on python
CN110427528A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 SSD identifier test method, device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464822A (en) * 2007-12-21 2009-06-24 中兴通讯股份有限公司 Test method for CPU timer accuracy
CN102708049A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for recording and replaying test results of mobile application
CN104182288A (en) * 2014-08-18 2014-12-03 浪潮电子信息产业股份有限公司 Method for automatically testing power consumption of server cluster system
CN104199771A (en) * 2014-09-02 2014-12-10 福州瑞芯微电子有限公司 Central processing unit performance testing method and system
CN104375914A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automatic testing method for internal pressure changes of server
CN104932964A (en) * 2014-03-17 2015-09-23 无锡天脉聚源传媒科技有限公司 Monitoring processing method and apparatus of computer functional programs
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 PTU (Parallel Transmission Unit) tool based CPU (Central Processing Unit) and memory pressure change test method
CN105159817A (en) * 2015-08-31 2015-12-16 湖北三江航天红峰控制有限公司 Log file processing system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464822A (en) * 2007-12-21 2009-06-24 中兴通讯股份有限公司 Test method for CPU timer accuracy
CN102708049A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Method and system for recording and replaying test results of mobile application
CN104932964A (en) * 2014-03-17 2015-09-23 无锡天脉聚源传媒科技有限公司 Monitoring processing method and apparatus of computer functional programs
CN104182288A (en) * 2014-08-18 2014-12-03 浪潮电子信息产业股份有限公司 Method for automatically testing power consumption of server cluster system
CN104199771A (en) * 2014-09-02 2014-12-10 福州瑞芯微电子有限公司 Central processing unit performance testing method and system
CN104375914A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automatic testing method for internal pressure changes of server
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 PTU (Parallel Transmission Unit) tool based CPU (Central Processing Unit) and memory pressure change test method
CN105159817A (en) * 2015-08-31 2015-12-16 湖北三江航天红峰控制有限公司 Log file processing system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763042A (en) * 2018-05-24 2018-11-06 广东睿江云计算股份有限公司 A kind of Cloud Server performance data acquisition method and device based on python
CN108923997A (en) * 2018-05-24 2018-11-30 广东睿江云计算股份有限公司 A kind of cloud service node automatic test approach and device based on python
CN108923997B (en) * 2018-05-24 2021-07-20 广东睿江云计算股份有限公司 Cloud service node automatic testing method and device based on python
CN110427528A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 SSD identifier test method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10678683B2 (en) System and method for automated service layer testing and regression
US10951740B2 (en) System and method for testing applications with a load tester and testing translator
US10120783B2 (en) Determining test case efficiency
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
EP2615555A1 (en) Framework for automated testing of mobile apps
US10320828B1 (en) Evaluation of security in a cyber simulator
CN106445761A (en) Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
US10528456B2 (en) Determining idle testing periods
CN102946334A (en) Method and system for acquiring valid image verification code
CN110134612A (en) UI test data generating method, device, equipment and readable storage medium storing program for executing
GB2524737A (en) A system and method for testing a workflow
CN106384399A (en) IOT (Internet of Things)-office-oriented network attendance method
CN107770151A (en) A kind of enterprise's integrated work management system and its method
US20150095078A1 (en) Resource scheduling based on historical success rate
US10304349B1 (en) Test environment
US11442102B2 (en) Test and measurement system for parallel waveform analysis
CN110033242B (en) Working time determining method, device, equipment and medium
US9729619B2 (en) Information processing system, processing apparatus, and distributed processing method
US11921612B2 (en) Identification of computer performance anomalies based on computer key performance indicators
CN112306857A (en) Method and apparatus for testing applications
US9176797B1 (en) Workflow processing and methods for auditing and playback of data
CN114185871A (en) Data migration method, data migration device, medium, and electronic device
CN113535574A (en) Automatic generation method, device, equipment and medium for test user data
Lochmann et al. Reproducible load tests for android systems with trace-based benchmarks
Huff et al. Cyber Arena: An Open-Source Solution for Scalable Cybersecurity Labs in the Cloud

Legal Events

Date Code Title Description
C06 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222