Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Recording Prob in QTP

This is a discussion on Recording Prob in QTP within the QTP forums, part of the Software Testing category; While recording in QTP, no script is being generated, neither in the tree view nor in the expert view. What could be the problem?.It is happening sometimes,not all the time(Browser ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-27-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
Sudhan_Otsuka is on a distinguished road
Recording Prob in QTP

While recording in QTP, no script is being generated, neither in the tree view nor in the expert view. What could be the problem?.It is happening sometimes,not all the time(Browser IE)

I appreciate your help!

Thanks,
Mahi
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-28-2007
Contributing Member
 
Join Date: Feb 2006
Posts: 37
Thanks: 3
Thanked 7 Times in 6 Posts
dsharma is on a distinguished road
Re: Recording Prob in QTP

When you start recording your tests, a dialog box appears with the named 'Record & Run Settings'. Check the Web Tab. The radio button Record & Run on any open web browser SHOULD be selected.
Reply With Quote
  #3 (permalink)  
Old 02-28-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
Sudhan_Otsuka is on a distinguished road
Re: Recording Prob in QTP

I selected samething.It happens only sometimes.

Mahi
Reply With Quote
The Following User Says Thank You to Sudhan_Otsuka For This Useful Post:
  #4 (permalink)  
Old 03-01-2007
Contributing Member
 
Join Date: Feb 2007
Location: Delhi
Posts: 51
Thanks: 3
Thanked 12 Times in 6 Posts
smganesh is on a distinguished road
Re: Recording Prob in QTP

QTP will not identify the browsers, which were opened earlier. ie, QTP identifies only those browsers which were opened after opening QTP application.
Reply With Quote
  #5 (permalink)  
Old 03-01-2007
Junior Member
 
Join Date: Feb 2007
Location: Jersey city
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
smoin is on a distinguished road
Hi,
It might be due to cache problem, the pages are not getting download properly. Try to refresh the page.

Hi,
It might be due to Cache problem. Try to refresh or delete cookies and record again.

Thanks
Syed

Last edited by jainbrijesh; 05-19-2007 at 04:43 AM.
Reply With Quote
  #6 (permalink)  
Old 03-02-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
Sudhan_Otsuka is on a distinguished road
Re: Recording Prob in QTP

I guess SMGANESH right!.I tried as he mentioned and working fine.

Thanks for all your suggestions!

Mahi
Reply With Quote
  #7 (permalink)  
Old 03-21-2007
Junior Member
 
Join Date: Mar 2006
Location: hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Ravikantha Gowd H is on a distinguished road
Re: Recording Prob in QTP

One of the reasons might be, you have opened many browsers. So, please close the other browers and open the browser only after you open QTP...
Reply With Quote
  #8 (permalink)  
Old 03-21-2007
Contributing Member
 
Join Date: Feb 2007
Location: Delhi
Posts: 51
Thanks: 3
Thanked 12 Times in 6 Posts
smganesh is on a distinguished road
Re: Recording Prob in QTP

Hi Ravikantha,

No matter of number of open browsers if we use descriptive programming (by using browser title and creation time).

Also, we can write some code to close all opened browsers before opening the AUT (Application under test).

Regards,
SM Ganesh
Reply With Quote
  #9 (permalink)  
Old 03-21-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
Sudhan_Otsuka is on a distinguished road
Re: Recording Prob in QTP

Hi,

Can anyone tell me the code for closing all the browsers before we execute the script...?.

Thanks,
Mahi
Reply With Quote
  #10 (permalink)  
Old 03-22-2007
Contributing Member
 
Join Date: Feb 2007
Location: Delhi
Posts: 51
Thanks: 3
Thanked 12 Times in 6 Posts
smganesh is on a distinguished road
Re: Recording Prob in QTP

Here is the script to close all browsers:

==========================================
Dim oBrowser
Set oBrowser=Browser("name:=.*","index:=1")
Do while oBrowser.exist
oBrowser.close
Set oBrowser=Browser("name:=.*","index:=1")
Loop

==========================================

Regards,
Ganesh
Reply With Quote
  #11 (permalink)  
Old 03-28-2007
Junior Member
 
Join Date: Mar 2006
Location: hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Ravikantha Gowd H is on a distinguished road
Re: Recording Prob in QTP

Hi Ganesh, Thanks for the answer given. But, I feel your first answer ("QTP will not identify the browsers, which were opened earlier. ie, QTP identifies only those browsers which were opened after opening QTP application".) is correct, rather second one. second one is correct only when, we will write the script...It's not related to RECORDING SCRIPT....(As per I know, Descriptive Programming is used, when we do not have application ready but have an idea on requirements...) Correct me if my observation is wrong...
Reply With Quote
  #12 (permalink)  
Old 04-03-2007
Contributing Member
 
Join Date: Feb 2007
Location: Delhi
Posts: 51
Thanks: 3
Thanked 12 Times in 6 Posts
smganesh is on a distinguished road
Thank you Ganesh!!

Hi Ravikantha Gowd,

No matter whether it is recorded script or descriptive programming, QTP will not recognize any browsers that were opened before opening QTP. This is for sure.

Regards,
Ganesh

Last edited by jainbrijesh; 05-19-2007 at 04:44 AM.
Reply With Quote
  #13 (permalink)  
Old 04-30-2007
Expert Member
 
Join Date: Apr 2007
Location: Kolkata
Posts: 151
Thanks: 3
Thanked 11 Times in 10 Posts
debleena23 is on a distinguished road
Quote:
Originally Posted by smganesh View Post
Hi Ravikantha Gowd,

No matter whether it is recorded script or descriptive programming, QTP will not recognize any browsers that were opened before opening QTP. This is for sure.

Regards,
Ganesh
Hi
I think therr's a disconnect regarding this. I tried recording a Browser which i had open before the QTP window. It records. BUT it is recording only when a fresh link is opened.

As per the Recording problem is considered.... Just go to Test->Record and Run Settings.... and select the 1st radio button in all the Tabs. This is enough

Last edited by jainbrijesh; 05-19-2007 at 04:43 AM.
Reply With Quote
  #14 (permalink)  
Old 09-18-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 910
Thanks: 12
Thanked 111 Times in 76 Posts
jainbrijesh will become famous soon enoughjainbrijesh will become famous soon enough
Re: Recording Prob in QTP

Quote:
Originally Posted by smganesh View Post
Thank you Ganesh!!

Hi Ravikantha Gowd,

No matter whether it is recorded script or descriptive programming, QTP will not recognize any browsers that were opened before opening QTP. This is for sure.

Regards,
Ganesh
Whether QTP should recognize any open browsers or not, it depends on run settings, which a tester set by himself.So, we can't say that QTP will not recognize any browsers that were opened before opening QTP.Yes, we can instruct QTP to do so, which we generally do in most of the cases knowingly or unknowingly.
__________________
--
Brijesh Jain
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Error While Recording in QTP Shivanna QTP 4 06-23-2008 02:44 PM
i-Sound WMA MP3 Recorder turn your computer into complete audio recording studio. JobHelper Geeks Lounge 0 01-25-2007 12:00 PM


All times are GMT -4. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved