FAQ: Why is my application launch not recorded properly?
In Coded UI Test, we support “Intent Aware Recording” which means recorder tries to capture the intent of the user instead of the raw actions. For example, say on a Win7 box user does following raw actions -
- Clicks on Windows Start button
- Clicks on the Search box
- Types “calc” in the search box
- From the search result, clicks on the “calc.exe” list item
The above steps result in launch of calc.exe application. Instead of recording the above 4 raw steps, the Coded UI Test recorder realizes that the intent of the user & records one launch step. This makes the recording more resilient as it can be played back on another OS like Windows XP where there is no search box.
To do the “Intent Aware Recording”, Coded UI Test has a separate rules process engine called Aggregator or Action Filter that goes through the raw actions to do appropriate pattern matching.
There are many different ways in which an exe can be launched in Windows and there is non-trivial cost\challenge for doing the same for each way. We prioritized the list and did the automatically generation of application launch for following –
- Launching from anywhere within Window’s Start Menu including search and launch on Vista\Win7
- Launching from Desktop shortcut
- Launching from Quick Launch
Some missing ones that we have heard folks using and going wrong are –
- Launching from Windows Run dialog
- Launching from explorer
- Other limitation is that it does not work with some applications with splash screen.
We may look at fixing these holes in future release but in this release you should use one of the above 3 supported ways for doing this.