From: Steve W. <wai...@us...> - 2001-12-22 17:12:55
|
Update of /cvsroot/phpwiki/phpwiki/tests In directory usw-pr-cvs1:/tmp/cvs-serv2685 Modified Files: README Log Message: Reordered the two page tutorial so it makes more sense in the context of a README. Index: README =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/tests/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** README 2001/12/22 16:52:15 1.1 --- README 2001/12/22 17:12:51 1.2 *************** *** 25,28 **** --- 25,52 ---- + -------------- + Short Tutorial + + The GuiTester is a small simple system to test the GUI of the BlueWire system. + + As a programmer you have to do these steps: + + 1. Write a little input script. Let's call it MyTest.inputs. + 2. Create a Java source file with your input script, with a Perl script called maketest.pl. Run this command: '''maketest.pl MyTest.inputs'''. This will create a file called MyTest.java. + 3. Compile your file: '''javac MyTest.java''' + 4. Run your test: '''java MyTest''' + + That's the short form for writing your own single test. You can accumulate tests in a single directory, and via the magical tools "make" and Ant, run a whole set of tests. + + 1. Write one or more input scripts. + 1. run '''makemakebuild.pl'''. This script gets the names of all .input files in the current directory and generates a Makefile and a build.xml file. + 1. Run ant with no arguments, i.e. just type "ant" and hit return. + + That's all. All the Java files will be generated for you, compiled, and ran against BlueWire. + + + ----------------- + A Longer Tutorial + An input script, which follows the naming convention ClassName.inputs, consists of a set of little statement blocks. Here is a sample which *************** *** 102,106 **** # I am a comment. ! ----- '''Types of statement blocks''' --- 126,130 ---- # I am a comment. ! oo----- '''Types of statement blocks''' *************** *** 176,199 **** - - - The GuiTester is a small simple system to test the GUI of the BlueWire system. - - As a programmer you have to do these steps: - - 1. Write a little input script. Let's call it MyTest.inputs. - 2. Create a Java source file with your input script, with a Perl script called maketest.pl. Run this command: '''maketest.pl MyTest.inputs'''. This will create a file called MyTest.java. - 3. Compile your file: '''javac MyTest.java''' - 4. Run your test: '''java MyTest''' - - That's the short form for writing your own single test. You can accumulate tests in a single directory, and via the magical tools "make" and Ant, run a whole set of tests. - - 1. Write one or more input scripts. - 1. run '''makemakebuild.pl'''. This script gets the names of all .input files in the current directory and generates a Makefile and a build.xml file. - 1. Run ant with no arguments, i.e. just type "ant" and hit return. - - That's all. All the Java files will be generated for you, compiled, and ran against BlueWire. - - Here's a more in-depth tutorial: GuiTesterTutorialOne - - CategoryGuiTester \ No newline at end of file --- 200,201 ---- |