Micro Focus QTP (UFT) Forums

Full Version: expected result in QC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All

I have created Test script in QC and when i run that script status of each step gets updated "passed" or fail but nothing is there in expected and actuall if i want to add these details what is the way to implement that .

if i execute the same test case manully and see the results it show me both expected and actuall result which i have written while creating the test steps .
kindly help .
lalit
you could use Reporter.ReportEvent
For example:

Reporter.ReportEvent micDone, "TestName", "The Expected Result was: "&YourExpectedResultVarable&" The Actual Result was: "&YourActualResultVarable&""
Hi I am new to this forum.
How can I insert new lines with in Reporter.Report event method.
I would like to see the output message in the test results window as below:
Monday
Tuesday
Wednesday
in stead of "Monday Tuesday Wednesday"

Thank you,
Madhu
Hi Madhu,

Try as given below, hope it would solve your query.Smile

Code:
Reporter.ReportEvent micPass,"TestName","Monday"&vbNewline&"Tuesday"&vbNewline&"Wednesday"
Thanks Sreekanth.
I am working with reports, and it worked perfect

Thanks From México
Thankx Jackomcnabb

but i want what so i have written in my test step in expected field should be shown when i run from QTP
here what u have suggested will show the result in description fields and expected and actual filed in test result will be blank