Obsolete Members for TestCase

QML 타입 TestCase의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 유지하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.

속성

방법

부동산 관련 서류

optional : bool [deprecated in 6.12]

이 속성은 QtTest 6.12부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 속성을 사용하지 않는 것을 강력히 권장합니다.

대신 ` skip()`을 사용하십시오.

테스트 애플리케이션에서는 여러 개의 ` TestCase ` 유형을 지정할 수 있습니다. 모든 테스트가 완료되면 애플리케이션이 종료됩니다. (전제 조건이 실패하여) 특정 테스트 케이스를 실행할 필요가 없는 경우, 이 속성을 `true`로 설정할 수 있습니다. 기본값은 `false`입니다.

TestCase {
    when: false
    optional: true
    function test_not_run() {
        verify(false)
    }
}

when 및 completed도 참조하십시오 .


메서드 문서

[deprecated in 6.5] bool waitForItemPolished(object item, int timeout = 5000)

이 메서드는 QtTest 6.5부터 더 이상 권장되지 않습니다. 새로운 코드에서는 이 메서드를 사용하지 않는 것을 강력히 권장합니다.

대신 waitForPolish()을 사용하십시오.

timeout 밀리초 동안 대기하거나, item 에 대해 updatePolish()이 호출될 때까지 대기합니다.

timeout 밀리초 이내에 item 에서 updatePolish() 가 호출된 경우 true 를 반환하고, 그렇지 않으면 false 를 반환합니다.

isPolishScheduled(), QQuickItem::polish(), QQuickItem::updatePolish()도 참조하십시오 .


© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.