#=============================================================================================
# @TITLE			DBM Wizard - Unattended installtion.
#
# @NUMBER			DBM2_FKT_02030
#
# @DESCRIPTION		Loading the before saved installation template.
#
# @EXP_RESULT		The installation template is loaded.
#
# @REQUIREMENTS		"Database Manager" is installed.
#=============================================================================================
TestName = "DBM2_FKT_02030";
static WizardOpen = 1;
#=============================================================================================
# @STEP 1			Going 'Back' and checking window content.
#=============================================================================================
if (win_exists("Database Manager Installation Wizard") == 0) {

	set_window("Database Manager Installation Wizard", 1);
	ActiveX_get_info("DBMWfr2.Framework", "HeaderTitle", Header);
	
	if (GUI_Version == "2") {
		exp_Header = "Installation Template";
	}
	if (GUI_Version == "3") {
		exp_Header = "Select Template";
	}
	
	if (Header == exp_Header) {
		tl_step ("Installation wizard - 'Installation Template'", "0", "Window is correct. - TN: " & TestName);
	} else {		
		tl_step ("Installation wizard - 'Installation Template'", "1", "Window is incorrect. - TN: " & TestName);
	}
#=============================================================================================
# @STEP 2			Loading the template.
#=============================================================================================
	set_window ("Database Manager Installation Wizard", 2);
	toolbar_button_press ("msvb_lib_toolbar", "Open Template");
	
	set_window ("Open Template", 1);
	toolbar_button_press ("Look in:_1", "Desktop");
	list_select_item ("Look in:_1_1", database & ".dbi");
	button_press ("Open");
} else {
	tl_step("Database Manager Installation Wizard - Window Check", "1", "Window not open. - TN: " & TestName);
	WizardOpen = 0;
}
