Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help in automation of broken links in Application
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi

We are in process of automating sharepoint Application which has lot of Menus and Links using QTP , We are having issues :

1.Embedded links which are not visible on the page are also getting identified by QTP ( please let us know a way such that QTP wont identify them , tried class property & other properties of links)

Please let us know if you faced similar problems

Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Did you try using the visible property.
ex:
''******If you are trying for only one link object********
''Checking the existence and visible property simultaneously, use this your sure the link will exist for sure.
Code:
if Hierarchy.Link(abc).Exist and Hierarchy.Link(abc).GetRoProperty("visible") then
End if

'*****OR use the below code if your not sure of the link existence****
Code:
if Hierarchy.Link(abc).Exist then
if Hierarchy.Link(abc).GetRoProperty("visible") then
  'do your operrations
End if
End if

'*******Else if your trying to get link object collection********
''The above code gives the number of links visible in screen.
Code:
Set LinkObj = Description.Create
LinkObj("micclass").Value = "Link"
LinkObj("visible").Value = "True"

Set LinkObjColec = Hierarchy.ChildObjects(LinkObj)
msgbox LinkObjColec.count
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Thank you so much..the code was working with some changes
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Verify images get properly loaded or not(Broken Images) in respective pages nilanjans 4 4,144 01-17-2013, 10:51 AM
Last Post: nilanjans
  Automation of Mobile Application testing using QTP sreddy 3 6,493 12-17-2012, 08:02 PM
Last Post: Ankur
  "How to perform automation on Windows application" suresz449 1 3,353 10-15-2012, 11:30 PM
Last Post: agarwl.anurag
  If application crashes or hangs, how to execute next test cases in automation kalyani0820@gmail.com 4 6,273 11-18-2011, 11:56 AM
Last Post: vinod123
  How to get Broken Link Results?? vIns 1 2,387 07-05-2011, 09:12 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)