Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18531

It would be cool if SignalSpy could examine the signal

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.7.2
    • Testing: QuickTest
    • None
    • 7cecad76b6a8beb31c74111b986be0e67bb2e15c

    Description

      There is a SingalSpy in qtest-qml. That is quite cool feature for monitoring for signals. Unfortunately everything it can do is to wait for a signal to be emitted. It is good enough if you use SignalSpy as just a "smart wait()", but not good enough if you want to verify the correctness of the signal being emitted.

      I'd like to be able to verify whether captured signal contains correct parameters.

      I guess the simplest way to achieve that would be to make a set of last captured signal arguments available in the SinglaSpy properties.
      Or maybe it would be simpler to allow an instantiated SignalSpy actually process signal in whichever way makes sense for developer.

      Attachments

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

        Activity

          People

            charles Charles Yin (closed Nokia identity) (Inactive)
            artem.marchenko Artem Marchenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes