CN103412815A - RMC software automated testing method mainly based on expect tool - Google Patents

RMC software automated testing method mainly based on expect tool Download PDF

Info

Publication number
CN103412815A
CN103412815A CN2013103467425A CN201310346742A CN103412815A CN 103412815 A CN103412815 A CN 103412815A CN 2013103467425 A CN2013103467425 A CN 2013103467425A CN 201310346742 A CN201310346742 A CN 201310346742A CN 103412815 A CN103412815 A CN 103412815A
Authority
CN
China
Prior art keywords
rmc
expect
host
test
mainly based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013103467425A
Other languages
Chinese (zh)
Other versions
CN103412815B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201310346742.5A priority Critical patent/CN103412815B/en
Publication of CN103412815A publication Critical patent/CN103412815A/en
Application granted granted Critical
Publication of CN103412815B publication Critical patent/CN103412815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a RMC software automated testing method mainly based on an expect tool. The method comprises the particular steps of 1, setting up a HOST server, and mounting a Linux system; connecting the HOST to a RMC network of a computer cabinet through a network; setting the network to link the HOST and the RMC and recording the RMCIP address; 2, running an automated testing script: creating a configuration file, saving set values of RMC related items in the file, logging in the RMC from the HOST through expect, performing crawling processing on RMC related information, saving the information in a temporary file, reading the set values of the RMC related items from the file through a text editing tool, and comparing the set values with values in the configuration file to obtain testing results. According to the method, RMC software testing processes are greatly simplified, and labor investment is reduced.

Description

