Reply
Contributor
dxia
Posts: 22
Registered: 12-09-2009
0

target of ASP webpage not captured correctly

[ Edited ]

Hi, I just trying to integrate iTest with Quality Manager from Ascom. It's an windows asp based web service, only works on IE and not firefox or chrome.

 

When I do the capture, seems all the actions are captured, but some of the targets are not correct. Please see the attachment for a sceenshot of the webpage, the line boxed by redline are not captured properly when I try to click and select it. While I replay the test case in IE, it just complained no target found. When I try to do a snapshot of the webpabe, iTest plugin was crashed and the whole session aborted.

 

page source and fftc file also attached. Not sure if there is any limitation on asp webpage testing?

 

Best Regards

 

Daniel

screenshot.JPG
Contributor
dxia
Posts: 22
Registered: 12-09-2009
0

Re: target of ASP webpage not captured correctly

webpage source follows

Community Leader
PreetS
Posts: 413
Registered: 09-03-2008
0

Re: target of ASP webpage not captured correctly

The targets being generated for the items in the table look like:

://LI[41]/DIV/DIV;

 

Which ir probably the 41st element in some list.

 

iTest's web application deals with the underlying HTML. These line items do not have any unique ID or any other unique attribute to them so they are being selected based on their position in the DOM.

 

When you exeucte the test case, this may not be the proper position again.

 

You would need to create a custom XPATH query to access these.

 

 

To make ir more generalized, I'd reccommend add the query to a form map. This query can, then also take in arguments.

Community Leader
PaulD
Posts: 1,214
Registered: 09-02-2008
0

Re: target of ASP webpage not captured correctly

The page source shows the information as it was pulled from the server.  But this page uses a lot of javascript.  So what would be more useful is to add a step to your test case that does a snapshot.  In this way, we can see what the page looks like after the javascript has operated on it.

 

If you look in the page source, they are doing some very strange stuff.  About halfway through the source, you'll find ctl00_cphBody_SchedulerControl_PreloadedListData which is a DIV containing all of the raw content of the big table.  I'm assuming that they have some client-side javascript that is using that information to dynamically populate an HTML table on the client side.  So we need to understand how it is generating that table.  My guess at the moment is that it may be generating dynamic tag IDs or something, so that the automatic mechanisms for target identification are not working, and you may have to hand-tune the target selection.

 

So please post the results of using a snapshot command (not for the screenshot, but for the DOM describing the live document in the browser).

 

By the way, what happens when you use this page from Firefox?  You say it only works in IE?  From a quick glance, I don't see why this restriction would be there.

Contributor
dxia
Posts: 22
Registered: 12-09-2009
0

Re: target of ASP webpage not captured correctly

The thing is, I cannot do a snapshot with this page in IE, it crashes.

 

When I tried to use firefox or internal browser(not very sure what it is, a light version of IE?) it just display a blank page. I doubt the data is received, just the browser doesn't know how to display it.

 

do you have an expample of doing this customized mapping?

 

Best Regards

 

Daniel

Community Leader
PaulD
Posts: 1,214
Registered: 09-02-2008
0

Re: target of ASP webpage not captured correctly

When you say, "it crashes", can you be more specific?  It sounds like there may be a bug somewhere that needs to be addressed!

 

Similarly, when looking at the internal browser, if you're seeing a blank page, there may be some problem there, too.  The internal browser in iTest is built on top of the standard Mozilla browser codebase -- the same one that lies under Firefox.  So you should see similar behavior in iTest's browser as you do with using Firefox completely outside of iTest.

 

I'd appreciate if you could connect with our customer support organization and they can arrange a session where we get to the bottom of these problems.  

Contributor
dxia
Posts: 22
Registered: 12-09-2009
0

Re: target of ASP webpage not captured correctly

I mean IE crashes, and it says the iTest plugin did some thing invalid.

 

Community Leader
PaulD
Posts: 1,214
Registered: 09-02-2008
0

Re: target of ASP webpage not captured correctly

Definitely sounds like a bug.  I'd really appreciate if you can connect with Fanfare support on this -- and you can refer to this exchange on the forum.

Community Leader
PreetS
Posts: 413
Registered: 09-03-2008
0

Re: target of ASP webpage not captured correctly

When you report the bug, could you please let the support team know the version of Internet Explorer you are using and the version of iTest.

 

Out of curiosity, does your web page work properly in standard Firefox installation?

Contributor
dxia
Posts: 22
Registered: 12-09-2009
0

Re: target of ASP webpage not captured correctly

iTest version: 3.4.2 build 43783

IE version: 6.0.2100.2980

Firefox version: 3.6.3

Windows version: XP SP2

 

The webpage displays a blank content on my firefox and iTest internal browser, while works properly on standalone IE.

 

BTW, the step which didn't capture the target correctly, is the step targeting "://INPUT[@type='button'];" the step targetting "://LI[41]/DIV/DIV" was correct, that's the click on the left colum.