Wiki not enabled.
The wiki tool is not enabled for this project. Please contact the project owner or administrator for more information.
How to run the demo
In order to run
the demo, you need to do a couple of things.
- Subversion
- Java JDK
- Download the source code
- Latest mbt
Subversion
If you are on a Windows box, download TortoiseSVN from http://tortoisesvn.tigris.org/, this client
will integrate in the Explorer, and works very well.
Else, get Subversion from http://subversion.tigris.org/, which works as a traditional command line client.
Java JDK
We need a java compiler. Get it from http://java.sun.com/javase/downloads/index.jsp
Download the source code for the demo
Fetch the code using subversion, open a terminal, and go to a empty folder. Type the following:
svn export http://mbt.tigris.org/svn/mbt/trunk/demo demo
This will fetch the demo project, and place it in the demo folder. (As an alternative, use TortoiseSVN)
Download the latest mbt
Get it from: http://mbttigrisorg.freeforums.org/releases-f6.html
Put it in demo folder.
Run the demo
Now the fun begins.
- Open a terminal, or a command window, and change the current directory to the demo folder.
- Create new folder, and name it to bin.
- Compile the demo:
javac -cp mbt-2.2-beta14.jar:lib\selenium-java-client-driver.jar src/org/tigris/mbt/demo/UC01.java -d bin
Running the demo involves two commands:
- Start a new terminal, or command window, and change the current directory to the demo folder.
- Start the selenium server:
java -jar lib/selenium-server.jar -singleWindow
- Go back to the first terminal, and type:
java -jar mbt-2.2-beta14.jar xml -f xml/UC01.xml
Note:
If you get an InvalidBrowserExecutableException, you have to change the path to your browser executable.
- Open the file: src\org\tigris\mbt\demo\UC01.java
-
Go to the e_init() method in that file. Now, you have to change things a bit regarding to what platform you are running.
Windows: Comment the line 76, an un-comment the line 79.
Linux: Comment the line 79, an un-comment the line 76. Also, you have to type the absolute path to firefox-bin.
See DefaultSelenium documentation for details. - Re-compile the demo:
javac -cp mbt-2.2-beta14.jar:lib/selenium-java-client-driver.jar src/org/tigris/mbt/demo/UC01.java -d bin
