lczub / robotframework-magik

Robot Framework high level keywords for automated testing Smallworld Magik images
13 stars 2 forks source link

start stop scripts for magik images #1

Closed lczub closed 12 years ago

lczub commented 12 years ago

a) the start script should

b) the stop script should

lczub commented 12 years ago

The image command line option _-runscript makes it possible to start the remote_cli in every image via the gis.exe launcher program.

  1. Example: start swaf image with remote cli listen to 14001

    set SMALLWORLD_GIS=....\CST420\product set ROBOT_MAGIK_DIR=....\robotframework-magik set ROBOT_CLI_PORT=14001 %SMALLWORLD_GIS%\bin\x86\gis.exe swaf -run_script %ROBOT_MAGIK_DIR%\scripts\start_robot_remote_cli.script

  2. Example: start cambridge swaf open image with remote cli listen to 14002 and accept connections from 111.222.333.*

    set SMALLWORLD_GIS=....\CST420\product set CBG_ALIAS_FILE=....\gis_aliases set ROBOT_MAGIK_DIR=....\robotframework-magik set ROBOT_CLI_PORT=14002 set ROBOT_HOSTADDR=111.222.333.* %SMALLWORLD_GIS%\bin\x86\gis.exe -a %CBG_ALIAS_FILE% cam_db_open_swaf -login root/ -run_script %ROBOT_MAGIK_DIR%\scripts\start_robot_remote_cli.script

lczub commented 12 years ago

Example, how to use the python start stop scripte

  1. start and stop the swaf image with default settings python robot_start_magik_image.py e:\Smallworld\CST42\product swaf ... do some tests python robot_stop_magik_image.py
  2. start and stop the cambridge image with special settings python robot_start_magik_image.py --aliasfile e:\test\gis_aliases --piddir e:\tmp\robot\pids --logdir e:\tmp\robot\logs --login root/ --cli_port 14003 e:\Smallworld\CST42\product cam_db_open_swaf ... do some tests python robot_stopt_magik_image.py --piddir e:\tmp\robot\pids --cli_port 14003
lczub commented 12 years ago

Closed with commit 83e0d57221 (tag v0.2.0)