|
231. What Are The Different Scripting Languages You Could Use When Working With QTP?
Date Posted: 06/27/2012
Ans: Visual basic, XML, JavaScript, Java, HTML.
|
|
|
232. What Do You Call The Window Testdirector-testlab?
Date Posted: 06/27/2012
Ans: “Execution Grid”. It is place from where we run all manual/automated scripts.Ans:
|
|
|
233. How Can I Check If A Checkpoint Passes Or Not?
Date Posted: 06/27/2012
Ans:
Chk_PassFail = Browser (...).Page (...).Web Edit (...).Check (Checkpoint ("Check1"))
if Chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if
|
|
|
234. What Do You Mean By Iteration?
Date Posted: 06/27/2012
Ans: Each run session that uses a different set of parameterized data is called as iteration.
|
|
|
235. Have You Ever Written A Compiled Module? If Yes Tell Me About Some Of The Functions That You Wrote?
Date Posted: 06/27/2012
Ans: I used the functions for capturing the dynamic data during runtime. Function used for capturing Desktop, browser and pages.
|
|
|
236. How To Convert A String To An Integer?
Date Posted: 06/27/2012
Ans: CInt () ->a conversion function available.
|
|
|
237. How To Verify The Cursor Focus Of A Certain Field?
Date Posted: 06/27/2012
Ans: Use “focus” property of “GetRoproperty” method.
|
|
|
238. How To Make Argument Optional In A Function?
Date Posted: 06/27/2012
Ans: This is not possible as default VBS don’t support this. Instead you can pass a blank scring and have a default value if arguments are not required.
|
|
|
239. My Test Fails Due To Checkpoint Failing, Can I Validate A Checkpoint Without My Test Failing Due To Checkpoint Failure?
Date Posted: 06/27/2012
Ans:
Reporter. Filter = rf Disable All;’Disable all the reporting stuff
Chk_PassFail = Browser (…). Page (…). Check (Checkpoint (“Check1”))
Reporter. Filter = rfEnableAll 'Enable all the reporting stuff
if Chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if
|
|
|
240. How Can I Import Environment From A File On Disk?
Date Posted: 06/27/2012
Ans: Environment. Loadfromfile “C:Env.xml”.
|
|