Give a label to a step

10 views
Skip to first unread message

Edmondo Porcu

unread,
May 17, 2013, 5:29:51 AM5/17/13
to specs2...@googlegroups.com

Dear All,

Is it possible to provide a textual message to a step ? I would like to write:

 

step(init, “initializing the context”)

 

Best regards

 

 

Edmondo Porcu

 

 


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

etorreborre

unread,
May 17, 2013, 6:28:36 PM5/17/13
to specs2...@googlegroups.com
Hi Edmondo,

You can just add piece of text with the .txt method before the step:

  "initializing the context".txt

  step(init)

E.

Edmondo Porcu

unread,
May 20, 2013, 5:01:57 AM5/20/13
to specs2...@googlegroups.com

In intellij idea, the steps gets nested : init appears as a step inside initialization context, but I guess it’s a problem of the ide.

 

However, it would be useful to tag steps with a label for html report generation, don’t you think so?

 

Best

--
You received this message because you are subscribed to the Google Groups "specs2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specs2-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


 
 

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

etorreborre

unread,
May 20, 2013, 7:15:31 PM5/20/13
to specs2...@googlegroups.com
> However, it would be useful to tag steps with a label for html report generation, don’t you think so?

I always thought that it would be unnecessary because you can add text before or after the step and also use a `Result` inside your step which will display a message if the step execution goes wrong.

E.
Reply all
Reply to author
Forward
0 new messages