Forum Discussion

marbledaemon's avatar
marbledaemon
New Contributor
12 years ago

How to use test parameters in code expression

Hello,



Could you please help me solve the problem. Considering the following use case:



I have a Keyword Test which accepts an array parameter 'list'. In the test, I need to iterate this parameter. However, when I specify the 'End Value' as a code expression 'list.length', Test Complete told me that it doesn't recognize the object 'list'.



Please help!

2 Replies

  • HI :-) 

    It sounds like I am trying to do the same thing you were; iterate my parameter within the code expression. Would you mind sharing what you used for your code expression? 



    I have a variable that contains 100 rows. I want it to move forward a row with each iteration. Do I just insert my variable +1 ? Having some friday PM brain block.



    Thanks for any help!