arguments to use case actions should have quotes

Bug #777690 reported by Emily Bache
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StoryText
Won't Fix
Undecided
Unassigned

Bug Description

If a new use case action takes an argument (eg Misty), it appears as I type, for example if I name my action "book animal", the use case might look like this:

do something
book animal Misty
quit

The argument is "Misty" but it is not ovbious that it isn't part of the name of the use case action. I think it would be useful to have an option for pyusecase where arguments were quoted, like this:

do something
book animal "Misty"
quit

In Cucumber variables are often quoted like this to show they are not part of the action itself, and might vary.

Revision history for this message
Geoff Bache (geoff.bache) wrote :

Not sure about this. Such quotes aren't syntactically necessary and introduce complications if you actually want to enter a quote character. I've deliberately kept syntax to a minimum.

The statement "book animal Misty" is agnostic about whether Misty is a variable or not. Depending on how the UI changes, you could easily imagine situations where a "widget with variables" changed to a "widget without variables" (such as a series of check buttons) and this becomes a pain if the usecases all encode this knowledge (which is really a technical detail).

Revision history for this message
Geoff Bache (geoff.bache) wrote :

Closing, see previous comment.

Changed in pyusecase:
status: New → Invalid
status: Invalid → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.