#=============================================================================================
# @TITLE			Drop database.
#
# @NUMBER			WDBM_FKT_00206
#
# @DESCRIPTION		Droping the before by this testframe installed database.
#
# @EXP_RESULT		The database will be droped.
#
# @REQUIREMENTS		Test: WDBM_FKT_01000; WDBM_FKT_01000
#=============================================================================================
iStartTime = get_time();

call_close "WEBDBM\Init"();
#=============================================================================================
# 					Loading GUI MAPS.
#=============================================================================================
if (dbm_wizard_test == 1) {

	GUI_load( guiFilePath & "WEBDBM.gui");
	GUI_load( guiFilePath & "IE_Browser.gui");
	GUI_load( guiFilePath & "WebAgent.gui");
	#=============================================================================================
	# @STEP	1			Open IE and connecting to database.
	#=============================================================================================
	call_close "WEBDBM\Open_Close\WDBM_FKT_01000"();
	call_close "WEBDBM\Service\WDBM_FKT_00100"();
	call_close "WEBDBM\Login\WDBM_FKT_01010"();
	#=============================================================================================
	# @STEP	2			Setting database to status --> offline.
	#=============================================================================================
	set_window (state_window, 1);
	web_link_click("Offline");
	
	while (obj_exists("Offline",0) == 0) {
		
		wait(5);
	}
	#=============================================================================================
	# @STEP	3			Droping the database with the command line.
	#=============================================================================================
	set_window (menu_window, 1);
	web_link_click("Command");
	
	set_window (work_window, 195);
	edit_set("Command","db_drop");
	web_link_click("Execute");
	#=============================================================================================
	# @STEP	4			Open IE and connecting to database.
	#=============================================================================================
	call_close "WEBDBM\Open_Close\WDBM_FKT_01001"();
	#=============================================================================================
	# 					Closing GUI MAPS.
	#=============================================================================================
	GUI_close_all();
}

iEndTime = get_time();
TestName = "Drop Database (IE)";
call_close "WEBDBM\loadup"();
