Hi,

some (maybe crazy) ideas:
- perhaps can you combine XPath and RegEx. Sadly I haven't found time to
document it until now, but you can define your own custom XPath functions or
use the wt:matches function provided by WebTest (should work like
http://www.w3.org/TR/xquery-operators/#func-matches).
- what kind of JS events activate the links? Perhaps it is possible to
simulate it.

otherwise as Denis said, a small Groovy script would surely work.

Marc.


Marcel Stör wrote:
> 
> Hi,
> 
>> Here are a few lines form a test I did today that seems to match the 
>> logic you describe and works OK:
>> 
>>         <repeat description = "for each line in AKL page" startCount="1" 
>> count="5" countername="line" > 
>>             <storeRegEx text="(\d+,)(\d+,)(\d+,)(\d+,)(\d+,)" 
>> group="#{line}" property="Price" propertyType="dynamic"/>
>>             <echo message="price using RegEx of #{Price}" />
>> 
>> The only problem I have is being crap at regex I don't like the way I 
>> have to repeat the group.
>> 
>> If that isn't what you are trying to do, perhaps you need to give the 
>> exact problem...
> 
> Well, the site I'm testing generates JavaScript menus. And since the app 
> runs on a IBM Portal Server all the URLs are dynamically generated. At 
> startup all the menu items are loaded into a JS array and only added to 
> the DOM on mouseover. Hence, DOM-based operations are not applicable.
> 
> So, I want to parse all the navigation links out of that crappy JS code 
> (the number of links varies), invoke each link, and do a few general 
> tests on each page navigated to.
> 
> Constraints: can't use XPath (see first paragraph), need to use regex, 
> don't know the max. repeat count, don't want hard-code menu item labels 
> (i.e. parts of regex) in test script.
> 
> Regards,
> Marcel
> 
> -- 
> Marcel Stör, http://www.frightanic.com
> Blog: http://frightanic.wordpress.com
> Skype: marcelstoer
> 
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 

-- 
View this message in context: 
http://www.nabble.com/No-dynamic-property-in-storeRegEx-tf3788790.html#a10761991
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to