Forum Discussion

Lee_M's avatar
Lee_M
Community Hero
3 years ago

Default parameter from variable

I have a KW test that takes in a parameter

 

I can pass a variable from the Execution Plan, can I set a variable as a default value?

10 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    I'm not quite sure what you are asking, so I have a few answers  🙂

     

    Can you use a variable as a parameter value, yes.

    Can you give a variable a default value, yes.

    Can you have the test default the parameter value "if I give you a value, use that, otherwise use the default", no.

     

    Show us what you tried that didn't work and we can help fix it.   It's usually easier and quicker to get you an answer if you share specifics.

    • Lee_M's avatar
      Lee_M
      Community Hero

      The parameter input will be URL 1, 2 or 3 (from a variable)

       

      I can insert the var in the execution plan and all is good

       

      but I would like the default/fallback value to be URL3

       

       

       

      can I do this, I don't appear to have the option to input this here