{"id":42181,"date":"2018-12-06T10:44:29","date_gmt":"2018-12-06T02:44:29","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=42181"},"modified":"2020-11-11T17:47:03","modified_gmt":"2020-11-11T09:47:03","slug":"supplying-test-data","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/creating-user-processes\/how-to-test-a-process\/supplying-test-data\/","title":{"rendered":"Supplying Test Data"},"content":{"rendered":"\n<p class=\"intro-text\">All Flow Events present in a user process should be tested with a series of test cases to make sure you get the results you expect.\u00a0You should test:<\/p>\n<ul class=\"intro-text\">\n<li>Each flow event individually.<\/li>\n<li>All flow events at once.<\/li>\n<\/ul>\n<p class=\"intro-text\">There are two ways to supply test data:<\/p>\n<ul class=\"intro-text\">\n<li>Manually specify single data points.<\/li>\n<li>Import data from a .csv file.<\/li>\n<\/ul>\n<h2 class=\"page-subheading\">Single data point<\/h2>\n<p class=\"intro-text\">Each of the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-features\/inputs\/\">Inputs<\/a> are available in the panel for you to supply test values. In the following example, the process requires test values for <strong>Oxygen<\/strong>, <strong>Temperature<\/strong>, and <strong>Chlorine <\/strong>levels:<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43070 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50.png\" alt=\"\" width=\"1218\" height=\"458\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50.png 1218w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50-768x289.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50-150x56.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50-24x9.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50-36x14.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-50-48x18.png 48w\" sizes=\"auto, (max-width: 1218px) 100vw, 1218px\" \/><\/a><\/p>\n<p class=\"intro-text\">The purpose of the single data point test is to <strong>check the logic for a particular branch of the process<\/strong>. For example, that you have used the correct <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/boolean\/\">Boolean<\/a> operator to achieve the desired outcome.<\/p>\n<ul>\n<li class=\"intro-text\"><strong>For each of the inputs, specify a valid value before proceeding to test the process<\/strong>.<\/li>\n<\/ul>\n<h2 class=\"page-subheading\">.CSV data file<\/h2>\n<p class=\"intro-text\">When you select the .CSV data file option, you have the option of using a file that has already been created, or you can create one.<\/p>\n<p class=\"intro-text\">The purpose of using a .csv file is to <strong>check the logic of the entire process <\/strong>and to check for \"dead areas\" where the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/creating-user-processes\/validating-the-logic-of-a-process\/\">logic does not work<\/a>. The test run cycles though each row of data, highlighting each component that is encountered. When you finish a test run, all components should be highlighted. If a component is missed, it means that there may be a flaw in the logic, or that the testing hasn't covered the appropriate scenario.<\/p>\n<p class=\"intro-text\">A valid .csv file looks something like this:<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43071 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51.png\" alt=\"\" width=\"484\" height=\"194\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51.png 484w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51-150x60.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51-24x10.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51-36x14.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-51-48x19.png 48w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/a><\/p>\n<p class=\"intro-text\">To create a data file:<\/p>\n<p class=\"intro-text\">1. Click <strong>Create<\/strong>.<\/p>\n<p class=\"intro-text\">2. In the <strong>Create .CSV test data file <\/strong>dialog box, specify the following:<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43072 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52.png\" alt=\"\" width=\"392\" height=\"222\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52.png 392w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52-150x85.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52-36x20.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-52-48x27.png 48w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><strong>Data Start Time<\/strong>: The default time is set to the current time. You should change this if you have specific data windowing requirements.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><strong>Sample Interval<\/strong>: Specify the sample interval in days, hours, minutes, or seconds. You should change this if you have specific data windowing requirements.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><strong>Number of Data Points<\/strong>: This corresponds to the number of lines in the file containing data for the input variables to be tested. Typically you would want to test for various scenarios that should trigger different states. The maximum number of data points allowed is 1000. If you add more than 1000 data points, only the first 1000 will be loaded and the rest will be ignored.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><strong>Processing Start Time<\/strong>: By default, this is set to the current time. You should change this if you have specific data windowing requirements.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><strong>Default Data<\/strong>: Select Blank data to create a blank data file for you to modify before loading, or select Random data to generate random data for your input variables.<\/p>\n<p class=\"intro-text\">3. Click <strong>Create<\/strong>.<\/p>\n<p class=\"intro-text\">4. Type a name for your file and save it.<\/p>\n<p class=\"intro-text\">5. If you have created a blank data file, you should edit it now.<\/p>\n<p class=\"left-bar\">Note: You will also need to edit your file if you have included <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-features\/process-parameters\/\">Process Parameters<\/a> in your process.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\">Now that you have created a data file with appropriate data, you need to load it in order to run the test.<\/p>\n<p class=\"intro-text\">6. Click <strong>Load<\/strong>.<\/p>\n<p class=\"intro-text\">7. Find your file and click <strong>Open<\/strong>.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\">The test data file is loaded to memory, where it will remain for this process until you end the session. The panel displays information about the file, however you cannot edit this information.<\/p>\n<p class=\"left-bar\"><strong>Note<\/strong>: If you update the test data file on your computer, you will need to reload it in Sentinel Studio.<\/p>\n<p class=\"intro-text\">You may now test the process, firstly the individual flow events and then all flow events at once.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-primers\/\">Sentinel Studio Primers<\/a>,\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/creating-user-processes\/creating-a-new-user-process\/\">Creating a User Process<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/\">Component Logic Functions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two ways to supply test data in Sentinel Studio: Manually specify single data points or Import data from a .csv file.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/creating-user-processes\/how-to-test-a-process\/supplying-test-data\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":43073,"parent":42179,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[707,474,701,731,705,726,706],"class_list":["post-42181","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-flow-events","tag-importexport","tag-inputs","tag-process-flow","tag-process-logic","tag-studio-sentinel","tag-testing","Version-4-6-1","Product-sen"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=42181"}],"version-history":[{"count":1,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42181\/revisions"}],"predecessor-version":[{"id":46312,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42181\/revisions\/46312"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/43073"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=42181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=42181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=42181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}