running same test in different environment

The solution for “running same test in different environment” can be found here. The following code will assist you in solving the problem.

I use serenity.config file.
I add all the enviroments there and than I take it
by using configReader method. It does run in
default environment if I don’t specify and environment

I could use also file aswell
but it is longer code than serenity.config file

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in