#### 9 years and 9 months experienced
- Previous: Nuxeo, Economic Outlook (Australia), Thales
- Eclipse RCP, Nuxeo, FOSS, Agile
Twitter: @sunsengdavidtan
IRC: sunix
Write "Behavioral specifications" first####Behavioral specification - Spoken language - User stories - Scenarios - Given: Prerequisites - When: Actions - Then: Expectations - Usually your functional test scenarios ####Steps - Write "Behavioral specifications" - Code and Validate the feature right away Requirements met at the end :)
<html xmlns:c="http://www.concordion.org/2007/concordion">
<body>
Hello <span c:assertEquals="world()">World</span>
</body>
</html>
package com.serli.demo.concordion;
@RunWith(ConcordionRunner.class)
public class HelloWorld {
public String world(){
// write selenium code here
return "World";
}
}
The most used Concordion instructionHello World Fails if `world()`≠ `"World"` ####Demo's content: - Project configuration - Eclipse plugin - Basic login scenario - Markdown.js - Given When Then - assertEquals - Webdriver
c:set<html xmlns:c="http://www.concordion.org/2007/concordion">
<body>
The greeting for user
<span c:set="#firstName">Bob</span>
will be:
<span c:assertEquals="greetingFor(#firstName)">Hello Bob!</span>
</body>
</html>
Fixture: com/serli/demo/concordion/HelloWorld.java
package com.serli.demo.concordion;
@RunWith(ConcordionRunner.class)
public class HelloWorld {
public String greetingFor(String firstName) {
return "Hello " + firstName + "!";
}
}
I didn't write that test- I'm new in the team - I was working on another feature - I'm not a developer
Nice and useful reports
/
#