I've a problem to kill command window launch with cmd /k. To replace in the context, i want to launch automatic tests cases (with SAHI Framework, it ressemble to Selenium for who knows). So, i've to lauch first .bat file which contains tests suites. To test a proxy need to be launched so, i need to launch everything at the same place because we packed all that thing in a Jenkins server.
So for recap I have to create a script with these steps :
- Set globals variables
- Launch proxy server (in other terminal)
- Launch suites of tests cases
Code :
rem Start proxy server for handle tests
start cmd /k sahi.bat
rem Starting test suites
testrunner.bat tests.suite http://website.fr/ firefox
So, these steps are done and works fine. But i've to close the serveur proxy opened in step-2 after step-3.
How can i kill the sahi.bat after tests cases ?