CN103412815B - RMC software automated testing method mainly based on expect tool - Google Patents
RMC software automated testing method mainly based on expect tool Download PDFInfo
- Publication number
- CN103412815B CN103412815B CN201310346742.5A CN201310346742A CN103412815B CN 103412815 B CN103412815 B CN 103412815B CN 201310346742 A CN201310346742 A CN 201310346742A CN 103412815 B CN103412815 B CN 103412815B
- Authority
- CN
- China
- Prior art keywords
- rmc
- expect
- host
- test
- software
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 57
- 238000000034 method Methods 0.000 claims abstract description 34
- 230000008859 change Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 16
- 238000012545 processing Methods 0.000 abstract description 2
- 230000009193 crawling Effects 0.000 abstract 1
- 238000013522 software testing Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 14
- 238000011990 functional testing Methods 0.000 description 4
- 238000012356 Product development Methods 0.000 description 3
- 241000522620 Scorpio Species 0.000 description 3
- 239000009490 scorpio Substances 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000011031 large-scale manufacturing process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012956 testing procedure Methods 0.000 description 1
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 server and the RMC of the computer cabinet 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 temporary 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
Technical field
The present invention relates to field of computer technology is and in particular to a kind of method of the automatic test of RMC software.
Background technology
With the continuous development of IT field technology, the update time of technology is shorter and shorter.The cycle of product development
It is shorter and shorter.In product development, the importance of test is also increasingly to be paid attention to.But, because traditional test needs
Want substantial amounts of human input, this has no small challenge to a lot of companies, particularly some small and medium size companies.This when, test
Automatization seem especially important.
RMC is belonging to the management module of the rack in scorpio project, and scorpio project is by Alibaba, Baidu, Tengxun
A whole set of whole machine cabinet server solution that tripartite's cooperation promotes, numerous manufacturer server participates in.Intel serves as this project
Consultant.This project will be devoted to the technology development of propulsion data center infrastructure, and formulates open industry standard.Scorpio item
Mesh is intended to jointly promote the application of industry cooperation, re-invent industry and new technique, promotes industry to unify whole machine cabinet server specifications, push away
Dynamic industrial chain is supporting and large-scale production, persistently cuts operating costs, improve server disposition speed and O&M efficiency.
The main two parts of RMC form, and RMC manages mainboard and RMC management software.RMC management software is mainly followed " rack
It is fixed that the definition of administrative unit RMC CLI specification Version 1.0 ", wherein RMC CLI is carried out with reference to SMASH SM_CLP standard
Justice, with specific reference to " Modular System Profile " for SM_CLP for the model(List of references:DSP1008).As Fig. 2 institute
Show, using the tree structure definition of SM_CLP, be easy to flexible expansion.
Content of the invention
The technical problem to be solved is to reduce manual intervention, saves the input of manpower, improves the speed of test.
Whole test process is mainly based upon the operation to HOST end to RMC unit for the network, is based primarily upon expect instrument
Realize the automated execution of testing procedure, the automatically saving and processing of test result.
Wherein, Expect is a free programming tool language, for realizing automatically being communicated with interactive task,
And the intervention without people.Script can be created using it for realizing providing input to order or program, and these orders and journey
Sequence is expectation from terminal(terminal)Inputted, in general these inputs are required for manually entering and carry out. Expect
Then interactive program execution can be realized according to the input that the prompting mock standard input of program is supplied to program needs.
Expect script is by a series of expect-send to forming:The specific character of middle output to be output such as expect, leads to
It is often a prompt, then send specific response.
The technical solution used in the present invention is:A kind of automatic test of the RMC software being based primarily upon expect instrument
Method, comprise the following steps that:
1st, build test environment:
A. build HOST end server, linux system is installed;
B. HOST is passed through network connection on the RMC network of rack;
C. network is set, makes both RMC UNICOM of HOST end server and rack and record RMC IP address;
2nd, run automatic test script:
Create a configuration file first, the continuous item arranges value of RMC is saved in this document, then pass through expect
Login on RMC from HOST and all crawls of RMC relevant information are processed, be saved in temporary file.Compile finally by text
The instrument of collecting reads out the arranges value of RMC continuous item from this temporary file and the value in configuration file contrasts, and draws test result.
Described the text edit tool is awk, the small routine of sed, grep or oneself compiling.
The following is the test of various functions:
A. heat sinking function test
This process is mainly logined from HOST by expect and on RMC, radiating is done with related setting, and records RMC daily record
And rotation speed of the fan.According to different dutycycles, rotation speed of the fan should be inconsistent.Thus it is logical to judge whether this partial function is tested
Cross.
B. power supply function test
This process is mainly logined from HOST by expect and on RMC, power supply is done with different settings, according to power supply shape
State and RMC daily record judge to test whether to pass through
C. node administration functional test
This process is mainly logined from HOST by expect and on RMC, node is done with following test:Change IP setting,
Open and close node, opens node UID etc. and preserves RMC daily record and node state.Judge to test according to RMC daily record and node state
Whether pass through.
D.RMC management function is tested
This process is mainly logined from HOST by expect and on RMC, the parameter under RMC system is done with related setting
And according to the condition adjudgement test result after setting.
E. user test
This process mainly executes different User logs ins from HOST by expect and to RMC and executes related command and survey
Whether the function of examination different user is as Product Definition.
F. remaining functional test
This process mainly by expect and linux script execute from HOST related command test in RMC not by with
The function that upper content covers.
The invention has the beneficial effects as follows:The use of this method enormously simplify the test process of RMC software, decreases manpower
Input.The method, in the application of product development process, the real automatization embodying test, embodies the advantage of IT technology.This
Method also has special reference significance for the test of other products.
Brief description
Fig. 1 show whole test structure schematic diagram;
Fig. 2 show the structural representation figure of RMC CLI.
Specific embodiment
Below in conjunction with the accompanying drawings with specific embodiment to a kind of RMC software being based primarily upon expect instrument of the present invention from
The method of dynamicization test, comprises the following steps that:
1st, build test environment:
A. build HOST end server, linux system is installed;
B. HOST is passed through network connection on the RMC network of rack;
C. network is set, makes both RMC UNICOM of HOST end server and rack and record RMC IP address;
2nd, run automatic test script:
Create a configuration file first, the continuous item arranges value of RMC is saved in this document, then pass through expect
Login on RMC from HOST and all crawls of RMC relevant information are processed, be saved in temporary file.Compile finally by text
The instrument of collecting(Awk, sed, grep or the small routine of oneself compiling)Read out from this temporary file the arranges value of RMC continuous item with
Value contrast in configuration file, draws test result.
The following is the test of various functions:
A. heat sinking function test
This process is mainly logined from HOST by expect and on RMC, radiating is done with related setting, and records RMC daily record
And rotation speed of the fan.According to different dutycycles, rotation speed of the fan should be inconsistent.Thus it is logical to judge whether this partial function is tested
Cross.
B. power supply function test
This process is mainly logined from HOST by expect and on RMC, power supply is done with different settings, according to power supply shape
State and RMC daily record judge to test whether to pass through
C. node administration functional test
This process is mainly logined from HOST by expect and on RMC, node is done with following test:Change IP setting,
Open and close node, opens node UID etc. and preserves RMC daily record and node state.Judge to test according to RMC daily record and node state
Whether pass through.
D.RMC management function is tested
This process is mainly logined from HOST by expect and on RMC, the parameter under RMC system is done with related setting
And according to the condition adjudgement test result after setting.
E. user test
This process mainly executes different User logs ins from HOST by expect and to RMC and executes related command and survey
Whether the function of examination different user is as Product Definition.
F. remaining functional test
This process mainly by expect and linux script execute from HOST related command test in RMC not by with
The function that upper content covers.
Claims (7)
1. a kind of method of the automatic test of the RMC software being based primarily upon expect instrument it is characterised in that:Methods described has
Body step is as follows:
1) build test environment:
Build HOST end server, linux system is installed;
HOST is passed through network connection on the RMC network of rack;
Setting network, makes both RMC UNICOM of HOST end server and rack and records RMC IP address;
2)Run automatic test script:
First create a configuration file, the continuous item arranges value of RMC is saved in this document, then pass through expect from
Login on RMC on HOST and all crawls of RMC relevant information are processed, be saved in temporary file, finally by text editing
Instrument reads out the arranges value of RMC continuous item from this temporary file and the value in configuration file contrasts, and draws test result.
2. the method for the automatic test of a kind of RMC software being based primarily upon expect instrument according to claim 1, its
It is characterised by:Described the text edit tool is awk, the small routine of sed, grep or oneself compiling.
3. the side of the automatic test of a kind of RMC software being based primarily upon expect instrument according to claim 1 and 2
Method it is characterised in that:Logined from HOST by expect and related setting is to radiating on RMC, and record RMC daily record and wind
Fan rotating speed, according to different dutycycles, the change of rotation speed of the fan, judges whether heat sinking function is tested and passes through.
4. the side of the automatic test of a kind of RMC software being based primarily upon expect instrument according to claim 1 and 2
Method it is characterised in that:Logined from HOST by expect and different settings be to power supply on RMC, according to power supply status and
Whether RMC daily record judges power supply function by test.
5. the side of the automatic test of a kind of RMC software being based primarily upon expect instrument according to claim 1 and 2
Method it is characterised in that:Logined from HOST by expect and following test is to node on RMC:Change IP setting, open and close
Node, opens node UID and preserves RMC daily record and node state, according to RMC daily record and node state come decision node management function
Test whether to pass through.
6. the side of the automatic test of a kind of RMC software being based primarily upon expect instrument according to claim 1 and 2
Method it is characterised in that:Logined from HOST by expect and related setting root are to the parameter under RMC system on RMC
According to the condition adjudgement RMC management function test result after setting.
7. the side of the automatic test of a kind of RMC software being based primarily upon expect instrument according to claim 1 and 2
Method it is characterised in that:By expect, different User logs ins are executed from HOST to RMC and to execute related command and test not
Function whether such as Product Definition with user.
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 CN103412815A (en) | 2013-11-27 |
CN103412815B true 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) |
Families Citing this family (11)
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 |
CN103970655A (en) * | 2014-05-08 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Server automatic cluster testing method based on expect |
CN104317714A (en) * | 2014-10-29 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing stability of rack based on expect |
CN104535940B (en) * | 2015-01-16 | 2017-06-27 | 浪潮电子信息产业股份有限公司 | A kind of automated testing method based on linux system UID lamp stability |
CN104506389A (en) * | 2015-01-29 | 2015-04-08 | 浪潮电子信息产业股份有限公司 | Integral high-density server stability testing method |
CN105119746A (en) * | 2015-08-27 | 2015-12-02 | 浪潮电子信息产业股份有限公司 | RMC-management-based method for intelligently monitoring configuration of SMART RACK whole cabinet server |
CN105468489A (en) * | 2015-12-09 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method for testing communication pressure between Rack cabinet and router manager center (RMC) |
CN105354124A (en) * | 2015-12-10 | 2016-02-24 | 浪潮电子信息产业股份有限公司 | Method for increasing 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 |
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 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7421662B1 (en) * | 2005-10-11 | 2008-09-02 | Sprint Communications Company L.P. | Automating interaction with a host computing 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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6898785B2 (en) * | 2001-08-16 | 2005-05-24 | Hewlett-Packard Development Company, L.P. | Handling calls from relocated instrumented functions to functions that expect a return pointer value in an original address space |
EP2012517A1 (en) * | 2007-07-04 | 2009-01-07 | Nokia Siemens Networks Oy | Method and device for data processing and communication system comprising such device |
-
2013
- 2013-08-12 CN CN201310346742.5A patent/CN103412815B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7421662B1 (en) * | 2005-10-11 | 2008-09-02 | Sprint Communications Company L.P. | Automating interaction with a host computing 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)
Title |
---|
嵌入式软件测试自动化技术研究;卫征;《中国优秀硕士学位论文全文库》;20090915;全文 * |
网络协议栈软件的自动化测试研究与实现;刘渊等;《计算机工程与应用》;20050815(第15期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103412815A (en) | 2013-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103412815B (en) | RMC software automated testing method mainly based on expect tool | |
CN107844424B (en) | Model-based testing system and method | |
CN109062777B (en) | General automatic test system of track traffic signal equipment | |
CN103218402B (en) | General database data structure and data mover system and method thereof | |
CN111813661B (en) | Global service data drive automatic test method, device, equipment and medium | |
CN104572419A (en) | Method for testing dynamic power consumption of servers | |
CN110928783A (en) | RobotFramework-based automatic test datamation reconstruction platform | |
CN104699613B (en) | A kind of spacecraft-testing demand automatic creation system and its method | |
CN103455896B (en) | With no paper assembling Quality Control method based on Internet of Things | |
CN106649014A (en) | Automatic testing method of calculating type server which supports multiple GPUs | |
CN106598615A (en) | Recipe program code generation method and recipe compiling cloud platform system | |
CN107133175A (en) | A kind of software test platform based on cloud computing | |
CN104111852A (en) | Web application automated testing system and testing method based on data drive | |
CN110109831A (en) | Automated test frame system, automated testing method and terminal device | |
Burd et al. | Extracting reusable modules from legacy code: Considering the issues of module granularity | |
Jian-Ping et al. | Application analysis of automated testing framework based on robot | |
Lee et al. | A git source repository analysis tool based on a novel branch-oriented approach | |
CN112631704A (en) | Interface element identification method and device, storage medium and electronic equipment | |
CN115131007B (en) | Process management method and device for heterogeneous integrated microsystem process library development platform | |
Sun et al. | A web testing platform based on hybrid automated testing framework | |
CN108132802B (en) | Application method of configuration model in system development | |
CN110389955A (en) | A kind of data warehouse scheduling file automatic creation system and generation method | |
CN106202697B (en) | A kind of method and system convenient for doing steel tower design comparison in difference | |
Yang et al. | An ontology based improved software requirement traceability matrix | |
CN116383094B (en) | Test case library construction method, device, equipment and storage medium |
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 |