[MachineLearning.Inference][Non-ACR] Change string property test 66/254466/1
authorGichan Jang <gichan2.jang@samsung.com>
Wed, 3 Mar 2021 08:21:37 +0000 (17:21 +0900)
committerGichan Jang <gichan2.jang@samsung.com>
Wed, 3 Mar 2021 08:29:57 +0000 (17:29 +0900)
Current setting and getting string property test try to select tensors that does not exist.
Changed to select the first tensor.

Change-Id: If1e2c70de21475181f7da2a3ed22f2de4e6e957f
Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.NodeInfo.cs

index e7045bf..8335656 100644 (file)
@@ -888,9 +888,9 @@ namespace Tizen.MachineLearning.Inference.Tests {
 
                 /* Test Code */
                 string retTensorpick;
-                demux_node.SetValue("tensorpick", "1,2");
+                demux_node.SetValue("tensorpick", "0");
                 demux_node.GetValue("tensorpick", out retTensorpick);
-                Assert.IsTrue(retTensorpick == "1,2", "Failed to set the value of normal node");
+                Assert.IsTrue(retTensorpick == "0", "Failed to set the value of normal node");
 
                 pipeline.Dispose();
             }
@@ -932,7 +932,7 @@ namespace Tizen.MachineLearning.Inference.Tests {
                 Assert.IsInstanceOf<Pipeline.Node>(demux_node, "Should return normal node instance");
 
                 /* Test Code */
-                demux_node.SetValue(null, "1,2");
+                demux_node.SetValue(null, "0");
 
                 Assert.True(false, "DO NOT COME HERE!");
             }
@@ -978,7 +978,7 @@ namespace Tizen.MachineLearning.Inference.Tests {
                 Assert.IsInstanceOf<Pipeline.Node>(demux_node, "Should return normal node instance");
 
                 /* Test Code */
-                demux_node.SetValue("invalid_name", "1,2");
+                demux_node.SetValue("invalid_name", "0");
 
                 Assert.True(false, "DO NOT COME HERE!");
             }
@@ -1024,7 +1024,7 @@ namespace Tizen.MachineLearning.Inference.Tests {
                 Assert.IsInstanceOf<Pipeline.Node>(demux_node, "Should return normal node instance");
 
                 /* Test Code */
-                demux_node.SetValue("", "1,2");
+                demux_node.SetValue("", "0");
 
                 Assert.True(false, "DO NOT COME HERE!");
             }
@@ -1538,7 +1538,7 @@ namespace Tizen.MachineLearning.Inference.Tests {
 
                 /* Test Code */
                 /* The type of tensorpick is a string, but it failed because it was set as a int. */
-                demux_node.SetValue("tensorpick", 1);
+                demux_node.SetValue("tensorpick", 0);
 
                 Assert.True(false, "DO NOT COME HERE!");
             }