Showing posts with label batch. Show all posts
Showing posts with label batch. Show all posts

Wednesday, May 14, 2008

Repair Internet Explorer 6.x

Sometimes Internet Explorer 6.x DLLs may get corrupted due to silktest or some other third party tools. By this, silktest may not able to get browser objects properly. To repair IE, You can do following things.

Re-Install
Start > Run rundll32 setupwbv.dll,IE6Maintenance "C:\Program Files\Internet Explorer\Setup\SETUP.EXE" /g
or
Start > Run rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 C:\windows\inf\ie.inf

and select to repair IE if this does not help.... then another possibility would be to run the LSP fix in Internet Explorer, see http://inetexplorer.mvps.org/data/lsp_fix.htm

Re-Register DLLs
Another way is, copy below info into a batch file and run it.



REM Ie6_cure.bat
regsvr32 Shdocvw.dll
regsvr32 Shell32.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll

Friday, May 9, 2008

Deleting temporary files

It is a better practice to compile all your scripts, before running for a build. I have written a simple DOS batch script, which deletes the given temporary files. I have done this for Silktest.

You can put following code into a batch (*.bat) file and put under your scripts directory. Also You can modify as per your requirements.




rem ******************************
echo on

rem *****************************************
rem * Delete Silktest temporary files*
rem *****************************************

cd ../
del *.ino /S /Q
del *.in_ /S /Q
del *.res /S /Q
del *.to /S /Q
del *.t_ /S /Q
del *.s_ /S /Q
del *.bak /S /Q
rem del *.xls /S /Q
Rem del *.bmp /S /Q
del *.gif /S /Q

rem "All temporary files are deleted."
pause
rem ******************************

Friday, March 21, 2008

Silktest - Run script in different browsers

SilkTest has options set feature. It is used to save the required silktest settings. I have used batch file to run the script for different browsers. It is easy to run your scripts, without any settings manually.

Below batch file is run for My_IE6DOM.opt (option set). You can try for suite instead of script-wise.

IE6DOM.bat



rem ******************************************************
rem Used to run the scripts for different option sets
rem *******************************************************

rem * Setting path to SilkTest application *
set APP_SILK="c:\Program Files\Segue\SilkTest\partner.exe"

rem * Setting path to Silk source *
set SRC_SILK=C:\Automation\AUT\Silk

rem * Setting SilkTest options file*
set SRC_OPTIONS=%SRC_SILK%\..\My_IE6DOM.opt


rem *****************************************
rem * Running Security test suite *
rem *****************************************

rem * Running Security Options test script *
%APP_SILK% -q -opt %SRC_OPTIONS% -r %SRC_SILK%\scripts\security.t