A Python UPnP Media Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
5.1 KiB

  1. <ServiceControlSyntaxTestCases>
  2. <ServiceType>AVTransport</ServiceType>
  3. <ServiceVersion>1</ServiceVersion>
  4. <TestCaseList>
  5. <TestCase>
  6. <Id>1</Id>
  7. <Category>Valid Action And Valid InArgs</Category>
  8. <ActionName>SetAVTransportURI</ActionName>
  9. <InArgs>
  10. <InstanceID>0</InstanceID>
  11. <CurrentURI>any-string</CurrentURI>
  12. <CurrentURIMetaData>any-string</CurrentURIMetaData>
  13. </InArgs>
  14. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  15. </TestCase>
  16. <TestCase>
  17. <Id>2</Id>
  18. <Category>Valid Action And Valid InArgs</Category>
  19. <ActionName>SetNextAVTransportURI</ActionName>
  20. <InArgs>
  21. <InstanceID>0</InstanceID>
  22. <NextURI>any-string</NextURI>
  23. <NextURIMetaData>any-string</NextURIMetaData>
  24. </InArgs>
  25. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  26. </TestCase>
  27. <TestCase>
  28. <Id>3</Id>
  29. <Category>Valid Action And Valid InArgs</Category>
  30. <ActionName>GetMediaInfo</ActionName>
  31. <InArgs>
  32. <InstanceID>0</InstanceID>
  33. </InArgs>
  34. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  35. </TestCase>
  36. <TestCase>
  37. <Id>4</Id>
  38. <Category>Valid Action And Valid InArgs</Category>
  39. <ActionName>GetTransportInfo</ActionName>
  40. <InArgs>
  41. <InstanceID>0</InstanceID>
  42. </InArgs>
  43. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  44. </TestCase>
  45. <TestCase>
  46. <Id>5</Id>
  47. <Category>Valid Action And Valid InArgs</Category>
  48. <ActionName>GetPositionInfo</ActionName>
  49. <InArgs>
  50. <InstanceID>0</InstanceID>
  51. </InArgs>
  52. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  53. </TestCase>
  54. <TestCase>
  55. <Id>6</Id>
  56. <Category>Valid Action And Valid InArgs</Category>
  57. <ActionName>GetDeviceCapabilities</ActionName>
  58. <InArgs>
  59. <InstanceID>0</InstanceID>
  60. </InArgs>
  61. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  62. </TestCase>
  63. <TestCase>
  64. <Id>7</Id>
  65. <Category>Valid Action And Valid InArgs</Category>
  66. <ActionName>GetTransportSettings</ActionName>
  67. <InArgs>
  68. <InstanceID>0</InstanceID>
  69. </InArgs>
  70. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  71. </TestCase>
  72. <TestCase>
  73. <Id>8</Id>
  74. <Category>Valid Action And Valid InArgs</Category>
  75. <ActionName>Stop</ActionName>
  76. <InArgs>
  77. <InstanceID>0</InstanceID>
  78. </InArgs>
  79. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  80. </TestCase>
  81. <TestCase>
  82. <Id>9</Id>
  83. <Category>Valid Action And Valid InArgs</Category>
  84. <ActionName>Play</ActionName>
  85. <InArgs>
  86. <InstanceID>0</InstanceID>
  87. <Speed>1</Speed>
  88. </InArgs>
  89. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  90. </TestCase>
  91. <TestCase>
  92. <Id>10</Id>
  93. <Category>Valid Action And Valid InArgs</Category>
  94. <ActionName>Pause</ActionName>
  95. <InArgs>
  96. <InstanceID>0</InstanceID>
  97. </InArgs>
  98. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  99. </TestCase>
  100. <TestCase>
  101. <Id>11</Id>
  102. <Category>Valid Action And Valid InArgs</Category>
  103. <ActionName>Record</ActionName>
  104. <InArgs>
  105. <InstanceID>0</InstanceID>
  106. </InArgs>
  107. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  108. </TestCase>
  109. <TestCase>
  110. <Id>12</Id>
  111. <Category>Valid Action And Valid InArgs</Category>
  112. <ActionName>Seek</ActionName>
  113. <InArgs>
  114. <InstanceID>0</InstanceID>
  115. <Unit>TRACK_NR</Unit>
  116. <Target>1</Target>
  117. </InArgs>
  118. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  119. </TestCase>
  120. <TestCase>
  121. <Id>13</Id>
  122. <Category>Valid Action And Valid InArgs</Category>
  123. <ActionName>Next</ActionName>
  124. <InArgs>
  125. <InstanceID>0</InstanceID>
  126. </InArgs>
  127. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  128. </TestCase>
  129. <TestCase>
  130. <Id>14</Id>
  131. <Category>Valid Action And Valid InArgs</Category>
  132. <ActionName>Previous</ActionName>
  133. <InArgs>
  134. <InstanceID>0</InstanceID>
  135. </InArgs>
  136. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  137. </TestCase>
  138. <TestCase>
  139. <Id>15</Id>
  140. <Category>Valid Action And Valid InArgs</Category>
  141. <ActionName>SetPlayMode</ActionName>
  142. <InArgs>
  143. <InstanceID>0</InstanceID>
  144. <NewPlayMode>NORMAL</NewPlayMode>
  145. </InArgs>
  146. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  147. </TestCase>
  148. <TestCase>
  149. <Id>16</Id>
  150. <Category>Valid Action And Valid InArgs</Category>
  151. <ActionName>SetRecordQualityMode</ActionName>
  152. <InArgs>
  153. <InstanceID>0</InstanceID>
  154. <NewRecordQualityMode>any-string</NewRecordQualityMode>
  155. </InArgs>
  156. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  157. </TestCase>
  158. <TestCase>
  159. <Id>17</Id>
  160. <Category>Valid Action And Valid InArgs</Category>
  161. <ActionName>GetCurrentTransportActions</ActionName>
  162. <InArgs>
  163. <InstanceID>0</InstanceID>
  164. </InArgs>
  165. <ExpectedReturnCode>ACTION_AND_INARGS_ARE_VALID</ExpectedReturnCode>
  166. </TestCase>
  167. </TestCaseList>
  168. </ServiceControlSyntaxTestCases>