2013年12月31日 星期二

Robot Framework

http://robotframework.org/
A keyword base test automation framework.

Setup on Windows:
1. Install Python 2.7
http://www.python.org/getit/

2. Install wxPython 2.8.12.1 (for RIDE)
http://sourceforge.net/projects/wxpython/files/wxPython/

3. Install robot framework (may use pip or easy_setup)
https://pypi.python.org/pypi/robotframework

4. Install RIDE
https://pypi.python.org/pypi/robotframework-ride
https://github.com/robotframework/RIDE/wiki/Installation-Instructions

5. Add PATH C:\Python27\Scripts

2013年12月12日 星期四

How to PAUSE and CONTINUE a Linux process

Use kill command to send -STOP signal to pause a process and -CONT signal to continue it.

Example on CentOS6 Desktop:
1. Open a Terminal (name as T1) on Desktop and send "ps -aux | grep bash" to see how much bash in there.

2. Open another Terminal (name as T2) on Desktop and on T1 send "ps -aux | grep bash" to see process id of new created bash (T2)

3. On T1, send "kill -STOP " to pause T2
>T2 is hang

4. On T1, send "kill -CONT " to continue T2
>T2 is back to work
This is useful if a script is running on T2 and you want to pause it and continue it later

Reference:
http://tombuntu.com/index.php/2007/11/23/how-to-pause-a-linux-process/