Results 1 to 14 of 14

Thread: Recording Prob in QTP

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    12

    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


  2. #2
    Contributing Member
    Join Date
    Feb 2006
    Answers
    33

    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.


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    12

    Re: Recording Prob in QTP

    I selected samething.It happens only sometimes.

    Mahi


  4. #4
    Contributing Member
    Join Date
    Feb 2007
    Answers
    48

    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.


  5. #5
    Junior Member
    Join Date
    Feb 2007
    Answers
    2
    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.

  6. #6
    Junior Member
    Join Date
    Feb 2007
    Answers
    12

    Re: Recording Prob in QTP

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

    Thanks for all your suggestions!

    Mahi


  7. #7

    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...


  8. #8
    Contributing Member
    Join Date
    Feb 2007
    Answers
    48

    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


  9. #9
    Junior Member
    Join Date
    Feb 2007
    Answers
    12

    Re: Recording Prob in QTP

    Hi,

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

    Thanks,
    Mahi


  10. #10
    Contributing Member
    Join Date
    Feb 2007
    Answers
    48

    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


  11. #11

    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...


  12. #12
    Contributing Member
    Join Date
    Feb 2007
    Answers
    48
    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.

  13. #13
    Expert Member
    Join Date
    Apr 2007
    Answers
    147
    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.

  14. #14
    Moderator
    Join Date
    Sep 2006
    Answers
    920

    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.

    Regards,
    Brijesh Jain
    ---------------------------------------------------------
    Connect with me on Skype: jainbrijesh
    Google Plus : jainbrijeshji

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact