本文整理汇总了Java中org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences.SCREENSHOTS_DIR属性的典型用法代码示例。如果您正苦于以下问题:Java SWTBotPreferences.SCREENSHOTS_DIR属性的具体用法?Java SWTBotPreferences.SCREENSHOTS_DIR怎么用?Java SWTBotPreferences.SCREENSHOTS_DIR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.swtbot.swt.finder.utils.SWTBotPreferences
的用法示例。
在下文中一共展示了SWTBotPreferences.SCREENSHOTS_DIR属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializePreferences
/**
* Sets common SWTBot preferences.
*/
public static void initializePreferences() {
// -Dorg.eclipse.swtbot.playback.delay=2
SWTBotPreferences.PLAYBACK_DELAY = BOT_PLAYBACK_DELAY;
// System.setProperty("org.eclipse.swtbot.keyboardLayout", "EN_US");
SWTBotPreferences.KEYBOARD_LAYOUT = "org.eclipse.swtbot.swt.finder.keyboard.EN_US";
// SWTBot Keyboard strategies
SWTBotPreferences.KEYBOARD_STRATEGY = "org.eclipse.swtbot.swt.finder.keyboard.SWTKeyboardStrategy";
// keyboard type interval
SWTBotPreferences.TYPE_INTERVAL = KEYBOARD_TYPE_INTERVAL;
// Waiting for Widgets
SWTBotPreferences.TIMEOUT = BOT_WIDGET_TIMEOUT;
// screenshot directory
SWTBotPreferences.SCREENSHOTS_DIR = System.getProperty(SWTBotPreferenceConstants.KEY_SCREENSHOTS_DIR, "target/screenshots");
// test window focus policy
workbenchFocusPolicy = WorkbenchFocusPolicy.valueOf(System.getProperty(PROPERTY_COM_AVALOQ_TEST_WORKBENCHFOCUSPOLICY, WorkbenchFocusPolicy.REFOCUS.toString()));
preferencesInitialized = true;
}
示例2: SwtBotRecordingTestRunner
/**
* Creates a new instance of {@link SwtBotRecordingTestRunner}.
* Only called reflectively. Do not use programmatically.
*
* @param testClass
* the test class to run
* @throws InitializationError
* if any initialization failed
*/
public SwtBotRecordingTestRunner(final Class<? extends AbstractSystemTest> testClass) throws InitializationError {
super(testClass);
CoreSwtbotTools.initializePreferences();
testRunRecording = new TestRunRecording(getTestClass().getJavaClass(), SWTBotPreferences.SCREENSHOTS_DIR);
// TODO: add custom made {@link org.junit.runners.model.Statement} to check for exceptions during the test
// (by default test failures are reported only after the teardown has taken place)
}