Micro Focus QTP (UFT) Forums
Question about QTP tutorial - - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Question about QTP tutorial - (/Thread-Question-about-QTP-tutorial)



Question about QTP tutorial - - Yousuf - 11-13-2013

Hello all,
I am a beginner in QTP and I have a question related to the tutorial provided by HP. I am using the QTP 11.0.
I have a very basic question that I am hoping someone would be able to answer for me. Thanks in advance for your help.

In the QTP tutorial, chapter entitled "Creating checkpoints and using Functions", subheading "Performing a check using a function", the tutorial says, under step
4) e) Learn the 12/29/<current year> object.
From the Object Repository Manager, select Object > Add Objects. The Object Repository Manager window is minimized, and the cursor changes to a pointing hand.
Click the text string 12/29/<current year>.
Make sure that the object WebElement: 12/29/<current year> is highlighted in the Object Selection dialog box.
Click OK. The 12/29/<current year> object is added to your repository.


My question is, why does QTP have to learn the 12/29/<current year> object?
Shouldn't it be able to recognize it from the repository which we created in chapter "Creating Object Repositories", subheading "Using Multiple Object Repositories" step 6 - Create a new shared object repository, add objects to it, and save the repository.
I am pasting Step 6 again here for your convenience.
  1. a. In the Flight Finder page, click Continue. The Select Flight page opens. You are now ready to add objects from this page.

  2. b. Switch to the Object Repository Manager window and choose File > New. A blank shared object repository opens.

  3. c. In the Object Repository Manager window, choose Object > Navigate and Learn. Both QuickTest and the Object Repository Manager are hidden.

  4. d. Click the Select Flight page title bar to change the focus from the Navigate and Learn toolbar to the Web page you want QuickTest to learn

  5. e. In the Navigate and Learn toolbar, click the Learn button. The Web page flickers and the Adding Objects message box is displayed as QuickTest begins adding representations of the objects on the Web page to a new object repository. Adding these objects takes a few seconds. Do not interact with the Web page while Navigate and Learn runs.

  6. f. In the Navigate and Learn toolbar, click the Close button. The Navigate and Learn toolbar closes, and QuickTest and the Object Repository Manager window are visible again.

  7. g. In the Object Repository Manager window, choose File > Save or click the Save button. The Save Shared Object Repository dialog box opens.

  8. h. Browse to the Tutorial_ObjectRepositories folder and select it. In the File Name box, enter MercuryToursSelectFlight and click Save.


Thanks again.


RE: Question about QTP tutorial - - Yousuf - 11-15-2013

*bump*
any replies would be appreciated.