Skip to main content

developerWorks >  Rational  >  Forums  >  Functional and GUI Testing  >  developerWorks

RFT unable to recognize/work with objects in secondary browser windows- IE8    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 18 - Pages: 2 [ 1 2 | Next ] - Last Post: Nov 19, 2009 4:34 PM Last Post By: KRauer Threads: [ Previous | Next ]
ShelleyBeanz

Posts: 28
Registered: Nov 15, 2006 03:12:05 PM
RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 16, 2009 08:23:19 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi there,
I posted this question in another forum earlier and it was suggested I move it here. I also have more information now, so I can hopefully pinpoint the issue a little better. We have scripts that run against a website, that when a link is clicked, opens a secondary window. We need to be able to access the objects in the second window, take some VP's, then close that window and return to the first. It used to work fine with RFT v. 7.1 and RFT v. 8.1 when we were running previous versions of Internet Explorer. Now that we've upgraded to IE 8, however, it crashes on the second window and we get a message that says:

exception_name = com.rational.test.ft.AmbiguousRecognitionException
exception_message = CRFCN0527E: Found 3 instances of the same test object. This often happens when multiple instances of the application are running.
Details: Looking for BrowserTestObject(Name: browser_htmlBrowser, Map: htmlBrowser).

Is there a setting that we need to change in RFT that will allow us to continue to recognize secondary windows? If anyone else is successfully using RFT against a web-based application in IE 8, that does open up secondary windows, I'd love to hear from you!
Thanks,
Shelley
pabrams

Posts: 460
Registered: Jan 06, 2009 04:57:08 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 16, 2009 09:42:29 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
I don't think there is a setting. What you need to do is find a way to distinguish the second browser window from the first. Usually, the caption property of the browser is the easiest choice, but if the caption is the same on the two windows you could use some other property... possibly the URL?
mFoster711

Posts: 133
Registered: Jan 04, 2008 04:25:49 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 16, 2009 11:50:23 AM   in response to: pabrams in response to: pabrams's post
 
Click to report abuse...   Click to reply to this thread Reply
I agree with pabrams. There is not setting, this has something to do with your Recognition Properties for you BrowserTestObject. What properties do you use for the browser in the object map? If you use Caption as one of the Recognition Properties and the caption displays different in IE6 vs IE7 or IE8 then this would cause issues. For example, I know that IE6 display that caption as "your page name - Microsoft Internet Explorer" and IE7 displays the same page with a caption of "your page name - Windows Internet Explorer". These captions are different.
loserjoe

Posts: 20
Registered: Sep 21, 2006 11:26:07 AM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 19, 2009 10:46:44 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
We have had similar problems and resolved it by anchoring the HTML document object contained in the PopUp window to the Html browser object of the PopUp window. We also had to add another recognition proberty (documentName) to the Html.HtmlBrowser class. This is done in the Configure Object Recognition properties. I know that we had some problem getting the added recognition property to be included when we added the browser object to the script, but I can't remember all the details. I thnk we did a right mouse operation on the object in the object map and selected Update recognition properties.

Example of anchoring.

browser_htmlBrowser2(document_avdoc(),DEFAULT_FLAGS);
ShelleyBeanz

Posts: 28
Registered: Nov 15, 2006 03:12:05 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 19, 2009 10:51:06 AM   in response to: loserjoe in response to: loserjoe's post
 
Click to report abuse...   Click to reply to this thread Reply
Thanks loserjoe - this looks promising.
Just wondering, for the example of anchoring you provided:

browser_htmlBrowser2(document_avdoc(),DEFAULT_FLAGS);

Do you put this in each script? Or is it something you'd put in the object definition class file? I'm just not quite clear exactly how and where you'd use it.

If you could perhaps include a screenshot, that would be very helpful!!
loserjoe

Posts: 20
Registered: Sep 21, 2006 11:26:07 AM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 19, 2009 11:08:21 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
I attached a word document with some screen captures.
ShelleyBeanz

Posts: 28
Registered: Nov 15, 2006 03:12:05 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 19, 2009 11:13:47 AM   in response to: loserjoe in response to: loserjoe's post
 
