matlab.uitest.unlock
アプリ テスト フレームワークでロックされた Figure のロック解除
説明
例
Figure のロック解除
matlab.uitest.TestCase
から派生して keyboard
ステートメントを含むクラスベースのユニット テストを作成します。
classdef SimpleUITest < matlab.uitest.TestCase methods (Test) function test1(testCase) fig = uifigure; testCase.addTeardown(@delete,fig); button = uibutton(fig); keyboard; end end end
テストを実行します。MATLAB® が keyboard
コマンドでデバッグ モードになります。Figure がロックされ、ボタンを対話的に押すことができなくなります。
runtests('SimpleUITest')
デバッグ モードの間に Figure のロックを解除します。ボタンを操作できるようになります。
K>> matlab.uitest.unlock(fig);
テストの実行を続けます。テストが完了し、破棄する際に Figure が閉じられます。
K>> dbcont
入力引数
バージョン履歴
R2018a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)