[jbosstools-issues] [JBoss JIRA] (JBIDE-11567) Provide a way to add runtime detection path using SWTBot

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Tue Apr 17 11:03:17 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-11567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12684955#comment-12684955 ] 

Snjezana Peco commented on JBIDE-11567:
---------------------------------------

A runtime path can be added programatically. You may want to take a look at the RuntimeDetectionTest.addRuntimePaths method in the org.jboss.tools.runtime.test plugin.
For instance,

{code}
Set<RuntimePath> runtimePaths = RuntimeUIActivator.getDefault().getRuntimePaths();
RuntimePath runtimePath = new RuntimePath("YOUR_PATH");
runtimePath.setScanOnEveryStartup(...);
runtimePaths.add(runtimePath);
RuntimeUIActivator.getDefault().saveRuntimePaths();
{code}

I don't think it would be good to change the UI because of tests.
The Edit dialog also includes the Browse button that calls the same SWT directory dialog.
                
> Provide a way to add runtime detection path using SWTBot
> --------------------------------------------------------
>
>                 Key: JBIDE-11567
>                 URL: https://issues.jboss.org/browse/JBIDE-11567
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: runtime detection
>    Affects Versions: 3.3.0.Beta2
>            Reporter: Lucia Jelinkova
>            Assignee: Snjezana Peco
>
> I've started to develop UI automated tests for runtime detection using SWTBot. The problem is that when clicking the Add button on JBoss Tools Runtime Detection preferences page there is a native file dialog shown that cannot be operated by SWTBot. 
> Would it be possible to display a dialog similar to the one displayed by Edit button? There is the possibility to provide the path into the text field (that can be done by SWTBot) or to Browse the file system (used by normal users). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list