Forum Discussion

sudhir_optima's avatar
sudhir_optima
Contributor
14 years ago

How Project Variables worked.

I have created a Project Suite variable. please find the attachment.



I have created a common function to Set the run time variable as ( Please find the attachment Set Variable)

Now I am calling this script Routing and passing the variable as



Item                                                              Operation                                   value



RunScript Routine              FileAccessAndVariables-SetVarWorkbok       "test_var_workboook.qbis"



Here "test_var_workboook.qbis" i have saved it in  D://Data/test_var_workboook.qbis.



When I run the Test, it displayed error , ' FileAccessAndVAriables SetVarWorkbook routine not found.
  • I got it. There is spell mistake while defining the name of the script routing.
  • Hi Sudhir,



    Glad to hear you've found and fixed the problem.



    By the way, there's no need to use the helper SetVarWorkbook script function for variable assignment - you can do this in keyword tests as well:

    - add the Run Script Routine operation that will call the GetFullFileName function;

    - add the Set Variable Value operation, select the needed variable and specify Last Operation Result as the variable value.