tsrc/testing/tools/notifydrop_network.cmd
changeset 71 60b4b6493d7b
equal deleted inserted replaced
-1:000000000000 71:60b4b6493d7b
       
     1 @rem
       
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 @rem All rights reserved.
       
     4 @rem This component and the accompanying materials are made available
       
     5 @rem under the terms of "Eclipse Public License v1.0"
       
     6 @rem which accompanies this distribution, and is available
       
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 @rem
       
     9 @rem Initial Contributors:
       
    10 @rem Nokia Corporation - initial contribution.
       
    11 @rem
       
    12 @rem Contributors:
       
    13 @rem
       
    14 @rem Description:
       
    15 @rem
       
    16 @echo off
       
    17 
       
    18 set ats3.username=admin
       
    19 set ats3.password=5A3CBBF36BEDD7E99D3606C3F45DD57C
       
    20 set ats3.host=%1
       
    21 set ats3.pathToDrop=%2
       
    22 
       
    23 rem If no attributes have been set, show usage.
       
    24 if "%1" == "" (goto Usage) else (goto SetCredentials)
       
    25 
       
    26 rem Set the credentials. If third attribute is set, use given username and password instead of default
       
    27 :SetCredentials
       
    28 if "%3" == "" (goto Execute)
       
    29 set ats3.username=%3
       
    30 set ats3.password=%4
       
    31 goto Execute
       
    32 
       
    33 rem Execute the vbs script that will invoke the web app which will start the test run
       
    34 :Execute
       
    35 cscript wshTestRun_network.vbs
       
    36 goto End
       
    37 
       
    38 :Usage
       
    39 echo.
       
    40 echo.
       
    41 echo USAGE: notifydrop.cmd ^<ATS3 web server hostname^> ^<path to zip containing ATS3 testrun^> ^[^<username^>^ ^<password^>]
       
    42 echo.
       
    43 echo NOTE: username is 'admin' and password is default admin password is either plain text or in encrypted form. Both username and password are defined in notifydrop.cmd
       
    44 echo.
       
    45 echo EXAMPLES: 
       
    46 echo  notifydrop.cmd someserver.somehost.com c:\the_test_drop.zip
       
    47 echo  notifydrop.cmd someserver.somehost.com c:\the_test_drop.zip myUserName myPassword
       
    48 
       
    49 :End