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