Micro Focus QTP (UFT) Forums
QTP for Beginners - 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: QTP for Beginners (/Thread-QTP-for-Beginners)

Pages: 1 2


RE: QTP for Beginners - Mukesh.Laxmidhar - 10-27-2010

Hi Shannon,

Well I'm not an expert like Ankur or the other guys but I think I know the answer to this question since I had the same problem.

In expert view choose a new line were you would like to have the delay, and write:
Code:
' For 10 seconds delay
Wait 10

Of course a better way from a performance aspect would be to have a function were it actually pauses as long as the page has not been done. But that is a question for the experts Big Grin

Kind regards,
Mukesh L.


RE: QTP for Beginners - A.Saini - 10-27-2010

Hi,

Yes, Performance is an important issue for all the application. Synchronization plays a useful role in the performance [reduce the chances of failure of the script due to speed].

There are different methods used for synchronization:
1) Wait: Used when a fix delay is required between steps
2) Waitproperty: Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step.
3) Sync: Waits for the browser to complete the current navigation

Smile


RE: QTP for Beginners - Mukesh.Laxmidhar - 10-28-2010

Hi Ankur,

about sync, when do we need to use it. Does QTP under no circumstance wait for a homepage to be loaded? Or does it actually wait to some degree?

Because if you are testing a big homepage with lots of functionality or links do we need to sync after each click that could lead to page reload?

Thanks,
Mukesh L.


RE: QTP for Beginners - A.Saini - 10-29-2010

Hi,

Actually this thing depends on the particular page/Browser. Different pages may take different time to load. On the basis of this load time we define the use of sync.

Code:
Sub Sync_Example()

'The following example uses the Sync method to wait for the

'Mercury Tours page to synchronize.

'before performing the next operation.

Browser("Mercury Tours").page("Mercury Tours").Sync

End Sub

Please let me know if you still have some doubt.
Smile


RE: QTP for Beginners - samareshbiswal - 12-24-2010

link nt working 118 error showing


RE: QTP for Beginners - Ankur - 12-25-2010

It is working fine at our end. Can you please check again and let us know?


RE: QTP for Beginners - pskyber - 05-28-2011

QTP Student handbook link is broken, any ideas or suggestion?
Does anyone know how to get the QTP Student handbook? the link seems to be broken?


RE: QTP for Beginners - selftechy - 10-03-2011

Add appropriate wait command or write a waitForElement function which waits for the object to exist on the screen or until some time. Pseudo code:

Code:
function waitForElement(arguments) {
i=0
do{
  check whether the object exists
   if so {
     break;
   }
wait(2)
i=i+1
while (i<some number)
End function



RE: QTP for Beginners - Acharya_silu@yahoo.com - 10-03-2011

ANS:

-Try to Learn how Record and playback is used in an application by QTP.
-Try to Learn about Local object Repository and Shared Object Repository...
-Try to Learn how to pass parameters through DataTable...
and much more things u have to learn ..

Thanks