We have an application which generates links( more than
thousand) based on the time stamp dynmically.Each link will
download an xls file. we are supposed to click a particular
link (which link to click will be obtained thru some
buisiness logic).Now the issue is QTP is not recogniging
the link(say Var1) though its properties showed mandatory
fields text=xyz and html tag=A.I used following code to do
this.
Browser("ABC").Page("123").Link("text:=" &Var1,"html
tag:=A").click, can any one suggest why this is not
recognised by QTP though syntax is correct?(Is there any
sync issue to be considered?Because on clicking the link it
will take 5 mins to open that file)
Answers were Sorted based on User's Feedback
Answer / sachin
Thier was a similar issue faced while recording and
playing back the script.The scenario is described as below.
i have a windows based application ..i recorded an event
when where-in the application adds a contact to its contact
list
now the issue that i faced was after recording an event of
adding manually adding contact in the aplliction.i tried to
play back.But thier was a strange result. I Tool could
identify the Appliction but when it tries to execute the
recorded script for adding contact its fails.Infact the
same operation was successfully completed by the tool in
all previous version of the client.
Later after geting application design from the develpment
team it was known that actualy the form that load in
runtime ..so the respository value of the form did not
match with its run time value.Hence the tool fails at that
particular instance
guess the same scenario is depicted in the code mentioned
above.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dimple
Hey
try taking the innerText for thelink instead of text
or try using regular expression.
Hope this will help u
| Is This Answer Correct ? | 0 Yes | 0 No |
You can't use variable inside static dp. Everything should be static as the name suggest.Try using dynamic dp.It will definately work
| Is This Answer Correct ? | 0 Yes | 0 No |
How i can use Regular expression in QTP?give detailed steps for it.
How can we close all webbrowsers which are opened in out desktop?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
what is the difference between data driver & data driven and driver script?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
How to create basic scripts from a manual test case in QTP?
Write a function which returns the addition of two numbers. give the value of the numbers outside the function.
How software tester can use constants and variables in scripts?
How to work with multiple browsers when opened in the window, write the script for it
What is throw object?
what skills needed to be good test automation?
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?