Archive for the ‘qa tools’ Category

Setup OpenVPN Client in Linux

April 23, 2012 4 comments

I needed to install OpenVPN(open source virtual private network) in my Linux machine to be able to access our staging server. OpenVPN allows you to establish a secure point to point  access to network resources and services.

OpenVPN can be used in two ways – Server and Client. OpenVPN server is the system that you wish to use as VPN end-point or the one you want to access. In my case what I needed to do is to install OpenVPN as client or the one making a service request.

1. Install OpenVPN using terminal:

sudo apt-get install openvpn

2. Create client configuration file in /etc/openvpn

sudo cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn

3. Setup client config file, server keys and certificates in /etc/openvpn folder (in my case our client sent these files generated from the server)


4. Edit client configuration file (client.conf) based on above directory

# example client config file
remote [server] 1194
dev tun
proto udp

ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/hostname.crt
key /etc/openvpn/keys/hostname.key
ns-cert-type server
tls-auth /etc/openvpn/keys/ta.key 1

keepalive 10 60

verb 3

5. Go to /etc/openvpn folder and start the OpenVPN

exist@exist:/etc/openvpn$ sudo openvpn client.conf
Mon Apr 23 13:44:43 2012 OpenVPN 2.1.0 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 12 2010
Mon Apr 23 13:44:43 2012 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Mon Apr 23 13:44:50 2012 [server] Peer Connection Initiated with [AF_INET]
Mon Apr 23 13:44:52 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon Apr 23 13:44:53 2012 TUN/TAP TX queue length set to 100
Mon Apr 23 13:44:53 2012 /sbin/ifconfig tun0 pointopoint mtu 1500
Mon Apr 23 13:44:53 2012 /sbin/route add -net netmask gw
Mon Apr 23 13:44:53 2012 /sbin/route add -net netmask gw
Mon Apr 23 13:44:53 2012 /sbin/route add -net netmask gw
Mon Apr 23 13:44:53 2012 Initialization Sequence Completed

There you go! By this time, you should be able to access the application you want to test 🙂 However in our case we needed to setup the IP address of the server that we are trying to gain access in our hosts file. From the terminal, we type:

[user]@exist:~$ sudo su -
[sudo] password for [user]: [input password]
root@[user]:~# vi /etc/hosts

Then input the IP address and the corresponding name of the web server we are trying to access at the end of the line.

Install Testlink in Windows machine

March 6, 2012 2 comments

Testlink is an open-source management tool which includes test specification, planning, reporting, requirements tracking and collaborate with well-known bug trackers.

System Requirements:

• MySQL 4.1.x and higher
• php 4.3.x and higher
• Webserver (Apache 1.3.x or 2.0.x and higher, IIS 3 and higher, etc.)


1. Download XAMPP for windows here. Latest version of xampp includes the following, one package that caters to the system requirements of Testlink.

  • Apache 2.2.21
  • MySQL 5.5.16
  • PHP 5.3.8
  • phpMyAdmin 3.4.5
  • FileZilla FTP Server 0.9.39
  • Tomcat 7.0.21

2. Double click xampp-installer.exe to start installation. From the installation wizard, under Service Section, install Apache, MYSQL, Filezilla as service

3. Select Testlink version to dowload here

4. Unzip testlink.tar file to your desired folder

5. Rename the folder to ‘testlink’ and copy it to your \xampp\htdocs folder (e.g. C:\xampp\htdocs\)

6. In your browser access http://localhost/testlink/install/index.php

7. Select New Installation

8. Provide Testlink admin and Database admin login creadentials

Testlink admin login/password – admin/admin (or whatever login/password you like)

Database admin login/password – root/<empty> (this is the default login/password of MYSQL for xampp)

9. After completing the installation, you can now access http://localhost/testlink/login.php and start using Testlink by logging in as admin/admin or creating a new user

Using Android Emulator for Mobile Testing

March 5, 2012 Leave a comment

One of our project required us to test their application in mobile phone – Android or iPhone. In my first attempt to do mobile testing, I found this handy tool created by Google. Let me summarize my Android SDK setup in 3 steps – install Android SDK, create Virtual Device and use emulator!

Pre-requisite: Java


1.  For 64bit Ubuntu, you’ll need to install the 32bit libraries

 ~$ sudo apt-get install ia32-libs

2.  Download appropriate Android SDK here (in my case I chose  android-sdk_r16-linux.tgz)

3.  Unzip file in your desired folder

4. Complete Android SDK installation and updates

Go to the android-sdk-linux_x86/tools/ directory and run the Android program to open the Android SDK and AVD manager.

~$ cd ~/android-sdk-linux/tools/
~/android-sdk-linux/tools$ ./android

Create Virtual Device

You can create an AVD or Android Virtual Device  via the AVD Manager or the command-line

1. Using AVD Manager

