Forum Discussion
What will happens if you run 2nd test wihout opening your application?
if second test depend on your applications process, I would suggest using Sys.WaitProcess(ProcessName, Timeout, ProcessIndex) method to improve stability.
- fujunxu9 years agoContributor
2nd test item only send logs using email. It doesn't communicate with my application.
TC behave differently:
1. I killed my application(process) when the script tried to find the my process using (Sys.Process()). it would raised the "The process ... was not found " and Runner.Stop(true) stopped the whole project.
2. I killed the process when the script tried to find certain window. It would raised "control not found..." and Runner.Stop() stopped the 1st test item and then go to start 2nd test item.
I thought Runner.Stop should always stop the current testitem and go to next testitem.
Thank.
Related Content
Recent Discussions
- 2 days ago
- 2 days ago
- 6 days ago