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

2017 bis heute 2016 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]

[QF-Test] tree and SUT script

  • Subject: [QF-Test] tree and SUT script
  • From: "Huawei Luo" <hluo@?.com>
  • Date: Tue, 17 Jul 2007 07:16:52 -0700

Hi, Greg:


I have a tree, which have 12 dirrect children, each children has its own children. And this tree, then, is a tree of depth of 2. so I would like to count the total number of this tree’s leaves.


Now the problem I encountered is : the initial state of the tree is collapsed, look like this :






Here is my simplified script:


Tree = rc.getComponent(“myTree”)


itemA = tree.getItem(0)


count = itemA.getItemCount()


the problem is count is always 1 until I expand A. After A is expanded, even with it being collapsed again, the “count” gets the right number of children.


Can you help with this?





Videos Downloads Dokumentation Kaufen Gratis Testen