Quoting John Crisp <[email protected]>:
From what I have read it would seem something like Selenium would be
good for the browser testing but it all looks double dutch to me right now !
RobotFramework uses Selenium for the HTTP part, but then has
additional libraries for the other functionality that we need to test.
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html
"Provides support for Selenium for web testing, Java GUI testing,
running processes, Telnet, SSH, and so on."
The SSH & FTP support also look easy.
Any advice would be appreciated.
Maybe start from
http://www.queryhome.com/33183/installation-of-robot-framework-in-linux-centos
Although google may give other installation options.
Background reading
http://robotframework.org/
https://code.google.com/p/robotframework/
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html
I have not tried this at all, just quickly browsed the information
As one example I looked at the FTP library
http://sourceforge.net/projects/rf-ftp-py/
And then their example test script
http://sourceforge.net/projects/rf-ftp-py/files/1.2/
I copy their example test script below, it makes me believe we could
easily test FTP which for me has been always awkward.
*** Settings ***
Library FtpLibrary
*** Variables ***
${serverIpAddr} 192.168.1.53
${login} marcin
${password} marcin
*** Test Cases ***
Connect and other things
ftp connect ${serverIpAddr} ${login} ${password} timeout=30
comment ftp connect ${serverIpAddr} ${login} ${password}
comment ftp connect ${serverIpAddr} ${login}
${password} port=21 timeout=20
comment ftp connect ${serverIpAddr} ${login}
${password} 21 20
comment ftp connect ${serverIpAddr} ${login}
${password} timeout=35
get welcome
send cmd HELP
Directory creation
mkd testDir8
cwd testDir8
${pwdResult}= pwd
Should Be Equal ${pwdResult} /home/marcin/testDir8
File upload, rename, ...
upload file D:\\rf\\projects\\file.txt ftpfile.txt
rename ftpfile.txt newFile.txt
${sizeOfFile}= size newFile.txt
Should be equal as numbers ${sizeOfFile} 1
File download and delete
pwd
download file newFile.txt D:\\rf\\projects\\fileFromFtp.txt
delete newFile.txt
List dirs and delete one
cwd ..
@{listOfDirs}= dir
Should Contain @{listOfDirs}[14] testDir8
rmd testDir8
Close
ftp close
_______________________________________________
Discussion about project organisation and overall direction
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/discussion/