Hi All,
i am trying to do restore using the below script.
def test = testRunner.testCase.getPropertyValue("Test");
Sys.OleObject("WScript.Shell");
def strCommandToExecute = 'osql -S ' + ServerName + ' -U ' + UserID + ' -P ' + Password + ' -Q " RESTORE DATABASE ' + DBName + ' FROM DISK = "' + Path + DBName + '.BAK';
//def strCommandToExecute = 'osql -S ' + 'localhost' + ' -U ' + 'hkadwalwala' + ' -P ' + 'HU99**en' + ' -Q " RESTORE DATABASE ' + "Test1' + ' FROM DISK = " + 'D:\database_backup\' + 'Ntier.security'+ '.BAK'' WITH REPLACE "' + ' -o "' + + 'c:\RestoreResult.txt"'
Sys.OleObject("Wscript.Shell").Run(strCommandToExecute);.
whey i try to execute in groovy . i get error : Sys property is not defined . can some one help ? am i missing some setting.
relatively new to SOAP UI world.
Regards,
Husen