eclipse-rcptt

RCPTT running Java code from the script

家住魔仙堡 提交于 2020-01-14 09:08:49
问题 I am looking for some way to run some Java code directly from the test script I am writing for our RCP application. I need to set up a multi-cast socket in the test before clicking a particular button in the application. Something like this: MulticastSocket socket = new MulticastSocket(); socket.setNetworkInterface(interfaceTarget); InetAddress group = InetAddress.getByName("220.2.2.2"); socket.joinGroup(group); I was unable to find any way to do this just wondering if this is possible? 回答1:

use ecl command as proc parameter input

你。 提交于 2020-01-03 05:05:43
问题 I am facing an issue about passing ecl command as procedure input. I have an ecl command: get-editor [format "Configuration Editor - %s" $projNmae] | click I want to take this ecl command as parameter input in a procedure. What i am doing is: proc "wait-until-element-is-loaded" [val editor] { loop [val count 0] { try { $editor | click } -catch { if [eq $count 4] { // 30 seconds throw-error [concat "element can not be loaded within the wait time. " $editor] } wait 100 recur [$count | plus 1] }