Hi MW_Didata,
Do you have AutoHotkey installed on the relevant machine(s)?
My sense is that utilization of the keyboard shortcut to stop TestExecute, which is SHIFT + F2, should do the trick here.
Here is what I would try . . .
- Install AutoHotkey where applicable (if necessary).
- Open (or mass deploy if multiple machines) a text file, and enter the code at the bottom of this post. Do not enter anything else. Save the file as .ahk (not .txt). For the sake of this example, let's say that you have decided to name the file stopTE.ahk . . .
- Prior to the line in your .bat file that utilizes taskkill, (or some other method you have chosen for terminating TestExecute), include a new line that executes your stopTE.ahk file, followed by a delay that gives TestExecute enough time to end the test item it is running and produce a test log, which as you noted occurs automatically.
Additions to your pre-existing .bat file:
start C:\Users\Public\Documents\stopTE.ahk
timeout /t <seconds>
Complete contents of your .ahk file:
Send, +{F2}
Let me know how this shakes out. Happy to advise where I can on any roadblocks you might encounter.