Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to call reporter event through function
#1
Solved: 11 Years, 4 Months, 1 Week 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: 11 Years, 4 Months, 1 Week 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: 11 Years, 4 Months, 1 Week 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 3,034 05-17-2016, 08:22 PM
Last Post: robertosalemi
  Calling a function in a Test Script from a function library anupam4j 3 6,131 06-26-2015, 12:31 AM
Last Post: babu123
  How to capture objects of Event Viewer ? Vishnu Narayan 1 2,605 06-11-2015, 06:29 PM
Last Post: venkatesh9032
  Not able to call the function kathirvelnagaraj 1 2,618 01-06-2015, 07:24 PM
Last Post: kathirvelnagaraj
  Reporter unable to load results when objects are involved? Elimelech.Eli 2 3,816 06-01-2014, 01:37 PM
Last Post: Elimelech.Eli

Forum Jump:


Users browsing this thread: 1 Guest(s)