# "Automated GUI testing" by executing python scripts

**URL:** <https://forum.robotframework.org/t/automated-gui-testing-by-executing-python-scripts/5489>\
**Category:** Python\
**Created:** [24 March 2023 11:43 UTC](https://forum.robotframework.org/t/automated-gui-testing-by-executing-python-scripts/5489 "2023-03-24T11:43:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmunoz63](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/rmunoz63/32/2481_2.png) [@rmunoz63](https://forum.robotframework.org/u/rmunoz63)\
**Post date:** [24 March 2023 11:43 UTC](https://forum.robotframework.org/t/automated-gui-testing-by-executing-python-scripts/5489/1 "2023-03-24T11:43:03Z")

</div>

I am interesting in developing an application for doing “Automated GUI Testing”.  
The application under test (AUT) is written in Java (SWT).  
To carry out this goal, my approach has to do with the following:

- First, try to record several actions on the GUI of the AUT (preferably in python scripts).
- Second, automate actions by executing (replaying) the scripts recorded previously.  
I think, it is mandatory to be used some kind of SWT for JAVA library.  
Could I find some useful material in this site to start with this task?  
If you have any question or other idea to do that, please let me know.  
Thanks so much in advance,

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [24 March 2023 11:58 UTC](https://forum.robotframework.org/t/automated-gui-testing-by-executing-python-scripts/5489/2 "2023-03-24T11:58:05Z")

</div>

Hi @rmunoz63

> [@rmunoz63](#):
>
> I think, it is mandatory to be used some kind of SWT for JAVA library.

Not mandatory, but probably easier;

A quick look through [resources](https://robotframework.org/#resources) on the robot framework page finds [SwingLibrary](https://github.com/robotframework/SwingLibrary/wiki), which might be what you’re after, I’ve never used this library myself, so you’ll need to look at the documentation, hopefully someone else here has used it and they can help you with it if you need it.

If SwingLibrary doesn’t work for you and you can’t find a better library, then, these 2 libraries that can be used to automate any GUI (giving you a fall back position):

- [SikuliLibrary](https://rainmanwy.github.io/robotframework-SikuliLibrary/doc/SikuliLibrary.html)
- [ImageHorizonLibrary](https://eficode.github.io/robotframework-imagehorizonlibrary/doc/ImageHorizonLibrary.html)

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![Many](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/many/32/658_2.png) [@Many](https://forum.robotframework.org/u/Many)\
**Post date:** [24 March 2023 14:25 UTC](https://forum.robotframework.org/t/automated-gui-testing-by-executing-python-scripts/5489/3 "2023-03-24T14:25:12Z")

</div>

See my answer in your other Thread about Java SWT Automation

> [@SWT Library for "Automated GUI Testing"](https://forum.robotframework.org/t/swt-library-for-automated-gui-testing/5490/2):
>
> We tried to do it only with Robot Framework and the available Libraries. I understood that this one could theoretically be used to automate Java SWT Applications: But we didn’t succeed. In the end, we combined Robot Framework with a Commercial Tool QF Test that offers a Robot Framework Library So in the end, we used the steering engine (for Java SWT) from that Tool, but wrote our tests and keywords in Robot Framework syntax. Maybe that approach is also a possibility for you
