Launch ContextQ7, 11.07.2013 by Ulyana Skorokhodova View Comments
IntroductionSometimes for our testing we need to specificly configure AUT launches. Launch Context can manage it. Launch Context serves the following porposes:
- Add Launch Configurations and/or run the required ones
- Add breakpoints and pause a required launch at a breakpoint
- Terminate existing launches (optional)
- Clear launch configurations (optional)
- Clear breakpoints (optional)
Terminate Existing Launches.Once you create a new Lauch Context you can see that “Terminate existing launches” option is enabled by default: That means the following: when the context is executed all running launches in your AUT will be terminated. You can exclude any desired launches to avoid their termination – just list them in a “Do not terminate…” field: When the context above is executed all launches are terminated except “HelloWorld” and “ByeWorld”. If you uncheck “Terminate existing launches” option – no running launches will be terminated during context execution.
Clear Launch Configurations.This option should be used if you wish to clear a list of existing Launch Configurations (disabled by default): By analogy with the termination described above you may want to leave some Run Configurations. Just list them in “Do not delete following configrations” field.
Capture running launches state into a Launch Context.Let’s say you have 2 Launch Configurations – HelloWorld and ByeWorld – and to do your test you need both of them running and suspending at breakpoints. Once you have this state in your AUT you can press “Capture” button and all your AUT launches state will be captured as a context: which will have all information about:
- Existing launch configurations
- Exising running launches (and their running modes – “run” or “debug”)
- Existing breakpoins