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

random number used to select value in dropdown menu

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jurij
Top achievements
Rank 2
Jurij asked on 27 Mar 2015, 10:45 AM
Hi, complete newbie and first time poster. I apologise if I've missed something like that in this forum but I need your help with the following problem that I have. Namley I want to generate a random number between 1-5 and then use this number as a value in dropdown menu. Steps that I currently have are as follows:

...
Extract selection 'ByValue' on 'PriceCat' into DataBindVariable $(PriceCatValue)
[Add_to_cart_CodedStep1] : Generate random number between 1-5 $(randomNr):

    Dim random As New System.Random()
    Dim randomNr As Integer = random.[Next](1, 5)

Select 'ByText' option '1' on 'PriceCat' - DataDriven: [$(PriceCatValue)] <-- here I want to use randomNr instead of value 1 in option '1'
...

Is that even possible?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 01 Apr 2015, 07:52 AM
Hi Jurij,

This is a duplicate thread of this one.

Let's continue the discussion there.

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