cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Occasional 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 ACCEPTED SOLUTION

Accepted Solutions
Contributor

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

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

1 REPLY 1
Contributor

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

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

New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2
Top Kudoed Authors