This script initializes a SASUnit test scenario. It configures a temporary ODS HTML destination, executes the _closeHTMLPage macro with default parameters while capturing log options (MPRINT), and validates execution by checking for specific messages in the log.
Data Analysis
Type : INTERNAL_CREATION
The script does not load external data. It creates a temporary HTML file in the WORK directory for testing purposes.
1 Code Block
MACRO CALL
Explanation : SASUnit scenario initialization and opening of an ODS HTML destination pointing to a temporary file in the WORK library.
Copied!
%initScenario (i_desc=Test of _closeHTMLPage.sas)
ods html file="%sysfunc(pathname(WORK))\TEST.HMTL";
1
%initScenario (i_desc=Test of _closeHTMLPage.sas)
2
ods html file="%sysfunc(pathname(WORK))\TEST.HMTL";
3
2 Code Block
MACRO CALL
Explanation : Test case configuration. MPRINT options are enabled to trace macro execution. The _closeHTMLPage macro is called, then original options are restored.
Explanation : Test validation via a log message assertion (verifies that the internal macro _OPENDUMMYHTMLPAGE was called), then closing of the test case and scenario.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Copyright 2010-2023 HMS Analytical Software GmbH, http://www.analytical-software.de
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.