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 excel sheets in the vbscript language and what statement is used to create this object?
Inorder to avoid Message box while writing script which alternative method can be used?
compare the string without using stringcomp function?
how to retrieve native property value in runtime?
How will you check that a variable is an array in vbscript?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
input values to accept 2 numbers & print the product, difference and sum using switch case
What is the output of a + b in vbscript if a = 5 and b = 10?
What are the properties of regexp object?
How to learn VB Script, Since iam working with QTP. So i need to learn VB script.
How will you get the last occurrence of one string within another string using vbscript?