Forum Discussion

vsumathi's avatar
vsumathi
Occasional Contributor
5 years ago

Run a shared Keyword test in different projects with different parameters

I have the functionality to import an excel sheet (File A) in one of my project (Project A).  I am using this same functionality in a different project (project B) using a 'shared keyword test'.  Whe...
  • AlexKaras's avatar
    5 years ago

    Hi,

     

    I can think about two options:

    -- Either assign a proper value to the parameter of your keyword test before calling it; or

    -- Combine test projects via different test suites and use Project Suite Variables to keep required values for the parameter.

     

  • Marsha_R's avatar
    Marsha_R
    5 years ago

    Okay, you can't change the parameter between project because you are sharing it.  However, you can change the value that you pass through the parameter.  To do that, use one of AlexKaras 's suggestions and have a variable for each value.  

     

    The parameter will always be the same but for Project A you give it one value and for Project B you give it another 

     

    If you need more help, please post a screenshot of the keyword test where you have this definition, including some code above and below the definition.