[MediaPlayer][TCSACR-242] modify TCs following the changes of streaming API 22/204722/2
authornam <just.nam@samsung.com>
Fri, 26 Apr 2019 03:54:32 +0000 (12:54 +0900)
committernam <just.nam@samsung.com>
Fri, 26 Apr 2019 07:26:20 +0000 (16:26 +0900)
Change-Id: I39081ec61fbb52c81975d1d405f0f28477ebb77a

tct-suite-vs/Tizen.MediaPlayer.Tests/testcase/TSPlayer.cs

index d05f951..cab6094 100755 (executable)
@@ -1519,7 +1519,7 @@ namespace Tizen.Multimedia.Tests
 
         [Test]
         [Category("P1")]
-        [Description("GetDownloadProgress normal test")]
+        [Description("GetDownloadProgress normal test for all available states")]
         [Property("SPEC", "Tizen.Multimedia.Player.GetDownloadProgress M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MCST")]
@@ -1527,9 +1527,12 @@ namespace Tizen.Multimedia.Tests
         public async Task GetDownloadProgress_CHECK()
         {
             var player = await GetPreparedPlayer(_streamingSource);
+            Assert.That(() => player.GetDownloadProgress(), Throws.Nothing);
 
             player.Start();
+            Assert.That(() => player.GetDownloadProgress(), Throws.Nothing);
 
+            player.Stop();
             Assert.That(() => player.GetDownloadProgress(), Throws.Nothing);
         }
 
@@ -1540,12 +1543,9 @@ namespace Tizen.Multimedia.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MEX")]
         [Property("AUTHOR", "JungHo Kim, jhyo.kim@samsung.com")]
-        public async Task GetDownloadProgress_THROWS_IF_NOT_VALID_STATE()
+        public void GetDownloadProgress_THROWS_IF_NOT_VALID_STATE()
         {
             Assert.That(() => TestPlayer.GetDownloadProgress(), Throws.InvalidOperationException);
-
-            var player = await GetPreparedPlayer();
-            Assert.That(() => player.GetDownloadProgress(), Throws.InvalidOperationException);
         }
 
         [Test]
@@ -1898,7 +1898,7 @@ namespace Tizen.Multimedia.Tests
 
         [Test]
         [Category("P2")]
-        [Description("Any attempt to access the ReplayGain if the player has been disposed of")]
+        [Description("AudioPitchEnabled throws exception if the player is in a not valid state")]
         [Property("SPEC", "Tizen.Multimedia.Player.AudioPitchEnabled A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PEX")]
@@ -1911,7 +1911,7 @@ namespace Tizen.Multimedia.Tests
 
         [Test]
         [Category("P2")]
-        [Description("Any attempt to access the ReplayGain if the player has been disposed of")]
+        [Description("Any attempt to access the AudioPitchEnabled if the player has been disposed of")]
         [Property("SPEC", "Tizen.Multimedia.Player.AudioPitchEnabled A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PEX")]
@@ -2015,7 +2015,7 @@ namespace Tizen.Multimedia.Tests
 
         [Test]
         [Category("P2")]
-        [Description("Any attempt to access the ReplayGain if the player has been disposed of")]
+        [Description("Any attempt to access the AudioPitch if the player has been disposed of")]
         [Property("SPEC", "Tizen.Multimedia.Player.AudioPitch A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PEX")]