Facebook

Course Name Start Date Time Duration Registration Link
No Training Programs Scheduled ClickHere to Contact
Please mail To sudhakar@qtpsudhakar.com to Register for any training

Monday, October 7, 2013

Html Results in QTP Framework

Customized Html Reporting available for download.
You just need to use reporter.reportevent to send results to html.

With just one statement you can send results to Html and to QTP result page. Click below link to download.

https://www.facebook.com/Qtpsudhakarblog/app_128953167177144

Don't forget to share it with your testing friends.

2 comments :

  1. Hi Sudhakar,

    Thanks for sharing such a valuable content. I think it would better if we optimize GetExecutionTime function as below.

    Function GetExecutionTime(StartTime,EndTime)
    GetExecutionTime = DateDiff ("s",StartTime - EndTime)
    End Function

    And instead of 'cHTMLFileName=Environment("TestName")&replace(date,"/","_")&"_"&replace(time,":","_")&".html"
    we can write cHTMLFileName=Environment("TestName")&Replace(Replace(now,"/","_"),":","_")&".html"

    ReplyDelete
    Replies
    1. That's good. It's not minus. use comma.

      Function GetExecutionTime(StartTime,EndTime)
      GetExecutionTime = DateDiff ("s",StartTime, EndTime)
      End Function

      Delete