FTP Client (Ubuntu)

posted under by prasanna
Today was about to download multiple files from an authenticated FTP server. The native ftp client of Ubuntu didn't help me as expected. I was trying to log into the FTP server and was constantly getting disconnected when trying to perform some operation. When browsed for some alternative found this ncftp client. This actually worked instantly and was pretty easy in installing.

Install NCFTP:
sudo apt-get install ncftp

Log into FTP server: 
ncftp -u username hostname -p


it will prompt for password enter it. Type '?' in the terminal for the list of commands and there you go :)

Check out the NCFTP client for other platforms.

Stop halting at Assertions

posted under , by prasanna
When i was writing functional tests i stepped into a scenario where i have to continue with the test even after an assertion failure. The idea here is that you find an assertion failing, still you may need to go ahead and check out all the assertions as these tests generally take long time to complete. At the end of the test it will be good to have the summary of all the failures along with the stack trace. I was looking for some testing framework to help out with this functionality but unfortunately cant find any.

Finally using TestNg i implemented this feature. All you need is to write a listener that listens whenever a test fails and simply logs the stack trace without failing the test. There is a neat step by step tutorial given here 

Though this example has some specific information for Selenium based tests, it works fine with normal functional tests too.

Happy Testing :)

Send your mail later

posted under , , by prasanna

Gmail has provided a lot of features through labs and one important feature it lacks will be "Send Mail Later" option. This kind of feature helps me a lot to send birthday wishes to my pals. As i tend to remember their birthdays on the previous day and miserably forgets on their birthday. So i was in a hunt to get this functionality but felt bitter when knew that Gmail did not and will not come up such feature as many feel this as a unwanted feature and may be misused.

But to my rescue comes 'www.lettermelater.com" . All I need to do was that register with them with the email id from which i wish to send the mail . I need not want to login to their site every time when i want to send a mail. All i want to do is just address the mail to "me@lettermelater.com" with some parameters. The parameters include the recipient address and the time at which the mail has to be sent. It was super cool as i did a lot of testing by changing the parameter values. Worked perfectly well. They also have this functionality packed as a widget so that one can fit into their site/blog. Their only concern is that it is not possible to send a mail with attachment which we can expect in their future releases. 

top