title: Handle Errors/While-True-Loop etc. in QML-Testcases
body: <p>When I get an error in a single <code>Test</code> in <code>QML</code>, all my following Tests will not be executed. I´ve tried a <code>Try-Catch-Block</code>but that did not work. Is there a good solution to solve this problem.</p>
  
  <p>My second problem is, if I run into a <code>While-True-Loop</code>I could not get out of it. You can imagine what the problem is.</p>
  
  <p>Can I build up something like a <code>WatchDog</code>that solves all my problems.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import QtQuick 2.4
  import QtTest 1.0
  import QtQuick.Controls 1.2
  
  
  TestCase{
      id: myTestCase
      name:"ComboBoxTest"
      when: windowShown
      height: 100
      width: 100
  
      ListModel{
          id:myModel
          ListElement{text1:"Tom"}
          ListElement{text1:"Jerry"}
          ListElement{text1:"Micky"}
          ListElement{text1:"Donald"}
      }
  
      ComboBox {
          id:myCombo
          model: myModel
  
      }
    
      TextField{
          id:myTextField
          text:"Fufu"
      }
  
      function test_open(){
         myCombo.focus = true
         mouseClick(myCombo)
         console.log("Focus: " + myCombo.focus )
         keyClick(Qt.Key_Down)
         keyClick(Qt.Key_Down)
         keyClick(Qt.Key_Enter)
  
         verify(myCombo.currentText === "Micky",myCombo.currentText)
      }
    
      function test_copy(){
         myTextField.forceActiveFocus()
         myTextField.selectAll()
         //Get Fatal-Error and Testautomatism aborts completely
         keyClick(Qt.Key_Copy)
      }
  
    //While-True-Loop Problem
    function test_shouldFail(){
          while(true){
              ;
          }
      }
    
    
  
  
  }</code></pre>
  </div>
  </div>
  </p>