Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 899 Bytes

runtime.md

File metadata and controls

21 lines (16 loc) · 899 Bytes

UIVeri5 Runtime

UIVeri5 takes advantage of Protractor's Jasmine integration and control flow. For more information, see The WebDriver Control Flow.

WebDriver Element, Promises and Control Flow

TODO

Promises are Resolved Automatically

// works but is too complicated
someElement.count().then(function (count) {
    expect(count).toBeGreaterThan(0);
  }
);

// better
expect(someElement.count()).toBeGreaterThan(0);

Implicit Synchronization

UIVeri5 can synchronize with UI5 automatically. This means that it will check for unfinished asynchronous work performed by the application before every action and expectation (essentially, before every element location). This stabilizes test execution as the test waits for the application to become responsive before continuing with the next step.