Executing the testGetting startedRunning stg



Running stg

Here is the source code of a small example
The simplest way to call stg on this example is by typing the following command:

stg triangle.stg -test_name Triangle -test_purpose_name TP1

all the default operations are executed and a java test program triangleTest.sjava is generated.
Two other sjava files are generated: ImpManager.sjava and TestDrive.sjava, the former is the implementation manager and the later is the test driver which creates and runs the processes associated with the test and the implementation.
Otherwise operations can be specified in a command file:

stg triangle.stg -cmdfile triangle.cmd

From the specification and the test purpose graphs, the product and other operations are performed until selection of the resulting test case

F Ployette, F-X Ponscarme, June 11, 2007

Executing the testGetting startedRunning stgContentsIndex