OpenTest
This article relies too much on references to primary sources. (April 2018) (Learn how and when to remove this template message) |
OpenTest is a free and open source functional test automation tool for web applications, mobile apps and APIs. The OpenTest project started in year 2016 at McDonald's and, after the first year, it began seeing rapid adoption by numerous internal and vendor teams on four continents. In December 2017 OpenTest was released as open source software under the MIT license (any individual or company can use it free of charge, including for commercial purposes). OpenTest leverages popular open source libraries and technologies: Selenium for web testing, Appium for mobile testing, Apache HttpClient for REST API testing, OpenCV for visual validation and Tesseract for OCR capabilities.
Components[edit]
OpenTest consists of two main components:
- The test actor, a console application written in Java.
- The sync server, a Node.js application written in TypeScript.
The tests are kept separate from the tool itself, in a directory structure that has to conform to some simple naming conventions, typically referred to as the "test repository". Both the test logic and test data are expressed using the YAML data format, since it is easily editable by hand and works well with source control systems.
Test structure and syntax[edit]
description: Search for the "react" repo on the GitHub website
actors:
- actor: WEB
segments:
- segment: 1
actions:
- description: Navigate to GitHub
action: org.getopentest.selenium.NavigateTo
args:
url: https://github.com
- description: Type "react" in the search box and press Enter
action: org.getopentest.selenium.SendKeys
args:
locator: { name: q }
text: react
sendEnter: true
- description: Verify that the React repo is listed in the results
action: org.getopentest.selenium.AssertElementVisible
args:
locator: { xpath: "//a[@href='/facebook/react']" }
External links[edit]
This article "OpenTest" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:OpenTest. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.