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 |
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.
What is dictionary object in vbscript? Explain?
How to Import data from a file (file is on the desktop) to the data table
How will you get a string with the specified character the specified number of times in vbscript?
Mention characteristics of sub procedures?
How can you fetch the value of a cookie?
Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
How do you create a recordset object in VBScript?
Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10
How to load vbs functions in qtp