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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
Hi,
Is there any function or vbscript in QTP to clear the
cookies,sessions. Please help me in this.
 Question Submitted By :: Babu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
Answer
# 1
webutil.DeleteCookies
 
Is This Answer Correct ?    1 Yes 0 No
Rayudu
 
  Re: Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
Answer
# 2
You can write your own function also:

Public Sub MyDelCookies()
	'Option Explicit 

	Dim strPath, WshNetwork, fso, objFol, objFile, var

	strPath="c:\Documents and Settings\"
	Set WshNetwork = CreateObject("WScript.network")
	
	strPath=strPath + WshNetwork.UserName +"\Cookies"

	Set fso = CreateObject("Scripting.FileSystemObject")
	Set objFol = fso.GetFolder(strPath)
	Set objFile = objFol.files
	For Each var in objFile
		If var.name<>"index.dat"  Then
			var.delete 
		End If
	 Next
	Set WshNetwork=Nothing
	Set fso=Nothing

End Sub

Please let me know if it helps.
 
Is This Answer Correct ?    0 Yes 0 No
Jay Prakash
 
 
 
  Re: Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
Answer
# 3
Hi rayudu,

I executed the script provided by you . it is working fine.
 
Is This Answer Correct ?    0 Yes 0 No
Babu
 
  Re: Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
Answer
# 4
where can i inculde the above script?Do i need to call this 
for each and every time when the QTP opens new window?
 
Is This Answer Correct ?    0 Yes 0 No
Latha
 
  Re: Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
Answer
# 5
Hi Latha,
I tried with the script by included in particular actions 
where i want. 

If i want to use it for each and every execution, i don't 
have any idea how to do it. Pls help me out in this.
 
Is This Answer Correct ?    0 Yes 0 No
Babu
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
how open two urls in one browser? plz urgent Satyam5
How many types of Parameters are available in QTP? and Pls Explain with example. LG-Soft3
Hi I am working with QTP.If I want to write a certification exams,Which one is the best one suggest me friends!!  2
What are associated files in QTP?  2
how to capture objects of remote deskop as it is capturing only window. Wipro1
how can i add an action(external action) programmatically? Ordain-Solutions2
If QTP not recognizing using repository while executing, how can we go forward  3
what does it mean when a check point is in red color? what do u do?  3
what are the different types of framesworks in QTP?what is the keyword driven framework? Mindlance1
Hi Friends... What you are doing in Regression Testing and how many test cases you ran in regression testing... suppose there is 1000 test cases is there how many test cases again you run .. 1000 test caes r how many... thanx in advance..  6
what is the use of automation objective model?where is used? plz tell me  1
How to manage a drag drop event in the qtp  1
what is standalone database Wipro1
In QTP, Which are the concepts are needed to do Functional testing and Regression testing? IBM3
how to pass parameters from one action to another using output parameters I am not calling action 2 from action 1, they are being called individually I need syntax please .. Requirement: Action 1 customer = Browser(" ").Page(" ").Link(" ").GetROProperty("value") I want to use the value stored in customer in Action 2 I do not want to use any of these actions as re-usable actions  2
how you have used object libraries? plzzzzz do answer  1
What is throw object? AZTEC1
What is source control?  1
Hello Everybody, please tell me how to use accessibility checkpoint and XML checkpoint by giving any practical example of it.please provide me the steps to perform that and also pls provide the code too. Thanks in advance, Gaytri  1
what is bultin funtaion in QTP &tell me five examples? Kanbay3
 
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