I am using storeRegEx to store a dynamic property, this works successfully
however when I try to use the property in an xslt statement it does not
evaluate, here is the canoo code:
<webtest name="extract_build">
&config;
<steps>
&login;
<storeRegEx
description="Extract build number"
text=".*?\(Build (\d+)\).*?"
group="1"
property="buildnum"
/>
<verifyText text="#{buildnum}"/>
<xslt
in="webtest-results/results_${sfx}.xml"
out="csv_dumps/${TestSet}!_#{buildnum}.csv"
style="csv_dumps/results_csv.xsl"
force="true"/>
</steps>
</webtest>
Log indicates success:
[storeRegEx] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: storeRegEx
"Extract build number" (5/7)
[storeRegEx] INFO (com.canoo.webtest.steps.store.StoreRegExMatch) - Setting
dynamic property <buildnum> to <18289>
But when the xslt out file is written it comes out with
UI_Prefs!#{buildnum}.csv instead of UI_Prefs!18289.csv
The logs after setting property:
[verifyText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyText
(6/7)
[null] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: null (7/7)
[null] INFO (com.canoo.webtest.steps.Step) - WrappedSteps.attributes not
found.
[xslt] Processing
/home/user/Desktop/canoo/webtest-results/results_test.xml to
/home/user/Desktop/canoo/csv_dumps/UI_Prefs!${buildnum}.csv
[xslt] Loading stylesheet
/home/user/Desktop/canoo/csv_dumps/results_csv.xsl
INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.
Any thoughts?
Thanks!
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest