4 messages in com.canoo.lists.webtestRE: [Webtest] dynamic number of input...| From | Sent On | Attachments |
|---|---|---|
| Laval Chung | 20 May 2002 04:01 | |
| Carsten Seibert | 21 May 2002 01:35 | |
| sanghamitra das | 22 May 2002 20:34 | |
| Carsten Seibert | 22 May 2002 23:51 |
| Subject: | RE: [Webtest] dynamic number of inputfields![]() |
|---|---|
| From: | Carsten Seibert (seib...@acm.org) |
| Date: | 05/21/2002 01:35:24 AM |
| List: | com.canoo.lists.webtest |
Hi Laval,
I suggest to prepare explicit test data where you exactly know what to expect, e.g. one set of data to produce exactly 3 input fields and then test these 3 fields. Having "logic" in the test raises the question of how to test that logic? Therefore we generally avoid such things.
If you still need/want to do it, you could use the SQL tag to generate a property file and then read this property file within your ant task test task in order to determine the number of required iterations with <repeat>.
Ciao, Carsten Carsten Seibert seiberTEC GmbH Switzerland mailto:seib...@seibertec.ch / phone: +41 79 636 4317
-----Original Message----- From: webt...@lists.canoo.com [mailto:webt...@lists.canoo.com]On Behalf Of Laval Chung Sent: Montag, 20. Mai 2002 13:02 To: webt...@gate.canoo.com Subject: [Webtest] dynamic number of inputfields
In a page, the number of inputfields are dynamically created from the data in the database. So that i don't know in advance how many inputfields i'm going to verify. Is there a way to do a select statement using the sql tag and store the count value in a property tag so that i can use that property in a repeat loop to verify the inputfields? Or are there other solutions to this problem?
Cheers laval




