Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Dec 30, 2018 22:16

First when using Async mode it is recommended to uncheck the "allocate device automatically" .

In the below example you can see a Parent Script followed by selecting few devices iOS \ Android and opening them.

Then there are child scripts for each opened device running in Async mode.

Since in async mode the main suite (_Parent Script ,where the devices are getting opened) is ended during the run of the sub suites (child scripts) and since the devices were opened on the main suite (_Parent Script) now the devices are getting closed when the Parent Script ends  , this causes the sub suites (Child scripts) to fail.

_Parent Script

Select device - iOS
Open device 

Select device - iOS
Open device

Select device - Android
Open device 

Select device - Android
Open device

_Child Script-1 ( iOS )

_Child Script -2( iOS )

_Child Script -1( Android )

_Child Script -2( Android )


As a fix for that issue the scripts should be changed as follows:

_Parent Script
Select device - iOS
_Child Script -1( iOS )
         Open device --> first command inside the _Child Script -1( iOS )
.
.
Wait
Select device - iOS
_Child Script -2( iOS )
          Open device --> first command inside the _Child Script -2( iOS )
.
.
Wait
Select device - Android
_Child Script -1( Android )
          Open device --> first command inside the _Child Script -1( Android )
.
Wait
Select device - Android
 _Child Script -2( Android )
          Open device --> first command inside the _Child Script -2( Android )
.
.