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 |
Tel me what was the automation testing process you followed?
how to capture tool tip in QTP and which check point is needed
I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?
Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
How to check and display a particular word from a paragraph?
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
Is text area check point supports for web applications?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
Explain features of the latest version of qtp/ uft 12.1?
I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.
what is descriptive programming?