Forum Discussion
Marsha_R
Moderator
What version of TestComplete are you using?
randall
9 years agoContributor
11.21.2420.7
- Marsha_R9 years agoModerator
Can you post a screenshot of the code? Just the one you're trying to run is fine.
- randall9 years agoContributor
function DeleteDatabase(srvrInstanceName, scriptPath) { var commandDraft = "sqlcmd -S " + srvrInstanceName + " -i " + scriptPath; var command = """ + commandDraft + """; Log.Message("scriptPath = " + scriptPath); Log.Message("command = " + command); var Return = shell.Run(command, 1, true); Log.Message("Return = " + Return); if (Return != 0) { Log.Error("database deletion failed") } }
- joseph_michaud9 years agoModerator
Are you setting the cursor inside the DeleteDatabase() function? The Run button only works with functions that have no parameters...
Related Content
- 2 years ago
- 4 years ago
- 6 years ago
Recent Discussions
- 9 hours ago