|
291. How To "Turn Off" QTP Results After Running A Script?
Date Posted: 06/27/2012
Ans: Go to "Tools > Options > Run Tab" and Deselect "View results when run session ends". But this suppresses only the result window, but results will be created and can view manually which cannot be restricted from getting created.
|
|
|
292. When We Try To Use Test Run Option "Run From Step", The Browser Is Not Launching Automatically Why?
Date Posted: 06/27/2012
Ans: This is default behavior.
|
|
|
293. How To Suppress Warnings From The
Date Posted: 06/27/2012
Ans: From the Test results Viewer "Tools > Filters > Warnings"...must be "Unchecked".
|
|
|
294. What Is The Extension Of Script And Object Repository Files?
Date Posted: 06/27/2012
Ans: Object Repository: .tsr, Script: .mts, Excel: Default.xls
|
|
|
295. Types Of Properties That Quick Test Learns While Recording?
Date Posted: 06/27/2012
Ans: (a) Mandatory (b) Assistive.
In addition to recording the mandatory and assistive properties specified in the Object Identification dialog box, Quick Test can also record a backup ordinal identifier for each test object. The ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with an otherwise identical description (objects that have the same values for all properties specified in the mandatory and assistive property lists). This ordered value enables Quick Test to create a unique description when the mandatory and assistive properties are not sufficient to do so.
|
|
|
296. How To Open Any Application During Scripting?
Date Posted: 06/27/2012
Ans: SystemUtil, object used to open and close applications and processes during a run session. A SystemUtil.Run statement is automatically added to your test when you run an application from the Start menu or the Run dialog box while recording a test.
E.g: SystemUtil.Run "Notepad.exe"
SystemUtil.CloseDescendentProcesses (Closes all the processes opened by QTP)
|
|
|
297. How To Change The Run-time Value Of A Property For An Object?
Date Posted: 06/27/2012
Ans: SetTOProperty changes the property values used to identify an object during the test run. Only properties that are included in the test object description can be set.
|
|
|
298. How To Handle Run-time Errors?
Date Posted: 06/27/2012
Ans: On Error Resume Next: causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure. Using "Err" object msgbox "Error no: " & " " & Err.Number & " " & Err.description & " " & Err.Source & Err.HelpContext
|
|
|
299. Can We Script Any Test Case Without Having Object Repository? Or Using Object Repository Is A Must?
Date Posted: 06/27/2012
Ans: No. U can script without Object repository by knowing the Window Handlers, spying and recognizing the objects logical names and properties available.
|
|
|
300. How To Add A Runtime Parameter To A Datasheet?
Date Posted: 06/27/2012
Ans: By using Local Sheet property. The following example uses the Local Sheet property to return the local sheet of the run-time Data Table in order to add a parameter (column) to it:
MyParam=DataTable.LocalSheet.AddParameter("Time", "5:45")
|
|