メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

getOptions

クラス: sltest.testmanager.TestFile
名前空間: sltest.testmanager

テスト ファイル オプションの取得と設定

構文

opt = getOptions(tf)

説明

opt = getOptions(tf) は、テスト ファイル tf に関連付けられているテスト ファイル オプション オブジェクト sltest.testmanager.Options を返します。

入力引数

すべて展開する

オプションを取得するテスト ファイル。sltest.testmanager.TestFile オブジェクトとして指定します。

出力引数

すべて展開する

テスト ファイル オプション。sltest.testmanager.Options オブジェクトとして返されます。

すべて展開する

% Create the test file, test suite, and test case structure
tf = sltest.testmanager.TestFile('API Test File');
ts = createTestSuite(tf,'API Test Suite');
tc = createTestCase(ts,'baseline','Baseline API Test Case');

% Get the test file options
opt = getOptions(tf);

% Set the title for the report and specify to save figures
opt.Title = 'ABC Co. Test Results';
opt.SaveFigures = true;

バージョン履歴

R2017a で導入