automated tests - Kill a separate powershell script from the main script -


i'm using powershell script perform automated testing on web application.

part of script runs small, separate script monitors web app pop ups , closes them if appear. called during main script so:

start-process powershell.exe -argumentlist "-file c:\users\documents\monitor.ps1" 

at point though close monitor script, perform commands, , start monitor script again.

is there way me kill monitor script main, without closing main script in process?

you want save variable:

$a = start-process notepad.exe -passthru $a.id 10536 

so later kill it.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -