Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can we make a script failed?
#1
Solved: 11 Years, 4 Months ago
Hi Basanth,

By adding this line of code
Reporter.ReportEvent micpass, "Login Report", "User Has logged in Successfully"

all the scripts are running and result in green graphs, i need to ask, if we wanna show that a script with invalid user cerdentials as failed...
em confused over this, please do guide me.
Reply
#2
Solved: 11 Years, 4 Months ago
Reporter.ReportEvent micFail, "Login Report", "Invalid User"
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 11 Years, 4 Months ago
Try this,
Code:
Reporter.ReportEvent micPass, "User Login", "Login Successfull"
Mind the caps on micPass.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make QTP Script to work when system gets locked? ramkumarad 6 12,493 11-02-2017, 03:37 PM
Last Post: Divv
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,288 05-05-2015, 11:40 PM
Last Post: babu123
  Local script to make compatible with QC automation2012 1 2,304 01-28-2015, 02:11 PM
Last Post: automation2012
  How to make QTP take the value of a formula in a spreadsheet? utestqa 1 3,127 07-06-2013, 04:13 PM
Last Post: Ankur
  Can a make Shared OR be made a Local OR sams001 0 1,921 10-30-2012, 03:07 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)