Close then Reopen Tested App
Hi All,
This is my first post so take it easy!
I have a testedapp which works great, I have a function created which sets the (simple) params then runs it, logins in etc.
We have a process where when we license the module, we have to close then reopen the application in order for it to be usable, so I would like to close my testedapp by closing the window (as if hitting the x) then rerun my function that launches the tested app again.
However, no matter what I try I cannot get it to execute the testedapp again; I have put a more than a reasonable delay in between the window close and the launch function; I have tried TestedApp.Close and TestedApp.Terminate - neither of which did anything. I have tried entering the entire code of the launch function as well as calling it as functionname()... I just can't figure this one out.
Any tips? I'm guessing something to do with the way testedapps work, I couldn't find a similar thread on here or elsewhere, and have read the Closing TestedApps page a few times now!
Thanks in advance
I feel a bit stupid now, I didn't have the "Launch" method in the script, I had Run but not launch before it,
I found this out by trying to run my test end-to-end on the off-chance this would get past the issues I was hitting during the function by function testing... I had an error in my log about "set to false" a quick search on here and I found I needed Launch. I think it is working now!