<test>

<span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/init_test_environment">init</span>
store | http://example.com/erp5 | base_url_x
openAndWait | ${base_url}/Zuite_setUpPersonTest |
verifyTextPresent | Init Ok |
<span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"> Wait for activities </span>
<span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user">Login As Functional Test User</span>

</test>

# 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.

<test>

openAndWait | ${base_url_x}/web_site_module/default_wendelin_front/ |
waitForElementPresent | //a[contains(@href,'page=front')] |
click | //a[contains(@href,'page=front')] |
pause | 3000 |
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 | //button[@type="submit" and @data-i18n="Proceed"] |
pause | 3000 |
click | //button[@type="submit" and @data-i18n="Proceed"] |
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 | //button[@type="submit" and @data-i18n="Proceed"] |
click | //button[@type="submit" and @data-i18n="Proceed"] |
waitForElementPresent | //button[@type="submit" and @class="success"] |

</test>