Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2016 bis heute 2015 | 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

Re: [QF-Test] Numbering the names of components


  • Subject: Re: [QF-Test] Numbering the names of components
  • From: Karlheinz Kellerer <Karlheinz.Kellerer@?.de>
  • Date: 14 Dec 2007 11:25:58 +0100

Hi Thimo,

"Thimo von Rauchhaupt" <Thimo.Rauchhaupt@?.de> writes:

> Hi Karl,
> 
> I was a little bit confused about the word "unique" as each instance is
> itself unique, but most of the time the same id is used from QFTest.

have you read manual chapter "6.3 'Component' 'Ids'" as I
proposed? 

> 
> So I wrote a little example program.
> 
> The good thing about is that I checked the information from Weston Gross and
> a number did not came up with changing between different versions of QFTest.
> 
> The bad news are:
> If I have a JTextField (Name="TF") in a Panel (Name="Pa") and I dispose the
> JInternalFrame in which the Panel lies and open a second JInternalFrame 
> with a Name="PB" and a JTextField (This name equals the first JTextFields
> name ="TF") QFTest refers it as JTextField of Name "TF2".

QF-Test can be adjusted how to handle names - the option is called
"Name override mode". The standard setting is "Hierarchical
resolution" which means also named parents of a named component are
taken into account for recognition.

What you may be looking for is the "name overide" setting, which just
considers the name of the component itself. This setting requires
unique names. In this case your won't get a "TF2" recorded.

Please see manual chapter "6.5 How to use setName"
http://www.qfs.de/qftest/manual/en/user_components.html#usec_howtosetname
and follow the link to "name override mode".

> 
> So I cannot use any dynamic procedure on this JTextField if the names of all
> parent components does not equal each other. This is a little bit hazardous
> for programming tests in procedures (Imagine to reuse a complicated Panel as
> a part of two different views. I want to reuse the test, too!, Also
> numbering is very bad if I change a test and all numbers are increased after
> this point.). 

"Name override" should solve your problem. It is the best option to
get stable tests, highly independent of software changes. 

> Why does QFTest uses a number if the two textfields are not
> accessible at the same time? 

In which way can QF-Test know, the textfield may not be visible at the
same time. If the programmer decides they will, they will :)
Everything is possible.

> Is there a way to switch the behaviour of
> autonumbering off? 

Switching autonumbering off is not a solution. QF-Test only records
new component information with new number extension if there are 
significant changes to the one already recorded. In your case the
different parent name is such a significant change.

If there are still open points, please send me (not the list) your
test-suite showing your recorded component hierarchy and I will take a
look.

Best regards, 
    Karl 


> 
> Best regards,
> Thimo
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Karlheinz Kellerer, QFS Support [mailto:support@?.de] 
> Gesendet: Dienstag, 11. Dezember 2007 22:23
> An: qftest-list@?.de
> Cc: Thimo.Rauchhaupt@?.de
> Betreff: Re: [QF-Test] Numbering the names of components
> 
> Hi Thimo,
> 
> Typically, QF-Test automatically extends a component id with a number only
> to make it unique. For ensuring uniqueness QF-Test also takes components in
> included test-suites into account. See 15.2 Managing 'Components'
> (http://www.qfs.de/qftest/manual/en/user_distributed.html#sec_N2A26)
> 
> But Ids also can be changed manually by the user. If uniqueness is not
> given, QF-Test will throw a warning.
> 
> Automatic creation of component ids can be influenced as discribed in manual
> chapter "6.3 'Component' 'Ids'"
> (http://www.qfs.de/qftest/manual/en/user_components.html#usec_componentids)
> 
> Hope this helps.
> 
> Best regards, 
>     Karl 
> 
> "Thimo von Rauchhaupt" <Thimo.Rauchhaupt@?.de> writes:
> 
> >    Thank you for your answer.
> > 
> >    What do you mean by "two different versions"? What determines a new
> >    version? Or do you mean a new instance?
> > 
> > 
> >    Best Regards,
> > 
> >    Thimo von Rauchhaupt
> > 
> > 
> >    
> > ______________________________________________________________________
> > _
> > 
> >    Von: Weston Gross [mailto:wgross@?.gov]
> >    Gesendet: Dienstag, 11. Dezember 2007 17:20
> >    An: Thimo.Rauchhaupt@?.de
> >    Betreff: Re: [QF-Test] Numbering the names of components
> > 
> > 
> >    I think it might add a number to the end if you are using two different
> >    versions where you record one version over the other or try to play one
> >    version with the other.
> > 
> > 
> >    Thank you,
> > 
> > 
> >    Weston Gross
> > 
> >    DTS/IA II - QA Analyst
> > 
> >    Rm: 6019
> > 
> >    Office: 529.9272
> > 
> >    >>> "Thimo von Rauchhaupt" <Thimo.Rauchhaupt@?.de> 12/11/2007 8:22
> >    AM >>>
> >    Hi everybody.
> >    I wonder if QFTest sometimes adds a number to a component name for
> >    referencing it.
> >    Is it possible to turn off this behaviour?
> >    I checked that the given component is only shown once. So I do not see
> >    any
> >    needs for numbering the components. Or ist his an indicator that the
> >    components are still in memory?
> >    Best regards,
> >    Thimo von Rauchhaupt
> >    _______________________________________________
> >    qftest-list mailing list
> >    qftest-list@?.de
> >    [1]http://www.qfs.de/mailman/listinfo/qftest-list
> > 
> > Verweise
> > 
> >    1. http://www.qfs.de/mailman/listinfo/qftest
> > _______________________________________________
> > qftest-list mailing list
> > qftest-list@?.de
> > http://www.qfs.de/mailman/listinfo/qftest-list
> 
> -- 
> Karlheinz Kellerer                                support@?.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          
> 
> 
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> http://www.qfs.de/mailman/listinfo/qftest-list

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



Videos Downloads Dokumentation Kaufen Gratis Testen