How to use decorators and generators and iterators in Robot framework

544 views
Skip to first unread message

mahesh yadav

unread,
Jul 3, 2018, 1:04:45 AM7/3/18
to robotframework-users
Hi Experts,

I recently  shifted to robot framework but i don't know how to use decorators and generators and iterators in robot framework.

Please give me with examples. I hope it will more useful for me.




Regards,
Mahesh.Dasari
  

Pekka Klärck

unread,
Jul 3, 2018, 8:12:11 AM7/3/18
to mahi...@gmail.com, robotframework-users
Hi,

You'd use these features in your libraries where their usage doesn't
really differ from using them in Python code in general. One thing to
remember is that if you decorate functions becoming keywords, you need
to make sure the decorator preserves the signature or otherwise Robot
cannot see it correctly. For a bit more details see
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#using-decorators

Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
> To post to this group, send email to robotframe...@googlegroups.com.
> Visit this group at https://groups.google.com/group/robotframework-users.
> For more options, visit https://groups.google.com/d/optout.



--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Reply all
Reply to author
Forward
0 new messages