Forum Discussion

KanomAroy's avatar
KanomAroy
Senior Member
6 years ago

How can I get a dropdown selection for parameter of string type?

Hi all,

 

I have a script function that takes in parameters and I want to create a Test Item with that function where I can select from a dropdown to pass in the parameter. 

How would I go about doing that?

 

I have attached screenshots of what I'm trying to do.

----

Problems with how I'm trying to do it if I just create Variables for each possible value to pass in:

1. too many variables if there are a lot of possible values.

2. the same variables are reusable for each parameter which is not what i want, I want to limit it where each parameter can only have x amount of choice.

3. if I add more Test Item, those variables are also available for those Test Items which is not what I want.

 

---

I'd appreciate any suggestions, guidance or a different way of approaching it.

 

Thanks.