Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to call reporter event through function
#1
Solved: 10 Years, 9 Months ago
Hello all,

Hi i want to export whole result i was created into excel, i did it , for that i was written a function, writeresults(status,efunctionality, edescription), so when i call this function like

WriteResults Reporter.ReportEvent micFail, "Custom Step", "The user-defined step failed."

It shows user undefined argument error can you please help me out

Thanks
Reply
#2
Solved: 10 Years, 9 Months ago
Hi,
Your call statement is wrong.
You will need to call it like:
Code:
WriteResults micFail, "something", "something"

And again in WriteResults function, you need to call Reporter.ReportEvent statement.
Code:
Reporter.ReportEvent status, efunctionality, edescription
Reply
#3
Solved: 10 Years, 9 Months ago
Thanks a lot mannav, can you please let me know how to export that datasheet and save on c:\ drive with all result.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] [WPF] Table: how simulate Click or DBClick event robertosalemi 0 2,770 05-17-2016, 08:22 PM
Last Post: robertosalemi
  Calling a function in a Test Script from a function library anupam4j 3 5,898 06-26-2015, 12:31 AM
Last Post: babu123
  How to capture objects of Event Viewer ? Vishnu Narayan 1 2,348 06-11-2015, 06:29 PM
Last Post: venkatesh9032
  Not able to call the function kathirvelnagaraj 1 2,468 01-06-2015, 07:24 PM
Last Post: kathirvelnagaraj
  Reporter unable to load results when objects are involved? Elimelech.Eli 2 3,457 06-01-2014, 01:37 PM
Last Post: Elimelech.Eli

Forum Jump:


Users browsing this thread: 1 Guest(s)