#=============================================================================================
# @TITLE			DBM Wizard - Unattended installtion.
#
# @NUMBER			DBM2_FKT_02032
#
# @DESCRIPTION		Starting installation.
#
# @EXP_RESULT		'Installing'.
#
# @REQUIREMENTS		"Database Manager" is installed.
#=============================================================================================
TestName = "DBM2_FKT_02032";
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			Starting unattended installation.
#=============================================================================================
	set_window("Database Manager Installation Wizard", 1);	
	obj_get_info("Next >","label",label1);

	button_set ("Unattended Installation", ON);
	
	obj_get_info("Start","label",label2);

	if (label1 == "Next >" &&
		label2 == "Start") {
		
		tl_step ("Installation wizard - 'Installation Template'", "0", "Button caption changed correctly. - TN: " & TestName);
	} else {
		tl_step ("Installation wizard - 'Installation Template'", "1", "Button caption changed incorrectly. - TN: " & TestName);
	}
#=============================================================================================
# @STEP 6			'Cancel' properties.
#=============================================================================================	
	set_window ("Database Manager Installation Wizard", 0);
	button_press ("Start");
	
	wait(2);
} else {
	tl_step("Database Manager Installation Wizard - Window Check", "1", "Window not open. - TN: " & TestName);
	WizardOpen = 0;
}
