Please enable JavaScript to view this site.

Memory Validator Help

 

Session management

 

The following options let you control the sessions during testing

 

 

-baseline

 

Loads a previous session as the baseline session against which the recorded session is compared for regressions or improvements.

 

Examples:

 

-baseline c:\baseline\testMacro1.mvm

-baseline "c:\base line\testMacro1.mvm"

 

note Ensure your session manager is configured to hold at least 2 sessions or use -numSessions to specify how many sessions to use.

 

 

-numSessions

 

Sets the number of sessions that can be loaded at once.

 

This is equivalent to the same setting in the session manage and can't be less than 1.

 

Example:

 

-numSessions 2

 

 

-saveSession

 

Saves the session data when all data has finished being collecting from the target program.

 

Examples:

 

-saveSession c:\results\testMacro1.mvm

-saveSession "c:\test results\testMacro1.mvm"

 

 

-sessionLoad

 

Loads a previously created session to act as the comparison session and which will be compared against a baseline session, for regression testing.

 

This might be used when a series of tests have been performed and the sessions saved.

 

The regression test results can then be generated by using -baseline and -sessionLoad to load two sessions and compare them.

 

Use in conjunction with: -baseline,

 

Not compatible with: -program, -injectName, -injectID, -waitName, as regression tests will be performed using the wrong session data (the session from -sessionLoad rather than the session from -baseline).

 

Examples:

 

-sessionLoad c:\results\testMacro1.mvm

-sessionLoad "c:\test results\testMacro1.mvm"

 

note Ensure your session manager is configured to hold at least 2 sessions or use -numSessions to specify how many sessions to use.

 

 

-sessionCompareHTML
-sessionCompareXML

 

Compare two sessions, producing an HTML or XML report detailing any regression and improvements.

 

A description of the XML tags used to produce the report is here.

 

The two sessions can be loaded using one of these options:

 

-baseline and -sessionLoad

 
-baseline and running a program using one of -program, -injectName, -injectID, or -waitName

 

Examples:

 

-sessionCompareXML c:\regtests\testMacro1.xml

-sessionCompareHTML "c:\reg tests\testMacro1.html"

 

note Ensure your session manager is configured to hold at least 2 sessions or use -numSessions to specify how many sessions to use.

 

 

-flatXMLSessionCompareExport

 

Use the old style XML report without the <EVENT> tag when exporting the results of a session comparison.

 

A similar option -flatXMLSessionExport is available for exporting the session data.

 

See also the description of the XML export tags.