4

While compiling in Qt 5.9.1 version it is not working.. Any one help me to compile this TestCase in qml..

import QtQuick 2.0
import QtTest 1.1

    TestCase{
            function test_math() {
                compare(2 + 2, 4, "2 + 2 = 4")
            }

            function test_fail() {
                compare(2 + 2, 5, "2 + 2 = 5")
            }

        }

Getting error like this:

Type TestCase unavailable and module Qt.test.qtestroot is not installed

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Senthil Kumar
  • 562
  • 1
  • 6
  • 14

0 Answers0