Forum Discussion
etienne_smith
12 years agoOccasional Contributor
That is exactly the problem. I cannot do that. I dragged the script onto the keyword test and it didn't even appear in the steps.
If however I drag in a function with routines then it works fine. The relevant fact is that unless there are 'routines' in the sub routine or function then nothing happens. The example I mentioned originally is a simple log message. Since there are no routines present in that scenario it won't allow me to run it or add it to any tests.
I am aware that for a one-liner like I can add it as a 'Code Snippet' but the script I am trying to use is about 50 lines so that is not a solution.
When creating a script there is a 'Run' button which is always disabled, even when there are no syntax errors. Why is that? The scripts I am having issues with also do not appear in the list of Script Routines I can add to a keyword test so they are effectively useless to me.
If however I drag in a function with routines then it works fine. The relevant fact is that unless there are 'routines' in the sub routine or function then nothing happens. The example I mentioned originally is a simple log message. Since there are no routines present in that scenario it won't allow me to run it or add it to any tests.
I am aware that for a one-liner like I can add it as a 'Code Snippet' but the script I am trying to use is about 50 lines so that is not a solution.
When creating a script there is a 'Run' button which is always disabled, even when there are no syntax errors. Why is that? The scripts I am having issues with also do not appear in the list of Script Routines I can add to a keyword test so they are effectively useless to me.