Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make scripts sync with application
#1
Solved: 11 Years, 4 Months, 1 Week ago
Hi All,
I am using Descriptive Programming for my project and application has 10 pages.
On some page we have to select options from drop down. At that time it takes lot of time refresh the page. But because of this slow loading of page scripts are getting failed. To overcome from this issue i have used "wait" statement, but the proble is some time the application will get loaded quickly. At that time "wait" statement make scripts to wait for long time even the page loaded. I have used "Sync" but no use in DP.
Some time i did use
Code:
Do Until i=10
  i=i-1
  If i<10 Then Exit Do
Loop

Apart from this, is there any more solutions for my issue?

Regards
Raj
Reply
#2
Solved: 11 Years, 4 Months, 1 Week ago
Any updates on this

Regards
Raj
Reply
#3
Solved: 11 Years, 4 Months, 1 Week ago
hey ,
you can use
object.WaitProperty method .
Reply
#4
Solved: 11 Years, 4 Months, 1 Week ago
sreekanth,

Can u pls explain litle more info?

Regards
Raj
Reply
#5
Solved: 11 Years, 4 Months, 1 Week ago
Ankur,
any words from your side.
Regards
Raj
Reply
#6
Solved: 11 Years, 4 Months, 1 Week ago
Is it really necessary to go for Descriptive Programming? What are the problems you are facing with normal record and playback?

Secondly @Rajashekar, Please try to follow up on any thread you open till the time its fit to close.
At least reply with saying whether the solution posted worked or not, that might be helpful for other members as well.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#7
Solved: 11 Years, 4 Months, 1 Week ago
Ankur,

Yes i have to follow the Descriptive Programming, bcz i have designed the framework with DP only and normal record and playback not usefull in my project and i have tried that also.

Secondly sorry for not replying. Actually i got an answer from on in my previous question but not tried bcz of busy work. I will try the passing result to xls as you said and if it work then i will surely reply.

Regards
Raj
Reply
#8
Solved: 11 Years, 4 Months, 1 Week ago
ok...your code above looks fine just add one more line to it.
(here I assume you have initialized i to a value greater than 10)


Code:
Do Until i=10
[b]wait (1)[/b]

..........Your statements here
..........Your statements here
..........Your statements here

i=i-1
If i<10 Then Exit Do
Loop

by the way why do you think normal record and playback would not be useful in your project?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#9
Solved: 11 Years, 4 Months, 1 Week ago
Thanks for ur reply.

First one is I have not initiatted i nay where in my scripts.Is it really required initiatting i in VB?


Secondly.

I have developed Data Driven type framework and my application is too big,it has around 20 pages to navigate and it need lot of info to be passed. And appl is too valatile. On every buid there will some changes of object some where in 20 pages. So if follow Record and Play back the it will be difficult task and i also wriiten lot of reusable functions. i have to follow DP only.
Reply
#10
Solved: 11 Years, 4 Months, 1 Week ago
Hey Rajesh ,
here is my understanding from your previous post:
we have to select a value from dropdown(let it be country:=india) ,now your screen will refresh and you will have to wait until the page refreshes or other page loads (this will allow you to select a state:=punjab).


if it is your problem
the sol :
Code:
If Browser("index").Page("index").WebEdit("Account").WaitProperty("disabled", 0)
Then This code will wait here until the webedit is enabled
Code:
Browser("index").Page("index").WebEdit("Account").Set ("123")


End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make QTP Script to work when system gets locked? ramkumarad 6 12,518 11-02-2017, 03:37 PM
Last Post: Divv
Question Cross Browser Sync Not Working geodude 0 1,973 04-07-2017, 08:43 AM
Last Post: geodude
  How to use sync function 22sumit 2 3,484 06-16-2015, 06:27 PM
Last Post: 22sumit
  Local script to make compatible with QC automation2012 1 2,307 01-28-2015, 02:11 PM
Last Post: automation2012
  Need Excel template for mapping manual scripts to Automation scripts. ACCBAJPA 0 2,967 09-19-2013, 03:02 PM
Last Post: ACCBAJPA

Forum Jump:


Users browsing this thread: 1 Guest(s)