// conf-file
capabilities: {
"wdi5:authentication": { provider: "BTP" }
}
// in the environment (e.g. via a .env file)
wdi5_username='ken@thompson.org'
wdi5_password='p/q2-q4'
wdi5's API on Controls was aligned with UI5’s native API on the same. Also, the locators for retrieving a Control were compatible with OPA5’s matcher from the get-go.wdi5 PoC:if you do APIs, why not align them completely?
wdi5 1.0, the UI5 Managed Object API compatibility was added as a feature to complete that “API alignment triumvirate” 😀// OPA5-compatible selector
const input = await browser.asControl({
selector: {
id: "mainUserInput",
viewName: "test.Sample.view.Main"
}
})
// control api alignment
const value = await input.getValue() // same as in UI5
// new object api alignment
const binding = await input.getBinding("value") // same as in UI5
const path = await binding.getPath() // -"-
// not yet: const pathFluentApi = await input.getBinding("value").getPath()
expect(path).toEqual("/Customers('TRAIH')/ContactName")wdi5 should serve as a safety net of sorts, yet be out of the way at dev time. A combination of headless browser usage, debug mode, and continuously running wdi5 can achieve that. The latter is done by providing the --watch flag to the WebdriverIO-cli (that in turn wdi5 reuses for running tests).wdi5 1.0, the watch mode has been enhanced to recognize an authenticated browser-session. It will not attempt authentication after the initial run, but continue executing the tests only.wdi5-specific configuration option url was deprecated in favor of the WebdriverIO standard baseUrl.- wdi5: {
- url: "index.html"
- },
- baseUrl: "<http://localhost:8080>"
+ baseUrl: "<http://localhost:8080/index.html>"
wdi5 config optional. So after installing wdi5, you’re pretty much good to go with the default options!wdi5 up and running should supposedly be quick and effortless, coming up with the right locators on the desired page and using the proper assertions might pose an initial challenge.wdi5 ecosystem helps tremendously:wdi5 codeexpects) on a UI5 control or objectwdio/wdi5-VS Code extension can help with kicking off test runs 😁wdi5 was following the 0.9.x patch releases to prep for this 1.0. From now on, we’ll follow a more proper major-minor-patch semantic versioning strategy.wdi5 1.0 was released in the wake of last week’s TechEd, where it was demoed live on stage at the developer advocates keynote (very 😎 btw).8.0) will launch.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 5 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |