<span metal:use-macro="container/Zuite_viewWendelinTestMacroLibrary/macros/init_wendelin_test_environment">Init Wendlin Test Environment</span>

# Agenda

- Create Data Acquisition Unit

This tutorial teaches how to create Data Acquisition Unit.

Data Acquisition Unit represents the source from where the data comes.

In the scope of this Learning Track we use Olimex Environment Sensor to retrieve data, thus our Data Acquisition Unit will represent that sensor.

# Home

Go to your wendelin instance homepage and click on Modules.

# Data Acquisition Unit

On the modules page click on Data Acquisition Units.

# Add

Click on Add button.

# Create Document

Continue with clicking on Create Document.

# Fill the Form

Fill the form and click save.

# Validate

After it is saved, click on Validate on left side panel to validate Data Acquisition Unit.

# Confirm Valdation

Click on Validate to confirm validation.

openAndWait | ${default_front_url} |
waitForElementPresent | //a[contains(@href,'page=front')] |
click | //a[contains(@href,'page=front')] |
waitForElementPresent | //a[contains(@href,'data_acquisition_unit_module')] |
click | //a[contains(@href,'data_acquisition_unit_module')] |
waitForElementPresent | //a[@data-i18n="Add"] |
click | //a[@data-i18n="Add"] |
waitForElementPresent | //input[@type="submit" and @value="Create Document"] |
click | //input[@type="submit" and @value="Create Document"] |
waitForElementPresent | //input[@id="field_my_title"] |
type | //input[@id="field_my_title"] | Olimex Environment Sensor
type | //input[@id="field_my_reference"] | olimex-environment-sensor
click | //button[@type="submit" and @data-i18n="Save"] |
pause | 3000 |
waitForElementPresent | //button[@type="submit" and @class="success"] |
waitForElementPresent | //a[contains(@href,'Dvalidate_action')] |
click | //a[contains(@href,'Dvalidate_action')] |
waitForElementPresent | //input[@type="submit" and @value="Validate"] |
pause | 3000 |
click | //input[@type="submit" and @value="Validate"] |
waitForElementPresent | //button[@type="submit" and @class="success"] |
waitForElementPresent | //label[@for="field_my_translated_validation_state_title"] |
assertTextPresent | Validated |