Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parsing value to report
#1
Not Solved
Hi all

I have the following code:

***quote ***
Code:
if val1=val2 Then
reporter.ReportEvent micPass,"Amount","Calculation ok"
    else
    reporter.ReportEvent micFail,"Amount", "Calculation wrong"
End if
***unquote***

val1's value is from the local dataTable and val2 is from a text field in my application.

Is it possible to have the value of val1 parsed to the report, so when a test is passed or failed, I am able to see the value of val2 ?
Reply
#2
Not Solved
Using string concatenation operator you can pass the values to Report

Code:
If val1=val2 Then
reporter.ReportEvent  micPass,"Amount" ,"Calculation ok and the Values are-> " &val1 & " and " &val2
else
reporter.ReportEvent micFail,"Amount", "Calculation wrong and the Values are-> " &val1 & " and " &val2
End if

Vijay
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help on rdlc report automation using uft souvikghosh_diatm 0 1,194 05-25-2017, 09:51 PM
Last Post: souvikghosh_diatm
  Jasper Report Automation TAUSIF 0 4,889 10-03-2013, 03:30 PM
Last Post: TAUSIF
  XML Parsing Problem ..Any suggestions Reed 0 1,903 08-02-2011, 04:59 AM
Last Post: Reed
  How to test PDF format report using QTP shilupg 1 6,922 01-19-2011, 03:18 AM
Last Post: NevadaMike
  problem in filtering the report vijay44 0 1,789 02-11-2010, 12:59 PM
Last Post: vijay44

Forum Jump:


Users browsing this thread: 1 Guest(s)