Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QQuick QtTest API to implement #1

Open
38 of 49 tasks
jgirardet opened this issue Sep 19, 2020 · 0 comments
Open
38 of 49 tasks

QQuick QtTest API to implement #1

jgirardet opened this issue Sep 19, 2020 · 0 comments

Comments

@jgirardet
Copy link
Owner

jgirardet commented Sep 19, 2020

Features

  • standard test
  • data driven test
  • benchmark test
  • SignalSpy

Hooks

  • qmlEngineAvalaible
  • applicationAvailable
  • cleanupTestCase

Properties

  • completed : bool
  • name : string
  • optional : bool
  • running : bool
  • when : bool
  • windowShown : bool

Methods

  • cleanup()
  • cleanupTestCase()
  • compare(actual, expected, message)
  • object createTemporaryObject(Component component, object parent, object properties)
  • object createTemporaryQmlObject(string qml, object parent, string filePath)
  • expectFail(tag, message)
  • expectFailContinue(tag, message)
  • fail(message)
  • QtObject findChild(parent, objectName)
  • fuzzyCompare(actual, expected, delta, message)
  • object grabImage(item)
  • ignoreWarning(message)
  • init()
  • initTestCase()
  • bool isPolishScheduled(object item)
  • keyClick(key, modifiers, delay)
  • keyPress(key, modifiers, delay)
  • keyRelease(key, modifiers, delay)
  • keySequence(keySequence)
  • mouseClick(item, x, y, button, modifiers, delay)
  • mouseDoubleClickSequence(item, x, y, button, modifiers, delay)
  • mouseDrag(item, x, y, dx, dy, button, modifiers, delay)
  • mouseMove(item, x, y, delay)
  • mousePress(item, x, y, button, modifiers, delay)
  • mouseRelease(item, x, y, button, modifiers, delay)
  • mouseWheel(item, x, y, xDelta, yDelta, button, modifiers, delay)
  • skip(message)
  • sleep(ms)
  • TouchEventSequence touchEvent(object item)
  • tryCompare(obj, property, expected, timeout, message)
  • tryVerify(function, timeout, message)
  • verify(condition, message)
  • wait(ms)
  • bool waitForItemPolished(object item, int timeout)
  • waitForRendering(item, timeout)
  • warn(message)
@jgirardet jgirardet changed the title TestCase API to implement QQuick QtTest API to implement Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant