Posts Tagged ‘DmitryVinnik’
[DevoxxPL2019] User Login
Successful Login
- Navigate to login page
- Enter username “user” and password “pass”
- Verify dashboard visible
Steps code in Java:
@Step(“Navigate to login page”)
public void navigate() {
// code
}
Analytically, markdown's familiarity lowers barriers. Implications: accelerates onboarding, but lacks Gherkin's structure for some.
## Taiko Integration: Scriptless Web Automation
Taiko, a Chrome DevTools wrapper, enables intuitive interactions sans selectors. Dmitry demos on TodoMVC: open URLs, write inputs, click elements.
Code:
const { openBrowser, goto, write, click } = require(‘taiko’);
await openBrowser();
await goto(“todomvc.com”);
await write(“Buy milk”);
await click(“Add”);
“`
Analytically, natural APIs reduce fragility from UI changes. Implications: speeds test creation, though Chrome exclusivity limits cross-browser testing.
Practical Application: End-to-End Testing Flows
Combining Gauge specs with Taiko steps, Dmitry automates todo flows: create, complete, filter.
Specs drive discussions; Taiko handles executions reliably.
Analytically, this revives BDD by minimizing overheads. Implications: boosts test reliability, encouraging widespread use.
Organizational Adoption: Challenges and Strategies
Despite simplicity, resistance persists from legacy habits. Dmitry advises gradual introductions, emphasizing communication benefits.
Implications: transforms testing from chore to collaborative asset, enhancing product quality.