Showing posts with label testing. Show all posts
Showing posts with label testing. Show all posts

Thursday, December 22, 2011

compiling seagull on ubuntu 10.10

Seagull is a free, Open Source (GPL) multi-protocol traffic generator test tool. I will be using Seagull to generate some Diameter traffic for testing. After trying for hours to get this software to compile under Ubuntu, I finally gave up and used the windows cygwin binarys, which worked like a charm.


Seagull is a handy tool for generating very specific traffic types, and provides many scenarios already configured. To get going on Windows, all that I had to do was edit the IP addresses in some XML config files and I was up and running. Nice. 


---


I'll document some of the pains that I went through here during compilation under Ubuntu 10.10 for Seagull in case someone else happens to try this out. There has been some time since Seagull was updated, and compilers have changed a bit since then. Fortunately I ran into this blog post that helped me to understand some of the problems that I was running into. 


At first, KSH and GCC are missing from Ubuntu, so you have to install them.
# apt-get install ksh build-essential bison flex libntl-dev libsctp-dev


Source files that generate the error "error: memset was not declared in this scope" need to have this include line added. 
#include <cstring>


Source files that generate the error "X" need to have this include line added.
#include <cstdlib>


Source files that generate the error "Y" need to have = changed to == in some if statements. 


Source files that generate the error "fatal error: asm/page.h: No such file or directory" need to have a specific include line to point at the actual page.h file. From http://forums.fedoraforum.org/showthread.php?t=190186.
#include "/usr/src/linux-headers-2.6.35-22/arch/x86/include/asm/page.h"

Source files that generate the error "/usr/bin/ld: cannot find -lTTL" can be fixed by commenting a line and uncommenting a line in TCAP section of build.conf.

And lastly, I have not yet solved this one. Error message is "library-trans-extsctp/socketSCTP_t.hpp:23: fatal error: ext_socket.h: No such file or directory". I cant seem to find a library that provides sctp_initLibrary() as  ext_socket.h used to, also cant find ext_socket.h on my system or in an available package.

So, use the windows version, because it works. 


Thursday, May 5, 2011

Robot Framework

A great blog post by Frank Berthold helped me learn to use Robot Framework. Some questions remained for me after reading Robot Framework's Quick Start Guide, and Frank's blog post answered them. My application was a content management system, and for historical purposes is available online here.

Here is one of the test suites that I came up with for testing the application:
*** Testcases ***
Homepage allows Admin Login
   Sign in as Admin

Homepage allows Admin to Add an Entry
   Click Link  Add
   Page Should Contain  Add a blog entry

Add an Entry page allows adding a test Entry
   Input Text  title  Testing Entry Title
   Input Text  subtitle  Subtitle for Testing Entry
   Input Text  content  This is a test Entry.
   Click Button  Save
   Page Should Not Contain  Error

Homepage shows test Entry
   Page Should Contain   Testing Entry Title