tsrc/testing/tools/notifydrop_network.cmd
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:40:33 +0300
branchRCL_3
changeset 16 7f2b2a65da29
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201015 Kit: 201017

@rem
@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
@rem All rights reserved.
@rem This component and the accompanying materials are made available
@rem under the terms of "Eclipse Public License v1.0"
@rem which accompanies this distribution, and is available
@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
@rem
@rem Initial Contributors:
@rem Nokia Corporation - initial contribution.
@rem
@rem Contributors:
@rem
@rem Description:
@rem
@echo off

set ats3.username=admin
set ats3.password=5A3CBBF36BEDD7E99D3606C3F45DD57C
set ats3.host=%1
set ats3.pathToDrop=%2

rem If no attributes have been set, show usage.
if "%1" == "" (goto Usage) else (goto SetCredentials)

rem Set the credentials. If third attribute is set, use given username and password instead of default
:SetCredentials
if "%3" == "" (goto Execute)
set ats3.username=%3
set ats3.password=%4
goto Execute

rem Execute the vbs script that will invoke the web app which will start the test run
:Execute
cscript wshTestRun_network.vbs
goto End

:Usage
echo.
echo.
echo USAGE: notifydrop.cmd ^<ATS3 web server hostname^> ^<path to zip containing ATS3 testrun^> ^[^<username^>^ ^<password^>]
echo.
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
echo.
echo EXAMPLES: 
echo  notifydrop.cmd someserver.somehost.com c:\the_test_drop.zip
echo  notifydrop.cmd someserver.somehost.com c:\the_test_drop.zip myUserName myPassword

:End