Skip to content

Test Automation Release

Compare
Choose a tag to compare
@kensoh kensoh released this 31 Oct 08:16
· 910 commits to master since this release
a42f466

TagUI is a general purpose tool for automating web interactions

  • #65 enabled file downloads for headless Chrome
  • #64 fixed popup step for Chrome protocol changes
  • #63 extending check step for auto test assertions
    • added url(), title(), text(), timer(), count('element'), visible('element') functions
    • in addition to existing present('element') function, for easy access to properties
    • these webpage properties can be used in conditions or steps such as check or echo

This release makes it possible for headless and visible Chrome test automation, with integration to CI/CD tools such as Jenkins for continuous integration. CasperJS does not support Chrome, thus the check step is now extended to perform test assertions automatically that work for Chrome. Eg:

// check that the page has the text My Portfolio
check text() contains 'My Portfolio' | 'page text contains My Portfolio' | 'page text does not contain My Portfolio'

// check that number of header menu items are more than or equals to 6
check count('uh-tb-') more than or equals to 6 | 'header menu items >= 6' | 'header menu items < 6'

Leveraging on TagUI's built-in integration with Chrome and CasperJS testing framework, a XUnit XML file can now be generated even for tests done on headless or visible Chrome browser. More details can be found at readme testing section. The flow sample 7_testing shows how above new functions and natural language conditions can be used in check step, or normal TagUI steps.