BDD loves DDD

BDD is not given when then.

It is a way of collaboration in which technical people with non-technical, business, product people write collaboratively specifications that everyone can understand. Gherkin is a format to do that. BDD is not a new format to write specifications, but rather having conversations between developers, testers and business people. Bringing examples to the front is the way we discuss what we want our software to do. BDD is a ubiquitous language.

With ubiquitous language, you can avoid terms that are understood by some of the team members only.

Ubiquitous language is used in DDD too.

DDD is a way to model software against business processes. During an event storming workshop, which is a group modeling technique that brings together, we would tend to think about using BDD on individual user stories to make sure that we nailed down the details. And where those stories are come from.

Web Element Locator Strategies: CSS Selectors

CSS Selectors have been favored over XPaths for two main reasons: simplicity and speed, though I doubt both. I usually go with XPath. Any element on a Web page can be uniquely located using XPath, and I find XPaths the strongest locator type.

CSS Selectors are not powerful, but most web developers already know how to use them. They cannot uniquely identify any given element on the page. CSS Selectors can never select elements by text context, and they cannot always select elements by index.

CSS Selectors are expressions that use pattern matching to find elements on a webpage.

Because I have abandoned CSS selectors, now I took the time to play with it more, and this is rather a memo to myself.

Continue reading Web Element Locator Strategies: CSS Selectors