STIQ on Mac OS X

From STIQ

Jump to: navigation, search

Contents

How to get STIQ up and running on Mac OS X

STIQ runs just fine on Mac OS X (Tiger 10.4 and Leopard 10.5), but you will need to use Safari 2.x. Safari 3.x browser does not allow 'cross site scripting' (XSS) and therefore your test will not run in Safari 3. See below for downgrading to Safari 2.x and running multiple version of Safari.


Much of StoryTestIQ has been developed with Windows in mind. You may need to edit the DOS Batch scripts, and various other scripts (Ant script 'runner.xml' with RC4+).

STIQ on Mac OS X

See Also:

Running STIQ On Unix

run.sh for OS X

[acceptance]$ cat run.sh

# Start StoryTestIQ (STIQ) on Mac OS X (Unix)
#   FitNesse command line:
#     -o Omit updates
#     -p Port number for server
#     -r Root directory to serve
java -cp ".:bin/storytestiq.jar:bin/lib/*.jar:" fitnesse.FitNesse -o -p 9999 -r repository &
# take a nap so that the FitNesse server gets up and running before we bang on it's door
sleep 2;
#
# open - launches and opens a file or URL in default browser (Safari or Firefox) on Mac/Unix
#     -a  Application to launch - should be Safari 2.x found in /Applications/*
open -a 'Safari 2.0.4.app' "http://localhost:9999/stiq/runner.html?startPage=/ProjectRoot" &
# STIQ's default start page is declared in repository/extensions/project-extensions.js
# if you wish to NOT include the '?startPage=/ProjectRoot' in the URL


You will need to make the run.sh script executable: chmod 755 run.sh

Killing the STIQ server

When you have launched the STIQ server it will continue to run until you kill it.

 ps -ax | grep storytestiq

Get the process ID of the java command that launched the STIQ server and run:

 kill xxxx

Where xxxx is the process number (first field of the ps command).

Ant script - runner.xml

The script was written with DOS path elements, a bit of clean-up is required.


Safari 2.x for Leopard Mac OS 10.5

Links:



Safari 2.x for Tiger Mac OS 10.4

STIQ will run with Safari 2.x. But if you have upgraded to Safari 3.x you will need to see the links above, you must use Safari 2.x.

Personal tools
Noteworthy