Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - How to execute a webtest from Powershell

Reply
 
Old 09-24-2008   #1 (permalink)
AdityaKir


 
 

How to execute a webtest from Powershell

Hi,

Is there a way of executing a webtest from a powershell script. Currently I
have written the webtest script which looks as below in .bat file. Which i am
executing through command prompt. Is there a way to either execute the bat
file from powershell or if not then executing the webtest from powershell
-------------------.Batch File--------------------------------
set test.CheckProxy=HTTP://%1:1151/version
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe"
/noresults

/testcontainer:"E:\Aditya\Proxy\MCF_Test.webtest" /detail:errormessage
set test.CheckProxy=
-------------------.Batch File--------------------------------

Thanks,

Aditya

My System SpecsSystem Spec
Old 09-24-2008   #2 (permalink)
AdityaKir


 
 

RE: How to execute a webtest from Powershell


Hi,

There seems to be no way you can use webtest in powershell. So, here is what
I have finally done create a bat file, call the webtest in it. use
commandline options in the webtest to save the test results file to a
particular location and then from there read the test results file to
determine whether the webtest was successfull or not

Thanks,

Aditya

"AdityaKir" wrote:
Quote:

> Hi,
>
> Is there a way of executing a webtest from a powershell script. Currently I
> have written the webtest script which looks as below in .bat file. Which i am
> executing through command prompt. Is there a way to either execute the bat
> file from powershell or if not then executing the webtest from powershell
> -------------------.Batch File--------------------------------
> set test.CheckProxy=HTTP://%1:1151/version
> "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe"
> /noresults
>
> /testcontainer:"E:\Aditya\Proxy\MCF_Test.webtest" /detail:errormessage
> set test.CheckProxy=
> -------------------.Batch File--------------------------------
>
> Thanks,
>
> Aditya
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to execute external program from powershell PowerShell
Can only execute gpg from powershell under MY account PowerShell
Execute a powershell script from a webpage PowerShell
Powershell Execute process PowerShell
How to execute (perl) scripts in Powershell without DOS box PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46