Enfusion Script API
|
This class should be created once per autotest / autotest-entity. More...
Public Member Functions | |
void | Init (string pageName) |
Initializes register with pageName which is then used for all child result files as page name. | |
string | GetAutotestPageName () |
Returns page name for this autotest. | |
string | GetWorldFileFolderPath () |
Returns path to world file of this autotest. | |
int | GetTestIndex () |
Returns index of this autotest (if we have multiple entities, or world files in single autotest we can track. | |
bool | DoesMeasurementExist (string name) |
Checks if file with given measurement name exists. | |
MeasurementFile | OpenMeasurementFile (string name, string measurementTitle, MeasurementType type, bool overwriteExisting=true) |
This opens new measurement file for adding data to it. By default it will delete old results if there are any. | |
void | UploadLogFileWithResults () |
If this is called it will automatically prepare "measurement file" which will upload console.log into. | |
void | SavePersistentData (string name, string data) |
This allows you to save your own data which you can later read even in next test run (after exe finished) | |
string | LoadPersistentData (string name) |
Returns previously stored data (by calling SavePersistentData) under given name (works even between exe runs) | |
int | GetNumberOfDataLines (string measurementName) |
Returns number of lines givenmeasurement file has inside. | |
int | GetNumberOfWorldFiles () |
Returns number of .ent files in current autotest folder. | |
Protected Attributes | |
string | m_worldFileFolder |
string | m_autotestPageName |
int | m_testIndex = 0 |
This number serves to keep track of index of test we are running (usefull when we have multiple world files in single autotest) | |
This class should be created once per autotest / autotest-entity.
Checks if file with given measurement name exists.
string AutotestRegister.GetAutotestPageName | ( | ) |
Returns page name for this autotest.
Returns number of lines givenmeasurement file has inside.
int AutotestRegister.GetNumberOfWorldFiles | ( | ) |
Returns number of .ent files in current autotest folder.
int AutotestRegister.GetTestIndex | ( | ) |
Returns index of this autotest (if we have multiple entities, or world files in single autotest we can track.
string AutotestRegister.GetWorldFileFolderPath | ( | ) |
Returns path to world file of this autotest.
void AutotestRegister.Init | ( | string | pageName | ) |
Initializes register with pageName which is then used for all child result files as page name.
Returns previously stored data (by calling SavePersistentData) under given name (works even between exe runs)
MeasurementFile AutotestRegister.OpenMeasurementFile | ( | string | name, |
string | measurementTitle, | ||
MeasurementType | type, | ||
bool | overwriteExisting = true |
||
) |
This opens new measurement file for adding data to it. By default it will delete old results if there are any.
This allows you to save your own data which you can later read even in next test run (after exe finished)
void AutotestRegister.UploadLogFileWithResults | ( | ) |
If this is called it will automatically prepare "measurement file" which will upload console.log into.
|
protected |
|
protected |
This number serves to keep track of index of test we are running (usefull when we have multiple world files in single autotest)
|
protected |