~$ cd ~/android-sdk-linux/tools/
~/android-sdk-linux/tools$ ./android

Go to Tools > Manage AVD

Click ‘New’ button to create new AVD

Input name, target, sd card, skin, hardware configurations

Click ‘Create AVD’

2. Terminal

android create avd -n <name> -t <targetID> [-<option> <value>] ...

e.g. android create avd -n my_android1.5 -t 2

For more instructions see here


You can use your Android emulator in two ways:

1. Using AVD Manager

~$ cd ~/android-sdk-linux/tools/
~/android-sdk-linux/tools$ ./android

Go to Tools > Manage AVD

Select Virtual Device to use, then click Start

2. Launch emulator using command-line

~$ cd ~/android-sdk-linux/tools/
~/android-sdk-linux/tools$ ./emulator -avd avdname

See more emulator options here

Now you’re ready to test your mobile application in Android! 🙂

Categories: qa tools Tags: , ,

Teamviewer: Group screen sharing tool for Ubuntu

October 3, 2011 2 comments

I had been looking for a Goto Meeting / WebEx counterpart for Ubuntu machine in preparation to our project demo/presentation and found the following:

1. Skype – supports Windows, Mac, Linux machine. As of to-date, latest Skype version for Linux and Mac is 2.2 Beta and 5.3 respectively. But only Skype Premium version 5.2 for Mac users has group screen sharing feature. Rates apply.  (

2. Glance – supports Windows, Mac machine only. We tried Glance Free Trial version 2.6 for Windows and plan to control my Ubuntu box remotely via VNC viewer but was a bit disappointed with the performance. Running a video from the host machine displays lag and actions performed from the host are not displayed real time. (

3. TeamViewer – FREE remote desktop access and desktop sharing that supports Windows, Mac and Linux machine. We tried TeamViewer full version 6.0 for Linux to host our project presentation to be accessed by Mac and Windows machine.

TeamViewer Installation Guide:

1. Download latest Teamviewer for Ubuntu. I got mine for Debian, Ubuntu (64-Bit) version 6.0:

2. Open .deb file with Ubuntu Software Center and Install.

3. After successful installation, you should be able to find TeamViewer 6 option under Main Menu/Internet menu.

4. Host has the option to create session for Remote support, Presentation or File Transfer. In our case we selected Presentation option because we intend to use it for project demo. Send invites to your partners/participants by giving them the auto-generated session ID and Password.

5. Partners will just need to access and input the session ID and Password.

Indeed TeamViewer is the ideal solution for online collaboration. The best of all is it’s FREE! =D Thanks TeamViewer Team!

“Apache service not started [-1]” error in XAMPP

January 26, 2009 1 comment

Problem: I successfully downloaded and installed the XAMPP-1.7.0 but when I start running Apache service it throws “Apache service not started [-1]” error. The MySQL service is working fine except for Apache.

Solution: I checked the path of my Apache service and noticed that the Path is looking on a different folder and not on my …xampp\apache location, I remember I have previously installed Apache 2.2.11 in my box before installing the XAMPP package. So I delete the old Apache service, uninstall and reinstall XAMPP.

If in case the path of the newly installed XAMPP persists the old Apache service location, uninstall the Apache service in the XAMPP and install it again, this time it will locate the new httpd file from your XAMPP folders.

Categories: qa tools


January 9, 2009 Leave a comment

Cool stuff  for load testing…

BrowserMob patronizes Selenium IDE, a known Firefox plug-in. Load testing made simple in 3 easy steps:

RECORD the scripts on a real web browser using Selenium IDE, saves the actions done and no need to worry on cookies and traffics. Easy record and playback.

SCHEDULE tests and define your load data.

ANALYZE results through their Test Statistics and Charts.

Categories: qa tools Tags:

Record Jmeter using Badboyy

January 8, 2009 Leave a comment

For the past 2 days I’ve been filing my blog stuff on the right folder, and I believe this old post of mine belongs here.

Check out how you can record Jmeter scripts on a real browser using Badboy application. Dig in HERE!

Categories: qa tools Tags: , ,

Free Website Analyzer

January 7, 2009 Leave a comment

No need to download just fireup your browser, go to these sites and input the URL of your application under test.

1. Web Page Analyzer (

This is a free helper website, which gives you a diagnosis of  the elements,  size and download time of your web page.  If it’s your first time to do performance test, this tool is a good start. The generated web page speed report will provide you an analysis and recommendations on how to optimize your site. Cool huh!

2. Gomez Instant Site Test (

A performance tool which will help you know how your website is performing from a specified testing location. This instant test provides page download time, DNS lookup, connection time and all page objects.

BTW these are just helper sites to help you optimize your webapps, but there are a lot of free performance tool out there like Jmeter, OpenSta etc. that can give you a concrete analysis of your website’s performance.

Happy testing 😀

Categories: qa tools Tags: