On 04/08/2012 02:25 PM, joseph reddington wrote:
> Hi all,
>
> I'm using swtbot to run a partilar junit test within an application to test a plugin - I use
>
> tree.expandNode("SBFGTD").expandNode("src").expandNode("gtd.tests").expandNode("Ambiguous1.java")
> .contextMenu("Open");
>
> to select the file and to run it I use
>
> bot.menu("Run").menu("Run As").menu("2 junit test");
>
> except that this fails because the text for the "2 junit test" part of the menu includes some extra characters denoting the keyboard shortcut...
>
as for problems with menus with keyboard shortcuts I found a workaround, see
Hey - thanks for your reply. That looked like it would do the job, but when I gave it a go I made no progress...
I tried
"SWTBotMenu test = bot.menu("Run").menu("Run As").menu("JUnit Test ").click(); to run a Junit test and got a widget was null issue - any ideas?
On 04/12/2012 11:12 AM, joseph reddington wrote:
> Hey - thanks for your reply. That looked like it would do the job, but
> when I gave it a go I made no progress...
> I tried "SWTBotMenu test = bot.menu("Run").menu("Run As").menu("JUnit
> Test ").click(); to run a Junit test and got a widget was null issue -
> any ideas?
> Joe
>
I don't know whether this is your case, but for context menus you might
want to take a look at this