How will you generate Reports using Vb Script?it asked in
testing(QTP)Interview.Plz Any Body Let me know.
Thanks
uday
Uday_testing@yahoo.co.in
Answers were Sorted based on User's Feedback
Answer / arun
We can generate different types of reports...Choosing what
type of reports depents on the requirement.
1.QTP report:
reporter.reportevent micPass,"Testcase name","Details"
reporter.reportevent micFail,"Testcase name","Details"
2.Create report in xls file or .doc file or .txt file
3.Can store the data in the database and can display it in
html page.
| Is This Answer Correct ? | 2 Yes | 4 No |
Answer / satyanaryana
By using the following syntax we can pass the reports to the
result window
Reporter.Reportevent RESULT,"PERFORMED ACTION","USER DEFINED
STATEMENT"
EX:
Reporter.Reportevent Pass,"file creation","a new file is
created successfully"
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / shivendra
Reporter.Reprotevent
micPass/micFail/micDone/micWarning,ReportStepName,
StepDetail
Here you can choose one from
micPass/micFail/micDone/micWarning this is event status,
Second one is the Stepname and third one is step
description.
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / kkk
Hi
Simply say
1. Report. Report event 0, stepno1 “test pass”
Or
Report. Report event 1, stepno1 “test fail”
Here 0=pass, 1= fail
2. Msgbox (variable)
3 Get visible test
| Is This Answer Correct ? | 3 Yes | 8 No |
I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.
What are the special sub-types in vbscript?
How can you create an object in vbscript?
What are the advantages of vbscript?
Mention the rules for using option explicit statement?
What are string functions in vbscript?
What's the difference between vbscript and vb.net?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
How to open a file. What is the perpose of true and false mode there?
accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org
How to find arry size in qtp vb script
what is the use of Data base check point ?