A kind of mainly based on the method for the automatic test of the RMC software of expect instrument
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of method of automatic test of RMC software.
Background technology
Along with the development of IT field technology, the update time of technology is shorter and shorter.The cycle of product development is also shorter and shorter.In product development, the importance of test is more and more paid attention to.But because traditional test needs a large amount of human inputs, this has no small challenge to a lot of companies, particularly some small and medium size companies.This time, seem especially important of the robotization of test.
RMC is the administration module that belongs to the rack on the scorpio project, and the scorpio project is a whole set of complete machine cabinet server solution participated in by Alibaba, Baidu, the tripartite of Tengxun cooperation promotion, numerous manufacturer server.Intel serves as this project consultant.This project will be devoted to the technical development of propulsion data center architecture, and formulate open industry standard.The scorpio project is intended to jointly promote the application of industry cooperation, re-invent industry and new technology, promotes industry and unifies complete machine cabinet server standard, promotes the supporting and large-scale production of industrial chain, continues to cut operating costs, improves server disposition speed and O&M efficiency.
The main two parts of RMC form, RMC management mainboard and RMC management software.The RMC management software is mainly followed " rack administrative unit RMC CLI standard Version 1.0 ", wherein RMC CLI definition defines with reference to SMASH SM_CLP standard, and concrete reference model is " Modular System Profile " (list of references: DSP1008) of SM_CLP.As shown in Figure 2, adopt the tree structure definition of SM_CLP, be convenient to flexible expansion.
Summary of the invention
Technical matters to be solved by this invention is to reduce manual intervention, and the input of saving manpower, improve the speed of test.
Whole test process mainly is based on network to the operation of HOST end to the RMC unit, mainly based on the expect instrument, realizes the automated execution of testing procedure, automatic preservation and the processing of test result.
Wherein, Expect is a free programming tool language, is used for realizing that automatic and interactive task communicates, and without people's intervention.Use it can create script and be used for realizing providing input to order or program, and these orders and program are to expect to be inputted from terminal (terminal), in general these inputs all need manual input to carry out.The input that Expect can offer program according to the prompting mock standard input of program to be needed realizes the interactive program execution.
Expect script by a series of expect-send to forming: expect waits for the specific character of output in output, and normally a prompt, then send specific response.
The technical solution used in the present invention is: a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, concrete steps are as follows:
1, build test environment:
A. build HOST end server, linux system is installed;
B. building HOST is connected on the RMC network of rack by network;
C., network is set, makes the two UNICOM and record RMC IP address;
2, operation automatic test script:
At first create a configuration file, the continuous item settings of RMC are saved in this document, then by expect, login RMC above and the RMC relevant information is all captured to processing from HOST, be saved in temporary file.Finally, by settings and value in the configuration file contrast of the text edit tool from reading out the RMC continuous item this document, draw test result.
Described the text edit tool is awk, sed, the small routine of grep or oneself compiling.
Below the test of various functions:
A. heat sinking function test
This process is mainly logined RMC by expect from HOST and above heat radiation is done to relevant the setting, and records RMC daily record and rotation speed of the fan.According to different dutycycles, rotation speed of the fan should be inconsistent.Thereby judging whether this partial function is tested passes through.
B. power supply function test
Whether this process is mainly logined RMC by expect from HOST and above power supply is done to different settings, pass through according to power supply status and RMC daily record judgement test
C. node administration functional test
This process logins from HOST by expect mainly that RMC is upper does following test to node: change IP arranges, and the open and close node is opened node UID etc. and preserved RMC daily record and node state.According to RMC daily record and node state, judge whether test is passed through.
D. RMC management function test
This process is mainly logined RMC by expect from HOST and above the parameter under RMC system is done relevant setting and judged test result according to the state after arranging.
E. user test
This process is mainly carried out different users by expect from HOST and is signed in to RMC and carry out related command and whether test the function of different user as Product Definition.
F. all the other functional tests
This process is mainly carried out related command by expect and linux script from HOST and is tested the function do not covered by above content RMC.
The invention has the beneficial effects as follows: the test process of RMC software has been simplified in the use of this method greatly, has reduced the input of manpower.The method, in the application of product development process, really embodies the robotization of test, has embodied the advantage of IT technology.This method also has special reference significance for the test of other products.
The accompanying drawing explanation
Figure 1 shows that whole test structure schematic diagram;
Figure 2 shows that the structural representation figure of RMC CLI.
Embodiment
To of the present invention a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, concrete steps are as follows below in conjunction with the drawings and specific embodiments:
1, build test environment:
A. build HOST end server, linux system is installed;
B. building HOST is connected on the RMC network of rack by network;
C., network is set, makes the two UNICOM and record RMC IP address;
2, operation automatic test script:
At first create a configuration file, the continuous item settings of RMC are saved in this document, then by expect, login RMC above and the RMC relevant information is all captured to processing from HOST, be saved in temporary file.Finally, by settings and value in the configuration file contrast of the text edit tool (awk, sed, the small routine of grep or oneself compiling) from reading out the RMC continuous item this document, draw test result.
Below the test of various functions:
A. heat sinking function test
This process is mainly logined RMC by expect from HOST and above heat radiation is done to relevant the setting, and records RMC daily record and rotation speed of the fan.According to different dutycycles, rotation speed of the fan should be inconsistent.Thereby judging whether this partial function is tested passes through.
B. power supply function test
Whether this process is mainly logined RMC by expect from HOST and above power supply is done to different settings, pass through according to power supply status and RMC daily record judgement test
C. node administration functional test
This process logins from HOST by expect mainly that RMC is upper does following test to node: change IP arranges, and the open and close node is opened node UID etc. and preserved RMC daily record and node state.According to RMC daily record and node state, judge whether test is passed through.
The test of d.RMC management function
This process is mainly logined RMC by expect from HOST and above the parameter under RMC system is done relevant setting and judged test result according to the state after arranging.
E. user test
This process is mainly carried out different users by expect from HOST and is signed in to RMC and carry out related command and whether test the function of different user as Product Definition.
F. all the other functional tests
This process is mainly carried out related command by expect and linux script from HOST and is tested the function do not covered by above content RMC.

Claims (7)

1. one kind mainly based on the method for the automatic test of the RMC software of expect instrument, and it is characterized in that: described method concrete steps are as follows:
Build test environment:
Build HOST end server, linux system is installed;
Building HOST is connected on the RMC network of rack by network;
Network is set, makes the two UNICOM and record RMC IP address;
The operation automatic test script:
At first create a configuration file, the continuous item settings of RMC are saved in this document, then by expect, login RMC above and the RMC relevant information is all captured to processing from HOST, be saved in temporary file, finally, by settings and value in the configuration file contrast of the text edit tool from reading out the RMC continuous item this document, draw test result.
2. according to claim 1 a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, it is characterized in that: described the text edit tool is awk, sed, the small routine of grep or oneself compiling.
3. according to claim 1 and 2 a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, it is characterized in that: by expect, login RMC from HOST and above heat radiation is done to relevant the setting, and record RMC daily record and rotation speed of the fan, according to different dutycycles, the change of rotation speed of the fan, judging whether heat sinking function is tested passes through.
4. according to claim 1 and 2 a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, it is characterized in that: by expect, login RMC from HOST and above power supply is done to different settings, judge that according to power supply status and RMC daily record whether power supply function is by test.
5. according to claim 1 and 2 a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, it is characterized in that: by expect, login RMC from HOST and above node is done to following test: change IP arranges, the open and close node, open node UID and preserve RMC daily record and node state, come the test of decision node management function whether to pass through according to RMC daily record and node state.
6. according to claim 1 and 2 a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, it is characterized in that: login from HOST by expect that RMC is upper does relevant arrange and according to the judgement of the state after arranging RMC management function test result to the parameter under RMC system.
7. according to claim 1 and 2 a kind of mainly based on the method for the automatic test of the RMC software of expect instrument, it is characterized in that: by expect, carry out different users from HOST and sign in to RMC and carry out related command and whether test the function of different user as Product Definition.
CN201310346742.5A 2013-08-12 2013-08-12 RMC software automated testing method mainly based on expect tool Active CN103412815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310346742.5A CN103412815B (en) 2013-08-12 2013-08-12 RMC software automated testing method mainly based on expect tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310346742.5A CN103412815B (en) 2013-08-12 2013-08-12 RMC software automated testing method mainly based on expect tool