Click to report abuse...   Click to reply to this thread Reply
Thanks so much loserjoe - I appreciate it! However, this site (like so many of IBM's sites) doesn't seem to actually work (or they've hidden it really well). I can't see the attachment. :( Could you possibly email it to me?
shelley.kerr@ifms.gc.ca
KRauer

Posts: 9
Registered: Feb 20, 2007 11:50:10 AM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 23, 2009 02:22:08 PM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
I too am having a big issue with this type of scenario.. My issue is that I have a window that pops up a secondary window for user input which is now no longer found now that I have upgraded from 6.x to 8.1.x and From IE 6 to 8.

here is the code that worked under Tester 6.x..

try
{
UserInputPrompt_DepositAmount().waitForExistence(20, 0.5);
}
catch(Exception e)
{
log.writeToLog("Could not load the Deposit popup prompt screen, exception = "+e, true);
return(null);
}

UserInputPrompt_DepositAmount().waitForExistence(15.0, 0.5);
UserInputPrompt_DepositAmount().click();
browser(Document_UserInputPrompt(),DEFAULT_FLAGS).inputChars("100");

Button_UserInputPromptOKbutton().waitForExistence(15.0, 0.5);
Button_UserInputPromptOKbutton().click();
//End of deposit pop up

I also tried to add the documentName property in the recognitions but it doesn't seem to show up..

Thx.

Kevin
KRauer

Posts: 9
Registered: Feb 20, 2007 11:50:10 AM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 23, 2009 02:35:04 PM   in response to: KRauer in response to: KRauer's post
 
Click to report abuse...   Click to reply to this thread Reply
Just as a side note.. I also tried to use the recorder to see if it would work and it failed as well..

exception_name = com.rational.test.ft.AmbiguousRecognitionException 
exception_message = CRFCN0527E: Found 3 instances of the same test object. This often happens when multiple instances of the application are running.
Details: Looking for TextGuiTestObject(Name: text_promptfield, Map: promptfield). 
 
First object: recognition score:0, description: {.id=, .type=text, screenRectangle=java.awt.Rectangle[x=617,y=371,width=155,height=22], .title=, .name=promptfield, .classIndex=0}
 
Second object: recognition score:0, description: {.id=, .type=text, screenRectangle=java.awt.Rectangle[x=617,y=371,width=155,height=22], .title=, .name=promptfield, .classIndex=0}
 
 
. 
script_name = popup 
script_id = popup.java 
simplifiedscript_line_number = 4 
simplifiedscript_line = Click promptfield 
line_number = 46 
exception_stack = at com.rational.test.ft.object.interfaces.GuiTestObject.click(GuiTestObject.java:581)
at popup.testMain(popup.java:46)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
ShelleyBeanz

Posts: 28
Registered: Nov 15, 2006 03:12:05 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 23, 2009 02:49:57 PM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi everyone,

Just wanted to give you all an update on this. I'm currently working with IBM to solve this issue. I have tried various differences in configuration (including adding the .documentName property to the HTML.htmlBrowser object), on various different sites, even tried turning off the tabbing functionality in IE 8 (because RFT v. 8 seemed to work fine with IE 6 according to a few people I've asked).

I sent a few scripts to IBM, and they in turn sent one back to me. It works for them, it doesn't work for me. They're suspecting it might be an issue with my machine - I disagree, I believe it's obviously a difference in configuration somewhere - or they're not running the same version of either IE 8 or RFT 8 as I am. But since we're all having this problem, it proves I'm not crazy, and it's not just my set-up that is the issue - so there's hope!

They want to do a remote session to see if they can determine what's going on, but I cannot allow that access to our computers (government), so if any of you would like to work with me on this issue and could possibly grant remote access to IBM, please let me know - send me an email at shelley.kerr@ifms.gc.ca and I'll get you involved in the PMR I've got open.

Thanks!!

Shelley
RFT-mate

Posts: 12
Registered: Jan 22, 2009 08:02:11 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 25, 2009 11:53:38 PM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi Shelley

I'm also working with IBM to solve one of the different problems at our end and did reported this browser issue as well.

I'll wait for IBM response and keep you updated if anything significant comes out of it.

Regards.

ShelleyBeanz

Posts: 28
Registered: Nov 15, 2006 03:12:05 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Oct 26, 2009 08:38:35 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi RFTMate,
Sounds good - I find it rather strange that they can apparently run the scripts on their workstations with no problem. I want to know exactly what their configuration is, etc. but they don't seem to be all that forthcoming with that information.

They haven't asked yet, but I'm going to send them my script that opens a second window and see if they can run it. I already know that I can't run one of theirs, but I do wonder if they can run one of mine - if they can't, then I know there's something definitely different in the configuration of the object recognition...

I will also keep you posted if I learn anything useful.

Shelley
KRauer

Posts: 9
Registered: Feb 20, 2007 11:50:10 AM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Nov 05, 2009 09:59:05 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
Hey Shelley..

Any headway on this issue.. Tips, anything?
ShelleyBeanz

Posts: 28
Registered: Nov 15, 2006 03:12:05 PM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Nov 06, 2009 08:20:00 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi everyone,
No, I have not yet found a solution to the issue.
We thought we had, when we tried setting IE 8's compatibility view settings to work with all websites (Tools > Compatibility View Settings), but by the next day it wasn't working again, so perhaps it was a fluke.

IBM had me send the registry keys for my IE 8 to them, and apparently made theirs match mine and STILL they could run the scripts fine. I'm guessing it's something in Rational itself that isn't jiving with the browser. I've suggested a couple times that it might be a setting somewhere that I've got set differently than they have (though mine are pretty much the default settings as it was a new install).

So, he wanted me to get back to him by yesterday - (thanks for the reminder, ha ha) - I will talk to him today to see what he can suggest. I'm going to push to have him compare our RFT settings/versions, etc. to see if there is ANY difference (who knows how much they've tweaked their object recognition properties, etc.) or how they're recording the scripts.

Will advise if I hear anything interesting.

Shelley
Jiri Mundl

Posts: 144
Registered: Apr 24, 2006 07:19:50 AM
Re: RFT unable to recognize/work with objects in secondary browser windows- IE8
Posted: Nov 09, 2009 02:35:10 AM   in response to: ShelleyBeanz in response to: ShelleyBeanz's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi Shelley,

try update and add a new object property (for example caption, title, etc.) that is unique for given object.

Jiri
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums