cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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
Highlighted
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

View solution in original post

1 REPLY 1
Highlighted
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

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!