running parent suite setup multiple times

50 views
Skip to first unread message

Sachin Nikam

unread,
Mar 26, 2016, 1:57:38 AM3/26/16
to robotframework-users
Hi All,

I am having parent suite setup in all suites.

Parent suite setup contains all UI related configuration.

If parent suite setup fails then all cases fails. Is there a way by which we can configure retry in parent suite setup to make sure it is run if it is failed so that we don't get all test cases failed because of suite setup failure.

Thanks & Regards,
Sachin Nikam

GAURAV DEORE

unread,
Mar 27, 2016, 2:02:56 AM3/27/16
to Sachin Nikam, robotframework-users
there is not way. Its basic structure of Robot framework even in automation concept too.

You can split Suit Setup wit Test Setup. So Test Suite setup would have only required basics like getting required credentials to login or building keywords/dictionary/variables. Test Setup may ave launching of application etc etc.

Thanks


--
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.



--
------------------------------
Warm Regards,
GAURAV S. DEORE.

dm08

unread,
Mar 27, 2016, 2:20:04 AM3/27/16
to gaur...@gmail.com, Sachin Nikam, robotframework-users
Actually in your __init__  file you can wrap all potential failures into Wait Until Keyword Succeeds or even all suite it and do sth like
Example 1 

***Settings***
Suite Setup     Setup 

***Keywords***
Suite Setup 
Keyword  1 
Keyword  2 

Setup 
Wait Until Keyword Succeeds     time_to_repeat     reppeat_interval 
…      Suite Setup 

Example 2

***Settings***
Suite Setup    Suite Setup 

***Keywords***
Suite Setup 
        Wait Until Keyword Succeeds     time_to_repeat     reppeat_interval 
…      Potential Failure Keyword
Stable Keyword


Thanks,
Dmitriy

On Mar 26, 2016, at 7:02 PM, GAURAV DEORE <gaur...@gmail.com> wrote:




Sachin Nikam

unread,
Mar 27, 2016, 2:31:12 PM3/27/16
to robotframework-users, gaur...@gmail.com, sachin....@gmail.com
Hi All, 

Thanks for ur reply.

@Dmitriy, will try the solution suggested by u :)
Reply all
Reply to author
Forward
0 new messages