#=============================================================================================
# @TITLE			12. Step DBM Wizard.
#
# @NUMBER			DBM2_FKT_02015
#
# @DESCRIPTION		Finish.
#
# @EXP_RESULT		Database is installed.
#
# @REQUIREMENTS		"Database Manager" is installed.
#=============================================================================================
TestName = "DBM2_FKT_02015";
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 (Header == "Finish") {		
		tl_step ("Installation wizard - 'Finish'", "0", "Window is correct. - TN: " & TestName);
	} else {		
		tl_step ("Installation wizard - 'Finish'", "1", "Window is incorrect. - TN: " & TestName);
	}
#=============================================================================================
# @STEP 2			Checking controls.
#=============================================================================================
	if (obj_exists ("Close", 0) == 0) {
		tl_step ("Installation wizard - 'Finish'", "0", "Database was installed correctly. - TN: " & TestName);
	} else {
		tl_step ("Installation wizard - 'Finish'", "1", "Database was not installed. - TN: " & TestName);
	}
#=============================================================================================
# @STEP 3			Closing wizard.
#=============================================================================================
	set_window("Database Manager Installation Wizard", 1);
	button_press ("Close");
} else {
	tl_step("Database Manager Installation Wizard - Window Check", "1", "Window not open. - TN: " & TestName);
	WizardOpen = 0;
}
