cancel
Showing results for 
Search instead for 
Did you mean: 

CRM Web Portal automation using QTP 10

Former Member
0 Kudos

Hi All,

I have developed an automated script using QTP 10 to test CRM Web Portal. I developed the script on a Windows XP machine which runs IE 8. However, the script does not work on another machine which has it's OS as Windows 7(IE and QTP are still version 8 and 10 respectively). The script hangs at a point when it is expected to click on a web link. In order to debug the script failure, I used the QTP Object Spy whereby I observed that the "link" object is instead showing up as one of the selections of an "SAPNavigationBar" object.

Could anyone help me understand the cause for the difference in identification of objects?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashwini,

It's impossible for you to simply record/playback by using QTP for CRM_UI testing. CRM_UI will generate complicated dynamic attributes for all html elements. And QTP BHO for IE8 cannot penetrate into the SAPNavigationBar object.

Try using DOM manipulation like this:

Set node1= Browser("Browser").Page("index:=1").SAPFrame("index:=1").SAPNavigationBar("index:=1").Object.getelementsByTagName("a")
node1(6).Click

Set  node1=nothing

It will trigger a click event on the 6th link of the SAPNavigationBar object and if there are multiple SAPNavigationBar, use XPATH selector or Regular Expression to locate the very navigation bar.