发布新日志

  • 关闭浏览器BAT

    2011-06-16 19:14:38

    @ECHO OFF
    title Close Browsers
    color a

    echo *************************************************************
    echo @ Input the number below to terminate the browser process! @

    echo ---------------------------
    echo   1:IE
    echo   2:360se
    echo   3:Chome
    echo   4:Firefox
    echo   0:All above
    echo.
    echo Type [e] to exit directly.
    echo ---------------------------

    :start
    set /p num=Please input:
    echo.

    if "%num%"=="e" goto END
    if "%num%"=="1" goto IE
    if "%num%"=="2" goto 360se
    if "%num%"=="3" goto Chrome
    if "%num%"=="4" goto Firefox
    if "%num%"=="0" goto ALL
    goto retry

    :END
    exit

    :IE
    taskkill /f /im iexplore.exe
    exit

    :360se
    taskkill /f /im 360se.exe
    exit

    :Chrome
    taskkill /f /im chrome.exe
    exit

    :Firefox
    taskkill /f /im firefox.exe
    exit

    :ALL
    taskkill /f /im iexplore.exe
    taskkill /f /im 360se.exe
    taskkill /f /im chrome.exe
    taskkill /f /im firefox.exe
    exit

    :retry
    echo ===== Error: Invalid character, try again please! =====
    echo.
    goto start
  • Cookie测试

    2011-05-19 19:34:58

    Cookie测试关注点:
    01. 检查Cookie是否能正常工作;
    02. 检查Cookie是否按预定时间进行;
    03. 在Cookie中保存注册信息,验证是否已对注册信息进行加密;
    04. 使用Cookie统计次数,验证统计次数是否正确。

Open Toolbar