vikentsi lapa - tools for testing

8
Tools for testing Vikentsi Lapa for MLUG 2013

Upload: minsk-linux-user-group

Post on 15-Jan-2015

156 views

Category:

Technology


1 download

DESCRIPTION

Доклад с декабрьской линуксовки MLUG 2013

TRANSCRIPT

Page 1: Vikentsi Lapa - Tools for testing

Tools for testing

Vikentsi Lapa for MLUG 2013

Page 2: Vikentsi Lapa - Tools for testing

Testing process

TestExecution

EnvironmentSetup

Test CycleClosure

Analysis,Planning,

Test Cases Development

Page 3: Vikentsi Lapa - Tools for testing

Cluster environment setup

● 8 nodes– 4 servers

– 4 clients

● Simple tasks– Check time on all cluster nodes

– Get IP settings from all nodes

– Copy /etc/multipath.conf only to server nodes

● How to complete this tasks?

Page 4: Vikentsi Lapa - Tools for testing

Environment setup

Use /dev/fast_fingers

for node in client-1 client-2 …

do

echo $node

ssh $node date

done

Use some tool

Page 5: Vikentsi Lapa - Tools for testing

Environment Setup

● pdsh– pdsh -a date– pdsh -w server-[1-4] uptime

● dshbak– pdsh -a ip addr | dshbak

● pdcp– pdcp -a /etc/hosts /etc/– pdcp -a -x client-[1-8] /etc/multipath.conf /etc/

Page 6: Vikentsi Lapa - Tools for testing

Environment Setup

● Ansible = Puppet, Chef, but● but has differences

– minimal infrastructure● requires only Python and SSH access to node

– 2 modes● command line mode similar to pdsh● playbooks

– keeps configuration in YAML files

– extensible● modules (any language), plugins

Page 7: Vikentsi Lapa - Tools for testing

Test Execution

● screen– keep long running test active in SSH session

– store information about bugcreate log file ● test is started, test is finished ctrl-alt-H● log file name can be changed

– : logfile tc78_%c_%D_%M

– create console “screenshot” to file

● similar tools– tmux, script, nohup

Page 8: Vikentsi Lapa - Tools for testing

Summary

● Cluster tools– for environment configuration

● pdsh https://code.google.com/p/pdsh/● Ansible http://www.ansibleworks.com/

– for test execution● screen or tmux, script