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] Getting No component for id dialog for resizeColumn procedure in qfs.qft


  • Subject: Re: [QF-Test] Getting No component for id dialog for resizeColumn procedure in qfs.qft
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 14 Sep 2007 22:02:06 +0200

Hello Derrik,

you've got too many levels of indirection there.

If

aColumnId = rc.getComponent("$(component)&$(index)")

then aColumnId is a pair of a Java table and an integer. If you store
that in a QF-Test variable using rc.setLocal or rc.setGlobal, you'll
get a String looking like

"(nameOfTable,2)"

which is obviously not a QF-Test component Id.

But simply go back 10 lines and you've got what you need.
"$(component)&$(index)" is the component Id you used for
rc.getComponent. So simply use that directly for the resizeColumn
procedure instead and trash the SUT script and you should be fine.

Best regards,
    Greg

"Derrik Ammons" <dammons@?.COM> writes:

>    I created a wrapper procedure that takes a component parameter,
>    index, and width that then calls resizeColumn.  The component that is
>    passed should be a table, "userManagement.table", for example.  I
>    execute an SUT script that executes
>    rc.getComponent("$(component)&$(index)") sets it to a local variable
>    called aColumnId.  Then, I pass $(aColumnId), $(width), and true to the
>    resizeColumn procedure. I get No component for id dialog.
>
>
>
>    Is this the right syntax?
>
>    The reason I take the table as a component, is because this is a common
>    procedure to be used by automation engineers where they already know
>    the table since it is used in a bunch of other common procedures around
>    tables.
>
>
>
>    Thanks,
>
>
>
>    Derrik

--
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 Dokumentation Kaufen Gratis Testen