#=============================================================================================
# @TITLE			8. Step DBM Wizard.
#
# @NUMBER			DBM2_FKT_02011
#
# @DESCRIPTION		Specifying a backup medium.
#
# @EXP_RESULT		'Installation Mode' step.
#
# @REQUIREMENTS		"Database Manager" is installed.
#=============================================================================================
TestName = "DBM2_FKT_02011";
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", 2);
	button_press ("< Back");
	
	wait(10);
	
	ActiveX_get_info("DBMWfr2.Framework", "HeaderTitle", Header);
	
	if (Header == "Volumes") {		
		tl_step ("Installation wizard - 'Backup Medium' - 'Back'", "0", "Window is correct. - TN: " & TestName);
	} else {		
		tl_step ("Installation wizard - 'Backup Medium' - 'Back'", "1", "Window is incorrect. - TN: " & TestName);
	}
#=============================================================================================
# @STEP 2			Going 'Next' and checking window content.
#=============================================================================================
	set_window ("Database Manager Installation Wizard", 2);
	button_press ("Next >");
	
	wait(2);
	
	ActiveX_get_info("DBMWfr2.Framework", "HeaderTitle", Header);
	
	if (Header == "Backup Medium") {		
		tl_step ("Installation wizard - 'Backup Medium' - 'Next'", "0", "Window is correct. - TN: " & TestName);
	} else {		
		tl_step ("Installation wizard - 'Backup Medium' - 'Next'", "1", "Window is incorrect. - TN: " & TestName);
	}
#=============================================================================================
# @STEP 3			Control will be tested in Backup Wizard.
#=============================================================================================
	set_window ("Database Manager Installation Wizard", 2);
	button_press ("Next >");	
	wait(10);
#=============================================================================================
# @STEP 4			To overjump the hotstandby configuration.
#=============================================================================================
	if (match (kernel_version, "7.5.00") != 0 ||
		match (kernel_version, "7.5.01") != 0 ||
		match (kernel_version, "7.6.00") != 0) {
		
		set_window ("Database Manager Installation Wizard", 2);
		button_press ("Next >");
		wait(4);
	}
} else {
	
	tl_step("Database Manager Installation Wizard - Window Check", "1", "Window not open. - TN: " & TestName);
	WizardOpen = 0;
}
