Friday, March 20, 2009

Coded web test - How to Send an email after test run and after test success or fail

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2724147&SiteID=1



Hi,

I want to send a successful email to a user through smtp server if test run success and on the other hand if web test fail, then i want to sent a failed email message to the user as notification.

I can send normal email from the coded scripts.

But I don't know how to retrieve web test run result status: pass or fail .........

I want to know the exact command or code as if I can able to send an email after the test run and after it's run success or fail

I very much appreciate your help. Noted that I am using VSTS 2005

Thanks,
Jaeed


-----------------------------------------------------------------------------------------

Answer Re: Coded web test - How to Send an email after test run and after test success or fail Was this post helpful ?

In VSTS 2008, in your coded web test, you can call this.Outcome.ToString(). In VSTS 2005, the property is not exposed.

Thanks.


------------------------------------------------------------------------------------------------


Re: Coded web test - How to Send an email after test run and after test success or fail

Thanks a lot Yutong. Jaeed

No comments:

Unix/Linux Commands

  Flow control Syntax break Exit a loop. continue Exit the current iteration of the loop and proceed with the next iteration. Ctrl+C Key com...