This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do I set the AutomationID to a fixed value
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 28, 2013
04:08 PM
How do I set the AutomationID to a fixed value
I am attempting to automate the smoke testing of the InstallShield installer created as an output from our continuous integration builds. The problem for the automation tool is that the ID's for the installer widgets (text boxes, labels, buttons, etc.) are somehow assigned 5 digit AutomationID ID's as the installer (either MSI script or setup EXE) is built by InstallShield.
How do I tell install shield that for the text box containing the Licensing Terms of Use I want the textbox to have a property:
AutomationID ="CognexLicensingTermsOfUse"
instead of
AutomationID ="21867"
I can't rely on the number, 21867, because the next time there is an integration build and the number of files (or registry entries) managed by the Installer project changes, then this 5-digit "magic" number will change. Once changed the automation tool rightly states that it cannot find a control on the screen which has a AutomationID property set to 21867. Thus, the automated smoke test of the installer fails to run to completion.
Where in the InstallShield Spring 2012 product do I specify that this static text (or text box, or radio button, or push button) on some dialog screen has a ControlID of?
This is question about MSI-based installers and how to automate the testing of such installers. While this is the first time I have automated the testing of an installer app, I doubt am the first person ever to want to automate the testing of an MSI-based installer such as that produced by InstallShield 2012 spring.
FYI: with some tools the controlID property is displayed as the ControlID, but most display the property as AutomationID.
How do I tell install shield that for the text box containing the Licensing Terms of Use I want the textbox to have a property:
AutomationID ="CognexLicensingTermsOfUse"
instead of
AutomationID ="21867"
I can't rely on the number, 21867, because the next time there is an integration build and the number of files (or registry entries) managed by the Installer project changes, then this 5-digit "magic" number will change. Once changed the automation tool rightly states that it cannot find a control on the screen which has a AutomationID property set to 21867. Thus, the automated smoke test of the installer fails to run to completion.
Where in the InstallShield Spring 2012 product do I specify that this static text (or text box, or radio button, or push button) on some dialog screen has a ControlID of
This is question about MSI-based installers and how to automate the testing of such installers. While this is the first time I have automated the testing of an installer app, I doubt am the first person ever to want to automate the testing of an MSI-based installer such as that produced by InstallShield 2012 spring.
FYI: with some tools the controlID property is displayed as the ControlID, but most display the property as AutomationID.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 28, 2013
04:11 PM
I posted this new thread because similar posts such as this one: http://community.flexerasoftware.com/showthread.php?203294-automation-id-of-controls-changes&highlight=automation
have yet to get a response.
have yet to get a response.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)