ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
if there r 10 windows open in QTP write a command to close 
all 10 windows at a time ?
 Question Submitted By :: Chandana
I also faced this Question!!     Rank Answer Posted By  
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 1
By using "micclass", we should create Description object.
Then using For loop we count the Dialog objects, and close 
it.
 
Is This Answer Correct ?    0 Yes 0 No
A
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 2
can u explain it clearly plzzzzzz
 
Is This Answer Correct ?    0 Yes 0 No
Rajesh
 
 
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 3
By using
SystemUtil.CloseProcessByWndTitle "*.*", True
 
Is This Answer Correct ?    3 Yes 0 No
Arunsingh
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 4
if  Browser("micClass:=Browser","index:=0").Exist(0) Then
						
Browser("micClass:=Browser","index:=0").Close


Above line of code will close all the open Browsers.
 
Is This Answer Correct ?    1 Yes 2 No
Sudheer Kumar Putsala
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 5
closedCount = SystemUtil.CloseProcessByName("iexplore.exe")

'Display # of closed windows
MsgBox closedCount


If you want to know more refer this link 
http://www.knowledgeinbox.com/documents/closingprocesses.html
 
Is This Answer Correct ?    1 Yes 1 No
Ashok
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 6
You can use the following function. or simply 
SystemUtil.CloseProcessByName "IEXPLORE.EXE"

Public Function CloseBrowser()

    SystemUtil.CloseProcessByName "IEXPLORE.EXE"
   
End Function
 
Is This Answer Correct ?    1 Yes 1 No
Srinadh
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 7
Option Explicit
Dim ObjBrow,ObjName,ObjBrowName
Set ObjBrow = Description.Create()
ObjBrow(micClass).values = "Browser"
ObjName = Desktop.ChildObject(ObjBrow)
msgbox = ObjName.count
for i = 0 to  ObjName.count
	ObjBrowName = ObjName(i).getROproperty("Name")
	msgbox(ObjBrowName)
	ObjName(i).close
Next

Thanks,
Sandip Gami,
Cell No: 09986645937
 
Is This Answer Correct ?    5 Yes 0 No
Sandip
 
  Re: if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
Answer
# 8
If u are using iexplore then use this function
SystemUtil.CloseProcessByName ("iexplore.exe")

For mozilla only change the name i.e iexplore.exe
 
Is This Answer Correct ?    3 Yes 0 No
Kamaldeep Singh
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How will you handle the situation when object is not captured during record?  2
How do you connect to database ,What is the script to connect DATA BASE? Nokia2
How u call functions in QTP Function to calculate the length of characters in a word -  4
how to use command prompt using qtp? HCL7
What does VBS file contain..? what is VBS file.?  4
There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me Livetek2
Wht is Smart Identification Mechanisam in QTP..Actually when do we this Technology means during Recording or running ....how is technology works. Anybody can expalin this .....Thanks in advacne Siemens4
When and why do you use "OPTION EXPLICIT" in VB Script. Is there any online help or something to learn the script for Beginners?  5
How do you export an output to a excel sheet? Ex: I get my answer by using Msgbox"..." &R. How do I displayed the result of the Msgbox (such as R) to an excel sheet? Please let me know.Thanks ADC2
what is the difference between Automation object model(AOM) and test object model(TOM) UHG2
what is recovery scenario in QTP? what is the need of the recovery scenario in QTP? what are the advantages of the recovery scenarios in QTP? CTS3
What is your role and responsibilities in QTP with your current organization?  1
What is the differnce between action & script  1
what is Compile Module in QTP? what exactly it contains Functions or Actions?  1
How to export(copy) the entire webtable from the webpage into Excelsheet? using Vb scripting  9
What is the method for maximize the application while we using Decriptive programming in QTP?  2
what is Action conversion tool? what the Action conversion tool will do? Satyam1
write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this? IBM2
Can objects recognised without repository?  4
How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com