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 |
How to create pull down menu box using vb script
How do you write an SQL insert statement?
what is the differance between BYVAL,BYREF?
What is the use of the formatdatetime function in the vbscript language?
Difference between Do while loop and while wend loop
What is the purpose of on error resume next statement?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
How to remove the spaces in a string Ex: "Welcome to QTPWorld" ?
what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
What is the scope of a constant declared using public?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?