[Plone-testing-team] Fwd: Anyone using custom exceptions to exit for loops? Can the feature be removed?

Asko Soukka asko.soukka at iki.fi
Fri May 3 12:37:10 UTC 2013


Hi Ed,

thanks for notifying us. I've been using loops for screenshot-keywords, 
but not those particular features.

Cheers,
Asko

Ed Manlove wrote:
> I'm forwarding this in case anyone from the Plone Testing Team has any 
> comments about this change to Robot Framework. - Ed
>
> -------- Original Message --------
> Subject: 	Anyone using custom exceptions to exit for loops? Can the 
> feature be removed?
> Date: 	Fri, 03 May 2013 10:30:30 +0300
> From: 	Pekka Klärck <peke at iki.fi>
> Reply-To: 	pekka.klarck at gmail.com
> To: 	robotframework-users <robotframework-users at googlegroups.com>
>
>
>
> Hi all,
>
> As I guess all you know, it is possible to create for loops in Robot
> test data [1]. In addition to that, there is a special Exit For Loop
> keyword [2] that can be used to exit the loop similarly as using break
> statement in most programming languages.
>
> Exit for loop functionality is implemented so that in addition to
> using Exit For Loop keyword it is possible to use also custom
> exceptions. It works so that any exception that has a special
> ROBOT_EXIT_FOR_LOOP attribute with a true value will exit the loop. Is
> anyone using custom exceptions for this purpose? Do you see any useful
> use case for this feature in general?
>
> If custom exceptions are not widely or at all used, we'll deprecate
> the functionality in Robot Framework 2.8 and will remove it later. The
> reason we would like to do it is that we are, after countless
> requests, now going to implement also Continue For Loop [3] keyword,
> and wouldn't like to use this unnecessary complex approach with it.
> For consistency reasons we'd then also like to remove this feature
> also from exit for loop functionality.
>
> [1]http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#for-loops
> [2]http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#exiting-for-loop
> [3]http://code.google.com/p/robotframework/issues/detail?id=1125
>
> Cheers,
>      .peke
> -- 
> Agile Tester/Developer/Consultant ::http://eliga.fi
> Lead Developer of Robot Framework ::http://robotframework.org
>
> -- 
> 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 torobotframework-users+unsubscribe at googlegroups.com.
> To post to this group, send email torobotframework-users at googlegroups.com.
> Visit this group athttp://groups.google.com/group/robotframework-users?hl=en.
> For more options, visithttps://groups.google.com/groups/opt_out.
>
>
>
> _______________________________________________
> Plone-testing-team mailing list
> Plone-testing-team at lists.plone.org
> http://lists.plone.org/mailman/listinfo/plone-testing-team


More information about the Plone-testing-team mailing list