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



We have an application which generates links( more than thousand) based on the time stamp dynmical..

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

We have an application which generates links( more than thousand) based on the time stamp dynmical..

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

We have an application which generates links( more than thousand) based on the time stamp dynmical..

Answer / vinodhanandhan

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

Post New Answer

More QTP Interview Questions

Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.

2 Answers  


What type of framework you are using in your company and explain it?

4 Answers   CTS,


Hi Friends, while playing the recorded test i am getting this error "Cannot identify the object "q" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application." error is coming in this line of code "Line (2): "Browser("Google").Page("Google").WebEdit("q").Set "airtel broadband"". " .... please tell me how to overcome this problem. need help asap... Thanx in advance

3 Answers  


Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5

2 Answers  


How to replay a script in qtp?

0 Answers  






whow much strong on VB and C?

0 Answers   UHG,


Can any one please list me out the shortcut keys for some functionalities in the QTP .. for example ..to record...to run...etc

6 Answers   Keane India Ltd,


Explain the concept of how quicktest professional identifies object?

0 Answers  


we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position part2:maore than the answer for this question i want the the reason why testers go for this kind of risk.what is the use of we testers having these kind of attempts.is that not the problem with the developer .pls answer .real time users of tools.in which way these solutions help to test with r without affecting the developed souce code.

3 Answers  


In qtp,how to interact tool & application build?

1 Answers   Polaris,


What are the advantages of parameterization ?

0 Answers  


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  


Categories