Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
WhatsApp to 91-8328152362 for address details of AnyTechLabs
Selenium + Appium 27th February 2019 7.00 AM IST to 8:45 AM IST 45 Days Class Room + Online AnyTechLabs
Selenium + Appium 9th March 2019 9.00 AM IST to 2.00 PM IST 5 WeekEnds Class Room + Online AnyTechLabs

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