Publications (2)

Publication Number Publication Date
CN103412815A true CN103412815A (en) 2013-11-27
CN103412815B CN103412815B (en) 2017-02-08

Family

ID=49605828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310346742.5A Active CN103412815B (en) 2013-08-12 2013-08-12 RMC software automated testing method mainly based on expect tool

Country Status (1)

Country Link
CN (1) CN103412815B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970655A (en) * 2014-05-08 2014-08-06 浪潮电子信息产业股份有限公司 Expect-based automatic server cluster testing method
CN104317714A (en) * 2014-10-29 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing stability of rack based on expect
CN104506389A (en) * 2015-01-29 2015-04-08 浪潮电子信息产业股份有限公司 Integral high-density server stability testing method
CN104535940A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Linux system based automatic UID lamp stability testing method
CN104978259A (en) * 2014-04-01 2015-10-14 中国银联股份有限公司 Mobile equipment software automation test cluster system and test method thereof
CN105119746A (en) * 2015-08-27 2015-12-02 浪潮电子信息产业股份有限公司 Intelligent monitoring method for SMARTRACK whole cabinet server configuration based on RMC management
CN105354124A (en) * 2015-12-10 2016-02-24 浪潮电子信息产业股份有限公司 Method for improving anomaly detection efficiency of SMARTRACK system
CN105468489A (en) * 2015-12-09 2016-04-06 浪潮电子信息产业股份有限公司 Rack cabinet RMC communication pressure measurement method
CN107179991A (en) * 2017-05-17 2017-09-19 郑州云海信息技术有限公司 A kind of method of automatic checking Rack racks RMC stability
CN107239401A (en) * 2017-06-09 2017-10-10 郑州云海信息技术有限公司 A kind of automatic mode of collection system under test (SUT) essential information towards web attack tests
TWI671629B (en) * 2018-12-15 2019-09-11 英業達股份有限公司 Rack and electronic device set in the rack test system and method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037318A1 (en) * 2001-08-16 2003-02-20 Vinodha Ramasamy Handling calls from relocated instrumented functions to functions that expect a return pointer value in an orignal address space
US7421662B1 (en) * 2005-10-11 2008-09-02 Sprint Communications Company L.P. Automating interaction with a host computing device
US20100195816A1 (en) * 2007-07-04 2010-08-05 Nokia Siemens Networks Oy Method and device for a data processing and communication system comprising such device
CN101946258A (en) * 2007-12-20 2011-01-12 惠普开发有限公司 Model based deployment of computer based business process on dedicated hardware
CN103092754A (en) * 2013-01-07 2013-05-08 上海斐讯数据通信技术有限公司 Automatic test method of long distance multi-device condition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037318A1 (en) * 2001-08-16 2003-02-20 Vinodha Ramasamy Handling calls from relocated instrumented functions to functions that expect a return pointer value in an orignal address space
US7421662B1 (en) * 2005-10-11 2008-09-02 Sprint Communications Company L.P. Automating interaction with a host computing device
US20100195816A1 (en) * 2007-07-04 2010-08-05 Nokia Siemens Networks Oy Method and device for a data processing and communication system comprising such device
CN101946258A (en) * 2007-12-20 2011-01-12 惠普开发有限公司 Model based deployment of computer based business process on dedicated hardware
CN103092754A (en) * 2013-01-07 2013-05-08 上海斐讯数据通信技术有限公司 Automatic test method of long distance multi-device condition

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘渊等: "网络协议栈软件的自动化测试研究与实现", 《计算机工程与应用》 *
卫征: "嵌入式软件测试自动化技术研究", 《中国优秀硕士学位论文全文库》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978259B (en) * 2014-04-01 2017-11-17 中国银联股份有限公司 Mobile device software automated testing group system and its method of testing
CN104978259A (en) * 2014-04-01 2015-10-14 中国银联股份有限公司 Mobile equipment software automation test cluster system and test method thereof
CN103970655A (en) * 2014-05-08 2014-08-06 浪潮电子信息产业股份有限公司 Expect-based automatic server cluster testing method
CN104317714A (en) * 2014-10-29 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing stability of rack based on expect
CN104535940A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Linux system based automatic UID lamp stability testing method
CN104535940B (en) * 2015-01-16 2017-06-27 浪潮电子信息产业股份有限公司 Linux system based automatic UID lamp stability testing method
CN104506389A (en) * 2015-01-29 2015-04-08 浪潮电子信息产业股份有限公司 Integral high-density server stability testing method
CN105119746A (en) * 2015-08-27 2015-12-02 浪潮电子信息产业股份有限公司 Intelligent monitoring method for SMARTRACK whole cabinet server configuration based on RMC management
CN105468489A (en) * 2015-12-09 2016-04-06 浪潮电子信息产业股份有限公司 Rack cabinet RMC communication pressure measurement method
CN105354124A (en) * 2015-12-10 2016-02-24 浪潮电子信息产业股份有限公司 Method for improving anomaly detection efficiency of SMARTRACK system
CN107179991A (en) * 2017-05-17 2017-09-19 郑州云海信息技术有限公司 A kind of method of automatic checking Rack racks RMC stability
CN107239401A (en) * 2017-06-09 2017-10-10 郑州云海信息技术有限公司 A kind of automatic mode of collection system under test (SUT) essential information towards web attack tests
CN107239401B (en) * 2017-06-09 2020-09-22 苏州浪潮智能科技有限公司 Web attack test-oriented automatic method for collecting basic information of tested system
TWI671629B (en) * 2018-12-15 2019-09-11 英業達股份有限公司 Rack and electronic device set in the rack test system and method thereof

