+ # Waiting until dce application is actually started
+ is_running = False
+ for i in xrange(200):
+ is_running = self.simulation.invoke(self.uuid, "isAppRunning")
+ is_finished = self.simulation.invoke(SIMULATOR_UUID, "isFinished")
+
+ if is_running or is_finished:
+ break
+ else:
+ time.sleep(1)
+ else:
+ if not is_running:
+ msg = " Application did not start"
+ self.error(msg)
+ raise RuntimeError
+
+ # Using lock to prevent concurrent access to the DceApplicationHelper