Mailing List - Entries of 2012
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] QFTest with dinamically generated components
Hi Pavel,I think the most appropriate approach might be to trust QF-Test component recording mechanism as this contains quite powerful algorithm in order to optimize the component hierarchy etc.
For text-fields which got be generated on the fly you can also think about the "Generic component" concept. This stands for adding variables to the recorded components, perhaps you can introduce them to the index or something like that. In the manual you should see a chapter about that in the Best-Practices part.
Best Regards, Martin--On Donnerstag, August 16, 2012 20:44:40 +0400 "????" <pavel.finkelshtein@?.com> wrote:
I thought about second option, but here I have another problem - all the form have very complex autogenerated layout, so iterating thru it may be real headache. If there's no other options will do manual recoeding (which is complex, but reasonable). Thank you for attention. *???????????? ?.?.* 2012/8/16 Martin Moser <martin.moser@?.de>Hi Pavel, in case you know which kind of text-fields will be generated you can also record the whole process once (incl. the Text-Check nodes). Then for replay QF-Test will recognize those text-fields by structure information etc. If you want to use a SUT-script you will call rc.getComponent("main-window- **id") and iterate through those components manually. How the iteration looks like depends on your applied technology. Best Regards, Martin --On Mittwoch, August 15, 2012 23:38:19 +0400 "????" < pavel.finkelshtein@?.com> wrote: Hello everyone!I'm testing complex application which generates components on combobox item selection. Problem is they have no generated names (and no names at all). The only common point for them is position on form. I'm using SUT script, to cycle thru combobox items and change two parameters else, now I need to check values of textfields, but I don't know how to get newly generated components, and, accordingly, their values. Any ideas? *???????????? ?.?.*-- Martin Moser martin.moser@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 38648-14 DE-82538 Geretsried Fax: +49 8171 38648-16 GF: Gregor Schmid, Karlheinz Kellerer HRB München 14083
-- Martin Moser martin.moser@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 38648-14 DE-82538 Geretsried Fax: +49 8171 38648-16 GF: Gregor Schmid, Karlheinz Kellerer HRB München 14083