SASUnit Examples  Version 1.2.1
_sasunit_checkscenario.sas File Reference

determine whether a test scenario has to be executed More...

Go to the source code of this file.

Detailed Description

determine whether a test scenario has to be executed

conditions when test scenario has to be executed

  • new test scenario
  • test scenario has been changed since last run
  • test scenario contains a test case, where the unit under test (SAS program to be tested) has been changed since last execution of the scenario.
  • test scenario contains a unit under test which does not exist (scenario has to be executed so that this will be noticed)
Parameters
i_scnfileabsolute path to test scenario program
i_changedlast modification date and time of test scenario (SAS date time value)
i_dirSAS dataset with all programs in all autocall libraries. The data set contains the following variables:
  • filename absolute path to program
  • changed datetime of last modification
  • auton autocall number 0..9 (dataset should be created with _sasunit_dir)
r_scnidname of macro variable to return scenario id, if scenario can be found, 0 otherwise
r_runname of macro variable to return 1 for execute or 0 for do not execute
Returns
&r_scnid and &r_run
Version
$Revision: 106 $
Author
$Author: b-braun $
Date
$Date: 2013-01-10 14:59:21 +0100 (Do, 10 Jan 2013) $
See Also
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/saspgm/sasunit/_sasunit_checkscenario.sas $

Definition in file _sasunit_checkscenario.sas.