Hi,
the information you provide doesn't allow to understand what fails.
Nevertheless I see one problem: nested property evaluation like
#{#{tempName}} is currently not supported. As workaround, you can
extract this functionality in a macro which receives a parameter.
Marc.
Sritharan, Jayanthan wrote:
*note: sorry if this is a re-post, my first attempt to post doesn’t seem
to have worked
Hi, I am trying to run a loop that accesses a set of properties. The
properties are indexed from 1 to 10. Inside a Repeat loop when I append
the ‘count’ to my property name, canoo seems to have a bug which
sometimes doesn’t allow me to access the properties. I have installed
the latest build, but that doesn’t seem to have fixed the problem.
Usually the fourth, fifth, and seventh properties aren’t accessible to
me, but it does change from time to time.
Any help would be appreciated.
Thanks,
Jaya Sritharan
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project SYSTEM "../../config/WebTest.dtd"[
<!ENTITY config SYSTEM "../../modules/config_registry.xml">
]>
<project basedir="." default="main" name="Registry">
<property location="../.." name="webtest.home"></property>
<property file="properties/localhost.properties"/>
<target name="main">
<webtest name="Sample Repeat Failure">
&config;
<steps>
<storeProperty
name="variable1" value="first_variable"/>
<storeProperty
name="variable2" value="second_variable"/>
<storeProperty
name="variable3" value="third_variable"/>
<storeProperty
name="variable4" value="fourth_variable"/>
<storeProperty
name="variable5" value="fifth_variable"/>
<storeProperty
name="variable6" value="sixth_variable"/>
<storeProperty
name="variable7" value="seventh_variable"/>
<storeProperty
name="variable8" value="eighth_variable"/>
<storeProperty
name="variable9" value="ninth_variable"/>
<storeProperty
name="variable10" value="tenth_variable"/>
<repeat step="1"
startcount="1" endcount="10" counterName="count">
<storeProperty name="tempName" value="variable#{count}"/>
<storeProperty name="value" value="#{#{tempName}}"/>
</repeat>
</steps>
</webtest>
</target>
</project>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest