Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
Selenium 4 + Cucumber BDD 29th January 2020 7.00 AM IST to 8:30 AM IST 40 Days WeekDays Online

A book "Cracking the QTP interview" authored by Sudhakar.Read More. Buy From FlipKart

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