<test>

<span metal:use-macro="container/Zuite_viewWendelinTestMacroLibrary/macros/init_wendelin_test_environment">Init Wendlin Test Environment</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 | ${default_front_url} |
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 | //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"] | 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 | //input[@type="submit" and @value="Validate"] |
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 |

</test>