Also Published As

Publication number Publication date
CN103412815B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN103412815A (en) RMC software automated testing method mainly based on expect tool
CN202339542U (en) Software product test system
CN110928783A (en) RobotFramework-based automatic test datamation reconstruction platform
CN102663103A (en) Configurable method for automatically generating database and accessing data
CN107748782A (en) Query statement processing method and processing device
CN106598615A (en) Recipe program code generation method and recipe compiling cloud platform system
CN107577709B (en) Graphical management method of information system resource model
Pingrong et al. Research on the Application of DevOps in the Smart Campus of Colleges and Universities
CN101458653A (en) Automatic test method for tax controller of cash register
CN115131007B (en) Process management method and device for heterogeneous integrated microsystem process library development platform
CN108132802B (en) Application method of configuration model in system development
CN104133680A (en) Fast building method of ERP form module
CN115510361A (en) Data chart page generation method based on visual configuration and related equipment
CN108897763A (en) A kind of block chain data conversion system
CN106202697B (en) A kind of method and system convenient for doing steel tower design comparison in difference
CN106843825A (en) A kind of software configuration management method based on Temporal Model
CN105404442B (en) Selection screen configuration method and system based on SAP platforms
CN114281315B (en) Visual software development system and method applied to superconducting computer
CN110389955A (en) A kind of data warehouse scheduling file automatic creation system and generation method
CN103412764B (en) Method, unit and processor for generating properties in ios (Internetworking Operating System-Cisco) programming
CN108763296A (en) A kind of online database structure generation method checked and edited and device
CN106909493A (en) A kind of method of the display BMC daily records in real time in the blade server based on WINDOWS platform
Wang Research on automation processing of human resource management system in energy enterprises
Yibo et al. Research and Application of Integrated SQLite Based on Ground Meteorological Observation
Zhou et al. Intelligent Service Cluster Construction Method Based on Remote Sensing Application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161215

Address after: 450000 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant after: Zhengzhou Yunhai Information Technology Co. Ltd.

Address before: 250014 Shandong Province, Ji'nan City hi tech Development Zone, Nga Road No. 1036

Applicant before: Langchao Electronic Information Industry Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant