Ask a Question

How to pass parameters to a script routine from a keyword test

SOLVED
komalak11
Contributor

How to pass parameters to a script routine from a keyword test

Hi,

 

I have parameters, variables in a keyowrd test and want it to be sent as references for a script routine. How to proceed with that?

 

Also, generally I want to understand how to pass object names from keyword test to a script routine.

1 REPLY 1
Bobik
Frequent Contributor

You have to use script routine with parameters. Then you can set Keyword test variables and other values as parameters for 'Run script routine' operation.

Also, you can call Keyword test variables directly from the script "example: KeywordTests.Test1.Variables.Var1".

 

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/test-actions/run-script-ro...

 

https://support.smartbear.com/testcomplete/docs/keyword-testing/basic/operation-parameters.html

cancel
Showing results for 
Search instead for 
Did you mean: