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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
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
using descriptive programming how to close all opend browsers?
 Question Submitted By :: Punna.test
I also faced this Question!!     Rank Answer Posted By  
 
  Re: using descriptive programming how to close all opend browsers?
Answer
# 1
Public function closeBrowser()
On error resume next
   Ipval=Environment("Ipval")
   err.clear
   Browser(Ipval).Close
   If err.description<>"" Then
	   Reporter.ReportEvent micFail,"Wait",err.description
   End If
End Function
 
Is This Answer Correct ?    0 Yes 0 No
Moin
 
  Re: using descriptive programming how to close all opend browsers?
Answer
# 2
Set b=Description.Create
b("micclass").value="Browser"
Set obj=Desktop.ChildObjects(b)
For i=0 to obj.count-1
c=obj(i).GetROProperty("title")
msgbox " Closing.. " & c
obj(i).Close
Next
 
Is This Answer Correct ?    0 Yes 0 No
Ravi
 
 
 
  Re: using descriptive programming how to close all opend browsers?
Answer
# 3
asdfdsfdf
 
Is This Answer Correct ?    0 Yes 0 No
Shobha
 
  Re: using descriptive programming how to close all opend browsers?
Answer
# 4
http://funandknowledge.blogspot.com/2008/03/dp2.html
 
Is This Answer Correct ?    0 Yes 0 No
Snig
 
  Re: using descriptive programming how to close all opend browsers?
Answer
# 5
Do While(True)
	If Not Browser("index:=0").Exist(0) Then
		Exit Do
	End If
	Browser("index:=0").Close
Loop
 
Is This Answer Correct ?    0 Yes 0 No
Amarendra Kothuru
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Suppose there are 10 browsers opened on desktop. I want to close all browsers except one browser in QTP. Can any one give the code for this? IBM3
wt is automation framework? give explonation? Mindlance1
To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0  2
how to merge object repositories?  4
i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.) Syntel3
After running scripts how you report results ,there is any specific report form  1
Hai Guys, can anybody show me how to write automaed test cases using VB scprit(examples)...i had an interviw soon...please guyz send as quickly as possible  5
How can you capture(Read) the values from a Table?  1
what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not Syntel3
I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..  2
who will distribute the project modules for testing in testing team ?  2
Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties.. Clinical-Soft5
WHAT IS SMATR IDENTIFICATION? plz EXPLAIN BRIEFLY? IS IT POSSIBLE in QTP? HOW AND WHEn THE SITUATION U R USING EXPLAIN WITH EXAMPLE?  3
what type of application we can select for automation testing and what is the entry criteria for automation  1
What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.  1
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance  2
Hi Friends ,I want to Know name of the Site for the QTP Help and the Best Book through that I can start the QTP Practice here also whare can I download the QTP Users Guide I search I was Unable .  2
how to invoke the web application through script in qtp IBM5
Tell me few important difference Between QTP and WinRunner? TCS8
In QTP, while launching qtp application from startup.. we find Advanced Keyword-Driven Testing caption.. wht is that...Anybody can pls explain it. Thanks in Advance US-Technology1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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