#=============================================================================================
# @TITLE			Start Service - Web DBM.
#
# @NUMBER			WDBM_FKT_10100
#
# @DESCRIPTION		The service in the WebAgent for Web DBM get started here (Netscape).
#
# @EXP_RESULT		The service is running.
#
# @REQUIREMENTS		Test: WDBM_FKT_11000;
#=============================================================================================

#=============================================================================================
# @STEP 1			Checking navigation tree.
#=============================================================================================
set_window ("Browser Main Window", 2);
set_window (navi_window, 3);

if (obj_exists("webdbm",0) == 0) {
	web_link_click("webdbm");
} else {
	web_link_click("Services");
	wait(2);
	web_link_click("webdbm");
}
#=============================================================================================
# @STEP 2			Start service.
#=============================================================================================
set_window(detail_window, 1);

if (obj_exists("Start Service",0) == 0) {

	tl_step("Service already started","0","ok");
} else {

	set_window (detail_window, 3);
	web_link_click("Load Service");
	
	wait(5);
	
	set_window (detail_window, 3);		
	if (obj_exists("Start Service",0) == 0) {
	
		tl_step("Service started","0","ok");
	} else {		
		tl_step("Service started","1","Service could not be started");
	}
}
#=============================================================================================
# @STEP 3			Enter of the address in the browser.
#=============================================================================================
set_window ("Browser Main Window");

edit_set ("browser_main_edit_location", url_webdbm);
obj_type ("browser_main_edit_location","<kReturn>");
#=============================================================================================
# @STEP 4			Checking the prompt.
#=============================================================================================
if (win_exists(main_window,0) == 0) {
	tl_step ("Main - Logon - Window","0","displayed");
} else {
	tl_step ("Main - Logon - Window","1","not displayed");
}
