--===============1540274704== Content-Type: multipart/signed; boundary="nextPart2019211.NXaLJm2hB9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2019211.NXaLJm2hB9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear all, I'm still developping my robot for konqueror and I've stumbled on a=20 fundamental issue. I want to have a robot that can control konqueror to make GUI testing=20 (and I have a good reason to do it like that, HttpUnit won't do it). The thing I want to achieve is to have several little functions that=20 allow me to write scripts like this : # this is ruby code... openURL(google.org") fillForm("search","what I serach for") submitForm("search") assert( link_present("www.mysite.com")) To achieve this, ruby must have the control flow. However, if I use=20 Korundum and a KApplication, the control flow is passed to Qt. This=20 leads to code like this, with an event handler : case scenarioStep when 1 openURL(google.org") when 2 fillForm("search","what I serach for") ... end scenarioStep++ this works but it's not nice : having to write down all these "when"=20 is not nice. What I was thinking on is to have two threads. One threads running=20 the QT stuff (one window with a KHTML part) and another running my=20 script. This way the application loop control flow is handled=20 separately of the scenario control flow. The problem is that first, if I create a thread beside the=20 KApplication.exec one, it is run only if events are thrown at the=20 KApplication.exec. Second, if I write : a =3D KDE::Application.new() Thread.new { a.exec=20 } it crashes miserably. Any suggestion ? Thank you ! Stefan --nextPart2019211.NXaLJm2hB9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDVLeFJSFeitOo3lcRAsV4AJ4hhIPEbS9gxS/N9VjkgI0K79/A2ACfa28m hJc1T58Z/FsxWXdSSYAstek= =h5VN -----END PGP SIGNATURE----- --nextPart2019211.NXaLJm2hB9-- --===============1540274704== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings --===============1540274704==--