<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 20.11.2012 22:11, Diederik de Haas
wrote:
</div>
<blockquote cite="mid:201211202211.09202.didi.debian@cknow.org"
type="cite">
<pre wrap="">The import Calendar function has a regression [1], but it's dependent on the
(input) data. Does Gherkin have provisions for that?</pre>
</blockquote>
Cucumber uses two steps to specify tests.<br>
<br>
1. Gherkin is used to write scenarios in a structured English
language. You can eg. write<br>
-----8<---------<br>
Given I am logged in as "alice"<br>
And I am in the calendar app<br>
And I selected the month view<br>
When I create a new event<br>
And I enter "Bob's birthday" as title<br>
And I set the end date to 1.1.1970<br>
Then the start date should be corrected to 1.1.1970<br>
--------->8------<br>
<br>
2. Cucumber uses step definitions to execute each line:<br>
-----8<---------<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: Consolas, 'Liberation Mono', Courier, monospace; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="line" id="LC16" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px; "><span class="no" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 128, 128); ">When</span> <span class="sr" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 153, 38); ">/^I am in the "([^"]*)" app$/</span> <span class="k" style="margin: 0px; padding: 0px; border: 0px; font-weight: bold; ">do</span> <span class="o" style="margin: 0px; padding: 0px; border: 0px; font-weight: bold; ">|</span><span class="n" style="margin: 0px; padding: 0px; bo
rder: 0px
; ">app</span><span class="o" style="margin: 0px; padding: 0px; border: 0px; font-weight: bold; ">|</span></div><div class="line" id="LC17" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px; "> <span class="n" style="margin: 0px; padding: 0px; border: 0px; ">visit</span> <span class="s2" style="margin: 0px; padding: 0px; border: 0px; color: rgb(221, 17, 68); ">"/index.php?app=</span><span class="si" style="margin: 0px; padding: 0px; border: 0px; color: rgb(221, 17, 68); ">#{</span><span class="n" style="margin: 0px; padding: 0px; border: 0px; ">app</span><span class="si" style="margin: 0px; padding: 0px; border: 0px; color: rgb(221, 17, 68); ">}</span><span class="s2" style="margin: 0px; padding: 0px; border: 0px; color: rgb(221, 17, 68); ">"</span></div><div class="line" id="LC18" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px; "> <span class="n" style="margin: 0px; padding: 0px; border: 0px; ">page</span><span class="o" style="marg
in: 0px;
padding: 0px; border: 0px; font-weight: bold; ">.</span><span class="n" style="margin: 0px; padding: 0px; border: 0px; ">should</span> <span class="n" style="margin: 0px; padding: 0px; border: 0px; ">have_selector</span><span class="p" style="margin: 0px; padding: 0px; border: 0px; ">(</span><span class="s1" style="margin: 0px; padding: 0px; border: 0px; color: rgb(221, 17, 68); ">'a#logout'</span><span class="p" style="margin: 0px; padding: 0px; border: 0px; ">)</span></div><div class="line" id="LC19" style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px; "><span class="k" style="margin: 0px; padding: 0px; border: 0px; font-weight: bold; ">end</span></div></pre>
--------->8------<br>
<br>
So yes, it is very much encouraged to use specific values in the
scenarios.<br>
<br>
<blockquote cite="mid:201211202211.09202.didi.debian@cknow.org"
type="cite">
<pre wrap="">While looking at <a class="moz-txt-link-freetext" href="http://owncloud.org/dev/kanban-board/">http://owncloud.org/dev/kanban-board/</a> I saw that there's a
"Panic" label. I'm not sure whether such a label sends the right message ;-)</pre>
</blockquote>
DeepDiver an I thought that a more emotional "Panic" raises the
level of awareness for developers over a "oh this is ... critical
... well, yeah whatever, pushing my code is critical as well." <br>
<br>
<blockquote cite="mid:201211202211.09202.didi.debian@cknow.org"
type="cite">
<pre wrap="">With "Critical" (for example) you'd signal the proper urgency of the issue but
you'd be able to realize that you can get your data back by restoring a backup.
When you're in panic you wouldn't be able to come up with such a solution.</pre>
</blockquote>
I see your point, but educating our users to make backups may be out
of scope for ownCloud ;) I still think the call for action with
"Panic" is greater than with "Critical", but that might be because
English is not my mother tongue.<br>
<br>
so long<br>
<br>
Jörn<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn Friedrich Dreyer (<a class="moz-txt-link-abbreviated" href="mailto:jfd@owncloud.com">jfd@owncloud.com</a>)
Software Developer
ownCloud GmbH
Your Data, Your Cloud, Your Way!
ownCloud GmbH, GF: Markus Rex, Holger Dyroff
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)
</pre>
</body>
</html>