Screenplay: Action is deprecated

141 views
Skip to first unread message

Maarten van den Ende

unread,
Jan 13, 2017, 5:43:20 AM1/13/17
to Serenity BDD Users Group
Hi

I am using Actions in screenplay pattern. It's deprecated for some recent version of serenity-core. Does anybody have an idea what to use instead?

Cheers

Maarten

adi....@outlook.com

unread,
Jan 13, 2017, 7:59:33 AM1/13/17
to Serenity BDD Users Group
From the serenity core code:
package net.serenitybdd.screenplay;
/**
* A marker class to indicate that a Performable represents a system interaction (action),
* rather than a business task.
* @deprecated Use Interaction instead
*/
@Deprecated
public interface Action extends Performable {}
There is a class called Interaction now that extends Action. Also unless you plan on updating to a new version you can keep Action even if it is deprecated. Generally just follow the code to the definition of the Class/Method that is deprecated as most people add in the comment the reason why and a specification of what will it be substituted with

John Smart

unread,
Jan 13, 2017, 8:25:57 AM1/13/17
to adi....@outlook.com, Serenity BDD Users Group
It is just a semantic distinction; we thought Interaction reflects the intent of the class better. So, as the comment suggests, you can use Interaction instead of Action (both will continue to work fine).

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.
___________________________________________________
Reply all
Reply to author
Forward
0 new messages