Automation test-Robot Framework python

79 views
Skip to first unread message

Adela Ndokaj

unread,
Oct 20, 2023, 6:03:10 PM10/20/23
to robotframework-users
Hello Guys

I am a junior automation tester using robot framework with python.
I am having difficulties in creating test cases, i would appreciate so much if anyone could help me a little bit on this,.

Thanks in Advance!

Aliasger Kiranawala

unread,
Oct 23, 2023, 1:27:43 AM10/23/23
to robotframework-users
Is Robot documentation not helpful for you to start with? 
There are tons of material available over net to guide writing basic RF tests

Adela Ndokaj

unread,
Oct 23, 2023, 4:32:27 AM10/23/23
to robotframework-users
Thank you,
I have checked all the youtube tutorials and udemy courses but in the project where I work the devs work with React and is so hard to catch the elements.
Could you help me with some links please.

Aliasger Kiranawala

unread,
Oct 23, 2023, 7:41:37 AM10/23/23
to robotframework-users
As the problem is at application end and not in how to automate I suggest to speak with devs to figure out element detection. 

Jody de Wet

unread,
Oct 23, 2023, 8:35:15 AM10/23/23
to robotframework-users
@Adela, it's a scary task starting off with any automation framework, specially if you are a manual tester with limited coding skills.
Robot is a good choice for that, however it takes some time and effort to get started.

The documentation is very detailed, so are many Youtube and Udemy courses! unless you can get someone to jump onto a call with you to jump straight to your project implentation.

Step one would be to follow a beginner robot course in yourtube, 3 to 5 days (this will be SeleniumLibrary)
Then read up on "relative xpath and xpath queries"
Then try using the Robotframework-browser library

Adela Ndokaj

unread,
Oct 23, 2023, 8:38:17 AM10/23/23
to robotframework-users
Thank you guys,

Yes i did that but they are saying to me to not use xpath because that changes, boh don t know why.

Ilkka Koskinen

unread,
Oct 24, 2023, 4:02:48 AM10/24/23
to robotframework-users
Hi,

In some cases like dynamic tables based on the actual data xpath-references might change somehow, but I assume that in general programmer could add new attributes like id into source code of the application and you could then use them to recognize the element in your test. But of course it requires that he/she is willing to do this 'extra' work :-)

It would likely be a good idea for you to keep a separate meeting with programmers to discuss about your needs (what you have to be able to recognize in your tests) and which methods (attributes, data content etc.) to use for the recognition, which kind of names to use as values etc. It's also good to keep in mind, that content of some attributes like 'class' might change in different versions of the development tool. 
 
I attached an image from our application as an example below.

Rgs,
Ilkka

id.png
Reply all
Reply to author
Forward
0 new messages