Adds support for -> operator, which allows to wait for various events 45/167445/43
authorRadoslaw Cybulski <r.cybulski@partner.samsung.com>
Wed, 17 Jan 2018 16:11:06 +0000 (17:11 +0100)
committerRadoslaw Cybulski <r.cybulski@partner.samsung.com>
Thu, 25 Jan 2018 15:50:30 +0000 (16:50 +0100)
commit540cb8d0770c1360ea65a235b002aab53dc35e39
tree3658ebde640fdb9edf8123211f410e5c184ee03f
parent15f4e606d407ddf18a4de39dd0a248db6692b901
Adds support for -> operator, which allows to wait for various events

Consider following situation (in batch mode): first you TAP on icon on
home screen and launch an application, then you want to TAP on some
icon inside the application. Now you've to wait for the application to
initialize and appear foreground. Operator -> is to solve this issue:

TAP('Phone') -> gui()

means execute left side (TAP), then wait for conditions on right side
(gui - context must change, new app appear and so on). Currently only
two conditions are supported - gui (new context, new window and so on)
and tts (screen reader did read something).

Change-Id: I72d00335c360acf97979825b73ed0c98040a0dc4
src/batch/BatchRunner.cpp
src/batch/Dlog.cpp
src/batch/EvaluationValue.cpp
src/batch/EvaluationValue.hpp
src/batch/EvaluationValueBase.cpp
src/batch/EvaluationValueBase.hpp
src/batch/EvaluationValueWait.cpp [new file with mode: 0644]
src/batch/Evaluator.cpp
src/batch/Evaluator.hpp
src/batch/Lexer.cpp
src/batch/Parser.cpp