List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Interaction with SWT Browser widget


  • Subject: Re: [QF-Test] Interaction with SWT Browser widget
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 21 Aug 2015 09:14:10 +0200

Hello Marek,

we hope to support the embedded SWT browser directly at some point but
unfortunately we aren't there yet.

There is, however, a common pattern to address this which works well
in most cases, when the interaction between the page in the embedded
browser and the SWT application isn't too tight:

Get hold of the SWT Browser widget, read its URL and open a QF-Test
browser on the same URL as a second client (using a different client
name). You then have the full QF-Test web capabilities at your
disposal for interacting with the web page and for checking results.

To do so, use an SUT script with

browser = rc.getComponent("QF-Test id of the Browser widget")
url = browser.getUrl()
rc.setLocal("url", url)

Then use $(url) in the startup sequence for the web client.

Best regards,
    Greg

"Nedvěd, Marek" <m.nedved@?.de> writes:

> Hello QF-Testers,
>
> We are testing eclipse RCP application with BIRT reporting. The reports are shown inside a dialog
> with SWT Browser widget. Is there a way to interact with this embedded browser? Or at least send
> urls or commands to it?
>
> From what I tried I only succeeded in pressing Tab and Enter keys. Other keys were ignored, as
> well as mouse clicks.
>
> Thanks for any hints!
>
> Marek Nedved
>
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> https://www.qfs.de/mailman/listinfo/qftest-list

--
Gregor Schmid

E: gregor.schmid@?.de
T: +49 8171 38648-11
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833