Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP for Beginners
#11
Solved: 11 Years, 3 Months, 3 Weeks ago
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.
Reply
#12
Solved: 11 Years, 3 Months, 3 Weeks ago Wink 
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
Reply
#13
Solved: 11 Years, 3 Months, 3 Weeks ago
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.
Reply
#14
Solved: 11 Years, 3 Months, 3 Weeks ago Wink 
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
Reply
#15
Solved: 11 Years, 3 Months, 3 Weeks ago
link nt working 118 error showing
Reply
#16
Solved: 11 Years, 3 Months, 3 Weeks ago
It is working fine at our end. Can you please check again and let us know?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#17
Solved: 11 Years, 3 Months, 3 Weeks ago
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?
Reply
#18
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#19
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  sample websites for beginners QTP.learning 2 3,971 05-30-2014, 02:25 PM
Last Post: Tarik Sheth
  QTP Beginners rvenkatesanmrv 2 3,938 06-14-2012, 05:49 PM
Last Post: Shridevi.Salagare
  QTP Beginners pradeep.ojha 7 6,197 12-02-2011, 09:23 AM
Last Post: Shweta Hooda
  Please read this: QTP Beginners Ankur 0 31,406 01-04-2008, 03:32 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)