This is a migrated thread and some comments may be shown as answers.

Binding for Count, WaitTime, and other properties

1 Answer 8 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 15 Apr 2014, 01:26 PM
Hi,

I understand how to set up bindings for things like BaseURL, etc.  This
works nicely.  However, I want to also bind to the "Count"
property of one of my loops so that I can use a data driven element to specify
how many times for my loop to run.  Is this possible? 


Another binding I would like to do is the "WaitTime" property on a
"Execution Delay" for example.

Can someone recommend a way to bind these properties?


Thanks,

Steve

1 Answer, 1 is accepted

Sort by
0
Daniel Djambov
Telerik team
answered on 18 Apr 2014, 07:32 AM
Hi Stephen,

Unfortunately there is no way to do what you want from UI, but this is achievable from a coded step - in it you can do whatever loop and logic conditions you like using .Net C# or VB.

Then when using code, you can use this method (Data.IterationIndex) to identify which iteration you are in and based on this you can use If..Else logic to set a local variable for the number of loops in you code.

Above applies for Execution Delay - in C# code this looks like System.Threading.Thread.Sleep(2000); where 2000 is in msecs (2 seconds) and you can assign different execution delay in code based on your current iteration.

Please tell me if this works for you and if you have any further questions, please let me know.

Regards,
Daniel Djambov
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Stephen
Top achievements
Rank 1
Answers by
Daniel Djambov
Telerik team
Share this question
or