StoreObjectby Group Public on Wednesday November 18 2009 @ 13:30:16 (1/1 Points) |
|
| API ↪Reference ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It |
StoreObject serializes an in-memory object. That is, it takes a standard data structure and saves it to the disk for later retrieval with readObject→.
StoreObject %Item% filename
Filename
Note that the filename should be an absolute filename here otherwise you won't really be able to predict where the file is being saved -- a temporary directory is usually used by default.
Saving can't benefit from file resolution since it won't know in which of the search directories it should save a new file. Therefore an absolute path name is recommended.
set %MyData% with %Proc% nessysearch %Count% 123 end StoreObject %MyData% %This:Dir%/nessy.stest
Note that the file extension should be .stest. This will tell the loading mechanism what format the file has.
Data
All basic data types are supported as well as some special extended types.
The resulting file is just a dangling with→ statement which can reconstruct the data structure. You may modify such files directly as a convenient way of maintaining data for files.
Be aware however that although it looks exactly like a normal test file the set of functions is extremely limited, so use only constant values in the file.
TestPlan StoreObject
