I have build an automated framework which is able to automatically schedule test cases and run jobs.
Now I'm looking for a button in the Test Case Dialog to actually run a test.
My first thought was to use the Requirements "Launch" button which appears in the Test Case Summary Dialog.
If I enter e.g. a script "runtest.bat" in the Requirements line and press the "Launch" button, the batch script is executed in a cmd shell.
So far this works fine.
Now (to really execute my test) I still need to know from which Test Case in my Database the "Launch" button was actually pressed. A unique identifier would be the complete path to the Test Case file (c:\TestLogDB\Projects\myProject\Project Test Cases\testsuite1\testsuite2\myTestId.tlg)
Now my question: is it possible to transport this path to the program or script that is started by the Launch button (maybe via environment variables or registry entries)?