Uploaded image for project: 'IoTivity'
  1. IoTivity
  2. IOT-1466

[NS][Android][API] Topic.getState() always returns SUBSCRIBED state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Undecided
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: IoTivity 1.2.0
    • Component/s: SDK
    • Labels:
      None
    • Found in Version/s:
      1.2.0-RC4
    • Fixed in Version/s:
      1.3.0-RC1
    • Issue Severity:
      Major
    • Reproducibility:
      Always (100%)

      Description

      [TC: testSetUnsetTopic_SQV_P, testTopicState_SRC_P]

      [Target: int sendMessage(Message message), TopicsList getConsumerTopicList()]

      [Procedure]
      1. Get Provider Service Instance
      2. Start Provider with Provider acceptor
      3. [PROVIDER] Register Topic with topicName = "OCF_TestTopic"
      4. Get Consumer Service Instance
      5. Start Consumer Service
      6. Wait for OnConsumerSubscribedListener
      7. Get Consumer object from callback
      8. [PROVIDER] Accept Subscription
      9. [PROVIDER] SetTopic for the topicName = "OCF_TestTopic"
      10. [CONSUMER] Get the topic list
      11. [CONSUMER] Check the topic state
      12. [PROVIDER] Unset the topic
      13. [CONSUMER] Get and check the topic state

      [Expected]
      1. Topic state should be SUBSCRIBED state after Set (step 11)
      2. Topic state should be UNSUBSCRIBED state after Unset (step 13)

      [Observation]
      Topic state is SUBSCRIBE after both step 11 & 13

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              abitha.s Abitha Shankar
              Reporter:
              arafat.hsn Md. Arafat Hossain
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: