你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DoNotRecord Interface

Implements

public interface DoNotRecord
implements Annotation

Annotation given to some tests to indicate that network calls made during the test shouldn't be recorded or there won't be any network calls made during the test to prevent creating an empty recording.

Method Summary

Modifier and Type Method and Description
abstract boolean skipInPlayback()

Deprecated

If a test should not run in playback, use LiveOnly instead. This will be removed in a future release.

Returns whether the test will be ignored during a PLAYBACK test run.

Method Details

skipInPlayback

@Deprecated
public abstract boolean skipInPlayback()

Deprecated

If a test should not run in playback, use LiveOnly instead. This will be removed in a future release.

Returns whether the test will be ignored during a PLAYBACK test run.

Returns:

Flag indicating if the test will be ignored during a playback test run.

Applies to