SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Advanced Member
    Join Date
    May 2006
    Location
    United Kingdom
    Posts
    742
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    HTML link in reporter.reportevent in UFT11.5

    Is there any change in UFT reporter module. I am unable to insert the HTML link in UFT11.5 report.

    sMyfile = "C:\Automation\10-04-2013 20-18-16.png"

    'Tried many combination &lt; &amp; &gt < etc.

    Reporter.ReportEvent micFail,"ImagePath","<img src=" & chr(34) & sMyfile & chr(34) & ">"
    Reporter.ReportEvent micFail,"ImagePath","&lt;<img src='" & sMyfile & "'>&gt;"
    Reporter.ReportEvent micFail,"ImagePath","&lt;img src='" & chr(34) & sMyfile & chr(34) & "'&gt;
    Reporter.ReportEvent micDone, "This is HTML", "&amp;lt;&lt;span style='color:cyan'&gt;Text goes here &lt;/span&gt;"

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

  3. #3
    Member
    Join Date
    Jan 2008
    Posts
    336
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hi Tarun,

    As you mentioned in your Method 1, i ran below step, but it is not reporting in HTML format. Rather it displays the HTML text.

    Code:
    Reporter.ReportEvent micPass, "Color Text", "&amp;lt;&lt;span style='color:red'&gt;This is red color&lt;/span&gt;"
    Is there a QTP compatibility issue? I am using QTP 10.

    Thanks,
    Uday

  4. #4
    Advanced Member
    Join Date
    May 2006
    Location
    United Kingdom
    Posts
    742
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Yes i've tried that link before this posting. It seems reporter taking character literally.
    Last edited by Yogi_Shukla; 04-10-2013 at 11:02 PM.

  5. #5
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0
    Method 1 will work no more. You need to use the 2nd method

  6. #6
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Rajkumar

  7. #7
    Advanced Member
    Join Date
    May 2006
    Location
    United Kingdom
    Posts
    742
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Thanks for examples
    Tarun,
    <TABLE border='1'><TR><TD>Actual Value</TD><TD>Tarun</TD></TR><TR><TD>Expected Value</TD><TD>Tarun Lalwani</TD></TR><TR><TD>Checkpoint Status</TD><TD style='background-color:red'>Failed</TD></TR></TABLE>

    Raj,
    Screenshot: &lt<a HREF=''> Click here </a>&gt


    I think QTP deprecate HTML embedded support in Report {including unsupported (&amp }. The Undocumented logevent expected to work but It seems that security module in Reporter module is made intelligent enough to sneak the HTML tag out. But nothing big to loose anyway.
    Last edited by Yogi_Shukla; 04-11-2013 at 01:10 PM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:07 PM.

Copyright BetaSoft Inc.