From couple of days I was looking that each monkeyTalk automation script would run individually without affecting each other, It means that AUT (Application Under Test) at initial stage for each test.
So I think that if I launch application before running test and closing after test execution, I will get solution.
After searching, I got some adb commands to launch and close installed application. Below commands are for the same:
To launch Application:
Where “com.gorillalogic.monkeytalk.demo1” is application package name and “RootActivity” is main activity class name.
To close application
Where “com.gorillalogic.monkeytalk.demo1” is application package name.
So I think that if I launch application before running test and closing after test execution, I will get solution.
After searching, I got some adb commands to launch and close installed application. Below commands are for the same:
To launch Application:
adb shell am
start -n com.gorillalogic.monkeytalk.demo1/.RootActivity
Where “com.gorillalogic.monkeytalk.demo1” is application package name and “RootActivity” is main activity class name.
To close application
adb shell am
force-stop com.gorillalogic.monkeytalk.demo1
Where “com.gorillalogic.monkeytalk.demo1” is application package name.