Next: Accessing script variables from test class, Previous: Setting up the Scripter, Up: Using Test Scripter for creating scripted test cases
A new test class can be easily created with MIN Test Module Template Wizard that comes with the MIN release
$ createtestmodule
A new test class is now created with the given name to the given path. The next step is to create the building block methods to the test class.
To create the building block methods to the test class:
/<testclassname>/src/<testclassname>Cases.c
file (there is one example method, ExampleTest
, that can be copy-pasted).
<testclassname>Cases.c
):
ENTRY(*list,"Example",ExampleTest);
LOCAL int ExampleTest( MinItemParser* item );
/<testclassname>/group
directory by using build.sh
script. It will automatically copy test class library to /home/<user name>/.min
.
Now the test class is created. The next step is to implement test cases to test the test case file used by Test Scripter. An example test case file can be found in /<testclassname>/group/Example.CFG
. The test case file is constructed using the script language defined in this document.
Copy the test case file to /home/<user name>/.min/
Now you should be able to execute your test class module by using console UI or EXT INTERFACE.