Forum Discussion
Hi Randall,
"Run Current Routine" is disabled when:
- The cursor is outside of any function. (You need to place the cursor inside the function you want to run.)
- The function has parameters. (You need to write a wrapper function that would call this function.)
- The script has syntax errors. (Use the menu command Test | Check Syntax to find the errors.)
- randall9 years agoContributor
Thanks for your timely response HKosova but none of your suggestions apply to my case. My cursor is inside the function and the control is disabled. It is a wrapped function with parameters. And it does not have any syntax errors, at least none identified by the 'Check Syntax' command. There are no red circles with 'x'es on them on any line of the function. In fact, every function in the library, the entire file, no matter where I place my cursor the 'Run Current Routine' button is disabled. And this is true for several of my libraries while others don't have the problem at all.
I have tried saving, closing, and reopening TestComplete and that didn't work. I have double checked to make sure all braces and parenthesis are matched, all lines end in a semi-colon. I have introduced syntax errors to get the red circle with an X to appear and then correct the error to get the red circle to go away in hopes that would re-enable the button. Nothing worked.
Do you have any other suggestions?
- joseph_michaud9 years agoModerator
Start with a new project and a test routine taking no parameters which does something simple (like Log.Message()). Is the Run button active and can you use it to run the test routine? If so, start importing your script files, checking after each import that you can still use the Run button on your test routine.
- randall9 years agoContributor
Joseph,
I will give that a shot but it will be very laborious. My project has 58 library and functional script files.
Thanks,
Randall
Related Content
- 2 years ago
- 4 years ago
- 6 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago