<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 Product

This tutorial teaches how to create Data Product.

Data Product represents the type of data.

In this tutorial we will create a Data Product for incoming raw data from streaming hardware.

# Home

Go to your wendelin instance homepage and click on Modules.

# Data Product

On the modules page click on Data Product.

# 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 the left side panel to validate the Data Product.

# Confirm Valdation

Click on Proceed to confirm the validation.

<test>

openAndWait | ${base_url_x}/web_site_module/default_wendelin_front/ |
waitForElementPresent | //a[contains(@href,'page=front')] |
click | //a[contains(@href,'page=front')] |
waitForElementPresent | //a[contains(@href,'data_product_module')] |
click | //a[contains(@href,'data_product_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"] | Sample Environment Raw Data
select | //select[@id="subfield_field_my_quantity_unit_list_default:list"] | Unit/Piece
type | //input[@id="field_my_reference"] | sample-environment-raw-data
select | //div[@data-gadget-scope="field_my_aggregated_portal_type_list"]//div//div//div[1]//div//select[@id="field_my_aggregated_portal_type_list"] | Data Stream
select | //div[@data-gadget-scope="field_my_aggregated_portal_type_list"]//div//div//div[2]//div//select[@id="field_my_aggregated_portal_type_list"] | Progress Indicator
select | //select[@id="subfield_field_my_use_list_default:list"] | Big Data/Ingestion/Stream Ingestion
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>