Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2016 up to now | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Question about warning message


  • Subject: Re: [QF-Test] Question about warning message
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 25 Sep 2007 17:32:15 +0200

Hi everybody,

I'd like to use this example to provide a bit of explanation about
ominous 'feature mismatch' warning:

With QF-Test 2.1 the warning messages were improved. Instead of a
bland "Component had feature mismatch" you now get specific
information which component in the hierarchy causes the problems, with
potentially multiple mismatches in one message.

In Tom's case we see:

> > Component frameQC_Services_-_QC_Assistant_Main had feaure mismatch

This means that the component with the id
'frameQC_Services_-_QC_Assistant_Main' caused the mismatch, i.e.
probably the main windows. Thus it is no surprise that you're getting
the warning for all practically all components.

For closer analysis, look at the following parts:

> > Component information
> >
> > Looking for matching top-level components for
> > de.qfs.apps.qftest.shared.data.d@6ca1a6ba[id=frameQC_Services_-_QC_Assist
> > ant
> > _Main.tabbed[name=null,class=javax.swing.JTabbedPane,feature=null,size=12
> > 80x
> > 909,location=4,51][parentInfo=de.qfs.apps.qftest.shared.data.a@2ad226ee[i
> > d=f
> > rameQC_Services_-_QC_Assistant_Main[name=null,class=net.nighthawk.talon.j
> > cli entview.StatusBarSubsystem,feature=QC Services - QC Assistant
> > Main,size=1288x998,location=-4,-4][modal=false,engine=awt],classIndex=0,c
> > las sCount=14,primaryIndex=2,secondaryIndex=null]

This is the component information from QF-Test, i.e. what QF-Test is
looking for. You can see that the expected feature of
frameQC_Services_-_QC_Assistant_Main is

'QC Services - QC Assistant Main'

Next we get:

> > Calculating probability for
> > net.nighthawk.talon.jclientview.StatusBarSubsystem[frame6,-4,-4,1288x1002
> > ,in valid,layout=java.awt.BorderLayout,title=QC Services - QC Assistant
> > Main (You are logged into Test as
> > thughbanks),resizable,maximized,defaultCloseOperation=HIDE_ON_CLOSE,rootP
> > ane
> > =javax.swing.JRootPane[,4,30,1280x968,invalid,layout=javax.swing.JRootPan
> > e$R
> > ootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSiz
> > e=, minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
> >
> > Geometry probability: 100%
> >
> > Feature mismatch

There is one main window in the SUT with the above properties. The
geometry matches perfectly, but the feature doesn't. For a window,
QF-Test uses is title as the feature. Above we see that the actual
window title is

'QC Services - QC Assistant Main (You are logged into Test as thughbanks)'

If a feature of a component changes permanently, you should use the
'Update components' functionality to get the current feature into
QF-Test (see manual chapter 6, esp. section 6.6 for details).

In this case there's apparently some dynamic part in the window title. That's
quite common. The best solution is to have developers set a name for
the window. The next best - and immediately available - alternative is
to open the 'Window' node for frameQC_Services_-_QC_Assistant_Main in
QF-Test and change the feature attribute to a regexp like

'QC Services - QC Assistant Main.*'

that matches all variants. Be sure to activate the 'regexp' attribute
also.

For further information about components and component information I'd
strongly advise to read chapter 6 in the manual and, for the
interested, section 25.2, which gives a lot of in-depth information.

Best regards,
    Greg


Martin Moser <martin.moser@?.de> writes:

> Hi Tom,
>
> .) Feature mismatch
>
> This could be caused due to some changes in the "feature" field of the
> recorded components or of the structure information of your component.
>
> Which recognition-options do you use for recording and replay? Find
> them at "Edit" -> "Options" -> "Recognition" -> "Components" -> value
> of "Name override mode" and "Edit" -> "Options" -> "Replay" ->
> "Recognition" ->
> value of "Name override mode".
>
> You can do following steps to find the differences:
> 	Open a new blank test-suite.
> 	Record the component, which causes this feature-mismatch.
> 	Compare the newly recored component and the one of your other test-suite.
> 	What are the differences? Depending on the settings of the
> "name override mode", QF-Test will still recognize the component or
> not.
>
>
> .) Freezing problem
> Have you tried starting QF-Test using more memory using the
> "-J-Xmx250m". Is the behavior still occurring? Do you encounter this
> behavior only during QF-Test test-runs or also during manual test-runs?
>
> Regards,
> Martin
>
> --On Montag, September 24, 2007 13:14:03 -0500 Tom Hughbanks
> <thughbanks@?.net> wrote:
>
> > Hi - just a couple of quick questions.
> >
> >
> >
> > Can you give me some insight into what's going on with this error message?
> > I have a simple script that just loads some data from a spreadsheet into a
> > form, and get this warning on all fields and buttons etc.
> >
> >
> >
> > Also - if I run this automation in a loop to enter multiple records, it
> > continuously slows down until it freezes after about 20 iterations.  Are
> > these related?
> >
> >
> >
> > I have recently switched to a new computer, and installed the latest
> > version of QF-Test.
> >
> >
> >
> > Any ideas?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Component frameQC_Services_-_QC_Assistant_Main had feaure mismatch
> >
> >
> >
> > Component information
> >
> > Looking for matching top-level components for
> > de.qfs.apps.qftest.shared.data.d@6ca1a6ba[id=frameQC_Services_-_QC_Assist
> > ant
> > _Main.tabbed[name=null,class=javax.swing.JTabbedPane,feature=null,size=12
> > 80x
> > 909,location=4,51][parentInfo=de.qfs.apps.qftest.shared.data.a@2ad226ee[i
> > d=f
> > rameQC_Services_-_QC_Assistant_Main[name=null,class=net.nighthawk.talon.j
> > cli entview.StatusBarSubsystem,feature=QC Services - QC Assistant
> > Main,size=1288x998,location=-4,-4][modal=false,engine=awt],classIndex=0,c
> > las sCount=14,primaryIndex=2,secondaryIndex=null]
> >
> > Calculating probability for
> > net.nighthawk.talon.jclientview.StatusBarSubsystem[frame6,-4,-4,1288x1002
> > ,in valid,layout=java.awt.BorderLayout,title=QC Services - QC Assistant
> > Main (You are logged into Test as
> > thughbanks),resizable,maximized,defaultCloseOperation=HIDE_ON_CLOSE,rootP
> > ane
> > =javax.swing.JRootPane[,4,30,1280x968,invalid,layout=javax.swing.JRootPan
> > e$R
> > ootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSiz
> > e=, minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
> >
> > Geometry probability: 100%
> >
> > Feature mismatch
> >
> > Feature probability: 100%, penalty: 55%
> >
> > This is not the active window, penalty: 55%
> >
> > Combined probability: 55%,  acceptable
> >
> > Got 1 top-level components
> >
> >
> >
> > Parent component:
> > net.nighthawk.talon.jclientview.StatusBarSubsystem[frame6,-4,-4,1288x1002
> > ,in valid,layout=java.awt.BorderLayout,title=QC Services - QC Assistant
> > Main (You are logged into Test as
> > thughbanks),resizable,maximized,defaultCloseOperation=HIDE_ON_CLOSE,rootP
> > ane
> > =javax.swing.JRootPane[,4,30,1280x968,invalid,layout=javax.swing.JRootPan
> > e$R
> > ootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSiz
> > e=, minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
> >
> > Probability: 55%
> >
> > 14 components match class javax.swing.JTabbedPane, 1 of these are visible
> >
> > Calculating probability for
> > javax.swing.JTabbedPane[,0,21,1280x912,invalid,layout=javax.swing.plaf.ba
> > sic
> > BasicTabbedPaneUI$TabbedPaneLayout,alignmentX=0.0,alignmentY=0.0,border=,
> > fl
> > ags=201326944,maximumSize=,minimumSize=java.awt.Dimension[width=800,heigh
> > t=6 00],preferredSize=,haveRegistered=true,tabPlacement=TOP]
> >
> > Geometry probability: 100%
> >
> > Structure match
> >
> > Structure probability: 100%, penalty: 100%
> >
> > Combined probability: 100%,  acceptable
> >
> > Final probability: 55%
> >
> >
> >
> > Component frameQC_Services_-_QC_Assistant_Main had feaure mismatch

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833


Videos Downloads Documentation Buy Free Trial