Solved
Forum Discussion
Marsha_R
Champion Level 3
What version of TestComplete are you using?
randall
8 years agoContributor
11.21.2420.7
- Marsha_R8 years agoChampion Level 3
Can you post a screenshot of the code? Just the one you're trying to run is fine.
- randall8 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_michaud8 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 agoianlop
- 6 months agomacheshmeh
- 11 months agoIso_Yura
- 4 years agomcbane
Recent Discussions
- 43 minutes agoSvetaG