Click here to get back home

what module to use when writing automation tests?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
what module to use when writing automation tests? Stephane Charette 08-25-2008
Get Chitika Premium
Posted by Stephane Charette on August 25, 2008, 12:37 am
Please log in for more thread options


I'm automating some tests for networks devices, and trying to use Perl
to do the job. Basically, I need to:

1) SSH into a device
2) run some commands
3) log the results
4) goto 2

What module would people normally use for this? Are there existing
perl frameworks for writing automation tests?

-------------------------

Details: So far, I've tried Net::SSH::Perl, and Net::SSH::Expect, but
I don't feel these will do the job. Net::SSH::Perl cannot log into
the device -- it tries to pass the -c command to the remote device,
which doesn't support -c. Net::SSH::Expect is somewhat brain-dead --
to get it to work semi-reliably, I have to raise the timeout value to
something like 15 seconds, and yet I still sometimes see random
failures because of delays on the network.

Thanks in advance,

St=E9phane

Posted by sisyphus on August 25, 2008, 6:56 am
Please log in for more thread options


wrote:
=2E
=2E
> Details: =A0So far, I've tried Net::SSH::Perl, and Net::SSH::Expect, but
> I don't feel these will do the job.

There's also Net::SSH2 - I don't know if it will "cut the mustard" for
you, but it could be worth investigating. It needs the libssh2 C
library.

There are some problems with Net::SSH2 on perl-5.10, though I see
there's a patch that has been submitted at
http://rt.cpan.org/Ticket/Display.html?id=3D36614

Cheers,
Rob

Similar ThreadsPosted
Automation using setupsup April 3, 2007, 10:23 pm
OLE Automation using Perl on a Unix box? April 18, 2006, 7:27 pm
form submission automation August 13, 2006, 9:15 pm
writing modules in 'c' August 27, 2005, 3:18 pm
Writing row at a time in Excel using OLE June 14, 2007, 1:43 pm
Writing VB macro script in xls May 20, 2008, 7:46 am
Reading AND writing Excel spreadsheets April 30, 2005, 10:05 am
Archive::Tar fails tests on AIX August 17, 2004, 6:30 pm
tests failing for .xs routines October 4, 2005, 10:19 am
flush writing to multiple children IO::Pipe April 29, 2005, 12:36 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap